<!--

var flag=false;
function DrawImage(ImgD,ShwoW,ShowH){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
	if (image.width>image.height){
		
    //if(image.width/image.height>= ShwoW/ShowH){
     if(image.width>ShwoW){  
     ImgD.width=ShwoW;
     ImgD.height=(image.height*ShwoW)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
	 //ImgD.alt = image.width+"x"+image.height;
     }
    else{
     if(image.height>ShowH){  
     ImgD.height=ShowH;
     ImgD.width=(image.width*ShowH)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
	 //ImgD.alt = image.width+"x"+image.height;
     }
    }
}
//-->