function affiche_div_fiche( fiche, id ) {
	var xhr_object = null; 
		 
		if(window.XMLHttpRequest) // Firefox 
		   xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
		   xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else { // XMLHttpRequest non supporté par le navigateur 
		   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		   return; 
		} 
		
	 
		xhr_object.open("POST", "inc/PHP/affichage/"+fiche+".inc.php?id_article="+id, true); 
				
		xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 		 
		xhr_object.onreadystatechange = function() { 
			content = document.getElementById('article_'+id); // DEFINITION ESPACE POUR AFFICHAGE DU RESULTAT
			//content.style.display='none';
			
		   if(xhr_object.readyState == 4) 
		   	{
				//alert(xhr_object.responseText);
			content.innerHTML = xhr_object.responseText; // ON AFFICHE LA REPONSE
			
			}
		} 
		 
		xhr_object.send(null); 
}


function affiche_prix(id_prix)
	{
	divencour=document.getElementById('prix1_'+id_prix);
		divencour.style.display='none';
	divencour=document.getElementById('prix2_'+id_prix);
		divencour.style.display='block';
	divencour=document.getElementById('prix3_'+id_prix);
		divencour.style.display='none';
	}

function masque_prix(id_prix)
	{
	divencour=document.getElementById('prix2_'+id_prix);
		divencour.style.display='none';
	divencour=document.getElementById('prix3_'+id_prix);
		divencour.style.display='none';
	divencour=document.getElementById('prix1_'+id_prix);
		divencour.style.display='block';
	}


function ajouter_panier(id_prix,type_boutique,option)
	{	var xhr_object = null; 
		 
		if(window.XMLHttpRequest) // Firefox 
		   xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
		   xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else { // XMLHttpRequest non supporté par le navigateur 
		   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		   //return; 
		} 
	 
		if(option)
		xhr_object.open("POST", "inc/PHP/affichage/panier_cold.inc.php?id_prix="+id_prix+"&type_boutique="+type_boutique+"&option="+option, true);
		else
		xhr_object.open("POST", "inc/PHP/affichage/panier_cold.inc.php?id_prix="+id_prix+"&type_boutique="+type_boutique, true);
		 
		xhr_object.onreadystatechange = function() { 
			var content = document.getElementById('panier_cold'); // DEFINITION ESPACE POUR AFFICHAGE DU RESULTAT
			content.innerHTML = "chargement en cours..."; // ON AFFICHE LA REPONSE
		   if(xhr_object.readyState == 4) 
		   	{
			content.innerHTML = xhr_object.responseText; // ON AFFICHE LA REPONSE
			}
			else
			content.innerHTML = "chargement en cours..."; // ON AFFICHE LA REPONSE
		} 
		 
		xhr_object.send(null); 
		
		
	divencour=document.getElementById('prix3_'+id_prix);
		divencour.style.display='block';
	divencour=document.getElementById('prix1_'+id_prix);
		divencour.style.display='none';
	divencour=document.getElementById('prix2_'+id_prix);
		divencour.style.display='none';

	}

function affichier_panier(request)
	{	var xhr_object = null; 
		 
		if(window.XMLHttpRequest) // Firefox 
		   xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
		   xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else { // XMLHttpRequest non supporté par le navigateur 
		   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		   //return; 
		} 
	 	if(request==null)
		xhr_object.open("POST", "inc/PHP/affichage/panier_cold.inc.php", true); 
		else
		xhr_object.open("POST", "inc/PHP/affichage/panier_cold.inc.php"+request, true); 
		 
		xhr_object.onreadystatechange = function() { 
			var content = document.getElementById('panier_cold'); // DEFINITION ESPACE POUR AFFICHAGE DU RESULTAT
			content.innerHTML = "chargement en cours..."; // ON AFFICHE LA REPONSE
		   if(xhr_object.readyState == 4) 
		   	{
			content.innerHTML = xhr_object.responseText; // ON AFFICHE LA REPONSE
			}
			else
			content.innerHTML = "chargement en cours..."; // ON AFFICHE LA REPONSE
		} 
		 
		xhr_object.send(null); 

	}

