function popUpImg(img, title, c, width, height, spacer) { 
   myImg = new Image(); 
   myImg.src = img; 
   xwidth = width; 
   xheight = height; 
   titel=title;
   ersteller=c;

var x,y,sbreite,shoehe;
sbreite = screen.width;
shoehe = screen.height;

x = (sbreite-xwidth)/2;
y = (shoehe-xheight)/2;


   imgWin = window.open('', 'Foto', 'width=' + xwidth + ', height=' + xheight + ',left=' + x + ', top=' + y + ', screenX=' + x + ', screenY=' + y +' titlebar=yes'); 
  
   with (imgWin.document) { 
      open(); 
      write('<HTML>'); 
      write(' <HEAD>'); 
      write(' <title>' + titel + ' / Foto: ' + ersteller +'</title>'); 
      write(' </HEAD>'); 
      write(' <BODY style="margin: 0px;" onLoad="self.focus();"><TABLE BACKGROUND="' + img + '" width="' + xwidth + '" height="' + xheight + '"'); 
      write(' <a href="" onClick="JavaScript:self.close()">') ;
      write('<tr><td> <img src="' + spacer + '" alt="popUpImage" title="' + titel + ' / Foto: ' + ersteller +'" width="' + xwidth  +'" height="' + xheight + '" border="0"></a></td></tr></table>'); 
      write(' </BODY>'); 
      write('</HTML>'); 
      close(); 
   } 
} 
