// JavaScript Document
function ajaxpanier(xxl,xl,l,m,s,xs,lieu)
{
    var xhr=null;
    if (window.XMLHttpRequest) 
	{ 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //on définit l'appel de la fonction au retour serveur
    xhr.onreadystatechange = function() { alert_ajaxvote(xhr,lieu); };
    //alert(action);
    //on affiche le message d'acceuil
//    document.getElementById("message").className="tumevois";
    //on appelle le fichier reponse.txt
//    alert(xxl);
		xhr.open("GET", "panier.php?xxl="+xxl+"&xl="+xl+"&l="+l+"&m="+m+"&s="+s+"&xs="+xs+"&lieu="+lieu+"&ts="+ new Date().getTime(), true);

xhr.send(null);
}

function alert_ajaxpanier(xhr,lieu)
{
    if (xhr.readyState==4) 
    {
    {
		var html = xhr.responseText;
 		document.getElementById(lieu).innerHTML = html;
   }
    }
}


