function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function OpenNewWindow(Picture,Breit,Hoch,Titel,Text)
{
xsize = Breit+(Breit/2);// Zusatz für Rand rechts und links
ysize = Hoch+(Hoch/2); //Zusatz für Rand oben und unten - damit Button angezeit werden kann 
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);
	
	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=yes,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>"+Titel+"");
	NewWindow.document.write ("</title></head>");
    NewWindow.document.write ("<body bgcolor='#FFF7D7' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onload='focus()'>");
	NewWindow.document.write ("<table align='center' cellpadding='0' cellspacing='0'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'>");
	NewWindow.document.write ("<font face=Verdana><b>"+Titel+"</b><br></font>");
	NewWindow.document.write ("<img src=");
	NewWindow.document.write (""+Picture+"");
	NewWindow.document.write (">");
	NewWindow.document.write ("<font face=Verdana><br><small>"+Text+"</small><br></font>");
	NewWindow.document.write ("</tr></table>");
	NewWindow.document.write ("</td></tr><tr>");
	NewWindow.document.write ("<td align='center' valign='bottom'>");
	NewWindow.document.write ("<br><center><form name=1 action=><input type=button value='FENSTER SCHLIESSEN'  onClick='self.close()'></form>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</form></body></html>");
	NewWindow.document.close();
	NewWindow.resizeTo(xsize,ysize); 
}

