function displayOption(Option) {
/*	this function shows and hides a div or span
	the space taken up by the div or span does not show when hidden
	parameter:	option is the name of the div or span containing the item to show hide
				the option parameter should be passed WITHOUT quotes

	reference this file with 
	<script language="javascript" src="/_scripts/showhide/showhide.js"></script>
	the item to be shown/hidden must be in a div or span element with an id equal to Option
	if your content is within a table, open and close the div or span tags outside the table
	the function won't work if the content is within a row where the  table declaration
	is outside of the div or span
	
*/
	Option.style.display = Option.style.display == "none" ? "" : "none";
}



function imgSwap(divName, imgName) {
/*	this function shows and hides a plus and minus sign for expanding/collapsing divs
	reference this file with
	<script language="javascript" src="/_scripts/showhide/showhide.js></script>
	parameters:     divName		name of div being shown and hidden don't pass with quotes
			imgName		the name of the image, with quotes
	
	requires:	two images, minus.gif and plus.gif to be in the images sub-directory
	
	this function should be used with the above function and both are called with
	onClick="displayOption(divName);imgSwap(divName,'imgName');"

*/
	var imgPlus = new Image(); imgPlus.src = "images/plus.gif";
	var imgMinus = new Image(); imgMinus.src = "images/minus.gif";
	var str_imgSrc = document.images[imgName].src;
	var posRight = str_imgSrc.lastIndexOf("/")
	var str_imgSrc = str_imgSrc.substr(posRight+1, str_imgSrc.length-posRight);
	//ert (str_imgSrc);
	
	if (str_imgSrc == "plus.gif") {
		//alert("Plus showing")
	    document.images[imgName].src = imgMinus.src;
		
    }
    else if (str_imgSrc == "minus.gif") {
		//alert("Minus showing")
		document.images[imgName].src = imgPlus.src;
    }
}

