var faux = null;
var pic = new Image(); 

function copyCat(pic,width_pic,height_pic) {
  faux = window.open('','newWin','menubar=no,locationbar=no,scrollbars=yes,resizable=yes,top=0,left=0,width=' + width_pic + ',height=' + height_pic + '');
  var fd = faux.document;
  fd.open();
  fd.write('<html><head><title>Max-Reger-Institut</title></head>');
  fd.write('<body style="padding:0; margin:0;background-color:#000;" onload="window.focus()" >');
  fd.write('<a style="color:#cc0000;" href="javascript:window.close()"><img style="border:none;" src="' + pic + '" alt="Close window" title="Close window" /></a>');
  fd.write('</body></html>');
  fd.close();
} 
