function check()
{
 
    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.comment.value=="")
  {
   alert("Please enter your comment");
   form1.comment.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;
}
}


function check2()
{
 
    if(form2.email2.value=="")
	{
	  alert("Please enter email id");
	  form2.email2.focus();
	  return false;
	}else
	{
		 var emailStr=form2.email2.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)");
			  form2.email2.focus();
               return false;   
		     }				
    }
	 if(form2.postcode.value=="")
  {
   alert("Please enter your Postcode");
   form2.postcode.focus();
   return false;
   }   

if(!document.getElementById("verify2").value){
alert('Please enter the verification code given below');
document.getElementById("verify2").focus();
return false;
}
if(document.getElementById("verify2").value!=document.getElementById("vp2").value){
alert('Verification code does not match');
document.getElementById("verify2").value='';
document.getElementById("verify2").focus();
return false;
}
}


