// JScript File



////////////////////////////////////////////////
//  ** added by danC                          //
//--------------------------------------------//
//  ** This is the function that handles the  //
//  ** opening of the live chat window.       //
////////////////////////////////////////////////

function openChatWindow() {
    var content = "This a temporary indicator that the link is functioning properly.\n\nSee:\nfile - includes/function.js\nfunction - openChatWindow()";
    alert(content);
}

/////////////////   END   /////////////////////


function onloadcheck() {
    var str = window.location.href;
    if (str.match('arts_sciences.aspx') || str.match('arts_sciences_cln.aspx') || str.match('arts_sciences_cacln.aspx')
|| str.match('bachelor_science_communication.aspx') || str.match('bachelor_science_communication_cln.aspx') 
|| str.match('bachelor_science_communication_cacln.aspx')|| str.match('bachelor_science_psychology.aspx')
 || str.match('bachelor_science_psychology_cln.aspx')|| str.match('bachelor_science_psychology_cacln.aspx')
|| str.match('master_science_psychology.aspx')|| str.match('master_science_psychology_cln.aspx')|| str.match('master_science_psychology_cacln.aspx')
|| str.match('bachelor_earlychildhood_development.aspx')|| str.match('bachelor_earlychildhood_development_cln.aspx')|| str.match('bachelor_earlychildhood_development_cacln.aspx')
|| str.match('bachelor_human_services.aspx')|| str.match('bachelor_human_services_cln.aspx')|| str.match('bachelor_human_services_cacln.aspx') || str.match("mseducational_psychology.aspx")
||str.match("postgrad_applied_behav_analysis.aspx") || str.match("certificate_addiction.aspx") || str.match("applied_behavioural_analysis.aspx")) {
        setVal('1', 'text1');
    }
    else if (str.match('business.aspx') || str.match('business_cln.aspx') || str.match('travel_counselor_cfa.aspx')
|| str.match('AccMBAOption.aspx') || str.match('business_Process_Analyst.aspx') || str.match('criminal_justice_cfa.aspx')
|| str.match('entrepreneur_cfa.aspx') || str.match('financial_analyst_cfa.aspx') || str.match('human_resources_cfa.aspx')
|| str.match('info_assurance_cfa.aspx') || str.match('management_cfa.aspx') || str.match('mgmt_info_sys_cfa.aspx')
|| str.match('marketing_cfa.aspx') || str.match('media_marketing_cfa.aspx') || str.match('operations_mgr_cfa.aspx')
|| str.match('prelaw_cfa.aspx') || str.match('project_mgmt_cfa.aspx') || str.match('purchasing_specialist_cfa.aspx')
|| str.match('retail_mgr_cfa.aspx') || str.match('risk_mgmt_analyst_cfa.aspx') || str.match('sales_mgr_cfa.aspx')
|| str.match('bank_Teller.aspx') || str.match('business_cfa.aspx') || str.match('customer_service_cfa.aspx')
|| str.match('event_planner_cfa.aspx') || str.match('food_hotel_management_cfa.aspx') || str.match('health_club_ass_cfa.aspx')
|| str.match('info_processing_tech_cfa.aspx') || str.match('office_mgmt_cfa.aspx') || str.match('retail_mgmt_cfa.aspx')
|| str.match('sales_cfa.aspx') || str.match('business_mgmt_cfa.aspx')
|| str.match('accelerated_mba_option_cln.aspx') || str.match('business_process_analyst_cln.aspx') || str.match('criminal_justice_cfa_cln.aspx')
|| str.match('entrepreneur_cfa_cln.aspx') || str.match('financial_analyst_cfa_cln.aspx') || str.match('human_resources_cfa_cln.aspx')
|| str.match('info_assurance_cfa_cln.aspx') || str.match('management_cfa_cln.aspx') || str.match('mgmt_info_systems_cfa_cln.aspx')
|| str.match('marketing_cfa_cln.aspx') || str.match('media_internet_market_cfa_cln.aspx') || str.match('operation_mgr_cfa_cln.aspx')
|| str.match('prelaw_cfa_cln.aspx') || str.match('project_mgmt_cfa_cln.aspx') || str.match('purchasing_specialist_cfa_cln.aspx')
|| str.match('retailmanager_cfa_cln.aspx') || str.match('risk_mgmt_analyst_cfa_cln.aspx') || str.match('sales_manager_cfa_cln.aspx')
|| str.match('bank_teller_cln.aspx') || str.match('business_cfa_cln.aspx') || str.match('customer_service_cfa_cln.aspx')
|| str.match('event_planner_cfa_cln.aspx') || str.match('food_hotel_mgmt_cfa_cln.aspx') || str.match('health_club_ass_cfa_cln.aspx')
|| str.match('infor_process_technician_cfa_cln.aspx') || str.match('office_mgmt_cfa_cln.aspx') || str.match('retail_mgmt_cfa_cln.aspx')
|| str.match('sales_cfa_cln.aspx') || str.match('small_business_mgmt_cfa_cln.aspx') || str.match('travel_counselor_cfa_cln.aspx')
|| str.match('business_cacln.aspx')

|| str.match('accelerated_mba_option_cacln.aspx') || str.match('bank_teller_cfa_cacln.aspx') || str.match('business_cfa_cacln.aspx')
|| str.match('business_process_analyst_cfa_cacln.aspx') || str.match('criminal_justice_cfa_cacln.aspx') || str.match('customer_service_cfa_cacln.aspx')
|| str.match('entrepreneur_cfa_cacln.aspx') || str.match('event_planner_cfa_cacln.aspx') || str.match('financial_analyst_cfa_cacln.aspx')
|| str.match('food_hotel_mgmt_cfa_cacln.aspx') || str.match('health_ass_cfa_cacln.aspx') || str.match('human_resources_cfa_cacln.aspx')
|| str.match('info_process_tech_cfa_cacln.aspx') || str.match('information_assurance_cfa_cacln.aspx') || str.match('management_cfa_cacln.aspx')
|| str.match('marketing_cfa_cacln.aspx') || str.match('mgmt_info_sys_cfa_cacln.aspx') || str.match('new_media_market_cfa_cacln.aspx')
|| str.match('off_mgmt_cfa_cacln.aspx') || str.match('operations_mgr_cfa_cacln.aspx') || str.match('prelaw_cfa_cacln.aspx')
|| str.match('project_mgmt_cfa_cacln.aspx') || str.match('pur_specialist_cfa_cacln.aspx') || str.match('retail_mgmt_cfa_cacln.aspx')
|| str.match('retail_mgr_cfa_cacln.aspx') || str.match('risk_mgmt_analyst_cfa_cacln.aspx') || str.match('sales_cfa_cacln.aspx')
|| str.match('sales_mgr_cfa_cacln.aspx') || str.match('small_bus_mgmt_cfa_cacln.aspx') || str.match('travel_counselor_cfa_cacln.aspx')

|| str.match('business-accounting-certificates.aspx') || str.match('entrepreneurship-certificates.aspx')




) {
        setVal('2', 'text1');
    }
    else if (str.match('criminal-justice.aspx') || str.match('criminal_justice_cln.aspx') || str.match('criminal-justice_cacln.aspx')
    || str.match('criminaljustice-securitycorrec-certificates.aspx')) {
        setVal('3', 'text1');
    }
    else if (str.match('education.aspx') || str.match('education_cln.aspx') || str.match('education_cacln.aspx') || str.match('ms_k12_specialization.aspx') || str.match('ms_k12_specialization_cln.aspx') || str.match('ms_k12_specialization_cacln.aspx')) {
        setVal('4', 'text1');
    }
    else if (str.match('health-sciences.aspx') || str.match('health_sciences_cln.aspx') || str.match('health-sciences_cacln.aspx')
    || str.match('bachelor_health_wellness.aspx')|| str.match('bachelor_health_wellness_cln.aspx')|| str.match('bachelor_health_wellness_calcn.aspx')
    || str.match('bachelor_health_science.aspx')|| str.match('bachelor_health_science_cln.aspx')|| str.match('bachelor_health_science_caln.aspx')
    || str.match('bachelor_healthcare_administration.aspx')|| str.match('bachelor_healthcare_administration_cln.aspx')|| str.match('bachelor_healthcare_administration_cacln.aspx')
    || str.match('bachelor_nutrition_science.aspx')|| str.match('bachelor_nutrition_science_cln.aspx')|| str.match('bachelor_nutrition_science_cacln.aspx')
    || str.match('bachelor_public_health_cln.aspx')|| str.match('bachelor_public_health_cacln.aspx') || str.match('ms_public_health.aspx')|| str.match('ms_public_health_cln.aspx')
    || str.match('ms_public_health_cacln.aspx') || str.match('ms_healthcare_admin.aspx') || str.match('ms_healthcare_admin_cacln.aspx') || str.match('ms_healthcare_admin_cln.aspx')
    || str.match('ms_health_education.aspx')|| str.match('ms_health_education_cacln.aspx') || str.match('ms_health_education_cln.aspx') ){
        setVal('7', 'text1');
    }
    else if (str.match('nursing-healthcare.aspx') || str.match('nursing_healthcare_cln.aspx') || str.match('nursing-healthcare_cacln.aspx')) {
        setVal('6', 'text1');
    }
    else if (str.match('is-technology.aspx') || str.match('is_technology_cln.aspx') || str.match('is-technology_cacln.aspx')

|| str.match('database_itcfa.aspx') || str.match('health_informatics_itcfa.aspx')
|| str.match('is_management_itcfa.aspx') || str.match('is_forensics_itcfa.aspx')
|| str.match('mobile_computing_itcfa.aspx') || str.match('nw_admin_itcfa.aspx')
|| str.match('project_management_itcfa.aspx') || str.match('media_marketing_itcfa.aspx')
|| str.match('app_dev_assc_itcfa.aspx') || str.match('web_dev_itcfa.aspx')
|| str.match('helpdesk_admin_assc_itcfa.aspx') || str.match('nw_admin_assc_itcfa.aspx')
|| str.match('app_dev_itcfa.aspx') || str.match('web_dev_assc_itcfa.aspx')

|| str.match('database_itcfa_cln.aspx') || str.match('health_informatics_itcfa_cln.aspx')
|| str.match('is_management_itcfa_cln.aspx') || str.match('is_forensics_itcfa_cln.aspx')
|| str.match('mobile_computing_itcfa_cln.aspx') || str.match('nw_admin_itcfa_cln.aspx')
|| str.match('project_management_itcfa_cln.aspx') || str.match('media_marketing_itcfa_cln.aspx')
|| str.match('app_dev_assc_itcfa_cln.aspx') || str.match('web_dev_itcfa_cln.aspx')
|| str.match('helpdesk_admin_assc_itcfa_cln.aspx') || str.match('nw_admin_assc_itcfa_cln.aspx')
|| str.match('app_dev_itcfa_cln.aspx') || str.match('web_dev_assc_itcfa_cln.aspx')


|| str.match('database_itcfa_cacln.aspx') || str.match('health_informatics_itcfa_cacln.aspx')
|| str.match('is_management_itcfa_cacln.aspx') || str.match('is_forensics_itcfa_cacln.aspx')
|| str.match('mobile_computing_itcfa_cacln.aspx') || str.match('nw_admin_itcfa_cacln.aspx')
|| str.match('project_management_itcfa_cacln.aspx') || str.match('media_marketing_itcfa_cacln.aspx')
|| str.match('app_dev_assc_itcfa_cacln.aspx') || str.match('web_dev_itcfa_cacln.aspx')
|| str.match('helpdesk_admin_assc_itcfa_cacln.aspx') || str.match('nw_admin_assc_itcfa_cacln.aspx')
|| str.match('app_dev_itcfa_cacln.aspx') || str.match('web_dev_assc_itcfa_cacln.aspx')
) {
        setVal('5', 'text1');
    }
    else if (str.match('legal-studies.aspx') || str.match('legal_studies_cln.aspx') || str.match('legal-studies_cacln.aspx')
    || str.match('paralegal-legalsecretary-certificates.aspx')
    ) {
        setVal('8', 'text1');
    }
    
    
    else if (str.match('information-technology-certificates.aspx') || str.match('information-technology-certificates_cacln.aspx')
    || str.match('information-technology-creditcertificates.aspx')
    ) {
        setVal('11', 'text1');
    }
    else if (str.match('higher-education-studies.aspx') || str.match('higher_education_studies_cln.aspx') || str.match('higher-education-studies_cacln.aspx') || str.match('ms_higheredu_adultlearn.aspx') || str.match('ms_higheredu_adultlearn_cln.aspx') || str.match('ms_higheredu_adultlearn_cacln.aspx')) {
        setVal('14', 'text1');
    }
    else if (str.match('fire-science-emergency-management.aspx') || str.match('fire-science-emergency-management_cln.aspx') || str.match('fire-science-emergency-management_cacln.aspx')) {
        setVal('15', 'text1');
    }
    else if (str.match('politicalscience_pubenv_policy.aspx') || str.match('politicalscience_pubenv_policy_cln.aspx') || str.match('politicalscience_pubenv_policy_cacln.aspx') || str.match('grad_public_admin_group.aspx') || str.match('fire_science_group.aspx') || str.match('environmental_policy_group.aspx') || str.match('political_science_group.aspx') || str.match('grad_environment_issue_group.aspx')) {
        setVal('16', 'text1');
    }
    


}


