<!-- 
var flag=false; 
function DrawImage(ImgD,pw,ph){ 
var image=new Image(); 
image.src=ImgD.src; 
if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= pw/ph){ 
   if(image.width>pw){
    ImgD.width=pw; 
    ImgD.height=(image.height*ph)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   /*ImgD.alt="bigpic"  */
  } 
  else{ 
   if(image.height>ph){
    ImgD.height=ph; 
    ImgD.width=(image.width*ph)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    /*ImgD.alt="bigpic"  */ 
  } 
}
}

//--> 

