<!--  
function  DrawImage(ImgD, myWidth, myHeight){
     var image = new  Image();  
     image.src=ImgD.src;  
     if(image.width > 0 && image.height > 0){
	 
	  
      	 if(image.width/image.height >= myWidth/myHeight){  
			 if(image.width > myWidth) {      
			 ImgD.width=myWidth;  
			 ImgD.height=(image.height*myWidth)/image.width;  
			 } else {  
			 ImgD.width=image.width;      
			 ImgD.height=image.height;  
			 } 
         }       
	   
	   	else{  
         if(image.height>myHeight){      
			 ImgD.height=myHeight;  
			 ImgD.width=(image.width*myHeight)/image.height;            
         }else{  
			 ImgD.width=image.width;      
			 ImgD.height=image.height;  
         }  
       }   
     }  
} 
//--> 
