//改变图片大小
function resize(thispic,types,maxvalue)
{ 
	if(types=="w"){
		if(thispic.width>=parseInt(maxvalue)) thispic.width=parseInt(maxvalue); 
	}else{
		if(thispic.height>=parseInt(maxvalue)) thispic.height=parseInt(maxvalue); 
	}
}
//无级缩放图片大小
function bbimg(o)
{
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom+=event.wheelDelta/12;
	if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}
//调用方法：onload=""javascript:resize(this,'w',150)""


