

function createObjectAjax()
{
	var obj;
	if(window.XMLHttpRequest) // Firefox et autres
	{
		obj = new XMLHttpRequest();
	}
	else if(window.ActiveXObject) // Internet Explorer
	{
		var ieversions = ['Msxml2.XMLHTTP',
		'Microsoft.XMLHTTP',
		'Msxml2.XMLHTTP.5.0',
		'Msxml2.XMLHTTP.4.0',
		'Msxml2.XMLHTTP.3.0'
		];
		for(var i=0; !obj && i<ieversions.length; i++)
		{
			try
			{
				obj = new ActiveXObject(ieversions[i]);
			}
			catch(e)
			{
				obj = null;
			}
		}
	}
	
	return obj;
}

function file(fichier) {
     xhr_object = createObjectAjax();
     xhr_object.open("GET", fichier, false);
     xhr_object.send(null);
     if(xhr_object.readyState == 4) {
     		return(xhr_object.responseXML);
     }
     else {
     	alert(xhr_object.readyState)
     	return(false);
     }
}