function checksubnews(){

 semail = document.subscribe.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("email2Error").style.display = "inline";
 }
return returnval;

}

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