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("XMLHTTPRequest objects are not supported... !"); 
		xhr = false; 
	} 
	return xhr;
}
function ajaxGet(url,id,message)
{
	if (message != undefined)
		document.getElementById(id).innerHTML=message;
	//alert(url)
	var xhr = getXhr();

	xhr.onreadystatechange = function()
	{
		if(xhr.readyState == 4 && xhr.status == 200)
		{
			document.location.href='panier.php';
		}
	}
	xhr.open("GET",url,true);
	xhr.send(null);
}
function ajaxGet2(url)
{
	var xhr = getXhr();

	xhr.open("GET",url,false);
	xhr.send(null);
}

