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

