var intSelectedTab = 0;
/*
 * @description Update class only if this tab is not selected.
 * @param objThis the current tab object.
 * @param strClassName the desired class name.
 */
function tabHover(objThis, strClassName)
{
	if (objThis.className != 'tab_selected')
	{
		objThis.className = strClassName;
	}
}

/*
 * @description Loop through all tabs. Set this tab as selected, and others as deselected.
 * @param objThis the current tab object.
 */
function tabSelect(objThis)
{
	var tabs = document.getElementById('tab_buttons').getElementsByTagName('DIV');

	for (i = 0; i < tabs.length; i++)
	{
		if (tabs[i].innerHTML == objThis.innerHTML)
		{
			tabs[i].className = 'tab_selected';
			handleIDStyle('tab_window_' + i, 'display', 'block');
			intSelectedTab = i;
		}
		else if (tabs[i].className == 'tab_selected')
		{
			tabs[i].className = 'tab_deselected';
			handleIDStyle('tab_window_' + i, 'display', 'none');
		}
	}
}