function showHide(id)
{
	var swap_visibility;

	if (showHide.arguments.length > 1) {
		swap_visibility = (showHide.arguments[1] == 'visible') ? true : false;
	}
	else {
		swap_visibility = (((document.getElementById || document.all) && (getObj(id).style.visibility == 'visible' || getObj(id).style.visibility == 'VISIBLE')) || (document.layers && getObj(id).visibility == 'show')) ? false : true;
	}
	if (document.getElementById || document.all) {
		getObj(id).style.visibility = (swap_visibility ? 'visible' : 'hidden');
	}
	if (document.layers) {
		getObj(id).visibility = (swap_visibility ? 'show' : 'hide');
	}
}

function doubleShowHide(id1, id2)
{
	if (doubleShowHide.arguments.length == 3) {
		showHide(id1, doubleShowHide.arguments[2]);
		showHide(id2, doubleShowHide.arguments[2]);
	}
	else {
		showHide(id1);
		showHide(id2);
	}
}