function OpenNewWindow(Picture,Breit,Hoch)
{
xsize = Breit+35;// Zusatz für Rand rechts und links
ysize = Hoch+75; //Zusatz für Rand oben und unten - damit Button angezeit werden kann 
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/4)-(xsize/2);
ypos = (ScreenHeight/3)-(ysize/2);
	
	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=yes,resizable=yes,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>www.Gorbitzfilm.de BILDANZEIGE");
	NewWindow.document.write ("</title></head>");
                     NewWindow.document.write ("<body bgcolor='#cccccc' onload='focus()'>");
	//NewWindow.document.write ("<body bgcolor='#cccccc'>");
	NewWindow.document.write ("<table align='center'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='1' bgcolor='#000000' cellpadding='0' cellspacing='1'><tr><td align='center'>");
	NewWindow.document.write ("<img src=");
	NewWindow.document.write (Picture);
	NewWindow.document.write (">");
	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><input type='button' value='FENSTER SCHLIESSEN' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</form></body></html>");
	NewWindow.document.close();
                     NewWindow.resizeTo(xsize,ysize); 
}

function FensterOeffnen (Adresse) {
  Fenster1 = window.open(Adresse, "Zweitfenster", "width=320,height=400,left=100,top=200,scrollbars=yes,resizable=yes");
  Fenster1.focus();
}

function ZeitFenster (Adresse) {
  Fenster1 = window.open(Adresse, "Zweitfenster", "width=340,height=160,left=100,top=200,scrollbars=yes,resizable=yes");
  Fenster1.focus();
}
//the masterscript comming up by dodge/MDS

 //declaring image vars
 var menu3OU = new Image();
 menu3OU.src = "./gfx/laygfx/abschnitt1-ou.jpg";
 var menu3OV = new Image();
 menu3OV.src = "./gfx/laygfx/abschnitt1-ov.jpg";

 var menu4OU = new Image();
 menu4OU.src = "./gfx/laygfx/abschnitt2-ou.jpg";
 var menu4OV = new Image();
 menu4OV.src = "./gfx/laygfx/abschnitt2-ov.jpg";

 var menu5OU = new Image();
 menu5OU.src = "./gfx/laygfx/abschnitt3-ou.jpg";
 var menu5OV = new Image();
 menu5OV.src = "./gfx/laygfx/abschnitt3-ov.jpg";

 var menu6OU = new Image();
 menu6OU.src = "./gfx/laygfx/abschnitt4-ou.jpg";
 var menu6OV = new Image();
 menu6OV.src = "./gfx/laygfx/abschnitt4-ov.jpg";

 //preparing the image swap

 function swapImage(index,name)
 {
  window.document.images[index].src=name.src;
 }




