function validation()
 {

	    
		if(document.form1.Name.value=="")
	    {
	   		alert("Please Enter the Name");
			document.form1.Name.focus();
	   		return false;
	    }
	   
	  
		if(document.form1.company.value=="")
		{
			alert("Please Enter the Company Name");
			document.form1.company.focus();
		    return false;			
		}   
		
		if(document.form1.txtAddress.value=="")
		{
		
			alert("please enter the address ");
			document.form1.txtAddress.focus();
			return false;
		}
			
		
		if(document.form1.txtCity.value=="")
		{
		
			alert("please enter the city ");
			document.form1.txtCity.focus();
			return false;
		}
		
		
		if(document.form1.txtState.value=="")
		{
		
			alert("please enter the state");
			document.form1.txtState.focus();
			return false;
		}
		
		
		if(document.form1.country.value=="sc")
		{
			
			alert("please select the country ");
			document.form1.country.focus();
			return false;
		}
		
		if(document.form1.txtPhone.value=="")
		{
		
			alert("please enter the telephone ");
			document.form1.txtPhone.focus();
			return false;
		}
		
		
		
		if(document.form1.txtPhone.value!="")
		{
		    var checkcom =/[0-9]$/;
			var mail=document.form1.txtPhone.value;
			
			if(!(checkcom.test(mail)))
			{
				alert("Enter the valid telephone no.");
				document.form1.txtPhone.focus();
				return false;
			}
		
		}
		
		if(document.form1.Email.value=="")
		{
		
			alert("please enter the email id ");
			document.form1.Email.focus();
			return false;
		}
		
		
		if(document.form1.Email.value!="")	
    	{
			var checkcom =/^[\w]+[\.a-zA-z0-9]+\@[a-zA-Z\.]+\.[a-zA-z]{2,4}$/;
			var mail=document.form1.Email.value;
			
			if(!(checkcom.test(mail)))
			{
				alert("Enter the valid e-mail id ");
				document.form1.Email.focus();
				return false;
			}
		
	     }
  	
		
		if(document.form1.txtQuery.value=="")
		{
		
			alert("please enter the comments and queries ");
			document.form1.txtQuery.focus();
			return false;
		}
		
		
		
		
}