
function openPic(imageName,imageWidth,imageHeight) {
		

		l	= (screen.availWidth/2)-(imageWidth/2);
		t	= (screen.availHeight/2)-(imageHeight/2);



        newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+l+",top="+t+"");
        newWindow.document.open();
        newWindow.document.write('<html><title>Vollbild</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
        newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"schliessen\" onClick=\"javascript:self.close()\">');
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}





<!--<script language="JavaScript">//-->
function openNewWindow(URLtoOpen, windowName, windowFeatures) { NewWindow=window.open(URLtoOpen, windowName, windowFeatures);}
