<!-- Beginning of JavaScript -
function fucCheckNUM(NUM){
	//函数名：fucCheckNUM
	//功能介绍：检查是否为数字
	//参数说明：要检查的数字
	//返回值：1为是数字，0为不是数字
	var i,j,strTemp;
	strTemp="0123456789";
	if ( NUM.length== 0)
		return 0
	for (i=0;i<NUM.length;i++){
		j=strTemp.indexOf(NUM.charAt(i));	
		if (j==-1){
			//说明有字符不是数字
			return 0;
		}
	}
	//说明是数字
	return 1;
}

function winopen(url,w,h,style){
	//智能打开窗口
	//style要以逗号结尾scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,
	//w,h为0时为全屏
	varputItThere = null; 
	var chasm = screen.availWidth;
	var mount = screen.availHeight;
	if (w==0&&h==0){
		w= screen.availWidth-10;
		h= screen.availHeight-30;
		
	}
	putItThere = window.open(url,'_blank',style+'width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
	putItThere.focus();
}


function submitonce(theform){
		//让表单只提交一次，禁提交按扭
	if (document.all||document.getElementById)
	{
		for (i=0;i<theform.length;i++)
		{
			var tempobj=theform.elements[i];
			if (tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true;
		}
	}
}
	
function bbimg(o){
	//滚轮缩放图片
	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}
// - End of JavaScript - -->
