		function CheckForm()
		{
			var email, visitor, notes;

			email = document.getElementById('visitormail').value;
			visitor = document.getElementById('visitor').value;
			notes = document.getElementById('notes').value;

			if ((email.length == 0) || (email.indexOf('.') == -1) || (email.indexOf('@') == -1))
			{
				alert ("Invalid e-mail address. Click OK to return to form and correct e-mail address.");
				return;
			}
			if ((visitor.length == 0) || (email.length == 0) || (notes.length == 0))
			{
				alert ("All fields must be entered. Click OK to return to form and complete fields.");
				return;
			}
			document.getElementById("frm").submit()
		}