function validateForm() 
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@");

  if ((foundAt == -1) && (okSoFar == true))
  {
    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 (subject.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the subject.")
    subject.focus()
  }
  if (source.value=="NULLO" && okSoFar)
  {
  	okSoFar=false
  	alert("Please tell us how you heard about us.")
  	source.focus()
  }  
  if (message.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your message.")
    message.focus()
  }
  if (okSoFar==true)  submit();
 }
}