/*
    Liefert Funktionen, die fuer das auf- und zuklappen einer Box erforderlich sind

    Autor           : Joachim Ruf
    Erstellungsdatum: 2008.01.03
    Revision        : 1.1
*/





/*
* Oeffnet und schliesst eine Div-Box per display
* @param string secId ID des anzuspechenden Elements
* @return void
*/
function openCloseRccBox( secId )
{
	var boxId = document.getElementById( secId );

	if( boxId.style.display == "none") //Box ist geschlossen --> oeffne Box
		openRccBox(secId);
	else //Box ist geoeffnet --> schliessen
		closeRccBox(secId);
}





/*
* Oeffnet eine Div-Box per display
* @param string secId ID des anzuspechenden Elements
* @return void
*/
function openRccBox( secId )
{
	var boxId = document.getElementById( secId );

	if( boxId.style.display == "none") //Box ist geschlossen --> oeffne Box
	{
		boxId.style.display = "";
	}	
}





/*
* Oeffnet eine Div-Box per display
* @param string secId ID des anzuspechenden Elements
* @return void
*/
function closeRccBox( secId )
{
	var boxId = document.getElementById( secId );

	if( boxId.style.display == "") //Box ist geoeffnet --> schliesse Box
	{
		boxId.style.display = "none";
	}

}	