window.status='技术支持：创域科技';
function MM_goToURL() {
var I, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (I=0; I<(args.length-1); I+=2) eval(args[I]+".location='"+args[I+1]+"'");
}

function resizeImg(img,cw,ch){
	var image=new Image();
	image.src=img.src;
	var W=image.width;
	var H=image.height;
	if(W>H&&W>cw&&H*(cw/W)<=ch){
	   img.width=cw;
	   img.height=H*(cw/W);
	}else if((W>H&&W>cw&&H*(cw/W)>ch)||(W>H&&W<cw&&H>ch)){
		img.width=W*(ch/H);
	    img.height=ch;
		if(img.width>cw){
			img.width=cw;
	        img.height=H*(cw/W);
			}
		}else if(W<=H && H>ch && W*(ch/H)<=cw){
			img.width=W*(ch/H);
			img.height=ch;
			if(img.width>cw){
			   img.width=cw;
	           img.height=H*(cw/W);
			  }
			}else if((W<=H && H>ch && W*(ch/H)>cw) || (W<=H && H<=ch && W>cw)){
				img.width=cw;
	            img.height=H*(cw/W);
				if(img.height>ch){
					img.width=W*(ch/H);
			        img.height=ch;
					}
				}else{
					img.width=W;
			        img.height=H;
					}
	delete image;
	}
