function displayItem(theid) {
var theidn = document.getElementById(theid);
theidn.style.display = "";
}
function hideItem(theid) {
var theidn = document.getElementById(theid);
theidn.style.display = "none";
}
function changeClass(theitem,theclass) {
var theid = document.getElementById(theitem);
theid.className = theclass;
}
function displayTitle(theid,displaytext) {
theid.Otitle = theid.title;
theid.OinnerHTML = theid.innerHTML;
if (theid.title) {
if (displaytext == 1) {
displaytext = '<strong>' + theid.innerHTML + '</strong><br>';
} else {
displaytext = "";
}
theid.innerHTML = theid.innerHTML + '<div class="titletext-display"><div>' + displaytext + theid.title + '</div></div>';
theid.suppresedtitle = theid.title;
}
theid.title = "";
}
function hideTitle(theid) {
theid.title = theid.Otitle;
var thehtml = theid.OinnerHTML.toLowerCase();
var theh = thehtml.split('<div class=');
theid.innerHTML =  theh[0];
}


function moveBtnOn(imgSrc,imgName,t) {
imgSrc = "/images/buttons/" + imgSrc + "_on.gif";
if (t) {
imgName.src=imgSrc;
} else {
document[imgName].src=imgSrc;
}
}
function moveBtnOff(imgSrc,imgName,t) {
imgSrc = "/images/buttons/" + imgSrc + ".gif";
if (t) {
imgName.src=imgSrc;
} else {
document[imgName].src=imgSrc;
}
}
function smallWinLink(url,width,height) {
win=window.open(url,"smallwin","width=" + width + ",height=" + height + ",scrollbars,resizable,left=10,top=10");
}




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'; }
}