function redirect() {
    window.location = "areasofstudy.aspx";
}

function redirectcln() {
    window.location = "areasofstudy_cln.aspx";
}
function redirectcacln() {
    window.location = "areasofstudy_cacln.aspx";
}
function redirecttf()
{
    window.location="tuition-financial-aid.aspx";
}
function redirecttf_cln()
{
    window.location="tuition_financial_aid_cln.aspx";
}
function redirecttftcacln()
{
    window.location="tuition_financial_aid_cacln.aspx";
}



    
function submit1() {
    var errortext = "";
    var errct = 0;

    var program1 = $get("text1").innerHTML.trim();
    if (program1 == "What area of study are you interested in?") {
        errortext = "Area of Study"
        errct = errct + 1;
    }

    var program1 = $get("text2").innerHTML.trim();
    if (program1 == "Select a Program" || program1 == "Choose a program" || document.getElementById('programval').value == "") {
        if (errortext.length > 0)
            errortext = errortext + ",Program"
        else

            errortext = "Program"
        errct = errct + 1;
    }


    var errortxt1 = validateQuestions();

    if (errortxt1.length > 0) {
        if (errortext.length > 0)
            errortext = errortext + "," + validateQuestions();
        else
            errortext = validateQuestions();
        errct = errct + 1;
    }
    var fnamev;
    fnamev = document.form1.Kaplan_IndexSIF1$FirstName.value.trim();//Kaplan_IndexSIF1_FirstName
    if (fnamev.length < 1 || document.form1.Kaplan_IndexSIF1$FirstName.value == "First Name*") {
        if (errortext.length > 0)
            errortext = errortext + ",First Name"
        else
            errortext = "FirstName"
        errct = errct + 1;

    }
    var lnamev = document.form1.Kaplan_IndexSIF1$LastName.value.trim();
    if (lnamev.length < 1 || document.form1.Kaplan_IndexSIF1$LastName.value == "Last Name*") {
        if (errortext.length > 0)
            errortext = errortext + ",Last Name"
        else
            errortext = errortext + "Last Name"
        errct = errct + 1;
    }

    var add1v = document.form1.Kaplan_IndexSIF1$Address1.value.trim();
    if (add1v.length < 1 || document.form1.Kaplan_IndexSIF1$Address1.value == "Address*") {
        if (errortext.length > 0)
            errortext = errortext + ",Address"
        else
            errortext = errortext + "Address"
        errct = errct + 1;
    }
    /*  if(document.form1.Address2.value.length < 1)
    {
    if(errortext.length > 0)
    errortext = errortext + ",Address2"
    else
    errortext = errortext + "Address2"
    }*/
    var cityv = document.form1.Kaplan_IndexSIF1$City.value.trim();
    if (cityv.length < 1 || document.form1.Kaplan_IndexSIF1$City.value == "City*") {
        if (errortext.length > 0)
            errortext = errortext + ",City"
        else
            errortext = errortext + "City"
    }
    if (document.form1.Kaplan_IndexSIF1$State.selectedIndex < 1) {
        if (errortext.length > 0)
            errortext = errortext + ",State"
        else
            errortext = errortext + "State"
    }
    var zipv = document.form1.Kaplan_IndexSIF1$Zip.value.trim();
    var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?~_";
    var st = 0;
    if (document.form1.Kaplan_IndexSIF1$Zip.value != "Zip*") {
        for (var i = 0; i < zipv.length; i++) {
            if (iChars.indexOf(zipv.charAt(i)) != -1) {
                if (st == 0) {
                    if (errortext.length > 0) {
                        errortext = errortext + ",Special characters are not allowed in Zip"
                        st = 1;
                    }
                    else {
                        errortext = errortext + "Special characters are not allowed in Zip"
                        errct = errct + 1;
                        st = 1;
                    }
                }
            }
        }
    }
    if (st != 1) {
        if (zipv.length < 5 || document.form1.Kaplan_IndexSIF1$Zip.value == "Zip*") {
            if (errortext.length > 0)
                errortext = errortext + ",Zip"
            else
                errortext = errortext + "Zip"

            errct = errct + 1;
        }
    }
    if (document.getElementById("mainPhDIV").style.display == "inline") {
        // Main phone
        var mainPh = document.form1.Kaplan_IndexSIF1$ph1.value + document.form1.Kaplan_IndexSIF1$ph2.value + document.form1.Kaplan_IndexSIF1$ph3.value;
        var re_OthSchPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_OthSchPh.test(mainPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Phone"
            else
                errortext = errortext + "Phone"

            errct = errct + 1;
        }
    }

    // Start of other schools extra validations

    if (document.getElementById("HMPhDiv").style.display == "inline") {
        // Primary phone
        var OthSchPh = document.form1.Kaplan_IndexSIF1$OthSchPh1.value + document.form1.Kaplan_IndexSIF1$OthSchPh2.value + document.form1.Kaplan_IndexSIF1$OthSchPh3.value;
        var re_OthSchPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_OthSchPh.test(OthSchPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Primary Phone"
            else
                errortext = errortext + "Primary Phone"

            errct = errct + 1;
        }
        // Alternate phone
        if (document.form1.Kaplan_IndexSIF1$OthSchAltPh1 != null && document.form1.Kaplan_IndexSIF1$OthSchAltPh2 != null && document.form1.Kaplan_IndexSIF1$OthSchAltPh3 != null) {
            if (document.form1.Kaplan_IndexSIF1$OthSchAltPh1.value == "" && document.form1.Kaplan_IndexSIF1$OthSchAltPh2.value == "" && document.form1.Kaplan_IndexSIF1$OthSchAltPh3.value == "") {
                //alert("do not check");
            }
            else {
                var OthSchAltPh = document.form1.Kaplan_IndexSIF1$OthSchAltPh1.value + document.form1.Kaplan_IndexSIF1$OthSchAltPh2.value + document.form1.Kaplan_IndexSIF1$OthSchAltPh3.value;
                var re_OthSchAltPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

                if (document.form1.Kaplan_IndexSIF1$OthSchAltPh1.value == "" || document.form1.Kaplan_IndexSIF1$OthSchAltPh2.value == "" || document.form1.Kaplan_IndexSIF1$OthSchAltPh3.value == "") {
                    if (re_OthSchAltPh.test(OthSchAltPh) == false) {
                        if (errortext.length > 0)
                            errortext = errortext + ",Alternate Phone"
                        else
                            errortext = errortext + "Alternate Phone"

                        errct = errct + 1;
                    }
                }
            }
        }
    }
    // End of other schools extra validations

    // Start of Nursing schools extra validations
    // first div
    if (document.getElementById("HWMPhDiv").style.display == "inline") {
        // Primary phone
        var NurHmPh = document.form1.Kaplan_IndexSIF1$NurHmPh1.value + document.form1.Kaplan_IndexSIF1$NurHmPh2.value + document.form1.Kaplan_IndexSIF1$NurHmPh3.value;
        var re_NurHmPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_NurHmPh.test(NurHmPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Primary Phone"
            else
                errortext = errortext + "Primary Phone"

            errct = errct + 1;
        }
        // Mobile phone
        var NurMPh = document.form1.Kaplan_IndexSIF1$NurMPh1.value + document.form1.Kaplan_IndexSIF1$NurMPh2.value + document.form1.Kaplan_IndexSIF1$NurMPh3.value;
        var re_NurMPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_NurMPh.test(NurMPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Mobile Phone"
            else
                errortext = errortext + "Mobile Phone"

            errct = errct + 1;
        }
        // Alternate phone
        if (document.form1.Kaplan_IndexSIF1$NurAltPh1 != null && document.form1.Kaplan_IndexSIF1$NurAltPh2 != null && document.form1.Kaplan_IndexSIF1$NurAltPh3 != null) {
            if (document.form1.Kaplan_IndexSIF1$NurAltPh1.value == "" && document.form1.Kaplan_IndexSIF1$NurAltPh2.value == "" && document.form1.Kaplan_IndexSIF1$NurAltPh3.value == "") {
                //alert("do not check");
            }
            else {
                var NurAltPh = document.form1.Kaplan_IndexSIF1$NurAltPh1.value + document.form1.Kaplan_IndexSIF1$NurAltPh2.value + document.form1.Kaplan_IndexSIF1$NurAltPh3.value;
                var re_NurAltPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

                if (document.form1.Kaplan_IndexSIF1$NurAltPh1.value == "" || document.form1.Kaplan_IndexSIF1$NurAltPh2.value == "" || document.form1.Kaplan_IndexSIF1$NurAltPh3.value == "") {
                    if (re_NurAltPh.test(NurAltPh) == false) {
                        if (errortext.length > 0)
                            errortext = errortext + ",Alternate Phone"
                        else
                            errortext = errortext + "Alternate Phone"

                        errct = errct + 1;
                    }
                }
            }
        }
    }
    // second div
    // Method for contact and best time
//    if (document.getElementById("MethodTimeDiv").style.display == "inline") {
//        if (document.form1.Kaplan_IndexSIF1$MethodContact.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ", Preferred Method of Contact"
//            else
//                errortext = errortext + "Preferred Method of Contact"

//            errct = errct + 1;
//        }

//        if (document.form1.Kaplan_IndexSIF1$BestTimeCall.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ", Best Time to Call"
//            else
//                errortext = errortext + "Best Time to Call"

//            errct = errct + 1;
//        }

//    }
    // End of Nursing schools extra validations

    // Start of Certificates extra validations

    if (document.getElementById("CounHWPhDiv").style.display == "inline") {
        // country
        if (document.form1.Kaplan_IndexSIF1$Country.selectedIndex < 1) {
            if (errortext.length > 0)
                errortext = errortext + ",Country"
            else
                errortext = errortext + "Country"

            errct = errct + 1;
        }
        // Primary phone
        var CertHmPh = document.form1.Kaplan_IndexSIF1$CertHmPh1.value + document.form1.Kaplan_IndexSIF1$CertHmPh2.value + document.form1.Kaplan_IndexSIF1$CertHmPh3.value;
        var re_CertHmPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_CertHmPh.test(CertHmPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Primary Phone"
            else
                errortext = errortext + "Primary Phone"

            errct = errct + 1;
        }
        // Work or Mobile phone
        var CertWMPh = document.form1.Kaplan_IndexSIF1$CertWMPh1.value + document.form1.Kaplan_IndexSIF1$CertWMPh2.value + document.form1.Kaplan_IndexSIF1$CertWMPh3.value;
        var re_CertWMPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_CertWMPh.test(CertWMPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Work or Mobile Phone"
            else
                errortext = errortext + "Work or Mobile Phone"

            errct = errct + 1;
        }
    }

    // End of Certificates extra validations

    // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    // ######## GRS ###########

    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;


    if (reg.test(document.form1.Kaplan_IndexSIF1$Email.value) == false) {
        if (errortext.length > 0)
            errortext = errortext + ",Email"
        else
            errortext = errortext + "Email"

        errct = errct + 1;
    }
    
    if (document.form1.Kaplan_IndexSIF1$ddlMilitary2.style.display == "inline") {
        if (document.form1.Kaplan_IndexSIF1$ddlMilitary2.selectedIndex < 1) {
            if (errortext.length > 0)
                errortext = errortext + ",Military Type"
            else
                errortext = errortext + "Military Type"
            errct = errct + 1;
        }
    }
//    if (document.form1.Kaplan_IndexSIF1$ddlTransferCredits.style.display == "inline") {
//        if (document.form1.Kaplan_IndexSIF1$ddlTransferCredits.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ",Do you have transfer credits?"
//            else
//                errortext = errortext + "Do you have transfer credits?"
//            errct = errct + 1;
//        }
//    }
//    if (document.form1.Kaplan_IndexSIF1$ddlEmpStatus.style.display == "inline") {
//        if (document.form1.Kaplan_IndexSIF1$ddlEmpStatus.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ",What is your current employment status?"
//            else
//                errortext = errortext + "What is your current employment status?"

//            errct = errct + 1;
//        }
//    }

//    if (document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.style.display == "inline") {
//        // country
//        if (document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ",How long have you been at your current job?"
//            else
//                errortext = errortext + "How long have you been at your current job?"

//            errct = errct + 1;
//        }
//    }
    if (errortext.length > 0)
    {
        var selected_school = $get("text1").innerHTML.trim();
        var selected_program = $get("text2").innerHTML.trim();
//        alert(selected_school+","+selected_program);
    }

    if (errortext.length > 0) {
        alert("The following are required...\n" + errortext);
        //lpUASaction('ErrorCounter',errct);
        //lpAddVars('page','errorCounter',errct);//All Applicaton Pages
        //document.form1.hdfErrorCount.Value=errct;
        lpSendData('page', 'ErrorCounter', errct);
        //alert(errct);
    }


    else {
        document.form1.action = "process.aspx";
        
        document.form1.submit();
    }

}

