// ************************ TAB FUNCTIONS ********************************
	// Makes the supplied object visible
	function show(id) {
		var itm = null;
		itm = getElement(id);
		if (!itm) {
			return 1;		// do nothing
		} else if (itm.style) {
			// Unhide the item
			itm.style.display = "";
			return 0;
		}
	}
	// Hides the supplied object
	function hide(id) {
		var itm = null;
		itm = getElement(id);
		if (!itm) {
			return 1;
		} else if (itm.style) {
			// hide the item
			itm.style.display = "none";
			return 0;
		}
	}
	function tabSelect(id) {
		var itm = null;
		itm = getElement(id);
		if (!itm) {
			return 1;
		} else if (itm.style) {
			// Set properties for selected object
			itm.style.color = "#e900e7";
			itm.style.fontWeight = "bold";
			return 0;
		}
	}
	function tabUnselect(id) {
		var itm = null;
		itm = getElement(id);
		if (!itm) {
			return 1;
		} else if (itm.style) {
			// Set properties for unselected object
			itm.style.color = "#707070";
			itm.style.fontWeight = "normal";
			return 0;
		}
	}
	// Tab selecting function
	function tabTop(selectedTab) {
		var NUM_TABS = 3;
	
		// Select proper tab image
		tabImage = getElement("tab_selector");
		tabImage.src = "images/page_tab2_tab" + selectedTab + ".jpg";
		
		// Show the first argument's content
		show("tab_content" + selectedTab);
		tabSelect("tab" + selectedTab);
		
		// Hide the rest
		for (var x = 1; x <= NUM_TABS; x++) {
			if (x != selectedTab) {
				hide("tab_content" + x);
				tabUnselect("tab" + x);
			}
		}
	}
// ****************************************************************************
