function ridimensiona(immagine){
	 	
	 widthNew = 200;
	 
	 img = new Image();
	 img.src = immagine.src;
	 width = img.width ;
	 height = img.height ;
	  
	 immagine.width = widthNew;	
	 rapporto= height*widthNew; 
	 heightNew = rapporto/width;  
		  
	 if (heightNew > 145){
		
		while (heightNew > 146){
			widthNew = widthNew - 1;	
			rapporto= height*widthNew; 
			heightNew = rapporto/width;   
		 }
		 
	 }
	  
	 immagine.height = heightNew;
	 immagine.width = widthNew;	
	 immagine.hspace = 5;
	 immagine.vspace = 5;
	 immagine.align = "left";
	 
	 
}

function ridimensionaNews(immagine){
	 	
	 widthNew = 100;
	 
	 img = new Image();
	 img.src = immagine.src;
	 width = img.width ;
	 height = img.height ;
	  
	 immagine.width = widthNew;	
	 rapporto= height*widthNew; 
	 heightNew = rapporto/width;  
		  
	 if (heightNew > 80){
		
		while (heightNew > 80){
			widthNew = widthNew - 1;	
			rapporto= height*widthNew; 
			heightNew = rapporto/width;   
		 }
		 
	 }
	  
	 immagine.height = heightNew;
	 immagine.width = widthNew;	
	 immagine.hspace = 5;
	 immagine.vspace = 5;
	 immagine.align = "left";
	 
	 
}				 							 				 							 
