function showHide(container, indicator){

	

	var doIndicator = new Boolean(true);
	if (indicator == undefined) {
		//alert('no indicator');
		doIndicator = false;
	}

	var display = document.getElementById(container).style.display;
        //alert ('Display is: "' + document.getElementById(container).style.display + '" "' + display + '"');
	
        if (display == 'none' || display == "") {
                document.getElementById(container).style.display = 'block';

		if (doIndicator) {
                	document.getElementById(indicator).innerHTML = '-';
		}
		//alert('none');
        } else {
                document.getElementById(container).style.display = 'none';
		if (doIndicator) {
                	document.getElementById(indicator).innerHTML = '+';
		}
		//alert('block');
        }


	// Return false so that we can use this function in the onclick
	// event of <a> tags. This way people can still right click on the
	// link and open in a new window or tab without bizzare things
	// happening.
	return false;
}




function serverStatus() {

	document.getElementById('loading').innerHTML = "Loading...";

	var url = '/ajax/serverStatus.html';
	var params = '';
	var ajax = new Ajax.Updater(
		{success: 'serverStatus'},
		url,
		{method: 'get', parameters: params, onFailure: reportAjaxError});
}



/*
 * Return generic prototype error.
 */
//function reportError(request) {
function reportAjaxError() {
	alert('AJAX ERROR!');
}