///Start of Californial process and validation/////
function submit2() {
    
    var errortext = "";
    var errct = 0;

    var program1 = $get("text1").innerHTML.trim();
    if (program1 == "What area of study are you interested in?") {
        errortext = "Area of Study"
        errct = errct + 1;
    }

    var program1 = $get("text2").innerHTML.trim();
    if (program1 == "Select a Program" || program1 == "Choose a program" || document.getElementById('programval').value == "") {
        if (errortext.length > 0)
            errortext = errortext + ",Program"
        else

            errortext = "Program"
        errct = errct + 1;
    }

    var errortxt1 = validateQuestions();
    if (errortxt1.length > 0) {
        if (errortext.length > 0)
            errortext = errortext + "," + validateQuestions();
        else
            errortext = validateQuestions();
        errct = errct + 1;
    }
    var fnamevc = document.form1.Kaplan_IndexSIF1$FirstName.value.trim();
    if (fnamevc.length < 1 || document.form1.Kaplan_IndexSIF1$FirstName.value == "First Name*") {
        if (errortext.length > 0)
            errortext = errortext + ",First Name"
        else
            errortext = "FirstName"
        errct = errct + 1;

    }
    var lnamevc = document.form1.Kaplan_IndexSIF1$LastName.value.trim();
    if (lnamevc.length < 1 || document.form1.Kaplan_IndexSIF1$LastName.value == "Last Name*") {
        if (errortext.length > 0)
            errortext = errortext + ",Last Name"
        else
            errortext = errortext + "Last Name"
        errct = errct + 1;
    }

    var add1vc = document.form1.Kaplan_IndexSIF1$Address1.value.trim();
    if (add1vc.length < 1 || document.form1.Kaplan_IndexSIF1$Address1.value == "Address*") {
        if (errortext.length > 0)
            errortext = errortext + ",Address"
        else
            errortext = errortext + "Address"
        errct = errct + 1;
    }
    /*  if(document.form1.Address2.value.length < 1)
    {
    if(errortext.length > 0)
    errortext = errortext + ",Address2"
    else
    errortext = errortext + "Address2"
    }*/
    var cityvc = document.form1.Kaplan_IndexSIF1$City.value.trim();
    if (cityvc.length < 1 || document.form1.Kaplan_IndexSIF1$City.value == "City*") {
        if (errortext.length > 0)
            errortext = errortext + ",City"
        else
            errortext = errortext + "City"
    }
    /* if(document.form1.State.selectedIndex < 1)
    {
    if(errortext.length > 0)
    errortext = errortext + ",State"
    else
    errortext = errortext + "State"
    }*/
    var zipv = document.form1.Kaplan_IndexSIF1$Zip.value.trim();
    var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?~_";
    var st = 0;
    if (document.form1.Kaplan_IndexSIF1$Zip.value != "Zip*") {
        for (var i = 0; i < zipv.length; i++) {
            if (iChars.indexOf(zipv.charAt(i)) != -1) {
                if (st == 0) {
                    if (errortext.length > 0) {
                        errortext = errortext + ",Special characters are not allowed in Zip"
                        st = 1;
                    }
                    else {
                        errortext = errortext + "Special characters are not allowed in Zip"
                        errct = errct + 1;
                        st = 1;
                    }
                }
            }
        }
    }
    if (st != 1) {
        if (zipv.length < 5 || document.form1.Kaplan_IndexSIF1$Zip.value == "Zip*") {
            if (errortext.length > 0)
                errortext = errortext + ",Zip"
            else
                errortext = errortext + "Zip"

            errct = errct + 1;
        }
    }
    if (document.getElementById("mainPhDIV").style.display == "inline") {
        // Main phone
        var mainPh = document.form1.Kaplan_IndexSIF1$ph1.value + document.form1.Kaplan_IndexSIF1$ph2.value + document.form1.Kaplan_IndexSIF1$ph3.value;
        var re_OthSchPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_OthSchPh.test(mainPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Phone"
            else
                errortext = errortext + "Phone"

            errct = errct + 1;
        }
    }

    // Start of other schools extra validations

    if (document.getElementById("HMPhDiv").style.display == "inline") {
        // Primary phone
        var OthSchPh = document.form1.Kaplan_IndexSIF1$OthSchPh1.value + document.form1.Kaplan_IndexSIF1$OthSchPh2.value + document.form1.Kaplan_IndexSIF1$OthSchPh3.value;
        var re_OthSchPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_OthSchPh.test(OthSchPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Primary Phone"
            else
                errortext = errortext + "Primary Phone"

            errct = errct + 1;
        }
        // Alternate phone
        if (document.form1.Kaplan_IndexSIF1$OthSchAltPh1 != null && document.form1.Kaplan_IndexSIF1$OthSchAltPh2 != null && document.form1.Kaplan_IndexSIF1$OthSchAltPh3 != null) {
            if (document.form1.Kaplan_IndexSIF1$OthSchAltPh1.value == "" && document.form1.Kaplan_IndexSIF1$OthSchAltPh2.value == "" && document.form1.Kaplan_IndexSIF1$OthSchAltPh3.value == "") {
                //alert("do not check");
            }
            else {
                var OthSchAltPh = document.form1.Kaplan_IndexSIF1$OthSchAltPh1.value + document.form1.Kaplan_IndexSIF1$OthSchAltPh2.value + document.form1.Kaplan_IndexSIF1$OthSchAltPh3.value;
                var re_OthSchAltPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

                if (document.form1.Kaplan_IndexSIF1$OthSchAltPh1.value == "" || document.form1.Kaplan_IndexSIF1$OthSchAltPh2.value == "" || document.form1.Kaplan_IndexSIF1$OthSchAltPh3.value == "") {
                    if (re_OthSchAltPh.test(OthSchAltPh) == false) {
                        if (errortext.length > 0)
                            errortext = errortext + ",Alternate Phone"
                        else
                            errortext = errortext + "Alternate Phone"

                        errct = errct + 1;
                    }
                }
            }
        }
    }
    // End of other schools extra validations

    // Start of Nursing schools extra validations
    // first div
    if (document.getElementById("HWMPhDiv").style.display == "inline") {
        // Primary phone
        var NurHmPh = document.form1.Kaplan_IndexSIF1$NurHmPh1.value + document.form1.Kaplan_IndexSIF1$NurHmPh2.value + document.form1.Kaplan_IndexSIF1$NurHmPh3.value;
        var re_NurHmPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_NurHmPh.test(NurHmPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Primary Phone"
            else
                errortext = errortext + "Primary Phone"

            errct = errct + 1;
        }
        // Mobile phone
        var NurMPh = document.form1.Kaplan_IndexSIF1$NurMPh1.value + document.form1.Kaplan_IndexSIF1$NurMPh2.value + document.form1.Kaplan_IndexSIF1$NurMPh3.value;
        var re_NurMPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_NurMPh.test(NurMPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Mobile Phone"
            else
                errortext = errortext + "Mobile Phone"

            errct = errct + 1;
        }
        // Alternate phone
        if (document.form1.Kaplan_IndexSIF1$NurAltPh1 != null && document.form1.Kaplan_IndexSIF1$NurAltPh2 != null && document.form1.Kaplan_IndexSIF1$NurAltPh3 != null) {
            if (document.form1.Kaplan_IndexSIF1$NurAltPh1.value == "" && document.form1.Kaplan_IndexSIF1$NurAltPh2.value == "" && document.form1.Kaplan_IndexSIF1$NurAltPh3.value == "") {
                //alert("do not check");
            }
            else {
                var NurAltPh = document.form1.Kaplan_IndexSIF1$NurAltPh1.value + document.form1.Kaplan_IndexSIF1$NurAltPh2.value + document.form1.Kaplan_IndexSIF1$NurAltPh3.value;
                var re_NurAltPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

                if (document.form1.Kaplan_IndexSIF1$NurAltPh1.value == "" || document.form1.Kaplan_IndexSIF1$NurAltPh2.value == "" || document.form1.Kaplan_IndexSIF1$NurAltPh3.value == "") {
                    if (re_NurAltPh.test(NurAltPh) == false) {
                        if (errortext.length > 0)
                            errortext = errortext + ",Alternate Phone"
                        else
                            errortext = errortext + "Alternate Phone"

                        errct = errct + 1;
                    }
                }
            }
        }
    }
    // second div
    // Method for contact and best time
    if (document.getElementById("MethodTimeDiv").style.display == "inline") {
//        if (document.form1.Kaplan_IndexSIF1$MethodContact.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ", Preferred Method of Contact"
//            else
//                errortext = errortext + "Preferred Method of Contact"

//            errct = errct + 1;
//        }

        if (document.form1.Kaplan_IndexSIF1$BestTimeCall.selectedIndex < 1) {
            if (errortext.length > 0)
                errortext = errortext + ", Best Time to Call"
            else
                errortext = errortext + "Best Time to Call"

            errct = errct + 1;
        }

    }
    // End of Nursing schools extra validations

    // Start of Certificates extra validations

    if (document.getElementById("CounHWPhDiv").style.display == "inline") {
        // country
        if (document.form1.Kaplan_IndexSIF1$Country.selectedIndex < 1) {
            if (errortext.length > 0)
                errortext = errortext + ",Country"
            else
                errortext = errortext + "Country"

            errct = errct + 1;
        }
        // Primary phone
        var CertHmPh = document.form1.Kaplan_IndexSIF1$CertHmPh1.value + document.form1.Kaplan_IndexSIF1$CertHmPh2.value + document.form1.Kaplan_IndexSIF1$CertHmPh3.value;
        var re_CertHmPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_CertHmPh.test(CertHmPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Primary Phone"
            else
                errortext = errortext + "Primary Phone"

            errct = errct + 1;
        }
        // Work or Mobile phone
        var CertWMPh = document.form1.Kaplan_IndexSIF1$CertWMPh1.value + document.form1.Kaplan_IndexSIF1$CertWMPh2.value + document.form1.Kaplan_IndexSIF1$CertWMPh3.value;
        var re_CertWMPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/

        if (re_CertWMPh.test(CertWMPh) == false) {
            if (errortext.length > 0)
                errortext = errortext + ",Work or Mobile Phone"
            else
                errortext = errortext + "Work or Mobile Phone"

            errct = errct + 1;
        }
    }

    // End of Certificates extra validations

    // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    // ######## GRS ###########

    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;


    if (reg.test(document.form1.Kaplan_IndexSIF1$Email.value) == false) {
        if (errortext.length > 0)
            errortext = errortext + ",Email"
        else
            errortext = errortext + "Email"

        errct = errct + 1;
    }
    if (document.form1.Kaplan_IndexSIF1$ddlMilitary2.style.display == "inline") {
        if (document.form1.Kaplan_IndexSIF1$ddlMilitary2.selectedIndex < 1) {
            if (errortext.length > 0)
                errortext = errortext + ",Military Type"
            else
                errortext = errortext + "Military Type"
            errct = errct + 1;
        }
    }

//    if (document.form1.Kaplan_IndexSIF1$ddlTransferCredits.style.display == "inline") {
//        if (document.form1.Kaplan_IndexSIF1$ddlTransferCredits.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ",Do you have transfer credits?"
//            else
//                errortext = errortext + "Do you have transfer credits?"
//            errct = errct + 1;
//        }
//    }
//    if (document.form1.Kaplan_IndexSIF1$ddlEmpStatus.style.display == "inline") {
//        if (document.form1.Kaplan_IndexSIF1$ddlEmpStatus.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ",What is your current employment status?"
//            else
//                errortext = errortext + "What is your current employment status?"

//            errct = errct + 1;
//        }
//    }

//    if (document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.style.display == "inline") {
//        // country
//        if (document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.selectedIndex < 1) {
//            if (errortext.length > 0)
//                errortext = errortext + ",How long have you been at your current job?"
//            else
//                errortext = errortext + "How long have you been at your current job?"

//            errct = errct + 1;
//        }
//    }

    if (errortext.length > 0) {
        alert("The following are required...\n" + errortext);
        //lpUASaction('ErrorCounter',errct);
        //lpAddVars('page','errorCounter',errct);//All Applicaton Pages
        //document.form1.hdfErrorCount.Value=errct;
        lpSendData('page', 'ErrorCounter', errct);
        
        //alert(errct);
    }


    else {
        document.form1.action = "process_ca.aspx";
        document.form1.submit();
    }

}

