
function isValidEmail(str, errormsg) {

   var result = (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
   if (result==false) alert(errormsg);
   return result;


}

function validate_newsletter(thisform,errormsg)
{

with (thisform)
{


if (isValidEmail(newsletter_email.value, errormsg)==false)
  {newsletter_email.focus();return false}



}
}
