/* -----------------------------------------------------------------------------

	functions.JS
	Sämtliche notwendigen JS-Includes

	Autor:				UC
	Erstellungsdatum:	03.10.2007
	
						
----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
	Fenster oeffnen
----------------------------------------------------------------------------- */
var winOpen = 0; 

function zeigeBild(Bildname, breite, hoehe){
	if(winOpen == 1){
		bf.close();
		winOpen = 0;
	}
	links = (screen.width/2)-(breite/2);
	oben = (screen.height/2)-(hoehe/2);

	 var zusatz = 'width=' + breite + ',height=' + hoehe + 'top =' + oben + ',left = ' + links;
	 bf = window.open('','Vergroesserung',zusatz); 
	 bf.document.write('<html><head><title>' + klf_config.seite + '</title></head><body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
	 bf.document.write('<a href="##" onclick="self.close()"><img src="' + klf_config.bildpfad + Bildname + '" border="0" /></a>');   
	 bf.document.write("</body></html>");
	 bf.document.close();
	 winOpen = 1;
	 bf.focus();
}
