// If the layer is visible it will hide it. If it is hidden, it will show it. 
function toggleLayer(whichLayer) {
	if (document.getElementById) {
		var style2 = document.getElementById(whichLayer).style;
		//alert(style2.display);
		//alert(style2.display);
	}
	else if (document.all) {
		var style2 = document.all[whichLayer].style;
	}
	else if (document.layers) {
		var style2 = document.layers[whichLayer].style;
	}
	if (style2.display == "none") {
		style2.display = "inline";
	} else {
		style2.display = "none";
	}
}

// This switches between two html values with the id of img_id.
var switchvalue = new Array();
function switchHTML(html_1,html_2,span_id) {
	if (switchvalue[span_id] == html_2) {
		switchvalue[span_id] = html_1;
		document.getElementById(span_id).innerHTML = html_1;
	} else {
		switchvalue[span_id] = html_2;
		document.getElementById(span_id).innerHTML = html_2;
	}
	//alert(html_2 + "           " + document.getElementById(span_id).innerHTML);
} 
