var  flag=false;  
function  DrawImage1(ImgD){  
 var  image=new  Image();  
 image.src=ImgD.src;  
 if(image.width>0  &&  image.height>0){  
flag=true;  
if(image.width/image.height>=  124/93){  
 if(image.width>124){  
 ImgD.width=124;  
 ImgD.height=(image.height*124)/image.width;  
 }else{  
 ImgD.width=image.width;  
 ImgD.height=image.height;  
 }  
 ImgD.alt=image.width+"กม"+image.height +"px";  
 }  
else{  
 if(image.height>93){  
 ImgD.height=93;  
 ImgD.width=(image.width*93)/image.height; 
 }else{  
 ImgD.width=image.width;  
 ImgD.height=image.height;  
 }  
 ImgD.alt=image.width+"กม"+image.height+"px";  
 }  
}  
} 
