function OpenNewWindow(Picture,Breit,Hoch)
{
xsize = Breit+50;// Zusatz Rand rechts und links
ysize = Hoch+100; //Zusatz Rand oben und unten - damit Button angezeigt 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=yes,resizable=yes,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>Thomas Bergner Bootsbau");
	NewWindow.document.write ("</title></head>");
	NewWindow.document.write ("<body style='background-image:url(pics/carbon_bg3.jpg);'>");
	NewWindow.document.write ("<table align='center'border='0' cellpadding='5' cellspacing='0'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<img src=");
	NewWindow.document.write (Picture);
	NewWindow.document.write (">");
	NewWindow.document.write ("</td></tr><tr>");
	NewWindow.document.write ("<td align='center' valign='bottom' style='font-size:80%'>");
	NewWindow.document.write ("<br><form><input type='button' value='Fenster schlie&szlig;en' onClick='self.close()'>");
	NewWindow.document.write ("</form></td></tr></table>");
	NewWindow.document.write ("</body></html>");
	NewWindow.document.close();
}


