// JavaScript Document

<!-- 
function checkform(){
if (document.formcheck.contactperson.value == ""){  // Checks for empty contactperson value
alert("Don\'t forget to enter contact person\'s name.");  // Alerts if the field is empty
document.formcheck.contactperson.focus();  // Places the cursor in the contactperson field
return false;  // Stops the function
}
if (document.formcheck.contactphone.value == ""){
alert("Don\'t forget to enter contact person\'s telephone number.");
document.formcheck.contactphone.focus();
return false;
}

if (document.formcheck.contactemail.value == ""){  // Is address value empty?
alert("Don\'t forget to enter contact person\'s e-mail address.");
document.formcheck.contactemail.focus();
return false;
}
if (document.formcheck.contactemail.value.indexOf("@") == "-1" ||  // Is @ symbol absent?
document.formcheck.contactemail.value.indexOf(".") == "-1"){  // Is period absent?
alert (" Please enter a valid e-mail address.\nValid addresses must include @ and .");
document.formcheck.contactemail.focus();
return false;
}
else
formcheck.submit();  // If valid, submits form
}
  
 -->