/**
 * toggles the display of an specific element id
 * needs to have the attribute style="display: none;"
 * example: <a href="#" onclick="toggleContainer('col_container'); return false;">Toggle col_container</a>
 * @author fritzb
 * @param divId
 * @return
 */
function toggleContainer(divId){
	divObj = document.getElementById(divId);
	if(divObj.style.display == 'none'){
		divObj.style.display = 'block';
	} else {
		divObj.style.display = 'none';
	}
}

/**
 * displays specific element id
 * example: <a href="#" onclick="openContainer('col_container'); return false;">Open col_container</a>
 * @author christophn
 * @param divId
 * @return
 */
function openContainer(divId) {
	divObj = document.getElementById(divId);
	divObj.style.display = 'block';
}

/**
 * hides specific element id
 * example: <a href="#" onclick="closeContainer('col_container'); return false;">Close col_container</a>
 * @author christophn
 * @param divId
 * @return
 */
function closeContainer(divId) {
	divObj = document.getElementById(divId);
	divObj.style.display = 'none';
}

/**
 * toggles the display of an specific element id
 * needs to have the attribute style="display: none;"
 * example:
 * 	<div class="openen-comments" id="openen-comments" style="display: block;">
 *		<a class="std-toggle-closed" href="#" onclick="toggleContainer('col_container'); toggleById('openen-comments', 'closed-comments'); return false;">Details und Kommentare einblenden</a>
 *	</div>
 *	<div class="closed-comments" id="closed-comments" style="display: none;">
 *		<a class="std-toggle-opened" href="#" onclick="toggleContainer('col_container'); toggleById('closed-comments', 'opened-comments'); return false;">Details und Kommentare ausblenden</a>
 *	</div>
 * @author fritzb
 * @param divIdToClose
 * @param divIdToOpen
 * @return
 */
function toggleById(divIdToClose,divIdToOpen){
	toggleContainer(divIdToClose);
	toggleContainer(divIdToOpen);
}



