<!--
function MAPP_NewMember_Validator(theForm)
{

//Applicant First Name ----------------------------------------------------------------
  if (theForm.app_fname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.app_fname.focus();
    return (false);
  }

  if (theForm.app_fname.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"First Name\" field.");
    theForm.app_fname.focus();
    return (false);
  }

//Applicant Last Name: ----------------------------------------------------------------
  if (theForm.app_lname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.app_lname.focus();
    return (false);
  }

  if (theForm.app_lname.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Last Name\" field.");
    theForm.app_lname.focus();
    return (false);
  }

//Applicant Profession: ----------------------------------------------------------------
  if (theForm.app_profession.value == "")
  {
    alert("Please enter a value for the \"Profession\" field.");
    theForm.app_profession.focus();
    return (false);
  }

  if (theForm.app_profession.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Profession\" field.");
    theForm.app_profession.focus();
    return (false);
  }

//Address Street: ---------------------------------------------------------------------
  if (theForm.app_street.value == "")
  {
    alert("Please enter a value for the \"Street Address\" field.");
    theForm.app_street.focus();
    return (false);
  }

  if (theForm.app_street.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Street Address\" field.");
    theForm.app_street.focus();
    return (false);
  }

//Address City ------------------------------------------------------------------------
  if (theForm.app_city.value == "")
  {
    alert("Please enter a value for the \"City or Town Address\" field.");
    theForm.app_city.focus();
    return (false);
  }

  if (theForm.app_city.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"City or Town Address\" field.");
    theForm.app_city.focus();
    return (false);
  }

//Address State: ----------------------------------------------------------------------
  if (theForm.app_state.value == "")
  {
    alert("Please enter a value for the \"State or Providence Address\" field.");
    theForm.app_state.focus();
    return (false);
  }

  if (theForm.app_state.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"State or Providence Address\" field.");
    theForm.app_state.focus();
    return (false);
  }

//Postal Code: ------------------------------------------------------------------------
  if (theForm.app_zip.value == "")
  {
    alert("Please enter a value for the \"Postal Code\" field.");
    theForm.app_zip.focus();
    return (false);
  }

  if (theForm.app_zip.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Postal Code\" field.");
    theForm.app_zip.focus();
    return (false);
  }

//Primary Phone: ----------------------------------------------------------------------
  if (theForm.app_phone.value == "")
  {
    alert("Please enter a value for the \"Primary Phone\" field.");
    theForm.app_phone.focus();
    return (false);
  }

  if (theForm.app_phone.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Primary Phone\" field.");
    theForm.app_phone.focus();
    return (false);
  }

//Email Address: ----------------------------------------------------------------------
  if (theForm.app_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.app_email.focus();
    return (false);
  }

  if (theForm.app_email.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Email Address\" field.");
    theForm.app_email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-.@";
  var checkStr = theForm.app_email.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("Please enter only letter, digit and \".@\" characters in the \"Email Address\" field.");
    theForm.app_email.focus();
    return (false);
  }

  if (theForm.app_email_confirm.value == "")
  {
    alert("Please enter a value for the \"Email Address Confirmation\" field.");
    theForm.app_email_confirm.focus();
    return (false);
  }

//Email Address and Confirmation match?  ----------------------------------------------
  if (theForm.app_email.value != theForm.app_email_confirm.value)
  {
    alert("Please enter a value for the \"Email Address Confirmation\" field that matches.");
    theForm.app_email.focus();
    return (false);
  }

//Professional Organizations/Unions/Guilds: ------------------------------------
  if (theForm.app_member_of.value == "")
  {
    alert("Please enter a value for the \"Professional Organizations\" field.");
    theForm.app_member_of.focus();
    return (false);
  }

  if (theForm.app_member_of.value.length > 4000)
  {
    alert("Please enter at most 4000 characters in the \"Professional Organizations\" field.");
    theForm.app_member_of.focus();
    return (false);
  }

//Applicant Bio ----------------------------------------------------------------
  if (theForm.app_bio.value == "")
  {
    alert("Please enter a value for the \"BIO\" field.");
    theForm.app_bio.focus();
    return (false);
  }

  if (theForm.app_bio.value.length > 4000)
  {
    alert("Please enter at most 4000 characters in the \"BIO\" field.");
    theForm.app_bio.focus();
    return (false);
  }

//Sponsor Name ------------------------------------------------------------------------
  if ((theForm.app_sponsor_self.checked == false)
  &&  (theForm.app_sponsor_mgmt.checked == false)
  &&  (theForm.app_sponsor_name.value   == ""   ))
  {
    alert("Please enter a value for your application sponsor (or check an option).");
    theForm.app_sponsor_name.focus();
    return (false);
  }

//Business Reference Name 1 -----------------------------------------------------------
  if (((theForm.app_pay_type[0].checked == true)
  ||   (theForm.app_pay_type[1].checked == true)) 
  &&   (theForm.app_business_ref1.value   == "" ))
  {
    alert("Please enter a value for your Business Reference Name 1.");
    theForm.app_business_ref1.focus();
    return (false);
  }

//Business Reference Phone 1 -----------------------------------------------------------
  if (((theForm.app_pay_type[0].checked == true)
  ||   (theForm.app_pay_type[1].checked == true)) 
  &&   (theForm.app_bus_ref_phone1.value   == "" ))
  {
    alert("Please enter a value for your Business Reference Phone 1.");
    theForm.app_bus_ref_phone1.focus();
    return (false);
  }


//Business Reference Name 2 -----------------------------------------------------------
  if (((theForm.app_pay_type[0].checked == true)
  ||   (theForm.app_pay_type[1].checked == true)) 
  &&   (theForm.app_business_ref2.value   == "" ))
  {
    alert("Please enter a value for your Business Reference Name 2.");
    theForm.app_business_ref2.focus();
    return (false);
  }

//Business Reference Phone 2 -----------------------------------------------------------
  if (((theForm.app_pay_type[0].checked == true)
  ||   (theForm.app_pay_type[1].checked == true)) 
  &&   (theForm.app_bus_ref_phone2.value   == "" ))
  {
    alert("Please enter a value for your Business Reference Phone 2.");
    theForm.app_bus_ref_phone2.focus();
    return (false);
  }


//Member User Name: -------------------------------------------------------------------
//  if (theForm.app_uname.value == "")
//  {
//    alert("Please enter a value for the \"User Name\" field.");
//    theForm.app_uname.focus();
//    return (false);
//  }
//
//  if (theForm.app_uname.value.length > 20)
//  {
//    alert("Please enter at most 20 characters in the \"User Name\" field.");
//    theForm.app_uname.focus();
//    return (false);
//  }

//Member Password----------------------------------------------------------------------
  if (theForm.app_password.value == "")
  {
    alert("Please enter a value for the \"Password Name\" field.");
    theForm.app_password.focus();
    return (false);
  }

  if (theForm.app_password.value.length > 10)
  {
    alert("Please enter at most 20 characters in the \"Password Name\" field.");
    theForm.app_password.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-";
  var checkStr = theForm.app_password.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("Please enter only letter and digit characters in the \"Password\" field.");
    theForm.app_password.focus();
    return (false);
  }




  return (true);
}
//-->