function checkForm() {
  //alert('Running form validation Javascript...');
  theMsg = 'Please fill in all fields marked with *.';
  theMsg2 = 'Please make sure the "E-mail" and "Verify e-mail" fields match.';
  if (document.contactform.lastname.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.firstname.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email_verify.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.phone1.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.phone2.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.when_to_contact.value == 'none') {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email.value != document.contactform.email_verify.value) {
   alert(theMsg2);
   return false;
  }
  return true;
}


function checkEvalForm() {
  //alert('Running form validation Javascript...');
  theMsg = 'Please fill in all fields marked with *.';
  theMsg2 = 'Please make sure the "E-mail" and "Verify e-mail" fields match.';
  if (document.contactform.lastname.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.firstname.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email_verify.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.phone1.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.phone2.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.address.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.city.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.state.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.zip.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email.value != document.contactform.email_verify.value) {
   alert(theMsg2);
   return false;
  }
  return true;
}


function checkRequestForm() {
  //alert('Running form validation Javascript...');
  theMsg = 'Please fill in all fields marked with *.';
  theMsg2 = 'Please make sure the "E-mail" and "Verify e-mail" fields match.';
  if (document.contactform.lastname.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.firstname.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email_verify.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.phone1.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.phone2.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.minprice.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.maxprice.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.homecriteria.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.area.value.length == 0) {
   alert(theMsg);
   return false;
  }
  if (document.contactform.email.value != document.contactform.email_verify.value) {
   alert(theMsg2);
   return false;
  }
  return true;
}

