function formChecker(theForm) {
  if (theForm.firstname.value=="") {
    alert("Please enter your first name");
    theForm.firstname.focus();
    return false;
  }
  if (theForm.lastname.value=="") {
    alert("Please enter your last name");
    theForm.lastname.focus();
    return false;
  }
  if (theForm.EmailAddress.value=="") {
    alert("Please enter your e-mail address");
    theForm.EmailAddress.focus();
    return false;
  }
  if (theForm.Phonenumber.value=="") {
    alert("Please enter your daytime phone #");
    theForm.Phonenumber.focus();
    return false;
  }
  if (theForm.eveningphone.value=="") {
    alert("Please enter your evening phone #");
    theForm.eveningphone.focus();
    return false;
  }
  if (theForm.city.value=="") {
    alert("Please enter your city");
    theForm.city.focus();
    return false;
  }
  if (theForm.state.value=="") {
    alert("Please enter your state");
    theForm.state.focus();
    return false;
  }
  if (theForm.moveMonth.value=="0") {
    alert("Please select a month");
    theForm.moveMonth.focus();
    return false;
  }
  if (theForm.moveDay.value=="0") {
    alert("Please select a day");
    theForm.moveDay.focus();
    return false;
  }
  if (theForm.moveYear.value=="0") {
    alert("Please select a year");
    theForm.moveYear.focus();
    return false;
  }
  if ((theForm.NumBedrooms[0].checked)&&(theForm.pricerange1.value=="")) {
    alert("Please select a price range");
    theForm.pricerange1.focus();
    return false;
  }
  if ((theForm.NumBedrooms[1].checked)&&(theForm.pricerange2.value=="")) {
    alert("Please select a price range");
    theForm.pricerange2.focus();
    return false;
  }
  if ((theForm.NumBedrooms[2].checked)&&(theForm.pricerange3.value=="")) {
    alert("Please select a price range");
    theForm.pricerange3.focus();
    return false;
  }
}