/* RBL Javascript tools */
/* on _off function to show/hide an element (get by id) */
function rbl_on_off ( _prt ) 
{
	var cstyl = "" ;
	var elt = _prt.parentNode.getElementsByTagName('span')  ; 
	
	if ( elt.length > 0 ) {
		cstyl = elt[0].getAttribute("style") ; 
		if ( cstyl.display ) {
			if ( cstyl.display == "none"  ) {
				cstyl.display = "block" ;
		_prt.className = "on" ;
			} else {
				cstyl.display = "none" ;
		_prt.className = "off" ;
			}
			elt[0].setAttribute("style", cstyl) ; 
		} else {
			if ( cstyl == "display: none;"  ) {
				cstyl = "display: block;" ;
		_prt.className = "on" ;
			} else {
				cstyl = "display: none;" ;
		_prt.className = "off" ;
			}
			elt[0].setAttribute("style", cstyl) ; 
		}
	}
}


