// JavaScript Document
function ShowTab(p_tab_index)
{
	if (current_tab!=p_tab_index)
	{
		var tab_obj = document.getElementById("tab"+p_tab_index);
		var tab_content_obj = document.getElementById("tab_content_"+p_tab_index);		
		//hide the old tab
		HideTab(current_tab);
		//show tab
		tab_obj.className = "currentTab";
		tab_content_obj.className = "ActiveTab";
		current_tab = p_tab_index;
	}
}

function HideTab(p_tab_index)
{
	var tab_obj = document.getElementById("tab"+p_tab_index);
	var tab_content_obj = document.getElementById("tab_content_"+p_tab_index);
	tab_obj.className = "normalTab";
	tab_content_obj.className = "InactiveTab";
}
