﻿// JScript File
function ValidateStatesEntry(source, args)

{
    var ddcountries = document.getElementById("ctl00_licensingContent_CreateUserWizard1_ddlCountries");

    args.IsValid = true;
    if (args.Value == "XX")
        {
            if (ddcountries.selectedIndex <= 1)
            {
                args.IsValid = false;
            }
        }
}

function ValidateZipCode(source, args)

{
    var ddcountries = document.getElementById("ctl00_licensingContent_ddlCountries");
    
    args.IsValid = true;
    if (args.Value = "")
        {
            if (ddcountries.selectedIndex <= 1)
            {
                args.IsValid= false;
            }
        }
}   

function DisableValidators()
{
    //var rfvName = document.getElementById("ctl00_licensingContent_rfvDPDProductTitleRequired");
    //ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvFirstNameRequired");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvLastNameRequired");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvCompanyNameRequired");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvTitleRequired");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvAddressOneRequired");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvCityNameRequired");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_cuvStates");
    ValidatorEnable(rfvName, false);
    var rfvName = document.getElementById("ctl00_licensingContent_CreateUserWizard1_rfvCountryRequired");
    ValidatorEnable(rfvName, false);


}     


