// JavaScript Document
function ContentSize(size)
{
document.getElementById('ContentSize').style.fontSize=size+'px'
}

//检查表单提交是否为正整数  
function  isUnsignedInteger(strInteger){  
    var  newPar= /^[0-9]+$/; 
    return  newPar.test(strInteger);  
}

// 图片缩放脚本
var flag=true; 
function DrawImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true; 
        if(image.width>=550){ 
            ImgD.width=550; 
            ImgD.height=(image.height*550)/image.width; 
        }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
        }  
    } 
} 

function cgimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}

//打开新窗口
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}