function ajax_getPage(page,callbackFunction){var xmlhttp=ajax_getInstance();xmlhttp.open('GET',page,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(typeof(callbackFunction)!='undefined'){if(xmlhttp.responseXML!=null&&typeof(xmlhttp.responseXML.value)!='undefined'){callbackFunction(xmlhttp.responseXML);}else if(xmlhttp.responseText){callbackFunction(xmlhttp.responseText);}}}}
xmlhttp.send(null)
return;}
function ajax_postPage(page,postData,callbackFunction){var xmlhttp=ajax_getInstance();xmlhttp.open('POST',page,true);xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(typeof(callbackFunction)!='undefined'){if(xmlhttp.responseXML!=null&&typeof(xmlhttp.responseXML.value)!='undefined'){callbackFunction(xmlhttp.responseXML);}else if(xmlhttp.responseText){callbackFunction(xmlhttp.responseText);}}}}
xmlhttp.send(postData)
return;}
function ajax_getInstance(){var xmlhttp=false;if(typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
else if(typeof ActiveXObject!='undefined'){try{xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');}catch(E){xmlhttp=false;}}}
return xmlhttp;}
function ajax_parseXmlString(string){var xmlDoc=null;try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(string);}catch(e){parser=new DOMParser();xmlDoc=parser.parseFromString(string,"text/xml");}
return(xmlDoc);}
