function tabOn (tabId) {	
	var theTab = getElement(tabId);
	if (theTab != null) theTab.className = "on";
}

function tabOff (tabId) {
	var theTab = getElement(tabId);
	if (theTab != null) theTab.className = "off";
}

function tabsOff (tabarray) {
	if (tabarray instanceof Array) for (t in tabarray) {
		tabOff (tabarray[t]);
	}
}

function switchTabTo (tabId, otherTabs) {
	tabOn(tabId);
	if (otherTabs instanceof Array) for (i in otherTabs) {
		tabOff (otherTabs[i]);
	}
}


