var openBildWindow = null;

function doOpenBildWindow(url,features,subscript)
{
  if (openBildWindow && !openBildWindow.closed)
  {
    openBildWindow.close();
  }
  // Die Position des Fensters wird über die Auflösung 
  // des Bildschirm ermittelt - daraus berechnet sich dann
  // die XY-Position der linken oberen Ecke.
  properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,";
  openBildWindow = window.open('','openBildWindow',features,properties);
  openBildWindow.document.open();
  openBildWindow.document.write('<HTML><HEAD><TITLE>'+subscript+'</TITLE></HEAD><BODY TOPMARGIN="0">');
  openBildWindow.document.write('<CENTER><A HREF="JavaScript:self.close()"><IMG SRC="'+url+'" HSPACE="0" VSPACE="0" BORDER="0"></A>');
  openBildWindow.document.write('<br><center><font face="Arial, Helvetica, sans-serif" size="2"><b>Zum Schließen Bild anklicken!</b></font>');
  openBildWindow.document.write('<img src="'+url+'" width=1 height=1></CENTER>');
  openBildWindow.document.write('</BODY></HTML>');
  openBildWindow.document.close()
  openBildWindow.focus();
}
