popUp = null; 

function oeffneFile(dateiName) { 

params = "width=0,height=0,screenX=0,screenY=0,dependent=yes,hotkeys=no,locationbar=no,directories=no,scrollbars=no,toolbar=no,status=no,resizable=yes";
if (popUp && !popUp.closed) 
popUp.close(); 		
popUp = open(dateiname,"Bildfenster",params);

} 

function oeffneDatei(dateiName) { 

neuesBild = new Image(); 
neuesBild.src = dateiName; 
dateiVar = dateiName; 
aktiv = window.setInterval("istFertig(dateiVar)",100); 
} 

function istFertig(dateiName) { 

if (neuesBild.complete) { 
window.clearInterval(aktiv); 

breite = neuesBild.width; 
hoehe = neuesBild.height; 
hoehe += 20; 
if (popUp && !popUp.closed) 
popUp.close(); 
popUp=window.open(dateiName,"Bild","height="+hoehe+",width="+breite); 
} 
} 


function oeffneGrafik(bildname) { 

neuesBild = new Image(); 
neuesBild.src = bildname; 
dateiVar = bildname; 
aktiv = window.setInterval("istGeladen(dateiVar)",100); 
} 

function istGeladen(bildname) { 

if (neuesBild.complete) { 
window.clearInterval(aktiv); 

} 
} 



function anzeigen(bildname)
	{
	oeffneGrafik(bildname);
        params = "width=0,height=0,screenX=0,screenY=0,dependent=yes,hotkeys=no,locationbar=no,directories=no,scrollbars=no,toolbar=no,status=no,resizable=yes";
		if (popUp && !popUp.closed) 
			popUp.close(); 		
        popUp = open("leer.html","Bildfenster",params);
        popUp.document.writeln("<html><head>");
        popUp.document.writeln("<script language=\"JavaScript\">function Close(){self.close();}</script>");
        popUp.document.writeln("<link rel=stylesheet type=\"text/css\" href=\"./style.css\"><style type=\"text/css\"></style>");
        popUp.document.writeln("<title>Bildanzeige</title></head>");
        popUp.document.writeln("<BODY bgcolor=\"#ffffff\">");
        popUp.document.writeln("<center>");
        popUp.document.writeln("<a href=\"javascript:window.close()\"><img SRC=\"" + bildname + "\" name=\"bild\" border=\"0\"></a>");
        popUp.document.writeln("<br><a href=\"javascript:window.close()\" style=\"font-family:Verdana; font-size:8pt;color:aeaeae\">Zum Fenster schließen ins Bild klicken</a>");        

        popUp.document.writeln("<script language=\"JavaScript\">");        
        popUp.document.writeln("window.moveTo(50,50);");        
        popUp.document.writeln("h_mp = document.images[0].height + 90;");        
        popUp.document.writeln("w_mp = document.images[0].width + 30;");        
        popUp.document.writeln("window.resizeTo(w_mp,h_mp);");        
        popUp.document.writeln("</script>");        

        popUp.document.writeln("</center>");
        popUp.document.writeln("</BODY></html>");
		popUp.focus();
	}

function anzeigen2(bildname,weite,hoehe,alt)
	{
		var weite = weite + 30;
		var hoehe = hoehe + 90;
        params = "width="+weite+",height="+hoehe+",screenX=0,screenY=0,dependent=yes,hotkeys=no,locationbar=no,directories=no,scrollbars=no,toolbar=no,status=no,resizable=yes";
		if (popUp && !popUp.closed) 
			popUp.close(); 		
        popUp = open("leer.html","Bildfenster",params);
        popUp.document.writeln("<html><head>");
        popUp.document.writeln("<script language=\"JavaScript\">function Close(){self.close();}</script>");
        popUp.document.writeln("<link rel=stylesheet type=\"text/css\" href=\"./style.css\"><style type=\"text/css\"></style>");
        popUp.document.writeln("<title>Bildanzeige</title></head>");
        popUp.document.writeln("<BODY bgcolor=\"#3A4254\">");
        popUp.document.writeln("<center>");
        popUp.document.writeln("<a href=\"javascript:window.close()\"><img SRC=\"" + bildname + "\" name=\"bild\" border=\"0\" alt=\"" + alt + "\"></a>");
        popUp.document.writeln("<br><a href=\"javascript:window.close()\" style=\"font-family:Verdana; font-size:8pt;color:ffffff\">Zum Fenster schließen ins Bild klicken</a>");        
//        popUp.document.writeln("<script language=\"JavaScript\">");        
//        popUp.document.writeln("window.moveTo(50,50);");        
//        popUp.document.writeln("</script>");        

        popUp.document.writeln("</center>");
        popUp.document.writeln("</BODY></html>");
		popUp.focus();
	}


