<!---------BEGIN JS---------->

// contact us and demo request forms
function verify() {
  var themessage = "We ask that you complete the following fields:\n";
  if (document.contact_form.my_name.value == "") {
      themessage = themessage + "\n       Your Name ";
  }
  if (document.contact_form.my_company.value == "") {
      themessage = themessage + "\n       Company ";
  }
  if (document.contact_form.my_city.value == "") {
      themessage = themessage + "\n       City ";
  }
  if (document.contact_form.my_state.value == "") {
      themessage = themessage + "\n       State ";
  }
  if (document.contact_form.my_email.value == "") {
      themessage = themessage + "\n       Email ";
  }
  //if fields are all ok, submit form
  if (themessage == "We ask that you complete the following fields:\n") {
      return true;
  }
  //alert if fields are empty then cancel form submit
  else {
      alert(themessage);
      return false;
  }
}

<!---------END JS---------->
