function check()
{
   if(form1.t_name.value=="")
  {
   alert("please enter the Trading Name");
   form1.t_name.focus();
   return false;
   }  
   
       if(form1.postal_add.value=="")
  {
   alert("please enter the Postal Address");
   form1.postal_add.focus();
   return false;
   }  
    
    if(form1.phone.value=="")
  {
   alert("please enter the Phone number");
   form1.phone.focus();
   return false;
   }  
    	    
     if(form1.email.value=="")
	{
	  alert("Please enter email id");
	  form1.email.focus();
	  return false;
	}else
	{
		 var emailStr=form1.email.value;
		 // checks if the e-mail address is valid
		  var emailPat = /^(\".*\"|[A-Za-z]\w*|[A-Za-z]\w*(\.?\w*))@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
		   var matchArray = emailStr.match(emailPat);
		   if (matchArray == null)
		{
		      alert("Your email address seems incorrect.  Please try again (check the '@' and '.'s in the email address)");
			  form1.email.focus();
               return false;   
		     }				
    }
	if(form1.select1.value=="please select")
  {
   alert("please choose the required Product");
   form1.select1.focus();
   return false;
   }  
	
	
if(!document.getElementById("verify").value){
alert('Please enter the verification code given below');
document.getElementById("verify").focus();
return false;
}
if(document.getElementById("verify").value!=document.getElementById("vp").value){
alert('Verification code does not match');
document.getElementById("verify").value='';
document.getElementById("verify").focus();
return false;
}
}

