function getXhr()
{
	var xhr = null;
	
	if(window.XMLHttpRequest)
		xhr = new XMLHttpRequest(); 
	else if(window.ActiveXObject)
		{
			try
				{
					xhr = new ActiveXObject("Msxml2.XMLHTTP");
				}
			catch (e)
				{
					xhr = new ActiveXObject("Microsoft.XMLHTTP");
				}
		}
	else
		{
			alert("Votre navigateur ne supporte pas les objets XMLHttpRequest..."); 
			xhr = false; 
		}
	return xhr
}

function clean(d)
{
	var bal = d.getElementsByTagName('*');

	for (i=0 ; i < bal.length; i++)
	{
		a = bal[i].previousSibling;
		if (a && a.nodeType == 3)
			go(a);
		b = bal[i].nextSibling;
		if (b && b.nodeType == 3)
			go(b);
	}
	return d;
}

function go(c)
{
	if (!c.data.replace(/\s/g,''))
		c.parentNode.removeChild(c);
}
