var STYLE_DISPLAY_NONE = 'none';
var STYLE_DISPLAY_BLOCK = 'block';

function openPanel(stub,unique) {

	var objDivOpened = getObj(stub+'Opened'+unique);
	var objDivClosed = getObj(stub+'Closed'+unique);

	if (objDivClosed != null) {
		objDivClosed.style.display = STYLE_DISPLAY_NONE;
	}
	if (objDivOpened != null) {
		objDivOpened.style.display = STYLE_DISPLAY_BLOCK;
	}

}

function closePanel(stub,unique) {

	var objDivOpened = getObj(stub+'Opened'+unique);
	var objDivClosed = getObj(stub+'Closed'+unique);

	if (objDivClosed != null) {
		objDivClosed.style.display = STYLE_DISPLAY_BLOCK;
	}
	if (objDivOpened != null) {
		objDivOpened.style.display = STYLE_DISPLAY_NONE;
	}

}

function getObj(objId) {
	if (document.getElementById) {
		return document.getElementById(objId);
	} else if (document.all) {
		return document.all[objId];
	}
	return null;
}
