function getLeft(l)
{
  if (l.offsetParent) return (l.offsetLeft + getLeft(l.offsetParent));
  else return (l.offsetLeft);
}
function getTop(l)
{
  if (l.offsetParent) return (l.offsetTop + getTop(l.offsetParent));
  else return (l.offsetTop);
}

function showDiv(e,p,x,y)
{
  document.getElementById(e).style.posLeft=792; //getLeft(document.getElementById(p))-offset;
  document.getElementById(e).style.posTop=147; //getTop(document.getElementById(p));
  document.getElementById(e).style.visibility="visible";
}

function hideDiv(e)
{
  document.getElementById(e).style.visibility="hidden";
}

var wExtWindow;

function eNewWindow(mypage, myname, w, h, zeile, scroll) 

{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',status='+zeile+',scrollbars='+scroll+',resizable';
wExtWindow = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4 && wExtWindow) { wExtWindow.focus(); }
}


