// JavaScript Document
function panier()
{
document.getElementById('panier'+compt).style.visibility="visible";
}
function infoCaddie(formulaire)
{
compt=formulaire.compt.value;
reference=escape(formulaire.reference.value);
designation=escape(formulaire.designation.value);
prixHT=formulaire.prixHT.value;
pointTransport=formulaire.pointTransport.value;
qte=formulaire.qte.value;
image=escape(formulaire.image.value);
// *******************************
document.getElementById('panier'+compt).style.visibility="hidden";
var OAjax;
if (window.XMLHttpRequest) OAjax = new XMLHttpRequest();
else if (window.ActiveXObject) OAjax = new ActiveXObject('Microsoft.XMLHTTP');
OAjax.open('POST',"caddieSession.php",true);
OAjax.onreadystatechange = function()
{
//alert(OAjax.readyState);
if (OAjax.readyState == 4 && OAjax.status==200)
{
if (document.getElementById)
{ 
document.getElementById('infoCaddie').innerHTML=OAjax.responseText;
document.getElementById('voirPanier').style.display="block";
} 
}
}
OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');
OAjax.send('reference='+reference+'&designation='+designation+'&prixHT='+prixHT+'&pointTransport='+pointTransport+'&qte='+qte+'&image='+image);
setTimeout("panier()", 1500);
}
