function validateEmail() {
  x = document.request
  at = x.email.value.indexOf("@")
  lastDot = x.email.value.lastIndexOf(".")
  if (at==-1 || lastDot <= at) {
    alert("Please enter a valid email address in\nthe form of username@yourhost.com")
    return false
  }
}
