//<![CDATA[
<!--

var _xmlrequest_div_;

//create the Cross-browser XMLHttpRequest object
function cross_browser_XMLHttpRequest(pURL, divset, handle_XHR_answer) {

   if(divset == null)
     divset = 'info';

   if(handle_XHR_answer == null)
     handle_XHR_answer = postFileReady;

   _xmlrequest_div_ = divset;

   if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc 

      xmlhttp=new XMLHttpRequest();
      xmlhttp.onreadystatechange=handle_XHR_answer;
      xmlhttp.open("GET", pURL, true);
      xmlhttp.send(null);
   } else if (window.ActiveXObject) { //IE 

      xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
      if (xmlhttp) {
         xmlhttp.onreadystatechange=handle_XHR_answer;
         xmlhttp.open('GET', pURL, false);
         xmlhttp.send();
      }
   } else {

     alert("Error: Not valid method for XMLHttpRequest call");
   }
}

// function to handle asynchronous call
function postFileReady() {
   if (xmlhttp.readyState==4) { 
      if (xmlhttp.status==200) { 
         document.getElementById(_xmlrequest_div_).innerHTML=xmlhttp.responseText;
      }
   }
}

//-->
//]]>

