var xml, xmltype;

function loadXMLDoc(url) {
  if (window.ActiveXObject) {
    xml = new ActiveXObject("Microsoft.XMLHTTP");
    if (xml) {
      xml.onreadystatechange = processXMLChange;
      xml.open("GET", url, true);
      xml.send();
    }
  }else if (window.XMLHttpRequest) {
    //netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
    xml = new XMLHttpRequest();
    xml.onreadystatechange = processXMLChange;
    xml.open("GET", url, true);
    xml.send(null);
  }
}

function processXMLChange() {
  if (xml.readyState == 4) {
    if (xml.status == 200) {
      if (!pricing) {
        if (property_id) {
          switch (property_id) {
            case 1684 : processDataSpecial(); break;
            case 1682 : processDataSpecial(); break;
            case 666 : processImage(); break;
            default : processData();
          }
        } else
          loadRoomTypeSelect();
      } else
        processPricingRates();
    }// else
      //alert("Error retrieving XML data:\n" + xml.statusText);
  }
}