
	function checkForm() {
		var goodForm = true;
		if ((document.theForm.email.value == "")
				|| (document.theForm.email.value.indexOf(".") < 0)
				|| (document.theForm.email.value.indexOf("@") < 0)) {
			goodForm = false;
			alert("That is not a valid email address.");
			document.theForm.email.focus();
		}

		if (document.theForm.wholeName.value == "") {
			goodForm = false; alert("You must enter your name.");
			document.theForm.wholeName.focus();
		}
		if (document.theForm.phone.value == "") {
			goodForm = false;
			alert("Please supply a phone number");
			document.theForm.phone.focus();
		}

		if (document.theForm.comments.value == "") {
			goodForm = false; alert("Please enter some comments");
			document.theForm.comments.focus();
		}
		if (goodForm) {
			document.theForm.submit();
		}
	}