<!--
function showimg(ImgD){
	
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>100){ 
ImgD.width=100;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>100){ 
ImgD.height=100;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
ImgD.style.display="";
}
//-----------------------------------------------------------------------------------



function bigimg(ImgD){
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>270){ 
ImgD.width=270;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
else{
if(image.height>270){ 
ImgD.height=270;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
ImgD.style.display="";

}
//-----------------------------------------------------------------------

function fixpic2(Obj)
{var thisvalue=0;
//argument[0]-Obj,[1]-width,[2]-height;
var Objwidth=Objheight=142;
var ObjOrgwidth=Obj.width,ObjOrgheight=Obj.height;
if(arguments.length>1){Objwidth=arguments[1];}
if(arguments.length>2){Objheight=arguments[2];}
var wscale=ObjOrgwidth/Objwidth;
var hscale=ObjOrgheight/Objheight;
	if(wscale>1){
		if(wscale>hscale){Obj.style.width=Objwidth.toString()+'px';Obj.style.height=parseInt(ObjOrgheight/wscale).toString()+'px';}
		else{Obj.style.height=Objheight.toString()+'px';Obj.style.width=parseInt(ObjOrgwidth/hscale).toString()+'px';}
	}
	else{
		if(hscale>1){
			if(hscale>wscale){Obj.style.height=Objheight.toString()+'px';Obj.style.width=parseInt(ObjOrgwidth/hscale).toString()+'px';}
			else{Obj.style.width=Objwidth.toString()+'px';Obj.style.height=parseInt(ObjOrgheight/wscale).toString()+'px';}
		}
	}
}

var flag=false;
function fixpic(ImgD){
//参数(图片,允许的宽度,允许的高度)
var image=new Image();
image.src=ImgD.src;
var iwidth=iheight=90;
if(arguments.length>1){iwidth=strtonum(arguments[1]);}
if(arguments.length>2){iheight=strtonum(arguments[2]);}
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){ 
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){ 
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
}
}

//-->