var busy=0;function loadXMLDoc(a,c){if(busy){var b=setTimeout("loadXMLDoc('"+a+"', '"+c+"')",10);return}busy=1;if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processReqChange;req.open("POST",a,true);req.setRequestHeader("Content-type","application/x-www-form-urlencoded");req.setRequestHeader("Content-length",c.length);req.setRequestHeader("Connection","close");req.send(c)}else{if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processReqChange;req.open("POST",a,true);req.setRequestHeader("Content-type","application/x-www-form-urlencoded");req.setRequestHeader("Content-length",c.length);req.setRequestHeader("Connection","close");req.send(c)}}}}function processReqChange(){if(req.readyState==4){if(req.status==200){response=req.responseXML.documentElement;method=response.getElementsByTagName("method")[0].firstChild.data;result=response.getElementsByTagName("result")[0].firstChild.data;error_code=response.getElementsByTagName("error_code")[0].firstChild.data;eval(method+"(result, error_code)")}else{alert("There was a problem retrieving the XML data:\n"+req.statusText)}busy=0}};
