var validations = new Array(); validations[0] = new Validation("reg_user_FirstName", "", "Alpha", "Y", 50, "", "", "", "") validations[1] = new Validation("reg_user_LastName", "", "Alpha", "Y", 25, "", "", "", "") validations[2] = new Validation("reg_user_Address1", "", "", "Y", 40, "", "", "", "") validations[3] = new Validation("reg_user_Address2", "", "", "", 40, "", "", "", "") validations[4] = new Validation("reg_user_EmailAddress", "", "Email", "Y", 70, "", "", "", "") validations[5] = new Validation("reg_user_ConfirmEmail", "", "", "", "", "", "", "", "ValidateConfirmEmail") validations[6] = new Validation("reg_user_City", "", "Alpha", "Y", 40, "", "", "", "") validations[7] = new Validation("reg_user_State", "", "MultiSelect", "Y", "", "", "", "", "") validations[8] = new Validation("reg_user_Zip", "", "Numeric", "Y", 5, 5, "", "", "") validations[9] = new Validation("reg_user_Specialty", "", "", "", "", "", "", "", "") function ValidateConfirmEmail() { //valert('ValidateConfirmEmail was called'); var emailID = document.getElementById("reg_user_EmailAddress"); var confirmID = document.getElementById("reg_user_ConfirmEmail"); if (confirmID && emailID) { if (emailID.value !="" || confirmID.value != "") { if (!IsValidEmailAddress(confirmID.value)) { return ErrMsg_ValidType; } else if (emailID.value != confirmID.value) { return ErrMsg_EmailVerify; } } } return ""; } function ValidateConfirmPassword() { //valert('ValidateConfirmPassword was called'); var passwordID = document.getElementById("reg_user_Password"); confirmID = document.getElementById("reg_user_ConfirmPassword"); if (confirmID && passwordID) { if (passwordID.value !="" || confirmID.value != "") { if (passwordID.value != confirmID.value) { return ErrMsg_PasswordVerify; } } } return ""; }