
var NewWin;

//------------------------

var mb=1; var tb=0; var lb=0; var pb=0; var sb=1; // Eigenschaften von NewWin
var rh=6; var th=18+1; var mh=18+1; var sh=18; var bh=23; // Desktop-Darstellung

function OpenWin (Name, iBreite, iHoehe, x0, y0, Url)
 {
  NewWin = window.open(Url, Name,
    "width="+iBreite+",height="+iHoehe+",screenX="+x0+",screenY="+y0
   +",menubar="+mb+",toolbar="+tb+",location="+lb+",personalbar="+pb+",status="+sb
   +",scrollbars=1,resizable=1,directories=0,copyhistory=0,dependent=0");
  NewWin.focus();
 }

function OpenStdWin (Name, Url)
 {
  var a = (tb+lb+pb>0)?1:0;
  OpenWin (Name,
   screen.availWidth-4*rh,
   screen.availHeight-4*rh-2*th-mb*mh-(tb+lb+pb)*bh-a-sb*sh,
   rh, rh+th, Url);
 }

function PWin (iBreite, iHoehe, Url)
 { OpenWin ('Person', iBreite, iHoehe, rh, rh+th, Url) }

function XWin ()
 { alert('Keine persönliche Seite vorhanden!') }

//------------------------

function OpenInfoWin (Name, Url, iBreite, iHoehe)
 {
  NewWin = window.open(Url, Name,
   "width="+iBreite+",height="+iHoehe+",screenX=100,screenY=100"
  +",menubar=0,toolbar=0,location=0,personalbar=0,status=0,scrollbars=0,resizable=1,directories=0,copyhistory=0")
  NewWin.focus();
 }

function ImgWin (Url)
 {
  OpenInfoWin('ImgWin','',400,300);
  with (NewWin.document)
   {
    open();
    writeln('<body style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><img src="'+Url+'" id="Bild">');
    close();
    with (getElementById('Bild')) NewWin.resizeTo(width+12,height+30);
   }
 }

function Tmb (url, alt)
 { return '<A HREF="javascript:ImgWin(\''+url+'.jpg\')"><IMG SRC="'+url+'.gif" ALT="'+alt+'" BORDER=1></A> ' }

function TmbTr (thbs)
 { return "<TR ALIGN=CENTER><TD>"+thbs+"</TD></TR>\n" }

function TmbTab (tr)
 { document.writeln("<TABLE>"+tr+"</TABLE>") }

