function chk1()
{
	var str_name = document.all.f12.user_name.value;
	if(Trim(str_name)=="")
	{
	   alert("Enter Name!");
	   f12.user_name.focus();
	   return false;
	 }
    if(str_name.indexOf("'") !=-1 || str_name.indexOf('"') !=-1 || str_name.indexOf("!") !=-1 || str_name.indexOf("@") !=-1 || str_name.indexOf("#") !=-1 || str_name=="")
    {
     alert("Invalid Name!");
     f12.user_name.focus();
	 return false;
     }

	var str_pass = document.all.f12.user_pwd.value;
	if(Trim(str_pass) =="")
	{
	   alert("Enter Password!");
	   f12.user_pwd.focus();
	   return false;
	}
    if(str_pass.indexOf("'") !=-1 || str_pass.indexOf('"') !=-1 || str_pass.indexOf("!") !=-1 || str_pass.indexOf("@") !=-1 || str_pass.indexOf("#") !=-1 || str_pass=="")
    {
     alert("Invalid Password!");
     f12.user_pwd.focus();
	 return false;
    }
	if(Trim(document.all.f12.chk_num.value)=="")
	{
       alert("Enter Validation Code!");
	   f12.chk_num.focus();
	   return false;	
	}
   return true
}


