﻿function StateListEnable(strSource, strTarget)
{
    var txtState = document.getElementById(strTarget + '1');
    var State = document.getElementById(strTarget);
    var Country = document.getElementById(strSource).value;
    
    if(Country == "USA" || Country == "CAN" || Country == "None"  || Country == "0")
    {
        if (Country == "CAN")
        {
            State.selectedIndex = 54;
        }
        if (Country == "USA")
        {
            State.selectedIndex = 0;
        }
        txtState.style.display = 'none';
        State.style.display = '';
    }
    else
    {
        State.style.display = 'none';
        txtState.style.display = '';   
    }
}