/**DoEvents(当前对象,对象ID前缀,控制的对象ID前缀,对象数量);
如：onmouseover=javascript:DoEvents(this,'nav','sub',2)**/ 
function DoEvents(obj,title,subtitle,n)
{
	var oTitle;
	var oTitleSub;
	for(var i=1;i<=n;i++)
	{
		oTitle = document.getElementById(title+i);
		oTitleSub = document.getElementById(subtitle+i);
		if(oTitle != obj)
		{
			oTitle.className="SY_Link_Active";
			oTitleSub.style.display = "none";
		}
		else
		{
			oTitle.className="SY_Link_Current";
			oTitleSub.style.display = "block";
	   }
	}
}

function DoEvents1(obj,title,subtitle,n)
{
	var oTitle;
	var oTitleSub;
	for(var i=1;i<=n;i++)
	{
		oTitle = document.getElementById(title+i);
		oTitleSub = document.getElementById(subtitle+i);
		if(oTitle != obj)
		{
			oTitle.className="SY_Link_Active1";
			oTitleSub.style.display = "none";
		}
		else
		{
			oTitle.className="SY_Link_Current1";
			oTitleSub.style.display = "block";
	   }
	}
}

function SubmitKeyClick(button)
{
	if(event.keyCode==13)
	{
		document.getElementById(button).click();
		return false;
	}
}
