/******************************************************************************
** Copyright (c) 2007 : GTI Online Solutions Limited
**
** This software is provided under the terms of a License Agreement and
** may only be used and/or copied in accordance with the terms of such an
** agreement. Neither this software nor any copy thereof may be provided
** or otherwise made available to any other person. No title or ownership
** of this software is hereby TRansferred.
******************************************************************************/

function showHideRegion(collapsibleRegionID) {
	/* Obtain reference for the selected boxID layer and its button */
	var region = document.getElementById("collapsibleRegion" + collapsibleRegionID);
	var expander = document.getElementById("expander" + collapsibleRegionID);
	
	/* If the selected box is currently invisible, show it */
	if(region.style.display == "none") {
		region.style.display = "block";
 		expander.src = "../../images/icons/collapse.gif";
	}
	/* otherwise hide it */
	else {
		region.style.display = "none";
		expander.src = "../../images/icons/expand.gif";
	}
}

function HideShow(astrFieldsetName, astrObjectName) {
	var objFieldset = document.getElementById(astrFieldsetName);
	var objHideShow = document.getElementById(astrObjectName);
	
	switch (objHideShow.style.display) {
		case 'block':
			objFieldset.className = 'fieldset_Hidden';
			objHideShow.style.display = 'none';
			break;
		case 'none':
			objFieldset.className = '';
			objHideShow.style.display = 'block';
			break;
	}
}

