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()
  }
  if (relates.value=="0" && okSoFar)
  {
	okSoFar=false
	alert("Please select the nature of your enquiry.")
	relates.focus()
  }
  if (themessage.value=="" && okSoFar)
  {
	okSoFar=false
	alert("Please enter the details for your enquiry.")
	themessage.focus()
  }
  if (okSoFar==true)  submit();
 }
}
