function Is_hangul(input)
{
	var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+|-=;<>,.?{}[]";
	var valid;
	for (var i=0; i< input.length; i++) 
	{
		valid = input.charAt(i);
		for(var j = 0 ;  j < str.length ; j++) 
		{
			if (valid == str.charAt(j))
			{ 
				return false;
			}
		}
	}
	
	return true;
}

function input_chk()
{	
	var col = document.getElementsByTagName("input");

	var v = "";
	var i = 0;
	var val;
	var msg = "";
	var all_sp = "`~!@#$%^&*()-_=+\\|[{]};:'\",<.>/?";
					
	if(col != null)
    {
    	for(i; i<col.length; i++)
    	{
    		if(col[i].type == "text" || col[i].type == "password")
    		{
    			if(col[i].value != "")
    			{
	    			if(col[i].getAttribute("DASH") != null)
	    			{
						v = col[i].value;
						
						for(j=0; j<v.length; j++) 
						{ 
	        				val = v.charAt(j);
	        				 
	        				if(val == '>' || val == ';' || val == '/')
	        				{
	        					alert(CM0001);
	        					col[i].focus();
	        					return false;
	        					break;
	        				} 
	   					}		   						
	    			}
	    			else if(col[i].getAttribute("ALL_SP") != null)
	    			{
						v = col[i].value;
						
						for(j=0; j<v.length; j++) 
						{ 
	        				val = v.charAt(j);
	        				 
							if (all_sp.indexOf(val) != -1)
							{
								alert(CM0002);
								col[i].value = "";
								col[i].focus();
								return false;
								break;
							}
	   					}		   						
	    			}
	    			else
	    			{
	    				v = col[i].value;
	    				
						for(j=0; j<v.length; j++) 
						{ 
	        				val = v.charAt(j);
	        				if(val == '>' || val == ';' || val == '/' || val == '-')
	        				{
	        					alert(CM0001);
	        					col[i].focus();
	        					return false;
	        					break;
	        				} 
	   					}
	    			}
	    		}
    		}
    	}	
    }
    
    return true;
}

function search_chk()
{
	var col = document.all.tags("input");
	var v = "";
	var i = 0;
	var val;
	var msg = "";
	var all_sp = "`~!@#$%^&*()-_=+\\|[{]};:'\",<.>/?";
					
	if(col != null)
    {
    	for(i; i<col.length; i++)
    	{
    		if(col[i].type == "text" || col[i].type == "password")
    		{
    			if(col[i].value != "")
    			{
	    			if(col[i].getAttribute("ALL_SP") != null)
	    			{
						v = col[i].value;
						
						for(j=0; j<v.length; j++) 
						{ 
	        				val = v.charAt(j);
	        				 
							if (all_sp.indexOf(val) != -1)
							{
								alert(CM0002);
								col[i].value = "";
								col[i].focus();
								return false;
								break;
							}
	   					}		   						
	    			}
	    		}
    		}
    	}	
    }
    
    return true;
}



