// JavaScript Document

<script language="JavaScript"><!--
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 (name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your name.")
    thesubject.focus()
  }
  if (schoolname.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter a school name.")
    themessage.focus()
  }
  if (city.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter a city.")
    themessage.focus()
  }
  if (state.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter a state.")
    themessage.focus()
  }
  if (zipcode.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter a zip code.")
    themessage.focus()
  }
  if (okSoFar==true) 
  {
    submit()
  }
 }
}

// --></script>