function checksignup() {
 
  semail = document.newslettersignup.email.value;
  filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  
 returnval = true;
 hideAllErrors();
 if (semail == "") {
 returnval = false;
 document.getElementById("emailError").style.display = "inline";
  }
 if (semail != "" && !(filter.test(semail))) { 
 returnval = false;
 document.getElementById("emailError").style.display = "none";
 document.getElementById("email2Error").style.display = "inline";
 }

 return returnval;
}
 
function hideAllErrors() {
document.getElementById("emailError").style.display = "none";
document.getElementById("email2Error").style.display = "none";
}

