function calcul(ref_produit,prix)
{ calc=eval('document.produit'+ref_produit+'.quantite'+ref_produit+'.value'); 
  if(isNaN(calc))
  	{ alert('Merci de saisir un nombre');
      return false; }
  else
  	{ calc=parseInt(calc, 10);
      document.getElementById("quantite"+ref_produit).value=calc;
      return true; } 
 } 

function recalcul(ref_produit)
{ calc=eval('document.produit'+ref_produit+'.quantite'+ref_produit+'.value'); 
  if(isNaN(calc))
  	{ alert('Merci de saisir un nombre');
      return false; }
  else
  	{ calc=parseInt(calc, 10);
      document.getElementById("quantite"+ref_produit).value=calc;
      return true; } 
 } 
 
 
function calcul2(ref_produit,prix)
{
calc=eval('document.produit2.quantite'+ref_produit+'.value');
// si on a pas a faire a un nombre
if(isNaN(calc))
	{alert('Merci de saisir un nombre');}
else
	{calc=parseInt(calc, 10);window.open('caddie/ajouter_produit.php?ref_produit='+ref_produit+'&quantite='+calc+'&prix='+prix,'frame1')}

} 
function vider()
{
window.open('caddie/vider_panier.php','frame1')
} 
