<!--
var flag=false;
function DrawImage(ImgD,dx){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 1){
if(image.width>dx){ 
ImgD.width=dx;
ImgD.height=(image.height*dx)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>dx){ 
ImgD.height=dx;
ImgD.width=(image.width*dx)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
if(dx>250 && image.width>dx){ 
ImgD.style.cursor="hand",ImgD.alt="点击查看原图！",ImgD.onclick=function(){window.open(ImgD.src)}
}
}
function ReImgSize(str,dx){
 var image=new Image();
 image.src=str.src;
 if(image.width>dx){str.width=dx;str.style.cursor="hand",str.alt="点击查看原图！",str.onclick=function(){window.open(str.src)}}
}
//-->