function checkenews() {
 
  efirstname = document.enews.firstname.value;
  elastname = document.enews.lastname.value;
  eemail = document.enews.email.value;
  elocation = document.enews.location.value;
  filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  
 returnval = true;
 hideAllErrors();
  if (efirstname == "") {
 returnval = false;
 document.getElementById("firstnameError").style.display = "inline";
  }
 if (elastname == "") {
 returnval = false;
 document.getElementById("lastnameError").style.display = "inline";
  } 
 if (eemail == "") {
 returnval = false;
 document.getElementById("emailError").style.display = "inline";
  }
if (eemail != "" && !(filter.test(eemail))) { 
 returnval = false;
 document.getElementById("email2Error").style.display = "inline";
 }
if (elocation == "") {
 returnval = false;
 document.getElementById("locationError").style.display = "inline";
  }
 return returnval;
}
 
 function hideAllErrors() {
document.getElementById("firstnameError").style.display = "none"
document.getElementById("lastnameError").style.display = "none"
document.getElementById("emailError").style.display = "none"
document.getElementById("email2Error").style.display = "none"
document.getElementById("locationError").style.display = "none"
}


