function addPanier(x) {
	obj = document.getElementById(x);
	qte = document.getElementById('q'+x).value;
	obj.innerHTML = "";
	
	var xhr=null;
	if (window.XMLHttpRequest) {
		xhr = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	xhr.onreadystatechange = function () {
		if(xhr.readyState == 4) {
			if (xhr.status == 200) {
				obj.innerHTML = xhr.responseText;
			} else {
				obj.innerHTML = "Erreur de chargement...";
			}
		}
	}
	
	xhr.open("GET", "aff_article.php?id="+x+"&q="+qte, true);
	xhr.send(null);
}
function qtepanier() {
	obj2 = document.getElementById('qpan');
	obj2.innerHTML = "";
	
	var xhr=null;
	if (window.XMLHttpRequest) {
		xhr = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	xhr.onreadystatechange = function () {
		if(xhr.readyState == 4) {
			if (xhr.status == 200) {
				obj2.innerHTML = xhr.responseText;
			} else {
				obj2.innerHTML = "Erreur de chargement...";
			}
		}
	}
	
	xhr.open("GET", "aff_qtepanier.php", true);
	xhr.send(null);
}