//BOF email form validation

function validate_email(field,alerttxt)
{
with (field)
{
apos=value.indexOf("@") //check to see if there is a @ symbol
dotpos=value.lastIndexOf(".") //check there is .
if (apos<1||dotpos-apos<2) 
  {alert(alerttxt);return false}
else {return true}
}
}function validate_form(news)
{
with (news)
{
if (validate_email(email,"Please enter a valid email address")==false) // error message
  {email.focus();return false}
}
} 
//EOF email form validation
