function updateStates(){var A;var B;removeStates();A=window.document.forms[0].Country.options.selectedIndex;if(A>-1){B=window.document.forms[0].Country.options[A].value;addStates(B)}}function removeStates(){var B;B=window.document.forms[0].State.options.length;for(var A=B;A>=0;A--){window.document.forms[0].State.options[A]=null}}function addStates(A){CJL_loadXmlDocument("./states.aspx?country="+A,addStateOptions)}function addStateOptions(A){var D;var E;var F;var C;window.document.forms[0].State.options[0]=new Option("","",false);D=A.documentElement.childNodes.length;C=1;for(var B=0;B<D;B++){if(A.documentElement.childNodes[B].nodeType==1){E=A.documentElement.childNodes[B].getAttribute("value");F=A.documentElement.childNodes[B].firstChild.nodeValue;window.document.forms[0].State.options[C++]=new Option(F,E,false)}}}function CJL_loadXmlDocument(C,B){var A;if(window.ActiveXObject&&/Win/.test(navigator.userAgent)){A=new ActiveXObject("Microsoft.XMLDOM");A.async=false;A.load(C);B(A);return true}else{if(document.implementation&&document.implementation.createDocument){A=document.implementation.createDocument("","",null);A.load(C);A.onload=function(){B(A)};return true}else{return false}}};
