function Foto(img){ 
            foto1= new Image(); 
            foto1.src=(img); 
            Berechne(img); 
          } 
          function Berechne(img){ 
            if((foto1.width!=0)&&(foto1.height!=0)){ 
              viewFoto(img); 
            } 
            else{ 
              mach="Berechne('"+img+"')"; 
              intervallo=setTimeout(mach,20); 
            } 
          } 
          function viewFoto(img){ 
            largh=foto1.width-5; 
			neufensterwidth=foto1.width+20;
			
            altez=foto1.height-5; 
			neufensterheight=foto1.height+15;
			
            stringa='width='+neufensterwidth+',height='+neufensterheight+',resizable=yes,scrollbars=yes,left=10,top=10,ScreenX=10,ScreenY=10'; 
			var setfocus ="<script>window.focus();</script>";
			
            neufenster=window.open("","r");
			neufenster.blur();
			neufenster.close();
			neufenster=window.open("","r",stringa);	
			neufenster.focus();
			with (neufenster) 
		   {
		      document.writeln('<HTML><HEAD><TITLE>Kunstantiquariat Beisler in Weilheim</TITLE></HEAD><BODY bgcolor="#ffcc00" text="#444444" link="#8b0000" topmargin="5" leftmargin="0" marginheight="0">');
			  document.writeln(setfocus);		      
			  document.writeln('<DIV ALIGN=CENTER>');
			  document.writeln('<TABLE BORDER=0  CELLSPACING=0 CELLPADDING=0 VALIGN="top" topmargin="0" marginheight="0">');
			  document.writeln('<TR><TD align="center"><a href="javascript:window.close()"><IMG SRC="'+img+'" WIDTH='+largh+' HEIGHT='+altez+' BORDER=0 ALT="Kunstantiquariat Beisler in Weilheim" norepeat hspace="2" vspace="2"></a>');
      		  document.writeln('</TD></TR></TABLE></DIV></BODY></HEAD>');
		   }		   
          }  