
	// contact form validation function

	function contactCheck(myForm) {
			
		theName = myForm.name.value;
		thePhone = myForm.phone.value;
		
		if (theName.length<1) {
			alert("Please enter your name.");
			myForm.name.focus();
			return false;
		}
		if ( !(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)) ){
			alert("Sorry, the email address you have entered is invalid. Please try again.")
			myForm.email.focus();
			return (false)
		}
	}