function validateForm() 
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("Email addresses you entered do not match.  Please re-enter.")
    email.focus()
  }
  if (thesubject.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the subject.")
    thesubject.focus()
  }
  if (standsize.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the size and type of stand.")
    standsize.focus()
  }
  if (insurancecompany.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the name of your insurance company.")
    insurancecompany.focus()
  }
  if (insurancepolicy.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your insurance policy number.")
    insurancepolicy.focus()
  }
  if (acceptconditions.checked == false && okSoFar)
  {
    okSoFar=false
    alert("Click the checkbox at the bottom of the form to indicate that you accept the terms and conditions.")
    acceptconditions.focus()
  }
  if (okSoFar==true)  submit();
 }
}
