submitted = false;
function validate() {
F = document.getElementById('contact_form');
	if(F.name.value == "" || F.name.value == "required") {
		alert("Please enter your name.");
		F.name.focus();
		F.action.value = "";
	} else if (F.email.value == "valid email required" || F.email.value.indexOf("@") == -1 || F.email.value.indexOf(".") == -1) {
		alert("Your email address doesn't seem valid. Please verify.");
		F.email.focus();
		F.action.value = "";
	} else if (F.comment.value == "") {
		alert("Didn't you want to say something? Please type in the text area.");
		F.comment.focus();
		F.action.value = "";
	} else if (!submitted) {
		F.action = "formMailer.php";
		submitted = true;
		F.submit();
	} else {
		alert("Your information has already been submitted. Please wait for the process to finish. Thank you for your patience!");
	}
}
