function toggleDiv(divid, bVoir)
{
	if (document.getElementById)
	{
		if (document.getElementById(divid).style.display == "inline" && !bVoir)
		{
			document.getElementById(divid).style.display = "none";
		}
		else document.getElementById(divid).style.display = "inline";
	}

	else if (document.all)
	{
		if (document.all[divid].style.display == "inline" && !bVoir)
		{
			document.all[divid].style.display = "none";
		}
		else document.all[divid].style.display = "inline";
	}

	else if (document.layers)
	{
		if (document.layers[divid].display == "inline" && !bVoir)
		{
			document.layers[divid].display = "none";
		}
		else document.layers[divid].display = "inline";
	}

}

function openIndice(id, theme, file, codePayant)
{
	/*if(codePayant=="G")
	{
		openTopWindow('/portailel/bn/ibt_actuelrh/02/indices/checkdoc.do?indId='+id+'&indTheme='+theme+'&indFile='+file+'&indPayant='+codePayant,600,400,'_blank')
		return false;
	}
	
	if((codePayant=="P") && (isAuthentified()==false))
	{
		document.location='/portailel/non_authentifie.do?forward=alpha_'+theme+'&indId='+id+'&indTheme='+theme+'&indFile='+file+'&indPayant='+codePayant;
		return false;
	}*/

	 window.open('/portailel/bn/ibt_actuel/avocat/indices/'+file, '_blank', "resizable=yes,scrollbars=yes,width=600,height=400,top=0");
	return false;
}
