function thorn_onOff( invert, contentName, idOkno, handle  )
{

	var io = document.getElementById( contentName+idOkno ).style.display;
	var ha;
	var opened = false;
	
	
	if( invert == 1 )
	{
		if( io == "none" )
		{ 
			io = 'block';
			ha = '[-]'; 
			opened = true;
		}
		else
		{ 
			io = 'none'; 
			ha = '[+]';
		}
	}
	else
	{
		if( io == "block" )
		{ 
			io = 'none'; 
			ha = '[+]';
		}
		else
		{ 
			io = 'block';
			ha = '[-]';
			opened = true;
		}
	}
	
	document.getElementById( contentName+idOkno ).style.display = io;
	
	if( handle != 0 )
	{
		document.getElementById(handle+idOkno).innerHTML = ha;
	}
	
	if( opened == true )
	{
		window.open('#'+idOkno,'_self');
	}
}

//tab = array();

function offAll( tab, tab2 )
{
	
	//var children = document.getElementById("contentBlock").childNodes;
	//var j = 1;
	
	
	
	for( var i = 0; i < tab.length; i++ ) 
  	{
  		document.getElementById(tab[i]).style.display = 'none';
  		document.getElementById(tab2[i]).innerHTML = '[+]';
  	}
	
}