// #@(#)myadvmgr.js	1.2 17:30:15,07/02/08 (yy/mm/dd)
function create_form_check(theform)
{
    if(!valid_email(theform.agency_id,'display_name=Email Address'))
  {
    return (false);
  }


  if (theform.agency_pwd.value == "")
  {
    alert("Please enter a value for the Password field.");
    theform.agency_pwd.focus();
    return (false);
  }
 return true;
}
function email_validate_js(email_form)
{
   var checkStr = email_form.email_to_find.value;
    
   if (checkStr.indexOf("*") > -1)
   {
      return (true);
   }

   if (email_form.email_to_find.value == "")
   {
      alert("Please enter a value for the Email Address field.");
      email_form.email_to_find.focus();
      return (false);
   }
   if (!valid_email(email_form.email_to_find))
   {
      email_form.email_to_find.focus();
      return (false);
   }

   return true;
}

