﻿// JavaScript Document

function L_CNB(NavObj,NavSrc)//ChangeNavBut(Img,src)
{
	NavObj.src=NavSrc;
}
function L_SM(tID,tValue,tLength)//ShowMenu (TableID,TableLength)
{
	for (i=1;i<=tLength;i++)
	{
		eval("document.getElementById(\""+tID+i+"\").style.display = \"none\"");
	}
	
	if (tValue > 0 ) eval("document.getElementById(\""+tID+tValue+"\").style.display = \"\"");
}
function L_CheckSearch(sObj)
{
	if (sObj.S_Key != null)
	{
		if (sObj.S_Key.value == "")
		{
			alert("请输入搜索关键字！");
			sObj.S_Key.focus();
			return false;
		}
		else
		{
			return true;
		}
	}
}
function L_FontZoom(cObj,Level)
{
	var obj  = document.getElementById(cObj);
	
	if(Level == 1)obj.className = "P_Content_Small";
	if(Level == 2)obj.className = "P_Content_Middling";
	if(Level == 3)obj.className = "P_Content_Big";
}
function ShowDate()
	{
		var ObjDate = new Date();
		ody = ObjDate.getYear();
		odm = ObjDate.getMonth();
		odd = ObjDate.getDate();
		
		document.writeln("<div style=\"width:90px;\" class = \"Text_White\">"+ody+"年"+(odm+1)+"月"+odd+"日</div>");
	}