var myEmailFilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

<!--  to hide script contents from old browsers
function VerifyData() {
// Source code to check form data goes here.
// Create a variable to keep track of whether the form is valid.
// Initializing this value to 1 means, in effect, that
// the form is valid unless the value changes sometime in the
// routine.
if (document.form1.purchaser.value.length == 0)
     {
	  alert("Please provide the name of the purchaser.")
	  document.form1.purchaser.focus();
	  return false;
    }
else if (document.form1.address.value.length == 0)
    {
	 alert("Please provide the address of the purchaser.");
	 document.form1.address.focus();
	  return false;
    }
else if (document.form1.city.value.length == 0)
    {
	 alert("Please provide the city of the purchaser.");
	 document.form1.city.focus();
	  return false;
    }
else if (document.form1.postal.value.length == 0)
    {
	alert("Please provide the Postal Code of the purchaser.");
	document.form1.postal.focus();
	return false;
   }
else if (document.form1.phone_number.value.length == 0)
    {
	alert("Please provide the Phone number of the purchaser.");
	document.form1.phone_number.focus();
    return false;
   }
else if(myEmailFilter.test(document.form1.email.value)==false)
   {
     alert('Please provide a valid e-mail address');
 	 document.form1.email.select();
 	 return false;
	}
else if (document.form1.dealer.value.length == 0)
    {
	 alert("Please provide the name of the dealer.")
	 document.form1.dealer.focus();
	 return false;
   }
else if (document.form1.sales_order.value.length == 0)
    {
	alert("Please provide the Sales Order #.");
	document.form1.sales_order.focus();
	return false;
   }
else if (document.form1.datereached1.value == "MM")
    {
	alert("Please select the month of purchse");
	document.form1.datereached1.focus();
	return false;
   }
else if (document.form1.datereached2.value == "DD")
    {
	alert("Please select the day of purchse");
	document.form1.datereached2.focus();
	return false;
   }
else if (document.form1.datereached3.value == "YYYY")
    {
	alert("Please select the year of purchse");
	document.form1.datereached3.focus();
	return false;
   }
else
  {
	return true;
  }
}
