function check()
{
 if(form1.name.value=="")
 {
  alert("Please enter the contact name");
  form1.name.focus();
  return false;
  }
   if(form1.company_name.value=="")
 {
  alert("Please enter the company name");
  form1.company_name.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(!document.getElementById("verify").value){
	alert('Please enter verification code');
	document.getElementById("verify").focus();
	return false;
	
}
if(document.getElementById("verify").value!=document.getElementById("vp").value){
	alert('Verification code does not match');
	document.getElementById("verify").focus();
	return false;
	
}


}
