
theValidator.required("form_join_club", "club__first_name","Please enter your first name" );
theValidator.required("form_join_club", "club__last_name","Please enter your last name" );
theValidator.required("form_join_club", "club__postal_code","Please enter your zip/postal code" );
theValidator.required("form_join_club", "club__country_code","Please select a country" );
// theValidator.required("form_join_club", "club__contact_phone","Please an area code" );
theValidator.required("form_join_club", "club__contact_email","Please enter a valid email address","EMAIL");
// theValidator.required("form_join_club", "club__member_name","Please enter a member name");
theValidator.required("form_join_club", "club__password","Please enter a password");
theValidator.required("form_join_club", "club__re_password","Please enter password a second time");


function validateClubForm( form ) {

  var bln_return = theValidator.validate( form );

  if(bln_return) {
    var str_pwd = "club__password";
    var str_repwd = "club__re_password";
    var obj_pwd = eval("document.form_join_club." + str_pwd);
    var obj_repwd = eval("document.form_join_club." + str_repwd);

    if( obj_pwd.value != obj_repwd.value ) {
      window.alert("Password entries do not match!\nPlease re-enter your password");
      obj_repwd.value = "";
      obj_repwd.focus();
      bln_return = false;
    }

  }

  return bln_return;

}
