// JavaScript validate Document

function validateForm() {
with (document.contact) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (Name.value == "") alertMsg += "\nName";
if (EmailFrom.value == "") alertMsg += "\nEmail";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }