var XmlHttpObj;function CreateXmlHttpObj(){try{XmlHttpObj=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{XmlHttpObj=new ActiveXObject("Microsoft.XMLHTTP");}catch(oc){XmlHttpObj=null;}}if(!XmlHttpObj&&typeof XMLHttpRequest!="undefined"){XmlHttpObj=new XMLHttpRequest();}}function ContinentListOnChange(){var continentList=document.getElementById("continentList");var selectedContinent=continentList.options[continentList.selectedIndex].value;var requestUrl;requestUrl="http://www.unisupport.net/index.php?indexx/ajax/"+encodeURIComponent(selectedContinent);CreateXmlHttpObj();if(XmlHttpObj){XmlHttpObj.onreadystatechange=StateChangeHandler;XmlHttpObj.open("GET",requestUrl,true);XmlHttpObj.send(null);}}function StateChangeHandler(){if(XmlHttpObj.readyState==4){if(XmlHttpObj.status==200){Populateipn(XmlHttpObj.responseXML.documentElement);}else{alert("problem retrieving data from the server, status code: "+XmlHttpObj.status);}}}function Populateipn(countryNode){var ipn=document.getElementById("ipn");for(var count=ipn.options.length-1;count>-1;count--){ipn.options[count]=null;}var countryNodes=countryNode.getElementsByTagName('country');var idValue;var textValue;var optionItem;for(var count=0;count<countryNodes.length;count++){textValue=GetInnerText(countryNodes[count]);idValue=countryNodes[count].getAttribute("id");optionItem=new Option(textValue,idValue,false,false);ipn.options[ipn.length]=optionItem;}}function GetInnerText(node){return(node.textContent||node.innerText||node.text);}