function showhelp(obj, num, xdir, xoff, ydir, yoff) {
var x, w, h, hx, hb=document.getElementById('helpbox');
var hbd=hb.contentWindow || hb.contentDocument; if (hbd.document) hbd=hbd.document;
if (num==0) { hb.style.display='none'; return false; }
x=1; while (hx=hbd.getElementById('helpsect'+x)) { hx.style.display='none'; x++; }
hx=hbd.getElementById('helpsect'+num);
if (!hx) { hb.style.display='none'; return false; }
w=parseInt(hx.style.width)+10; hb.style.width=w+'px';
h=parseInt(hx.style.height)+50; hb.style.height=h+'px';
hx.style.display='block';
hb.style.left=getPosition(obj).x+xoff-(xdir>0?w:0)+'px';
hb.style.top=getPosition(obj).y+yoff-(ydir>0?h:0)+'px';
hb.style.display='block';
return false;
}
function getPosition(e) {
var left=0; var top=0;
if (e)
  {
  while (e.offsetParent) { left+=e.offsetLeft; top+=e.offsetTop; e=e.offsetParent; }
  left+=e.offsetLeft; top+=e.offsetTop;
  }
return {x:left, y:top};
}