var flag=false; 
function DrawImage2(ImgD)
{
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0)
   {
    if(image.width/image.height>= 110/100)
	  { 
          ImgD.width=110; 
          ImgD.height=(image.height*110)/image.width;
       } 
    else
	  { 
          ImgD.height=100; 
          ImgD.width=(image.width*100)/image.height;
       }
    }
}
