function NeuesFenster(Quelle,Breite,Hoehe){
    x = Breite + 55;
    y = Hoehe + 145;
    MonitorBreite = screen.width;
    MonitorHoehe = screen.height;
    xpos = (MonitorBreite / 2) - (x / 2);
    ypos = (MonitorHoehe / 2) - (y / 2);
    NewWindow=window.open("","Quelle","height="+y+",width="+x+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
    NewWindow.focus();
    NewWindow.document.write ("<html><head><title>Bild");
    NewWindow.document.write ("</title></head>");
    NewWindow.document.write ("<table align='center'><tr>");
    NewWindow.document.write ("<td align='center' valign='top'>");
    NewWindow.document.write ("<table border='5' bgcolor='#000000' cellpadding='0' cellspacing='1'><tr><td align='center'>");
    NewWindow.document.write ("<img src=");
    NewWindow.document.write (Quelle);
    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: helvetica,arial,sans-serif; font-size: 12px' onClick='self.close()'>");
    NewWindow.document.write ("</td></tr></table>");
    NewWindow.document.write ("</form></body></html>");
    NewWindow.document.close();
    NewWindow.resizeTo(x,y);
    NewWindow.focus();
}


function GalerieFenster(Adresse){
    Parameter = Adresse + "&MonitorX="+screen.width+"&MonitorY="+screen.height;
    NewWindow=window.open(Parameter,"Galerie","width=300,height=300,left=100,top=100,status=no");
    NewWindow.focus();
}


function FensterAusmasse(Breite,Hoehe,xPos,yPos) {
    self.resizeTo(Breite,Hoehe);
    self.moveTo(xPos,yPos);
    self.focus();
    }

