<!--
  
function popupWindow(iTitle,
                     iNameOfPicture,
                     iWidth,
                     iHeight, mode) {

 var popupTopPosition = 0;   // Popup Top Position
 var popupLeftPosition= 0;   // Popup Left Position
 var screenWidth = screen.width;   // Screen Width
 var screenHeight = screen.height;  // Screen Height

 // 1.33_ is a typical screen ratio (width divided by the height)
 // But we'll use 1.4 just to be safe
 if (screenWidth / screenHeight > 1.4) {
     popupLeftPosition = 5;
     popupTopPosition = 5;
     } else {
     popupLeftPosition = 5;
     popupTopPosition = 5;
     }

 var vWindowWidth  = iWidth + 5;
 var vWindowHeight = iHeight + 5;
 var strName = 'secondWindow';
 var strOptions = 'scrollbars=0, resizable=0, menubar=0, toolbar=0, status=0, location=0, directories=0';
 
 secondWindow = window.open('', strName, 'width=' + vWindowWidth + ',height=' + vWindowHeight + ',left=' + popupLeftPosition + ',top=' + popupTopPosition + ',' + strOptions);
 //secondWindow = window.open('', strName, 'width=' + vWindowWidth + ',height=' + vWindowHeight + ',' + strOptions);
 
 
 for (var i=1; i<=1000; i++) {}

   secondWindow.document.open();

   secondWindow.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"');
   secondWindow.document.writeln('     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
   secondWindow.document.writeln('<?xml version="1.0" encoding="iso-8859-1" ?>');

   secondWindow.document.writeln('<' + 'html>');
   secondWindow.document.writeln('<' + 'head>');

   secondWindow.document.writeln('<t' + 'itle>' + iTitle + '<\/title>');
   secondWindow.document.writeln('<l' + 'ink rel="stylesheet" href="../css/all.css" type="text/css"/>');
   secondWindow.document.writeln('<\/head>');

   secondWindow.document.writeln('<b' + 'ody style="text-align: center;font-size: 10px;background-color:#fffdd6;">');

   if (mode==1)
   {
     secondWindow.document.writeln('<b' + 'r>');
     secondWindow.document.writeln('<b' + 'r>');
     secondWindow.document.writeln('<b' + 'r>');
     secondWindow.document.writeln('<b' + 'r>');
   }
   if (mode==2)
   {
     secondWindow.document.writeln('<b' + 'r>');
   }
   secondWindow.document.writeln('<t' + 'able border="0">');
   secondWindow.document.writeln('<' + 'tr style="text-align: center;">');
   secondWindow.document.writeln('<' + 'td>');
   secondWindow.document.writeln('<' + 'img class="photo" src="' + iNameOfPicture + '" alt="' + iTitle + '"\/>');
   if (mode!=0)
     secondWindow.document.writeln('<' + 'br \/>');
   
   secondWindow.document.writeln('<' + 'div style="text-align: center;">');
   secondWindow.document.writeln( '<a id=\"r\"  href=\"JavaScript:self.close()\">schliessen<\/a>' );
   secondWindow.document.writeln('<\/div>');

   secondWindow.document.writeln('<\/td>');
   secondWindow.document.writeln('<\/tr>');
   secondWindow.document.writeln('<\/table>');

   secondWindow.document.writeln('<\/b' + 'ody>');
   secondWindow.document.writeln('<\/html>');

   secondWindow.document.close();

   if (secondWindow.focus) {
    secondWindow.focus();
   }



   return;

}

// -->
