
function ref2( ref )
{
  document.write('<a target="aquariofil_caddy" href="/fr/ajout_produit.php?ref=' + ref + '&qty=1"><img src="/img/achati.jpg" alt="Ajouter au panier" border="0"></A>');
}

function dm(msgStr) {
 document.returnValue = false ;
 if (document.images) { 
  window.status = msgStr ;
  document.returnValue = true ;
 }
}

function ref( ref )
{
  document.write(' <table width="84" border="0" cellspacing="0" cellpadding="0">');
  document.write('  <tr> ');
  document.write('<form target="aquariofil_caddy" action="/fr/ajout_produit.php" method="get" name="formQuantite' + ref +'">');
  document.write(' <input type="hidden" name="ref" value="' + ref + '">');
  document.write('   <td width="20"><input name="qty" maxlength="6" size="2" value="1"></td>');
  document.write('   <td width="40"> ');
  document.write('    <input onmouseover="dm(\'ref ' + ref + '\')" alt="Ajouter au panier" border="0" height="26" src="/img/achat_aquavie.jpg" type="image" width="40" name="Commander">');  document.write('   </td>');
  document.write('</form>');
  document.write('  </tr>');
  document.write(' </table>');
}

function add(cel,val,max) 
{
  pluriel = "";
  nb = document[cel].qty.value;
  nb = parseInt(nb) + parseInt(val);
  if (nb <1) {nb = 1}
  if (max>1) {pluriel = "s"}
  document[cel].qty.value = nb;
  
  if (nb > max) {
  alert ("Il n'est pas possible de commander plus\nde " + max + " exemplaire" + pluriel + " de ce produit");
  document[cel].qty.value = max;
  }
}


function menu_haut()
{
document.write('<table cellspacing="5" width="100%"><tr><td>');
document.write('<table width="100%"><tr><td>');
document.write('<table cellspacing="1" width="100%"><tr align="center">');
document.write('<td width="33%" class="lgtxt"><a href="/fr/plan.html">Plan du site</a></td>');
document.write('<td width="33%" class="lgtxt"><a href="/fr/manifestations_aquariophiles.html">Manifestations</a></td>');
document.write('<td width="34%" class="lgtxt"><a href="/fr/livredor.html">Livre d\'Or</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/faq.html#ancre1">L\'entreprise</a></td>');
document.write('<td class="lgtxt"><a href="/fr/annonces.html">Petites Annonces</a></td>');
document.write('<td class="lgtxt"><a href="/fr/transport.html">Frais de port</a></td>');
document.write('</tr><tr align="center">');
document.write('<td class="lgtxt"><a href="/fr/condition_vente.html">Conditions de vente</a></td>');
document.write('<td class="lgtxt"><a href="/fr/liens.html">Liens int&eacute;ressants</a></td>');
document.write('<td class="lgtxt"><b>Tarif <a href="/fr/cat/catalogue.txt">&agrave; imprimer</a></b></td>');
document.write('</tr></table></td>');
document.write('<td><table width="100%"><tr align="center">');
document.write('<td><a href="/fr/cat/index.html"><img src="/photo/Icone_CATALOGUE_page_Aquavie.JPG" width="125" height="94" align="bottom" alt="Catalogue" border="0"></a></td>');
document.write('<td><a href="/fr/commande.php" TARGET="_blank"><img src="/photo/Icone_COMMANDE_page_Aquavie.JPG" width="118" height="100" align="bottom" alt="Bon de commande" border="0"></a></td>');
document.write('</tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
}

