function JavaDisplay(varID,varAction,e) { var tX = 0; var tY = 0; if(e.pageX || e.pageY) { var tX = e.pageX; var tY = e.pageY; } else if(e.clientX || e.clientY) { var tX = e.clientX + document.body.scrollLeft; var ScrollTop = (document.documentElement.scrollTop > 0) ? document.documentElement.scrollTop : document.body.scrollTop; var tY = e.clientY + ScrollTop; } if(tX < 62){tX = 62} if(tY < 22){tY = 22} param = new Object(); if(varAction == "point-in") { param.X = tX - 10; param.Y = tY - 10; } else { param.X = tX + 35; param.Y = tY; } if(varAction =="clear") { document.getElementById(varID).style['display'] = 'none'; } else { document.getElementById(varID).style['display'] = 'block'; document.getElementById(varID).style['position'] = 'absolute'; document.getElementById(varID).style['left'] = param.X+'px'; document.getElementById(varID).style['top'] = param.Y+'px'; } }