  function checkXmlHttpState(handle)
  {
    if(handle.readyState == 4)
    {
      if(handle.status == 200) return true;
      else return false;
    } else return false;
  }
  
  function xmlLoad_Basic(xmlfile, async)
  {
    var xmlhandler = null;
    if (async == undefined) async = false;
    if (window.ActiveXObject) xmlhandler = new ActiveXObject("Microsoft.XMLDOM");
    else if( document.implementation && document.implementation.createDocument) xmlhandler = document.implementation.createDocument("","",null);
    if (xmlhandler != null)
    {
      xmlhandler.async = async;
      xmlhandler.load(xmlfile);
    }
    return xmlhandler;
  }
  
  function xmlLoad_Http(xmlurl, async, readystatefunction)
  {
    var xmlhandler = null;
    if (window.ActiveXObject) xmlhandler = new ActiveXObject("Microsoft.XMLHTTP");
    else if(window.XMLHttpRequest) xmlhandler = new XMLHttpRequest();
    
    if (readystatefunction == undefined) readystatefunction = null;
    if (readystatefunction != null) xmlhandler.onreadystatechange = function() { readystatefunction(xmlhandler); }
    else xmlhandler.onreadystatechange = function() {}
    
    if(async == undefined) async = true;
    
    xmlhandler.open("GET", xmlurl, async);
    xmlhandler.send(null);
  }
  