///End of Californial process and validation/////
var step2 = false;
var repop = false;


var sID = 1;
var pID = 1;

var menu1 = 'text1a';

var menu2 = 'text2a';

var menu3 = 'text3a';

var menu4 = 'text4a';

var menu5 = 'text5a';

var menu6 = 'text6a';

var menu7 = 'text7a';
var menu8 = 'trackdynaQuestions';

var disappeardelay = 999999  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick = "yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4 = document.all
var ns6 = document.getElementById && !document.all

if (ie4 || ns6)
    document.write('<div id="dropmenudiv" style="Z-INDEX: 1000;visibility:hidden;width:286px;overflow : auto;background-color:#fff" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype) {
    var totaloffset = (offsettype == "left") ? what.offsetLeft : what.offsetTop;
    var parentEl = what.offsetParent;
    while (parentEl != null) {
        totaloffset = (offsettype == "left") ? totaloffset + parentEl.offsetLeft : totaloffset + parentEl.offsetTop;
        parentEl = parentEl.offsetParent;
    }
    return totaloffset;
}


function showhide(obj, e, visible, hidden) {
    if (ie4 || ns6)
        dropmenuobj.style.left = dropmenuobj.style.top = "-500px"

    if (e.type == "click" && obj.visibility == hidden || e.type == "mouseover")
        obj.visibility = visible

    else if (e.type == "click")
        obj.visibility = hidden
}

