function clearTextBox(inputBox, textString, cssClass) {
	if (inputBox) {
		if (!textString || inputBox.value == textString) {
			inputBox.value = '';
		}
		if (cssClass) {
			inputBox.className = cssClass;
		}
	}
	return true;
}

function setTextBox(inputBox, textString, cssClass) {
	if (inputBox) {
		if (inputBox.value == '') {
			inputBox.value = textString;
			if (cssClass) {
				inputBox.className = cssClass;
			}
		}
	}

	return true;
}

/*function switchTab(name, noAnchorJump) {
	var selectedTab = document.getElementById('tabbutton-' + name);
	var selectedTabContent = document.getElementById('tab-' + name);
	var selectedTabAnchor = document.getElementById('anchor-' + name);

	if (selectedTab && selectedTabContent) {
		// get the parent DIV of the tabcontents and the tab uls
		var tabUL = selectedTab.parentNode.parentNode;
		var contentsContainer = selectedTabContent.parentNode;

		var tabs = tabUL.getElementsByTagName('a');
		var contents = contentsContainer.getElementsByTagName('div');

		for (var c = 0; c < tabs.length; c++) {
			var tab = tabs[c];
			if (tab.id == 'tabbutton-' + name) {
				tab.className = 'active';
			} else {
				tab.className = '';
			}
		}

		for (var c = 0; c < contents.length; c++) {
			var content = contents[c];
			if (content.id.substr(0, 4) == "tab-") {
				if (content.id == 'tab-' + name) {
					content.style.display = '';
				} else {
					content.style.display = 'none';
				}
			}
		}

		if (!noAnchorJump) {
			//location.href = '#anchor-' + name;
		}

		if (name == "location") {
			google.maps.event.trigger(map, 'resize');
			map.setCenter(mapCenter);
		}

	}
}*/
