
  var theObj="";

  function toolTip(text,me) {
    if ( (window.opera && window.getComputedStyle && document.createRange) || window.XML || (window.clipboardData && document.compatMode) ) {
      theObj=me;
      theObj.onmousemove=updatePos;
      document.getElementById('toolTipBox').innerHTML=text;
      document.getElementById('toolTipBox').style.display="block";
      window.onscroll=updatePos;
    }
  }


  function toolTipTextPicture(text,picture,me) {
    if ( (window.opera && window.getComputedStyle && document.createRange) || window.pkcs11&&window.XML || (window.clipboardData && document.compatMode) ) {
      theObj=me;
      theObj.onmousemove=updatePosPicture;
      document.getElementById('toolTipBox').innerHTML= "<img src=\""+picture+"\" border=\"0\"><br /><b>"+text+"</b>";
      document.getElementById('toolTipBox').style.display="block";
      window.onscroll=updatePosPicture;
    }
  }


  function updatePos() {
    var ev=arguments[0]?arguments[0]:event;
    var x=ev.clientX;
    var y=ev.clientY;
    diffX=24;
    diffY=0;
    document.getElementById('toolTipBox').style.top  = y-2+diffY+document.body.scrollTop+ "px";
    document.getElementById('toolTipBox').style.left = x-2+diffX+document.body.scrollLeft+"px";
    theObj.onmouseout=hideMe;
  }


  function updatePosPicture() {
    var ev=arguments[0]?arguments[0]:event;
    var x=ev.clientX;
    var y=ev.clientY;
    if ( x > 800 ) {
      x = x - 220;
      y = y + 20;
    }
    diffX=24;
    diffY=0;
    document.getElementById('toolTipBox').style.top  = y-2+diffY+document.body.scrollTop+ "px";
    document.getElementById('toolTipBox').style.left = x-2+diffX+document.body.scrollLeft+"px";
    theObj.onmouseout=hideMe;
  }


  function hideMe() {
    document.getElementById('toolTipBox').style.display="none";
  }
