
function getObj() {
	var thingy = arguments[0];
	if ( typeof thingy == 'object' ) {
		return thingy;
	} else if ( typeof thingy == 'string' ) {
		return document.getElementById(thingy);
	}
}

function toggleDisplay() {
	var toggleDiv = getObj(arguments[0]);
	with (toggleDiv.style) { display = (display=='none'||display==''?'block':'none'); }
}

function showDisplay() {
	var showDiv = getObj(arguments[0]);
	with (showDiv.style) { display = 'block'; }
}

function hideDisplay() {
	var hideDiv = getObj(arguments[0]);
	with (hideDiv.style) { display = 'none'; }
}

function toggleVisibility() {
	var toggleDiv = getObj(arguments[0]);
	with (toggleDiv.style) { visibility = (visibility=='hidden'?'visible':'hidden'); }
}

function showVisibility() {
	var showDiv = getObj(arguments[0]);
	with (showDiv.style) { visibility = 'visible'; }
}

function hideVisibility() {
	var hideDiv = getObj(arguments[0]);
	with (hideDiv.style) { visibility = 'hidden'; }
}
