function showSubWhenOnFocus(event, cate_id)
{
	if(event.keyCode == 9)
	{
		for(var c=0;c<rootMenuList.length;c++)
	 	{
			document.getElementById("s"+rootMenuList[c]).style.display = 'none';
	 	} 
		var target = document.getElementById(cate_id);
		if(target == null)
			return;
		
		target.style.display = '';
	}	
}
function goLogin(url, cate_id, position)
{
	var f = document.urlForm;
	f.action = url+"?cate_id="+cate_id;
	f.submit();
}

function goUrl(url, cate_id, position)
{
	var location = "";
	
	if(cate_id != null && cate_id != '')
		location = url+"?cate_id="+cate_id; 
	else
		location = url;
	document.location = location; 
}

function showSubMenu(cate_id)
{
	var target = document.getElementById(cate_id);
	if(target == null)
		return;
	if(target.style.display == 'none')
		target.style.display = '';
	else
		target.style.display = 'none'; 
}

function showWhenOnFocus(event, cate_id)
{
	if(event.keyCode == 9)
	{
		var target = document.getElementById(cate_id);
		if(target == null)
			return;
		
		target.style.display = '';
	}	
}
function showPop(url, cate_id)
{
	if(cate_id != null && cate_id != '')
		window.open(url+"?cate_id="+cate_id);
	else
		window.open(url);
}

