function selectTab(tabName, tabGroup)
	{
	// Deactivate all tabs and containers in this group.
	for (var i = 0; i < tabGroup.length; i++)
		{
		// Deactivate this tab.
		var currentTab = document.getElementById(tabGroup[i].toLowerCase() + '_tab');
		if (currentTab !== undefined && currentTab !== null)
			{
			currentTab.className = 'inactiveMiniTab';
			}

		// Deactivate this container.
		var currentContainer = document.getElementById(tabGroup[i].toLowerCase() + '_container');
		if (currentContainer !== undefined && currentContainer !== null)
			{
			currentContainer.style.display = 'none';
			}
		}

	// Activate the selected tab and container.
	var newTab = document.getElementById(tabName.toLowerCase() + '_tab');
	if (newTab !== undefined && newTab !== null)
		{
		newTab.className = 'activeMiniTab';

		var newContainer = document.getElementById(tabName.toLowerCase() + '_container');
		newContainer.style.display = 'block';
		}
	}
