
// General function to toggle display of any element.

function ToggleDisplay(theObject) {

	if (document.getElementById(theObject).style.display == 'none') {

		document.getElementById(theObject).style.display = '';

	}

	else	{

		document.getElementById(theObject).style.display = 'none';

	}

}

// Function to display a specific image.

function DisplayImage(theObject, theImage, theWidth) {

	document.getElementById(theObject).src = theImage;
	document.getElementById(theObject).style.width = theWidth + 'px';

}

// Functions to hide or display block elements.

function DisplayObject(theObject) {

	document.getElementById(theObject).style.display = 'block';

}

function HideObject(theObject) {

	document.getElementById(theObject).style.display = 'none';

}

// Functions to hide or display inline elements.

function ShowInline(theObject) {

	var theElement = document.getElementById(theObject);

	if (theElement) {
		theElement.style.display = 'inline';
	}

}

function HideInline(theObject) {

	var theElement = document.getElementById(theObject);

	if (theElement) {
		theElement.style.display = 'none';
	}

}

// Function to navigate to a specified hyperlink.

function DoNav(theURL) {

    document.location.href = theURL;

}
