var xmlreq;
/* this function hides the pop-up when
 user moves the mouse out of the link */
function Hide()
{
    /* hide the pop-up */
    Popup.style.display="none";
}

function Show(event, url) {
    xmlreq = null;
    /* get the mouse left position */
    x = event.clientX + document.body.scrollLeft;

    /* get the mouse top position  */
    y = event.clientY + document.body.scrollTop;

    /* set the pop-up's left */
    Popup.style.left = x;

    /* set the pop-up's top */
    Popup.style.top = y;

    if (window.XMLHttpRequest) { // Non-IE browsers
      xmlreq = new XMLHttpRequest();
      xmlreq.onreadystatechange = targetDiv;
      try {
        xmlreq.open("GET", url, true);
      } catch (e) {
        alert(e);
      }
      xmlreq.send(null);
    } else if (window.ActiveXObject) { // IE
      xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
      if (xmlreq) {
        xmlreq.onreadystatechange = targetDiv;
        xmlreq.open("GET", url, true);
        xmlreq.send();

      }
    }
    
    return false;
}

function targetDiv() {
    if (xmlreq.readyState == 4) { // Complete
          if (xmlreq.status == 200 || xmlreq.status == 304) { // OK response
              document.getElementById("Popup").innerHTML = xmlreq.responseText;
          } else {
            alert("Problem: " + xmlreq.statusText);
          }
    }

    /* display the pop-up */
    Popup.style.display="block"; 
} 