function iecompattest() {
    return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge) {
    var edgeoffset = 0
    if (whichedge == "rightedge") {
        var windowedge = ie4 && !window.opera ? iecompattest().scrollLeft + iecompattest().clientWidth - 15 : window.pageXOffset + window.innerWidth - 15
        dropmenuobj.contentmeasure = dropmenuobj.offsetWidth
        if (windowedge - dropmenuobj.x < dropmenuobj.contentmeasure)
            edgeoffset = dropmenuobj.contentmeasure - obj.offsetWidth
    }
    else {
        var topedge = ie4 && !window.opera ? iecompattest().scrollTop : window.pageYOffset
        var windowedge = ie4 && !window.opera ? iecompattest().scrollTop + iecompattest().clientHeight - 15 : window.pageYOffset + window.innerHeight - 18
        dropmenuobj.contentmeasure = dropmenuobj.offsetHeight
        if (windowedge - dropmenuobj.y < dropmenuobj.contentmeasure) { //move up?
            edgeoffset = dropmenuobj.contentmeasure + obj.offsetHeight
            if ((dropmenuobj.y - topedge) < dropmenuobj.contentmeasure) //up no good either?
                edgeoffset = dropmenuobj.y + obj.offsetHeight - topedge
        }
    }
    return edgeoffset
}

function populatemenu(menucontents) {
    if (ie4 || ns6)


        dropmenuobj.innerHTML = document.getElementById(menucontents).innerHTML;

}
var step1_id;
var ddlVal;

function setSchool(itemID) {
    
    //text1
    var schoolvar = itemID.split("~");
    //alert(mytool_array[0]+" "+mytool_array[1]+" "+mytool_array[2]);

    $get("text1").innerHTML = itemID; //schoolvar[1];
    stepPass("text1");
}

