function resizeImages()
     {
          if (document.images.length > 0)          // Bilder vorhanden, Größen werden angepasst
          {
		var maxWidth = 500;
               var imgHeight;
               var imgWidth;
               for (var loop = 0; loop < document.images.length; loop++)
               {
	
                         imgWidth = document.images[loop].width;
                         imgHeight = document.images[loop].height;
	
                         if (imgWidth > maxWidth )
                         {
                              document.images[loop].width = maxWidth ;
                              // Proportioniere die Höhe
                              imgHeight = imgHeight / (imgWidth/ maxWidth );
                              document.images[loop].height = imgHeight;
                         }
	
               }
          }
     }