var selectedTabId = null;
function setActiveTab(sTabID)
{
	/** A DOM ref to the tab content block element. */
	var oTabContent = document.getElementById("tabContent");
	/** A DOM ref to the tab's assocated content. */
	var oNewContent = document.getElementById(sTabID+"_content");
	var nTab = document.getElementById(sTabID);
	if (nTab)
	{
		if (document.getElementById(selectedTabId))
		{
			/** A DOM ref to the active tab. */
			var oTab = document.getElementById(selectedTabId);
			oTab.className = "";
			
			nTab.className = "selected";
		}
		else if (selectedTabId == null)
		{
			nTab.className = "selected";
		}
	}
	
	if (oTabContent)
	{
		oTabContent.innerHTML = oNewContent.innerHTML;
	}	
	selectedTabId = sTabID;
}