function bbimg(o)
{
	if(event.ctrlKey)
	{
		var zoom = parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0)
		o.style.zoom=zoom+'%';
		return false;
	}
	else
	{
		return true;
	}
}

String.prototype.trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g, "");
}

   function resizeimg(ImgD) {
     var iwidth=480;
     var iheight=272;
     var image=new Image();
     image.src=ImgD.src;
     if(image.width>0 && image.height>0){
        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;
                }
               
        }
        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.style.cursor= "pointer"; 
　　　　　ImgD.alt='图片可能被缩放,点击看完整大图';
　　　　　ImgD.onclick = function() { window.open(this.src);} //点击打开大图片
    }
}