function setVal(item_id, ddl_id) {
    
    //alert("sdf");

    document.getElementById(ddl_id).innerHTML = document.getElementById('item' + item_id).innerHTML;
    //document.getElementById(ddl_id).innerHTML=$get("item"+item_id).innerHTML.trim();
    step1_id = item_id;
    stepPass(ddl_id);

    if (ddl_id == 'text1') {
        //alert("hi");
        getProgram(item_id);
        sID = item_id;

        document.getElementById('schoolval').value = item_id;
        document.getElementById('programval').value = "";
        if (document.getElementById("mainPhDIV") != null)
            document.getElementById("mainPhDIV").style.display = "none";
        if (item_id == 9 || item_id == 10 || item_id == 11) {
            document.getElementById("CounHWPhDiv").style.display = "inline";
            document.getElementById("HMPhDiv").style.display = "none";
            document.getElementById("HWMPhDiv").style.display = "none";
            document.getElementById("MethodTimeDiv").style.display = "none";
        }
        else if (item_id == 600) {
            document.getElementById("CounHWPhDiv").style.display = "none";
            document.getElementById("HMPhDiv").style.display = "none";
            document.getElementById("HWMPhDiv").style.display = "inline";
            document.getElementById("MethodTimeDiv").style.display = "inline";
        }
        else {
            document.getElementById("CounHWPhDiv").style.display = "none";
            document.getElementById("HMPhDiv").style.display = "inline";
            document.getElementById("HWMPhDiv").style.display = "none";
            document.getElementById("MethodTimeDiv").style.display = "none";
        }
        if (item_id == 9 || item_id == 10 || item_id == 11) {
            //document.getElementById("Kaplan_IndexSIF1_ddlTimeEmployed").style.display = "none";
            //document.getElementById("Kaplan_IndexSIF1_ddlEmpStatus").style.display = "none";
           // document.getElementById("Kaplan_IndexSIF1_ddlTransferCredits").style.display = "none";
        } else {
//            document.getElementById("Kaplan_IndexSIF1_ddlTimeEmployed").style.display = "inline";
//            document.getElementById("Kaplan_IndexSIF1_ddlEmpStatus").style.display = "inline";
//            document.getElementById("Kaplan_IndexSIF1_ddlTransferCredits").style.display = "inline";
        }

    }

    if ((ddl_id == 'text1') && (repop == true)) {
        document.getElementById('text2').innerHTML = 'Choose a program';

    }

    if (ddl_id == 'text2') {
        //  alert(item_id);
        getQuestions(sID, item_id)
        repop = true;
        document.getElementById('programval').value = "";
        document.getElementById('programval').value = item_id;
        document.getElementById('trackdynaQuestions').innerHTML = "";

        //        if(item_id == 173)
        //            document.getElementById('trackvalue').value = 'WEBAPPDEV';
        //        else
        //            document.getElementById('trackvalue').value = "";    


        if (item_id == 69)
            document.getElementById('trackMCPDvalue').value = 'WsEBDEV';
        else
            document.getElementById('trackMCPDvalue').value = "";
        ////////NUR_NP///////
        //        if (item_id == 34 || item_id == 236) {
        //            document.getElementById("CounHWPhDiv").style.display = "none";
        //            document.getElementById("HMPhDiv").style.display = "inline";
        //            document.getElementById("HWMPhDiv").style.display = "none";
        //            document.getElementById("MethodTimeDiv").style.display = "none";
        //        }
        //        else (item_id == 35 || item_id == 212 || item_id == 217)
        //        {
        //            document.getElementById("CounHWPhDiv").style.display = "none";
        //            document.getElementById("HMPhDiv").style.display = "none";
        //            document.getElementById("HWMPhDiv").style.display = "inline";
        //            document.getElementById("MethodTimeDiv").style.display = "inline";
        //        }
        //        //////NUR_NP///////            

    }


    if (document.getElementById('schoolval').value != '9' && document.getElementById('schoolval').value != '10' && document.getElementById('schoolval').value != '11') {
        document.getElementById('millitaryvalue').value = "NO";
        document.getElementById('millitary').value = "Not Affiliated";
    }
    else {
        document.getElementById('millitaryvalue').value = "";
        document.getElementById('millitary').value = "";
    }

    document.getElementById('gmtZ').value = "";

    if ((ddl_id == 'text5') && (item_id != 'Not Affiliated')) {
        document.getElementById("pnlTime").style.display = "inline";
        document.getElementById('millitary').value = item_id;

        document.getElementById('gmtZ').value = "US Pacific Time";

        setmillitaryQuestionValue(item_id);
    }
    else if (item_id == 'Not Affiliated') {
        document.getElementById("pnlTime").style.display = "none";
        document.getElementById('millitary').value = "Not Affiliated";
        document.getElementById('millitaryvalue').value = "NO";

        setmillitaryQuestionValue(item_id);
    }

    if (ddl_id == 'text6') {
        var questionsArray = document.getElementById('trackquestionlist').value.split(',');
        var answersArray = document.getElementById('trackvallist').value.split(',');

        var questionpos;
        for (var i = 0; i < questionsArray.length; i++) {
            if (questionsArray[i] == item_id) {
                document.getElementById('trackvalue').value = answersArray[i];
                break;
            }
        }
    }

    if (ddl_id == 'text7') {
        var questionsArray = document.getElementById('trackMCPDquestionlist').value.split(',');
        var answersArray = document.getElementById('trackMCPDvallist').value.split(',');

        var questionpos;
        for (var i = 0; i < questionsArray.length; i++) {
            if (questionsArray[i] == item_id) {
                document.getElementById('trackMCPDvalue').value = answersArray[i];
                break;
            }
        }
    }

    if (ddl_id == 'text4') {
        switch (item_id) {
            case 1:
                document.getElementById('gmtZ').value = "US Pacific Time";
                break;
            case 2:
                document.getElementById('gmtZ').value = "US Eastern Time";
                break;
            case 3:
                document.getElementById('gmtZ').value = "US Mountain Time";
                break;
            case 5:
                document.getElementById('gmtZ').value = "US GMT Time";
                break;
            case 4:
                document.getElementById('gmtZ').value = "US Central Time";
                break;
            default:
                document.getElementById('gmtZ').value = "US Pacific Time";
        }

    }

    


}

function setmillitaryQuestionValue(item_id) {

    var questionsArray = document.getElementById('millitaryquestionlist').value.split('~');
    var answersArray = document.getElementById('millitaryvallist').value.split('~');

    var questionpos;
    for (var i = 0; i < questionsArray.length; i++) {
        if (questionsArray[i] == item_id) {
            document.getElementById('millitaryvalue').value = answersArray[i];
            break;
        }
    }
}

function settrackQuestionValue(item_id) {

    var questionsArray = document.getElementById('trackquestionlist').value.split('~');
    var answersArray = document.getElementById('trackvallist').value.split('~');

    var questionpos;
    for (var i = 0; i < questionsArray.length; i++) {
        if (questionsArray[i] == item_id) {
            document.getElementById('trackvalue').value = answersArray[i];
            break;
        }
    }
}

function stepPass(ddl) {
    if ((step1_id != '0') && (ddl == 'text1')) {
        //document.getElementById('step1').className = "step1-dehl";
        //document.getElementById('step2img').style.display = "none";
        document.getElementById('step2b').style.display = "block";

        //added by venkata 
        document.getElementById('s2gate1').style.display = "none";
        //document.getElementById('step3bot').style.display = "block";
        //document.getElementById('imageon').style.display = "none";
        //document.getElementById('step2b').style.backgroundImage="url(images/hl-bg2.jpg)";
        //document.getElementById('step2').src="images/step2-hl-top.jpg";
        document.getElementById('programval').value = "";
        document.getElementById('millitary').value = "";
        document.getElementById('gmtZ').value = "";
        document.getElementById('millitaryvalue').value = "";
        document.getElementById('trackvalue').value = "";
        document.getElementById('trackMCPDvalue').value = "";
        //end comment
    }
    else if ((step1_id == '0') && (ddl == 'text1')) {
        //document.getElementById('step1').className = "step1-hl";
        // document.getElementById('step2img').style.display = "block";
        document.getElementById('step2b').style.display = "none";
        //document.getElementById('step2').src="images/step2-hl-top.jpg";
        //document.getElementById('imageon').style.display="none";
        //document.getElementById('step3bot').style.display="block"; 
        //document.getElementById('step2b').style.backgroundImage="url(images/hl-bg2.jpg)";
    }

    if ((step1_id != '0') && (ddl == 'text2')) {
        document.getElementById('s2gate1').style.display = "block";
    }

    if ((ddl == 'text2') && document.getElementById('imageon').style.display == "block") {
        //document.getElementById('step2').src="images/step2-hl-top.jpg";
        //document.getElementById('imageon').style.display="none";
        //document.getElementById('step3bot').style.display="block"; 
        //document.getElementById('step2b').style.backgroundImage="url(images/hl-bg2.jpg)";
    }
}

function dropdownmenu(obj, e, menucontents) {


    //Validation for empty area of study
    //var program12=document.getElementById("text1").innerHTML;
    //if(menucontents=="text2a")
    //{
    //if(program12=="What area of study are you interested in?")
    //{ 
    //alert("Please choose an area of study");
    //document.getElementById('dropmenudiv2').style.visibility="hidden"; 
    //}
    //}
    ///////////////////////

    if (window.event) event.cancelBubble = true
    else if (e.stopPropagation) e.stopPropagation()
    clearhidemenu()
    dropmenuobj = document.getElementById ? document.getElementById("dropmenudiv") : dropmenudiv
    populatemenu(menucontents)

    if (ie4 || ns6) {
        showhide(dropmenuobj.style, e, "visible", "hidden")

        dropmenuobj.x = getposOffset(obj, "left")
        dropmenuobj.y = getposOffset(obj, "top")
        dropmenuobj.style.left = dropmenuobj.x - clearbrowseredge(obj, "rightedge") + "px"
        dropmenuobj.style.top = dropmenuobj.y - clearbrowseredge(obj, "bottomedge") + obj.offsetHeight + "px"
    }

    return clickreturnvalue()
}

