  function open_window(file,resize)
  {
   l=(screen.width-600)/2;
   t=(screen.height-480)/2;
   //atrib='left=' + l + ',top=' + t + ',width=600,height=480,menubar=no,scrollbars=yes,resizable=' + resize;
   atrib='left=' + l + ',top=' + t + ',width=600,height=480,menubar=no,scrollbars=yes,resizable=' + resize;
   window.open(file,'',atrib);
  }

  function open_img(file,width,height)
  {
   l=(screen.width-width)/2;
   t=(screen.height-height)/2;
   atrib='left=' + l + ',top=' + t + ',width=' + width + ',height=' + height + ',menubar=no,resizable=no';
   window.open(file,'',atrib);
  }


  function printable_window(file,resize)
  {
   l=(screen.width-600)/2;
   t=(screen.height-480)/2;
   atrib='left=' + l + ',top=' + t + ',width=600,height=480,menubar=no,scrollbars=yes,resizable=' + resize;
   window.open(file,'',atrib);
  }

 function printpage()
 {
     var bw
     bw = ''

     if (navigator.appName=='Microsoft Internet Explorer'){
     bw = 'ie'
      }

   if (bw=='ie')
    {
      document.all['divPrint'].style.display='none'
      window.print()
      document.all['divPrint'].style.display='block'
     }
   else
     {
       document.frmPrint.prok.value='1'
       document.frmPrint.submit()
     }
 }
