function isEmailAddr(txtEmail)
{
  var result = false
  var theStr = new String(txtEmail)
  var index = theStr.indexOf("@");
  if (index > 0)
  {

    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function mlist_form_val(theForm)
{

  if (theForm.f_email.value == "")
  {
    alert("Please enter your email address in the form: yourname@yourdomain.com");
    theForm.f_email.focus();
    return (false);
  }

  if (!isEmailAddr(theForm.f_email.value))
  {
    alert("Please enter your email address in the form: yourname@yourdomain.com");
    theForm.f_email.focus();
    return (false);
  }

  if (theForm.f_email.value.length < 3)
  {
    alert("Please enter your email address in the form: yourname@yourdomain.com");
    theForm.f_email.focus();
    return (false);
  }
  
  return (true);
}