function modif_qte(id,type){
  var id_client = document.getElementById("id_client").value ;
  var xhrModifQte = null ;
  try{
    xhrModifQte = new XMLHttpRequest(); 
  }
  catch(e){ 
    try{
      xhrModifQte = new ActiveXObject("Msxml2.XMLHTTP"); 
    } 
    catch (e2){ 
      try {
	    xhrModifQte = new ActiveXObject("Microsoft.XMLHTTP"); 
	  } 
      catch (e) {}
	}
  }
  xhrModifQte.onreadystatechange  = function(){ 
    if(xhrModifQte.readyState==4){
      if(xhrModifQte.status==200){
        document.getElementById("panier_liste").innerHTML = xhrModifQte.responseText ;
  	  }
    }
  }; 
  var param = "" ;
  param+="id="+id ;
  param+="&qte=1" ;
  param+="&type="+type ;
  param+="&id_client="+id_client ;
  xhrModifQte.open("POST", "php/modif_qte.php", true);
  xhrModifQte.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 
  xhrModifQte.send(param) ; 	
  }
  function valid_code(){
    var code = document.getElementById("code_promo").value ;
	if(code==""){
	  alert("Vous devez entrer un code promotion valide...") ;
	  document.getElementById("code_promo").focus() ;
	}
	else{
	  var xhrValideCode = null ;
      try{
	    xhrValideCode = new XMLHttpRequest(); 
  	  }
	  catch(e){ 
        try{
	      xhrValideCode = new ActiveXObject("Msxml2.XMLHTTP"); 
	    } 
        catch (e2){ 
        try {
	      xhrValideCode = new ActiveXObject("Microsoft.XMLHTTP"); 
	    } 
        catch (e) {}
	    }
      }
	  xhrValideCode.onreadystatechange  = function(){ 
        if(xhrValideCode.readyState==4){
          if(xhrValideCode.status==200){
	        document.getElementById("panier_liste").innerHTML = xhrValideCode.responseText ;
		  }
        }
      }; 
	  var param = "" ;
	  param+="code="+code ;
      xhrValideCode.open("POST", "php/valide_code.php", true);
	  xhrValideCode.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 
	  xhrValideCode.send(param) ; 	 
	}
  }
