  var tmp_index = document.URL.substring(8).indexOf("/") + 8 + 1;
  var base = document.URL.substring(0, tmp_index);

  // If it is not IE, we assume that the browser is NS.
  var IE = document.all ? true : false;

  // Set-up to use getMouseXY function onMouseMove
  document.onmousemove = getMouseXY;

  // Temporary variables to hold mouse x-y pos.s
  var tempX = 0;
  var tempY = 0;

  function nop() {  }

  // Main function to retrieve mouse x-y pos.s
  function getMouseXY(e) {
    if (IE) { // grab the x-y pos.s if browser is IE
      tempX = event.clientX + document.body.scrollLeft;
      tempY = event.clientY + document.body.scrollTop;
    } else {  // grab the x-y pos.s if browser is NS
      tempX = e.pageX;
      tempY = e.pageY;
    }  

    // catch possible negative values in NS4
    if (tempX < 0) { tempX = 0; }
    if (tempY < 0) { tempY = 0; } 

    return true;
  }

  function ucword(word) {
    word = word.substring(0, 1).toUpperCase() + word.substring(1, word.length);
    return word;
  }

  function popup(page, width, height) {
    opts  = "width=" + width + ",height=" + height + ",";
    opts += "left=200,top=100,scrollbars=1,location=0,statusbars=0,resizable=1,menubar=0";
    win1 = window.open(page, "window", opts);
    win1.focus();
  }

  function getRequestObject() {
    http_request = null;

    if (window.XMLHttpRequest) {
      http_request = new XMLHttpRequest();
      http_request.overrideMimeType('text/xml');
    } else {
      http_request = new ActiveXObject("Microsoft.XMLHTTP");
    }

    return http_request;
  }

  function HttpRequest(url) {
    request = getRequestObject();
    request.open("GET", url, false);
    request.send("");
      
    return request.responseText;    
  }