function file(fichier)
	{
	if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest(); //Moz
	else if(window.ActiveXObject) xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); //IE
	else return(false);
	xhr_object.open("GET", fichier, false);
	xhr_object.send(null);
	if(xhr_object.readyState == 4) return(xhr_object.responseText); else return(false);
	}

function CouleurUp(tr, nb)
	{
	theCells = tr.getElementsByTagName('td');
	for(ct=0; ct<nb; ct++) theCells[ct].style.backgroundColor = '#C0C0C0';
	}

function RetourCouleurIndex(tr)
	{
	theCells = tr.getElementsByTagName('td');
	theCells[0].style.backgroundColor = '#EFEFEF';
	theCells[1].style.backgroundColor = '#EFEFEF';
	theCells[2].style.backgroundColor = '#DEE3E7';
	theCells[3].style.backgroundColor = '#DEE3E7';
	theCells[4].style.backgroundColor = '#DEE3E7';
	}

function CouleurUpDiv(tr)
	{
	tr.style.backgroundColor = '#C0C0C0';
	}

function RetourCouleursChercheDiv(tr)
	{
	tr.style.backgroundColor = '#EFEFEF';
	}

function RetourCouleurForum(tr)
	{
	theCells = tr.getElementsByTagName('td');
	theCells[0].style.backgroundColor = '#EFEFEF';
	theCells[1].style.backgroundColor = '#EFEFEF';
	theCells[2].style.backgroundColor = '#DEE3E7';
	theCells[3].style.backgroundColor = '#D1D7DC';
	theCells[4].style.backgroundColor = '#DEE3E7';
	theCells[5].style.backgroundColor = '#DEE3E7';
	}

function RetourCouleursCherche(tr)
	{
	theCells = tr.getElementsByTagName('td');
	theCells[0].style.backgroundColor = '#EFEFEF';
	theCells[1].style.backgroundColor = '#EFEFEF';
	theCells[2].style.backgroundColor = '#DEE3E7';
	theCells[3].style.backgroundColor = '#EFEFEF';
	theCells[4].style.backgroundColor = '#DEE3E7';
	theCells[5].style.backgroundColor = '#EFEFEF';
	theCells[6].style.backgroundColor = '#DEE3E7';
	}

function RetourCouleurMP(tr)
	{
	theCells = tr.getElementsByTagName('td');
	theCells[0].style.backgroundColor = '#EFEFEF';
	theCells[1].style.backgroundColor = '#EFEFEF';
	theCells[2].style.backgroundColor = '#EFEFEF';
	theCells[3].style.backgroundColor = '#EFEFEF';
	theCells[4].style.backgroundColor = '#EFEFEF';
	}

function hdr_ref(object)
{
	if (document.getElementById)
	{
		return document.getElementById(object);
	}
	else if (document.all)
	{
		return eval('document.all.' + object);
	}
	else
	{
		return false;
	}
}

function hdr_expand(object)
{
	var object = hdr_ref(object);

	if( !object.style )
	{
		return false;
	}
	else
	{
		object.style.display = '';
	}

	if (window.event)
	{
		window.event.cancelBubble = true;
	}
}

function hdr_contract(object)
{
	var object = hdr_ref(object);

	if( !object.style )
	{
		return false;
	}
	else
	{
		object.style.display = 'none';
	}

	if (window.event)
	{
		window.event.cancelBubble = true;
	}
}

function hdr_toggle(object, open_close, open_icon, close_icon)
{
	var object = hdr_ref(object);
	var icone = hdr_ref(open_close);

	if( !object.style )
	{
		return false;
	}

	if( object.style.display == 'none' )
	{
		object.style.display = '';
		icone.src = close_icon;
	}
	else
	{
		object.style.display = 'none';
		icone.src = open_icon;
	}
}
