function ValidateForm(){
  FixThis = "";

  if (document.contact.E_MAIL.value.length > 0) {
    i = document.contact.E_MAIL.value.indexOf("@");
    j = document.contact.E_MAIL.value.indexOf(".",i);
    k = document.contact.E_MAIL.value.indexOf(",");
    kk = document.contact.E_MAIL.value.indexOf(" ");
    jj = document.contact.E_MAIL.value.lastIndexOf(".") + 1;
    len = document.contact.E_MAIL.value.length;

    if ((i > 0) && (j > (i+ 1)) && (k == -1) && (kk == -1) && (len - jj >= 2) && (len - jj <= 3)) {
    } else {
      FixThis = FixThis + "* [" + document.contact.E_MAIL.value + "] is an invalid e-mail address\n";
    }
  } else {
    FixThis = FixThis + "* You must enter your email address\n";
  }

  if (document.contact.Name.value.length < 4) {
    FixThis = FixThis + "* Please enter your full name\n"; }

  if (document.contact.Address.value == "") {
    FixThis = FixThis + "* Please provide your address\n"; }

  if (document.contact.City.value == "") {
    FixThis = FixThis + "* Please provide your city\n"; }

  if (document.contact.Postal_code.value == "") {
    FixThis = FixThis + "* Please provide your zip/postal code\n"; }

  if (document.contact.Home_phone.value.length < 10) {
    FixThis = FixThis + "* Please provide your full home phone number with area code\n"; }

  if (document.contact.Work_phone.value.length < 10) {
    FixThis = FixThis + "* Please provide your full work phone number with area code\n"; }

  if (FixThis > "") {
    alert("You're almost done, but:\n\n" + FixThis)
    return false }
}
