// JScript 文件

	function CheckAll(form)  {
	for (var i=0;i<form.elements.length;i++)    {
		var e = form.elements[i];
		if (e.name != 'chkall')       e.checked = form.chkall.checked; 
	}
	}
	function isdel()
	{
	var ok=confirm("确定删除吗?删除后数据不能恢复!请小心删除!")
	if(!ok)return false
	else return true;
	}
	function isExc()
	{
	var ok=confirm("确定执行操作吗?!")
	if(!ok)return false
	else return true;

	}

	function displayMenu(targetOpen)
	{
		if(document.getElementById(targetOpen))
		{ 
			targetCO = document.getElementById("gongsi");
			targetC1 = document.getElementById("huiji"); 
			targetC2= document.getElementById("catch");
			targetC3= document.getElementById("common");

			if ("gongsi" == targetOpen)
			{ 				
 				targetCO.style.display = "";
				targetC1.style.display = "none";
				targetC2.style.display = "none";
				targetC3.style.display = "none";
			}
			else if("huiji" == targetOpen) 
			{ 
				targetCO.style.display = "none";
				targetC1.style.display = "";
				targetC2.style.display = "none";
				targetC3.style.display = "none";
			}
			else if("catch" == targetOpen)
			{ 
				targetCO.style.display = "none";
				targetC1.style.display = "none";
				targetC2.style.display = "";
				targetC3.style.display = "none";
			}
			else
			{
				targetCO.style.display = "none";
				targetC1.style.display = "none";
				targetC2.style.display = "none";
				targetC3.style.display = "";
			
			}
		}
	}
	
    function displayList(targetOpen)
	{
		if(document.getElementById(targetOpen))
		{ 
			targetCO = document.getElementById("areaList");
			targetC1 = document.getElementById("priceList"); 
			targetC2= document.getElementById("numList");

			if ("areaList" == targetOpen)
			{ 				
 				targetCO.style.display = "";
				targetC1.style.display = "none";
				targetC2.style.display = "none";
			}
			else if("priceList" == targetOpen) 
			{ 
				targetCO.style.display = "none";
				targetC1.style.display = "";
				targetC2.style.display = "none";
			}
			else if("numList" == targetOpen)
			{ 
				targetCO.style.display = "none";
				targetC1.style.display = "none";
				targetC2.style.display = "";
			}
			else
			{
				targetCO.style.display = "";
				targetC1.style.display = "none";
				targetC2.style.display = "none";
		    }
		}
	}
	
	
	    function displayTable(targetOpen)
	    {
		    if(document.getElementById(targetOpen))
		    { 
			    targetCO = document.getElementById("maiTable");
			    targetC1 = document.getElementById("shouTable"); 
    			
			    if ("maiTable" == targetOpen)
			    { 				
 				    targetCO.style.display = "";
				    targetC1.style.display = "none";
			    }
			    else
			    { 
				    targetCO.style.display = "none";
				    targetC1.style.display = "";
			    }
		    }
	}