function addProducts() {

	//Récuperation des produits à ajouter
	var data = "";
	var idProduct = 0;
	var qtyProduct = 0;
	var j = 1;
	var nbElems = document.getElementById('productNbElems').value;
	
	for (i=0; i<nbElems; i++) {
		idProduct = document.getElementById('productIndex_'+i).name;
		qtyProduct = document.getElementById('productIndex_'+i).value;
		document.getElementById('productIndex_'+i).value = "0";
		if (qtyProduct != null && qtyProduct > 0) {	
			data += (data != "") ? "&" : "";
			data += "id"+j+"="+idProduct+"&qty"+j+"="+qtyProduct;
			//data += new Date();
			j++;
		}
	}
	
	nb = j - 1;
	data += (data != "") ? "&nbelems="+nb : "";

	//Des produits doivent etre ajoutés au panier
	if (j > 1) {
		var XHR = null;
		if(window.XMLHttpRequest) // Firefox
			XHR = new XMLHttpRequest();
		else if(window.ActiveXObject)
			XHR = new ActiveXObject("Microsoft.XMLHTTP");
		else {
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
			return;
		}	
		
		var url = "../../CartAdd2Muliples.php";
		
		//alert(url+"\n\n"+data);
		
		XHR.open("POST", url, true);
		XHR.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		XHR.onreadystatechange = function attente() {
			if(XHR.readyState == 4) {
				return overlib(XHR.responseText, STICKY, WIDTH, 346,CAPTION,'&nbsp;', CENTERPOPUP,FIXY, 280);
			}
		}
		XHR.send(data);
		return;
		
	} else {
		alert('Vous devez entrer les quantites des produits que vous souhaitez ajouter');	
	}
}