function check_email_enews_signup(emailname)
{

  if (emailname.value == "")
  {
    alert("Your email address is required.");
    emailname.focus();
    return (false);
  }


  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_@.";
  var checkStr = emailname.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("The email address can only contain letters, numbers and\n                 (@)   the \"at\" symbol\n                 ( - )   a hyphen\n                 ( . )   a dot");
    emailname.focus();
    return (false);
  }

  if ((emailname.value.indexOf("@") == -1) || (emailname.value.indexOf(".") == -1))
  {
        alert("Please format your email address using the standard convention of\n                        \"username@domain.ext\"");
    emailname.focus();
        return (false);
  }

      return (true);
 }

 function check_search_has_value(formfield) {
 
 if (formfield.value == "") {
 alert('Please indicate what you would like to search for.');
 return false;
 }
 
 return true;
 
 }
