function toggleElementDisplay(elemName,srcButton,toggleText) {
	elem = document.getElementById(elemName);
	currentLabel = srcButton.value;
	if (elem.style.display == 'none') { // show it
		elem.style.display = 'block';
		// for toggling button text to say "show >>"  or "<< hide"
		if (toggleText) {
			rExp = /show/gi;
			newLabel = currentLabel.replace(rExp, "<< hide");
			rExp = / >>/gi;
			newLabel = newLabel.replace(rExp, "");
			srcButton.value = newLabel;
		}
	} else { // hide it
		elem.style.display = 'none';
		if (toggleText) {
			rExp = /<< hide/gi;
			newLabel = currentLabel.replace(rExp, "show");
			srcButton.value = newLabel+" >>";
		}
	}
}

function toggleSingleElementDisplay(elemName)
{
	elem = document.getElementById(elemName);
	if (elem.style.display == 'none') { // show it
		elem.style.display = 'block';
	} else { // hide it
		elem.style.display = 'none';
	}
}

function openWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function openHelp() {
	openWin('/help/help.html','helpWin','width=515,height=500,scrollbars=yes,status=no');
}
