<!--
//控制图片大小成比例缩放vpro
var flag=false;
function DrawImage2(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width>400){ 
ImgD.width=400;
}
}
}

//控制图片大小成比例缩放DrawImage_idx
var flag=false;
function DrawImage_idx(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
	if(image.width/image.height>= 300/180){
		if(image.width>300){ 
		ImgD.width=300;
		ImgD.height=(image.height*300)/image.width;
		}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
	}
	else{
		if(image.height>180){ 
		ImgD.height=180;
		ImgD.width=(image.width*180)/image.height; 
		}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
	}
}
} 
//控制图片大小成比例缩放pro
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>= 127/100){
		if(image.width>127){ 
		ImgD.width=127;
		ImgD.height=(image.height*127)/image.width;
		}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
	}
	else{
		if(image.height>100){ 
		ImgD.height=100;
		ImgD.width=(image.width*100)/image.height; 
		}else{
		ImgD.width=image.width; 
		ImgD.height=image.height;
		}
	}
}
} 
//控制图片大小成比例缩放vpro
var flag=false;
function DrawImage_list(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.height>200){ 
ImgD.height=200;
}
}
}
//-->
