/* Tab Javascript
 * 
 * Copyright (C) 2004 mbc Computer Solutions Ltd. */
 

function ChangeTabRounded(tab, index)
{
	var currenttab = document.getElementById('current');
	currenttab.id = ""
	
	for(i = 0; i < tabs.length; i++)
	{
		HideTab(tabs[i]);
	}
	
	ShowTabRounded(tab, index);			
}


function ShowTabRounded(tab, index)
{	

	if(tab != null)
	{
		tab.id = 'current';						
	}
	
	var panel = document.getElementById('tab' + index.toString() + '_panel')
	
	if(panel != null)
	{
		panel.style.display = 'block';
	}		
}