function clickreturnvalue() {
    if (ie4 || ns6) return false
    else return true
}

function contains_ns6(a, b) {
    while (b.parentNode)
        if ((b = b.parentNode) == a)
        return true;
    return false;
}

function dynamichide(e) {
    if (ie4 && !dropmenuobj.contains(e.toElement))
        delayhidemenu()
    else if (ns6 && e.currentTarget != e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))
        delayhidemenu()
}

function hidemenu(e) {
    if (typeof dropmenuobj != "undefined") {
        if (ie4 || ns6)
            dropmenuobj.style.visibility = "hidden"
    }
}

function delayhidemenu() {
    if (ie4 || ns6)
        delayhide = setTimeout("hidemenu()", disappeardelay)
}

function clearhidemenu() {
    if (typeof delayhide != "undefined")
        clearTimeout(delayhide)
}

if (hidemenu_onclick == "yes")
    document.onclick = hidemenu

function text1swapOut() {
    //document.getElementById('text1').className = 'text1hover';
}

function text1swapBack() {
   // document.getElementById('text1').className = 'text1';
}

//function displayrelated()               // Dispaly Military2
//{  
//    var ctrlname="rdlMilitary";     
//    var radioValue = "No"
//    
// 	for (index=0; index < document.getElementsByName(ctrlname).length; index++) 
//    {
//	 if (document.getElementsByName(ctrlname)[index].checked)
//		 {
//			 radioValue = document.getElementsByName(ctrlname)[index].value;			 
//			 break;			 
//		 }
//	 }
//	 if(radioValue=="Yes")
//	 {
//	    document.getElementById("Kaplan_IndexSIF1_ddlMilitary2").style.display = "Inline";
//	 }
//	 if(radioValue=="No")
//	 {
//	    document.getElementById("Kaplan_IndexSIF1_ddlMilitary2").style.display = "None";
//	 }   
//            
//}

function validateQuestions() {
    var validation = true;
    var count = 0;
    var stat = 0;
    var strcntrl = "";

    while (count < document.form1.elements.length) {
    
        if (document.form1.elements[count].name.indexOf("rdl") == 0) {
        
            var ctrlname = document.form1.elements[count].name;

            var rbchecked = false;
            for (i = 0; i < document.getElementsByName(ctrlname).length; i++) {
                if (document.getElementsByName(ctrlname)[i].checked) {
                    rbchecked = true;
                }
            }
            if (!rbchecked) {
                if (ctrlname == 'rdlTrackMcitps') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have Comp TIA A+ and Comp TIA Network+ certification or equivalent experience?"
                    else
                        strcntrl = strcntrl + "Do you have Comp TIA A+ and Comp TIA Network+ certification or equivalent experience?"
                }
                if (ctrlname == 'rdlMcitpddbaSql') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you posses a working knowledge of Microsoft SQL Server?"
                    else
                        strcntrl = strcntrl + "Do you posses a working knowledge of Microsoft SQL Server?"
                }
                if (ctrlname == 'rdlMcitdiSec') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have prior experience in managing and developing BI solutions and BI project security?"
                    else
                        strcntrl = strcntrl + "Do you have prior experience in managing and developing BI solutions and BI project security?"
                }
                if (ctrlname == 'rdlMcitdbiSql') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have SQL Server production experience and knowledge of relational databases?"
                    else
                        strcntrl = strcntrl + "Do you have SQL Server production experience and knowledge of relational databases?"
                }

                if (ctrlname == 'rdlMcitpddevSql') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do have a basic knowledge of SQL?"
                    else
                        strcntrl = strcntrl + "Do have a basic knowledge of SQL?"
                }
                
                if (ctrlname == 'rdlMcitpddevMW') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you possess a working knowledge of Microsoft Windows and Microsoft SQL Server?"
                    else
                        strcntrl = strcntrl + "Do you possess a working knowledge of Microsoft Windows and Microsoft SQL Server?"
                }
                if (ctrlname == 'rdlMcitpddbaMin') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have a minimum of 2 years experience as a database administrator?"
                    else
                        strcntrl = strcntrl + "Do you have a minimum of 2 years experience as a database administrator?"
                }
                if (ctrlname == 'rdlBSDegree') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have a bachelor's degree?"
                    else
                        strcntrl = strcntrl + "Do you have a bachelor's degree?"
                }

                if (ctrlname == 'rdlAccesstoComputer') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Will you have access to a computer to take your courses?"
                    else
                        strcntrl = strcntrl + "Will you have access to a computer to take your courses?"
                }

                if (ctrlname == 'rdlMilitary') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Are you or your spouse Active Duty, Reservist, or Veteran of the U.S. Military?"
                    else
                        strcntrl = strcntrl + "Are you or your spouse Active Duty, Reservist, or Veteran of the U.S. Military?"
                }
                

                if (ctrlname == 'rdlBestTime') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",When is the best time to contact you?"
                    else
                        strcntrl = strcntrl + "When is the best time to contact you?"
                }

                if (ctrlname == 'rdlLicensedNurse') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Are you a registered nurse licensed to practice in the U.S.?"
                    else
                        strcntrl = strcntrl + "Are you a registered nurse licensed to practice in the U.S.?"
                }

                if (ctrlname == 'rdlTakenOnline') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Have you ever enrolled in an online education program?"
                    else
                        strcntrl = strcntrl + "Have you ever enrolled in an online education program?"
                }


                if (ctrlname == 'rdlAnotherProgram') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Are you currently enrolled in another educational program?"
                    else
                        strcntrl = strcntrl + "Are you currently enrolled in another educational program?"
                }

                if (ctrlname == 'rdlWebExp') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have two years of experience developing web, windows, or distributed applications using the .Net Framework?"
                    else
                        strcntrl = strcntrl + "Do you have two years of experience developing web, windows, or distributed applications using the .Net Framework?"
                }

                if (ctrlname == 'rdlCompTIA') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have Comp TIA A + and Comp TIA Network + certification or equivalent experience?"
                    else
                        strcntrl = strcntrl + "Do you have Comp TIA A + and Comp TIA Network + certification or equivalent experience?"
                }


                if (ctrlname == 'rdlLANWAN') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have experience with network components including LANs and WANs?"
                    else
                        strcntrl = strcntrl + "Do you have experience with network components including LANs and WANs?"
                }

                if (ctrlname == 'rdlCCNACERT') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have a valid Cisco Certified Network Associate Certification (CCNA)?"
                    else
                        strcntrl = strcntrl + "Do you have a valid Cisco Certified Network Associate Certification (CCNA)?"
                }

                if (ctrlname == 'rdlCCDAACERT') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you possess CCNA and CCDA certification?"
                    else
                        strcntrl = strcntrl + "Do you possess CCNA and CCDA certification?"
                }

                if (ctrlname == 'rdlwordspermin') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Can you type 45 words per minute?"
                    else
                        strcntrl = strcntrl + "Can you type 45 words per minute?"
                }

                //if(ctrlname=='rdlRegisteredLicense')
                if (ctrlname == 'rdlRNLicense') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you possess a current US license as a registered nurse without restriction or expect to receive your US RN license in the next 20 weeks?"
                    else
                        strcntrl = strcntrl + "Do you possess a current US license as a registered nurse without restriction or expect to receive your US RN license in the next 20 weeks?"
                }

                if (ctrlname == 'rdlNursingDegree') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you possess a bachelor's of science degree in Nursing?"
                    else
                        strcntrl = strcntrl + "Do you possess a bachelor's of science degree in Nursing?"
                }
                if (ctrlname == 'rdlNur1000hrs') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have 1000 hours of clinical practice as a RN ?"
                    else
                        strcntrl = strcntrl + "Do you have 1000 hours of clinical practice as a RN ?"
                }
                if (ctrlname == 'rdlMsNur') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you have a Master of Science in Nursing ?"
                    else
                        strcntrl = strcntrl + "Do you have a Master of Science in Nursing ?"
                }

            }
            validation = false;

            count = count + document.getElementsByName(ctrlname).length;
        }

        else if (document.form1.elements[count].name.indexOf("ddl") == 0) {
            
            var ctrlname1 = document.form1.elements[count].name;
            if (document.form1.elements[count].options[document.form1.elements[count].selectedIndex].value == 0) {
                if (ctrlname1 == 'ddlHighestEduc') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",What is the highest level of education you possess? "
                    else
                        strcntrl = strcntrl + "What is the highest level of education you possess? "
                }

                //                if (ctrlname1 == 'ddlHighestEduc') {
                //                    if (strcntrl.length > 0)
                //                        strcntrl = strcntrl + ",What is the highest academic credential you posses?"
                //                    else
                //                        strcntrl = strcntrl + "What is the highest academic credential you posses?"
                //                }

                if (ctrlname1 == 'ddlOccupation') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Please select the profession in which you have current United States certification or licensure"
                    else
                        strcntrl = strcntrl + "Please select the profession in which you have current United States certification or licensure"
                }

                if (ctrlname1 == 'ddlHighestEducation') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",What is the highest academic credential you posses?"
                    else
                        strcntrl = strcntrl + "What is the highest academic credential you posses?"
                }

                if (ctrlname1 == 'ddlTrackMCPD') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",what track are you interested in?"
                    else
                        strcntrl = strcntrl + "what track are you interested in?"
                }
                if (ctrlname1 == 'ddlStateRN') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",In what state was your current or primary RN license issued?"
                    else
                        strcntrl = strcntrl + "In what state was your current or primary RN license issued?"
                }
                if (ctrlname1 == 'ddlCfaList') 
                {
                    var prog = $get("text2").innerHTML.trim();                    
                    if ((prog == "MS in Nursing")||(prog == "Graduate Certificate"))
                    {           
                        if (strcntrl.length > 0)
                            strcntrl = strcntrl + ",Choose a Specialization "
                        else
                            strcntrl = strcntrl + "Choose a Specialization"
                    }        
                }                
                if (ctrlname1 == 'ddlTracken') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",What track are you interested in?"
                    else
                        strcntrl = strcntrl + "What track are you interested in?"
                }
                if (ctrlname1 == 'ddlTrackMcitps') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",What track are you interested in?"
                    else
                        strcntrl = strcntrl + "What track are you interested in?"
                }

                if (ctrlname1 == 'ddlMcitpddba') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",What track are you interested in?"
                    else
                        strcntrl = strcntrl + "What track are you interested in?"
                }
                if (ctrlname1 == 'ddlNurSelStates') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Do you possess a current license as a registered nurse without restrictions to practice in one of these states (AK, IA, CA, CO, CT, DC, DE, MI, MS, MT, NE, OH, OK, RI, SC, SD, VT)?"
                    else
                        strcntrl = strcntrl + "Do you possess a current license as a registered nurse without restrictions to practice in one of these states (AK, IA, CA, CO, CT, DC, DE, MI, MS, MT, NE, OH, OK, RI, SC, SD, VT)?"
                }
                if (ctrlname1 == 'ddlPreferMthdCont') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Preferred Method of Contact"
                    else
                        strcntrl = strcntrl + "Preferred Method of Contact"
                }

                if (ctrlname1 == 'ddlBestCllTime') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Best Time to Call"
                    else
                        strcntrl = strcntrl + "Best Time to Call"
                }
                if (ctrlname1 == 'ddlMilitarynew'){
                    if(strcntrl.length > 0)
                        strcntrl = strcntrl + ",Are you or your spouse Active Duty, Reservist, or Veteran of the U.S. Military?"
                    else
                        strcntrl = strcntrl + "Are you or your spouse Active Duty, Reservist, or Veteran of the U.S. Military?"
                }
            }
            validation = false;

            count = count + 1;
        }
        else if (document.form1.elements[count].name.indexOf("txt") == 0) {
            var leng = document.form1.elements[count].value.length
            //alert(document.form1.elements[count].value);
            var ctrlname2 = document.form1.elements[count].name;
          //alert(document.getElementById('txtNWorkPh').value);
            if (leng < 1) {
                if (ctrlname2 == 'txtOccupation') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Please give your profession?"
                    else
                        strcntrl = strcntrl + "Please give your profession?"
                }
                if (ctrlname2 == 'txtOccEnv') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",What is your occupation?"
                    else
                        strcntrl = strcntrl + "What is your occupation?"
                }
                if (ctrlname2 == 'txtNWorkPh') {
                    if (strcntrl.length > 0)
                        strcntrl = strcntrl + ",Work Phone"
                    else
                        strcntrl = strcntrl + "Work Phone"
                }
