function validate()
{
	var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;

	if(document.getElementById("name").value=="") 
	{
		alert("Name is required!");
		document.getElementById("name").focus();
		return false;
	}

    if(document.getElementById("the_email").value=="")
	{
		alert("Email is required!");
		document.getElementById("the_email").focus();
		return false;
	}
	
	 if (document.contactform.the_email.value.search(emailRegEx) == -1) {
          alert("Please enter a valid email address.");
		  document.getElementById("the_email").focus();
		  return false;
     }

    if(document.getElementById("cust_url").value=="")
	{
		alert("Please enter the URL!");
		document.getElementById("cust_url").focus();
		return false;
	}
	
	
	 if(document.getElementById("the_phone").value=="")
	{
		alert("Phone number is required!");
		document.getElementById("the_phone").focus();
		return false;
	}

	
	
	
   // verification code
	if(document.getElementById("vericode").value=="")
	{
		alert ( "Please type the VERIFICATION CODE" );
		document.getElementById("vericode").focus();
		return false;
	}
	
	
	if(document.getElementById("vericode").value!=66785)
	  {
	  	alert ( "Please type the CORRECT VERIFICATION CODE" );
		document.getElementById("vericode").focus();
        return false;
      }
	
 
  if(document.getElementById("vericode").value==66785 )
	  {
	  window.location = "thankyou.php";
	  return true;
      }
	  
 
	//return true;
}


