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 (phone.value=="" && okSoFar)  {    okSoFar=false    alert("Please enter a phone number.")    phone.focus()  }    if (doe.value=="" && okSoFar)  {    okSoFar=false    alert("Please enter the date of the event.")    doe.focus()  }  if (themessage.value=="" && okSoFar)  {    okSoFar=false    alert("Please enter the details for your enquiry.")    themessage.focus()  }    if (budget.value=="" && okSoFar)  {    okSoFar=false    alert("Please enter the details for the budget.")    budget.focus()  }    if (guest.value=="" && okSoFar)  {    okSoFar=false    alert("Please enter the details for how many guest are included in your party.")    guest.focus()  }    if (themessage.value=="" && okSoFar)  {    okSoFar=false    alert("Please enter the details for the kind of event")    kindof.focus()  }  if (okSoFar==true)  submit(); }}// --></script>