function pics(picture) { 

pic = window.open("","pic","resizable=1"); 

with(pic.document) { 

write ("<html><head><title>" + picture + "</title>" 

+ "<scr"+"ipt language=\"JavaScript\" type=\"text/javascript\">\n" 
+ "<"+"!--\n" 
+ "function resi() {\n" 

+ "var img_hei = document.poppic.height;" 
+ "var img_wei = document.poppic.width;" 

+ "xsize = img_wei + 15;" 
+ "ysize = img_hei + 55;" 

+ "xpos = ( screen.width / 2 ) - ( xsize / 2 );" 

+ "resizeTo(xsize,ysize);" 
+ "moveTo(xpos,0);" 
+ "focus();" 

+ "\n}" 
+ "\n//--"+">" 
+ "\n</scr"+"ipt>" 

+ "</head><body onload=\"resi();\" bgcolor=\"#ffffff\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">" 

+ "<img name=\"poppic\" src=\"" + picture + "\" border=\"0\" alt=\"" + picture + "\">" 

+ "<table width=\"100%\"><form><tr align=\"center\">" 
+ "<td align=\"center\"><input type=\"button\" value=\"FENSTER SCHLIESSEN\" style=\"font-family: Verdana; font-size: 10px; background-color: blue; color: #ffffff;\" onClick=\"top.close();\"></td>" 
+ "</tr></form></table>" 

+ "</body></html>"); 

close(); 

} 

}
