// die gesammelten javascript-funktionen

// popup für bilder

function fotoup(imageName,imageWidth,imageHeight) {
	posLeft = (screen.width-imageWidth)/2;
	posTop = (screen.height-imageHeight)/2;
	newWindow = window.open("","fotoup","width="+imageWidth+",height="+imageHeight+",scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,left="+posLeft+",top="+posTop);
	newWindow.document.write('<html><title>Klick auf das Foto schließt das Fenster</title>');
	newWindow.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff"');
	newWindow.document.write('onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<img src="../jpg/'+imageName+'" width="'+imageWidth+'" height='+imageHeight+'"');
	newWindow.document.write('alt="Klick auf das Foto schließt das Fenster">'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	}

