// JavaScript Document
<!--
function isValidZipCode(value) {
   var re = /^\d{5}([\-]\d{4})?$/;
   return (re.test(value));
}
function isValidPhoneNumber(value) {
	var re = /^(\d{3})([ \.\-]?)(\d{3})\2(\d{4})$/;
   return (re.test(value));
}





function validate() {
	var error = "";
	if ( document.contact_form.name.value == "" ) error += "Please enter your name.\n";	
	if ( ( document.contact_form.email.value.search("@") == -1 ) || ( document.contact_form.email.value.search("[.*]" ) == -1 ) ) error += "Please enter a valid E-mail Address.\n";
	if ( ( document.contact_form.email.value.search(";") != -1 ) || ( document.contact_form.email.value.search(",") != -1 ) || ( document.contact_form.email.value.search(" ") != -1 ) ) error += "You cannot enter more than one e-mail address.\n";
	if ( document.contact_form.message.value == "" ) error += "Please enter a message.\n";	
	if (error == "") {
		document.contact_form.action = "verify.php";
        document.contact_form.submit();
		}
	else alert("Error:\n"+error);
	}

