function popupImage(url, title, w, h){
 var property, screenW, screenY, janela, w, h, title;

 // stellt die Bildschirmabmessungen fest
 // find window size
 var ns6 = (!document.all && document.getElementById);
 var ie4 = (document.all);
 var ns4 = (document.layers);

 if(ns6||ns4) {
 screenW = innerWidth;
 screenY = innerHeight;
 }
 else if(ie4) {
 screenW = document.body.clientWidth;
 screenY = document.body.clientHeight;
 }

 x = (screenW-w)/2;
 y = (screenY-h)/2;

 property="scrollbars=no,left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+w+",height="+h+",menubar=no,toolbar=no";

 if(janela != undefined) janela.close();
 else var janela = null;

 janela = window.open("","",property);
 janela.focus();
 janela.document.open();
 with (janela) {
 document.write("<html><head>");
 // geändert 2004 für Mozilla
 document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
 // bei click schliessen , on click close
 document.write("function click() { window.close(); } ");
 document.write("document.onblur=click ");
 // geändert 2004 für Mozilla
 document.write('</scr' + 'ipt>');
// document.write('<link href="../css/global.css" rel="stylesheet" type="text/css" />');
 document.write("<title>"+title+"</title></head>");
 // bei Focusverlust schliessen, close if window looses focus
 // Zeile geändert Aug 2003 (Dreamweaver machte Probleme)
 document.write("<" + "body onblur='window.close()';");
 document.write("marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'");
 document.write("<center>");
 document.write("<img src='"+ url +"' border='0'>");
 document.write("<center>");
 document.write("</body></html>");
 document.close();
 }
}
