<!-- 
var flag=false;
var oawidth=127;
var oaheight=140;

function DrawImage(ImgD){ 
	var image=new Image(); 
	image.src=ImgD.src; 
	if(image.width>0 && image.height>0){
		//
		if(image.width>=oawidth && image.height>=oaheight){
			var widthb;
			var heightb;
			widthb=image.width/oawidth;
			heightb=image.height/oaheight;
			
			if(widthb>=heightb){
				ImgD.width=oawidth;
				ImgD.height=(image.height*oawidth)/image.width; 
			}else{
				ImgD.height=oaheight;
				ImgD.width=(image.width*oaheight)/image.height; 
			}
		}
		//
		if(image.width>oawidth && image.height<oaheight){
			ImgD.width=oawidth;
			ImgD.height=(image.height*oawidth)/image.width; 
		}
		//
		if(image.width<oawidth && image.height>oaheight){
			ImgD.height=oaheight;
			ImgD.width=(image.width*oaheight)/image.height; 
		}
		//
		if(image.width<oawidth && image.height<oaheight){
			ImgD.width=image.width;
			ImgD.height=image.height;
		}
	}
}
-->


