
function showProductImage(imgname, w, h) {

   var screenw = screen.availWidth;
   var screenh = screen.availHeight;
   var winw = 40 + w; if (w == 0) winw = 640;
   var winh = 30 + h; if (h == 0) winh = 480;
   var posx = (screenw / 2) - (winw / 2);
   var posy = (screenh / 2) - (winh / 2);

   var mywin = window.open('', "productwin", "top="+posy+",left="+posx+",width="+winw+",height="+winh+",menubar=no,locationbar=no,statusbar=no,resizable=no,toolbar=no,dependent=yes,scrollbars=no");

   mywin.document.open();
   mywin.document.writeln('<html><title>Gro&szlig;ansicht</title><body style="margin:0px;padding:0px;">');
   mywin.document.writeln('<div align="center">');
   mywin.document.writeln('<table border="0" height="99%"><tr><td valign="middle">');

   mywin.document.write('<img src="'+ imgname +'"');
   if (w > 0) mywin.document.write(' width="'+ w +'"');
   if (h > 0) mywin.document.write(' height="'+ h +'"');
   mywin.document.writeln(' alt="" border="0">');

   mywin.document.writeln('</td></tr></table>');
   mywin.document.writeln('</div></body></html>');
   mywin.document.close();
} 


