<!--
var flag=false;
function DrawImg(ImgD,iWidth,iHeight)
{
  var image=new Image();
  image.src=ImgD.src;
  if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>=iWidth/iHeight){
      if(image.width>iWidth){ 
        ImgD.width=iWidth;
        ImgD.height=(image.height*iWidth)/image.width;
      }else{
        ImgD.width=image.width; 
        ImgD.height=image.height;
      }
    }else{
      if(image.height>iHeight){ 
        ImgD.height=iHeight;
        ImgD.width=(image.width*iHeight)/image.height; 
      }else{
        ImgD.width=image.width; 
        ImgD.height=image.height;
      }
    }
  }
}
-->
