
	//Target设置
	function target_top()
	{
		if (self != top) top.location.href = window.location.href
	}

	//Select All设置
	function  SA()
	{
		var i;
		for(i=0;i<document.all.id.length;i++)
		{
			if (document.all.id[i].value != 0)
			{
				document.all.id[i].checked = document.all.Select.checked
			}
		}
	}
	function  SA1()
	{
		var i;
		for(i=0;i<document.all.id1.length;i++)
		{
			if (document.all.id1[i].value != 0)
			{
				document.all.id1[i].checked = document.all.Select1.checked
			}
		}
	}
	//菜单函数
	function turnit(cc,ii) 
	{
		cccc = document.all.CCount.value;
		var ccc;
		for (i=1; i<= cccc; i++)
		{
			ccc="Content"+i;
			if(cc!=eval(ccc))
			{
				eval(ccc).style.display="none";
			}
		 } 
  
		if (cc.style.display=="none")
		{
			cc.style.display="";
		} 
		else 
		{
			cc.style.display="none"; 
		}
	}

	//“,”“|”两个系统字符的输入控制
	function checkValid0()
	{
		if (event.keyCode == 44 || event.keyCode == 124) {
			event.returnValue = false;
		}
		else {
			event.returnValue = true;
		}
	}
	
	//数字输入控制
	function checkValid1()
	{
		if (event.keyCode >= 48 && event.keyCode <= 57) {
			event.returnValue = true;
		}
		else {
			event.returnValue = false;
		}
	}
	
	//随机函数的生成
	function RandomCode(num)
	{
		var listChar="0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z";
		var arrayChar=listChar.split(',');
		listChar="";
		for(var i=0;i<num;i+=1)
		{
			var mr=Math.random();
			mr=Math.round(36*mr);
			listChar=listChar+arrayChar[mr];
		}
		return listChar;
	}

	//随机函数的生成
	function RandomNum(num)
	{
		var listChar="0,1,2,3,4,5,6,7,8,9";
		var arrayChar=listChar.split(',');
		listChar="";
		for(var i=0;i<num;i+=1)
		{
			var mr=Math.random();
			mr=Math.round(9*mr);
			listChar=listChar+arrayChar[mr];
		}
		return listChar;
	}
	
	//显示隐藏层
	function divshow(obj)
	{
		document.getElementById(obj).style.display="";
	}
	function divhide(obj)
	{
		document.getElementById(obj).style.display="none";
	}
	
	function Stat_check()
	{
		divshow('divstat');
		var submit1 = document.all.ddlreport.value.toLowerCase();
	
		if (submit1.length<=0)
		{
			window.alert("请先选择报表统计类型");
			return false;
		}
		return true;
	}
	function Report_check()
	{
		var submit1 = document.all.ddlreport.value.toLowerCase();
	
		if (submit1.length<=0)
		{
			window.alert("请先选择报表统计类型");
			return false;
		}
		return true;
	}