function createXMLHttpRequest(){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}try{return new XMLHttpRequest();}catch(e){}try{return window.createRequest();}catch(e){}return null;}function loadResponse(id,url,method,postFunc){var xmlHttpObj=createXMLHttpRequest();if(!xmlHttpObj){alert("Your browser sucks! Unable to create  XMLHttp object");return false;}var asyncFlag=true;var methodType=(!method||(method!="GET"&&method!="POST"))?"GET":method;xmlHttpObj.open(methodType,url,asyncFlag);xmlHttpObj.onreadystatechange=function(){fetchResponse(xmlHttpObj,id,postFunc);};xmlHttpObj.send(null);}function fetchResponse(xmlHttpObj,id,postFunc){if(xmlHttpObj.readyState==4){if(xmlHttpObj.status==200){var elem=document.getElementById(id);if(elem){elem.innerHTML=xmlHttpObj.responseText;if(postFunc){postFunc();}}}else{if(postFunc){postFunc();}}}}