   function popupDrawingA4q(filePath)
/* 
   25-oct-2007 / Karel Altmann 
   show A4-drawing in a popup window 
   pdf-file in landscape format
   01-nov-2009 / code review
*/ 
   {
   var Popup;                  // extract file title from path
   var file = new Image;
   file.src = filePath;
   fileTitl = "";
   for (var i=file.src.length ; i>=0 ; i--)
   {
       if (file.src.substring(i-1,i) == "/")
       {
          fileTitl = file.src.slice(i,file.src.length);
          break;
       }
   }
   fileTitl = fileTitl.replace(/.pdf/g,"");
   filePath = filePath + "#scrollbar=0&toolbar=0&statusbar=0"
   Popup = window.open('',fileTitl,"width=640,height=500,scrollbars=no,resizable=yes");
   Prog = Popup.document
   fileTitl = fileTitl.replace(/_/g," ");
   var Input  = '<HTML><HEAD><TITLE>' + fileTitl + '</TITLE></HEAD>        \n'
       Input += '<BODY>                                                    \n'
       Input += '<IFRAME SRC=' + filePath + ' NAME="inhalt"                \n'
       Input += ' FRAMEBORDER=0 HEIGHT=92% WIDTH=100% MARGINWIDTH=0>       \n'
       Input += '</IFRAME>                                                 \n'
       Input += '<FORM>                                                    \n'
       Input += '<H4 ALIGN=center><INPUT TYPE="button"                     \n'
       Input += ' VALUE="                   Schliessen                   " \n'
       Input += ' onClick="parent.window.close()"></H4>                    \n'
       Input += '</FORM>                                                   \n'
       Input += '</BODY>                                                   \n'
       Input += '</HTML>'
   Prog.open();
   Prog.clear();
   Prog.write(Input);
   Prog.close();
   Popup.focus();
   }
