function DisplayImage(picURL,picWidth,picHeight)
{
if (newWindow != null && !newWindow.closed)
{
newWindow.close();
}
if (picHeight > screen.availHeight)
{
var scroll = "yes";
var winHeight = screen.availHeight - 100;
}
else
{
var scroll = "no";
var winHeight = picHeight;
}
if (navigator.appName != "Microsoft Internet Explorer" && navigator.appName != "Netscape" && picHeight > screen.availHeight-100)
{
newWindow=window.open(picURL,'newWin')
}
else
{
newWindow=window.open(picURL,'newWin','toolbar=no,scrollbars='+scroll+',width='+picWidth+',height='+winHeight)
newWindow.document.write('<html><head><title>K&Ouml;LSCH-Katalog</title></head><body bgproperties=marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" rightmargin="0" onClick="window.close();">')
newWindow.document.write('<img border="0" src="'+picURL+'" width="'+picWidth+'" height="'+picHeight+'" title="Zum Schlie&szlig;en auf das Foto klicken"></body></html>')
newWindow.moveTo((screen.availWidth/2)-(newWindow.document.body.clientWidth/2),(screen.availHeight/2)-(newWindow.document.body.clientHeight/2))
newWindow.focus()
}
}