//                if (ctrlname2 == 'txtNWorkPh') {

//                    var re_OthSchPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/
//                    //var txtwp = document.form1.elements[count].value;
//                    //alert(txtwp);
//                    if (re_OthSchPh.test(document.getElementById('txtNWorkPh').value) == false) {

//                        if (strcntrl.length > 0)
//                            strcntrl = strcntrl + ",Work Phone"
//                        else
//                            strcntrl = strcntrl + "Work Phone"
//                    }
//                }
                //                else {

                //                    var re_OthSchPh = /^\(?[2-9]\d{2}[\)\.-]?\s?\d{3}[\s\.-]?\d{4}$/
                //                    if (re_OthSchPh.test(ctrlname2.value) == false) {
                //                        if (strcntrl.length > 0)
                //                            strcntrl = strcntrl + ",Work Phone"
                //                        else
                //                            strcntrl = strcntrl + "Work Phone"
                //                    }
                //}

            }



            validation = false;
            count = count + 1;
        }
//        else if (document.form1.elements[count].name.indexOf("txtN") == 0) {
//            alert("hi");
//        //    alert(document.form1.elements[count].value)

//        }
        else {
            count = count + 1;
        }
    }
    return strcntrl;

    /*   
    if(validation)
    {
    document.getElementById('imageoff').style.display = 'none';
    document.getElementById('imageon').style.display = '';
    }
    else
    {
    document.getElementById('imageoff').style.display = '';
    document.getElementById('imageon').style.display = 'none';
    }*/
    if (validation == true) {
        step3();
    }

    function step3() {
        //document.getElementById('step2b').style.backgroundImage="url(images/step-hl.jpg)";
        //document.getElementById('step2').src="images/step2.jpg";
        document.getElementById('imageon').style.display = "block";
        //document.getElementById('step3bot').style.display="none";

    }
}

function popUp(theURL, winName, features) {
    var popup = window.open(theURL, winName, features);
}

function getTrackDQ() {
    getTrackQuestions('39', document.getElementById('ddlTracken').value);
}


function getTrackMcitps() {
    getTrackQuestions('46', document.getElementById('ddlTrackMcitps').value);
}

function getTrackMcitpdba() {
    getTrackQuestions('48', document.getElementById('ddlMcitpddba').value);
}

function popEmpStatus() {
    //alert(document.form1.Kaplan_IndexSIF1$ddlEmpStatus.value);
    if (document.form1.Kaplan_IndexSIF1$ddlEmpStatus.value == "Retired" || document.form1.Kaplan_IndexSIF1$ddlEmpStatus.value == "NotEmployed") {
        //        document.getElementById('divState').style.display = 'inline';
        //document.form1.Kaplan_SIF1$Address1.value.trim();
        document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.style.display = 'none';
        document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.value = "NA";
    }
    else {
        document.form1.Kaplan_IndexSIF1$ddlTimeEmployed.style.display = 'inline';
    }

}
function getTrackMS() {

    getMSQuestions('83', document.getElementById('ddlCfaList').value);
	
}


function test()
{
if(document.getElementById(progvalid).Value == "false")
        {
            alert("Program selected is Invalid");
            window.location.reload()
        }
}
//function getTrachNurQues(queNrucfa) {

//    var cfaNurArray = queNrucfa.split(',');
//    for (var i = 0; i < cfaNurArray.length; i++) {
//        alert(cfaNurArray[i]);
//        if (cfaNurArray[i] == "MSN_NA" || cfaNurArray[i] == "MSN_NI12")
//         {
//             
//            document.getElementById("CounHWPhDiv").style.display = "none";
//            document.getElementById("HMPhDiv").style.display = "none";
//            document.getElementById("HWMPhDiv").style.display = "inline";
//            document.getElementById("MethodTimeDiv").style.display = "inline";
//        }
//    }
//    //alert(cfaNur);

//    //    if (cfaNur == "MSN_ANP" || cfaNur=="MSN_FNP")
//    //     {
//    //        document.getElementById("CounHWPhDiv").style.display = "none";
//    //        document.getElementById("HMPhDiv").style.display = "none";
//    //        document.getElementById("HWMPhDiv").style.display = "inline";
//    //        document.getElementById("MethodTimeDiv").style.display = "inline";
//    //    }

//}


