        // autor: joerg schierig
        
        img_tmp = new Image();
        img_txt = '';
        var intval;
        
        function newImgWin(img, txt){
            img_tmp.src = img;
            img_txt     = txt;
            intval      = window.setInterval("popImgWin()",50);
        }
        
        function popImgWin(){
            if(img_tmp.complete == true){
                window.clearInterval(intval);
                html =  '<html>                                                                                                                     \n'+
                        '<head>                                                                                                                     \n'+
                        '   <title>Image View</title>                                                                                               \n'+
                        '</head>                                                                                                                    \n'+
                        '<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">                                                       \n'+
                        '<table cellpadding="5" cellspacing="0" border="0">                                                                         \n'+
                        '   <tr>                                                                                                                    \n'+
                        '       <td align="left" colspan="2"><img src="'+img_tmp.src+'" width="'+img_tmp.width+'" height="'+img_tmp.height+'"></td> \n'+
                        '   </tr>                                                                                                                   \n'+
                        '   <tr>                                                                                                                    \n'+
                        '       <td align="left"><font face="verdana" size="2" color="#666666" >'+img_txt+'</font></td>                             \n'+
                        '       <td align="right"><img src="../gfx/kreuzgrau3.gif" onclick="window.close()" alt="schließen"></td>                               \n'+
                        '   </tr>                                                                                                                   \n'+
                        '</table>                                                                                                                   \n'+
                        '</body>                                                                                                                    \n'+
                        '</html>                                                                                                                    \n';
                
                img_win = window.open('', 'image', 'width=10,height=10,left=100,top=100,resizable=no,scrollbars=no');
                img_win.focus();
                img_win.document.open();
                img_win.document.write(html);
                img_win.document.close();
                img_win.resizeTo(img_tmp.width+20, img_tmp.height+140);
            }           
        }