  window.onload = function() {
    loadFile('archive.html', displayHtml)
  }

    function createXMLHttpRequest(func) {
      var xmlHttpObject = null;
      if (window.XMLHttpRequest) {
        xmlHttpObject = new XMLHttpRequest();
      }
      else if (window.ActiveXObject) {
        try {
          xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
          try {
            xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
          } catch(e) {
            return null;
          }
        }
      }
      if (xmlHttpObject) xmlHttpObject.onreadystatechange = func;
      return xmlHttpObject;
    }
    
    function loadFile(fileName, callBackFunc) {
      httpObj = createXMLHttpRequest(callBackFunc);
      if (httpObj) {
        httpObj.open("GET", fileName, true);
        httpObj.send(null);
      }
    }
    
    function displayHtml() {
      if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
        document.getElementById("archive").innerHTML = httpObj.responseText;
      } else if ((httpObj.readyState == 4) && (httpObj.status == 404)) {
        document.getElementById("archive").innerHTML = "File not found.";
      } else {
        document.getElementById("archive").innerHTML = "wait.....";
      }
    }
