function checkform() 
 {
    var chkDot = true
    var emailValue = document.email_form.email.value
    var ndxAt   = ndxDot = ndxLstDot = 0;
    ndxAt       = emailValue.indexOf("@");
    ndxDot      = emailValue.indexOf(".") ;
    ndxLstDot   = emailValue.indexOf(".",ndxAt)
   
   if (!(document.email_form.title.value)) {
   alert("Please enter a subject title");
   return false;
} else if (emailValue.length == 0) {
   alert("Please enter your email address")
   document.email_form.email.focus()
   document.email_form.email.select()
  return false;
} else if ((ndxDot < 0) || (ndxAt < 0)) {
   alert("Your email address lacks '.' or '@'.\nThe correct format is 'name@domain.com'")
   document.email_form.email.focus()
   document.email_form.email.select()
  return false;
} else if ((ndxLstDot < 0) || (ndxLstDot == (ndxAt + 1))) {
   alert("You may be missing your domain name.\nThe correct format is 'name@domain.com'")
   document.email_form.email.focus()
   document.email_form.email.select()
  return false;
} else if (!(document.email_form.comments.value)) {
   alert("Please enter your comments");
  return false;
 } else {
   return true;
 }   
}

