function checknum(thisform,newvalue){
	var checknum=thisform.value;
	if (checknum<=newvalue){
		if(isNaN(checknum)&&checknum!=""){
			thisform.focus();
			thisform.select();
			alert("请输入一个整数数字!");
			return false;
		}
		else{
			
				if (checknum.indexOf('.')>0)
					{
				alert("不能输入小数，请输入整数!");
				thisform.focus();
				thisform.select();
				return false;
				
					}
				else
					{
					if (checknum<=0){
						alert("请输入大于0的整数数字!");
						thisform.focus();
						thisform.select();
						return false;
					}
					else
					{
						return true;
					}
				}
	
		}
	}
	else
	{
		alert("对不起,你输入的数值过大");
		return false;
	}
}

function SelectDate(fedName){ 
	var ReturnValue = window.showModalDialog("../inc/date.htm","","dialogWidth=220px;dialogHeight=262px;status=0;help=no");
	
	if (ReturnValue!=null && ReturnValue!=" " ) fedName.value = ReturnValue ;
	
	
}

function returnvalue(fedName,url,thiswidth,thisheight){ 
	var ReturnValue = window.showModalDialog(url,"newwindow","dialogWidth="+thiswidth+"px;dialogHeight="+thisheight+"px;status=0;help=no");
	
	if (ReturnValue!=null && ReturnValue!=" " ) fedName.value = ReturnValue ;
	
	
}


function openwindow(url,thiswidth,thisheight){
	window.open(url,"newwindow","width="+thiswidth+",height="+thisheight+",left="+(screen.width/2-thiswidth/2)+",top=0,toolbar=no,location=no,resizable=no,scrollbars=yes,menubar=no");
}

function godelete(url,thisvalue){
	if (confirm("您确定进行删除操作吗？")){location.href=url+"?gosubmit=del&"+thisvalue;}
}
