        <!-- 
        <!-- Fonction AjouterAuPanier: pour ajouter une poignee dans le panier et la valider.
        <!-- 
        <!-- Date de création: 2-février-2008      Date de révision: 6-octobre-2009: modifier calcul transport
        <!--                                       Date de révision: 1-décembre-2009: ajouter un caractère au prix: XXX.XX
        <!--                                                                          ajouter fonction AjouterAuPanierAutres
        <!--                                                                          ajouter fonction calcul_tansport_tous 


        var fenetre = null
        function AjouterAuPanier(la_poignee){
            var choix = 0
            date=new Date;
            date.setMonth(date.getMonth()+1); // expire dans un mois
            ecrire_cookie("choix_poigneesdamour", la_poignee, date);
//
            fenetre = window.open('commande.htm','fenetre','width=300,height=150')
            }
//
        var fenetre = null
        function AjouterAuPanierAutres(la_poignee){
            var choix = 0
            date=new Date;
            date.setMonth(date.getMonth()+1); // expire dans un mois
            ecrire_cookie("choix_poigneesdamour", la_poignee, date);
//
            fenetre = window.open('commande_autres.htm','fenetre','width=300,height=150')
            }
//
// Fonction pour vider la commande
//
        function VideCommande(){
//
// On va lire la date inclus dans le fichier de commandes
//
                 heure = lire_cookie("commande_poigneesdamour");
                 if(heure == "aucune") {
                   heure = 'J01M01A2008H00M00S00'
                 }     
//               alert(heure)
//
// On vérifie si l'on doit intialiser le cookie
//
                 date = new Date;
                 le_mois = date.getMonth() + 1
                 le_jour = date.getDate()
	         l_annee = date.getYear()
                 l_heure = date.getHours()
                 la_minute = date.getMinutes()
                 la_seconde = date.getSeconds()
//
// Date et heure du derniercookie (l'instruction parseInt causait des problèmes elle n'est pas nécessaire)
//
                 if(heure.substring(1,2) == 0) {
                   le_jour1 = heure.substring(2,3)
                 }
                 else {
                   le_jour1 = heure.substring(1,3)
                 } 
//
                 if(heure.substring(4,5) == 0) {
                   le_mois1 = heure.substring(5,6)
                 }
                 else {
                   le_mois1 = heure.substring(4,6)
                 }
//
                 l_annee1 = heure.substring(7,11)
//
                 if(heure.substring(12,13) == 0) {
                   l_heure1 = heure.substring(13,14)
                 }
                 else {
                   l_heure1 = heure.substring(12,14)
                 }  
//       
                 if(heure.substring(15,16) == 0) {
                   la_minute1 = heure.substring(16,17)
                 }
                 else {
                   la_minute1 = heure.substring(15,17)
                 }
//
                 if(heure.substring(18,19) == 0) {
                   la_seconde1 = heure.substring(19,20) 
                 }              
                 else {
                   la_seconde1 = heure.substring(18,20)
                 }
//
                 zinitialise = 0
                 if(le_jour1 != le_jour) zinitialise = 1
                 if(le_mois1 != le_mois) zinitialise = 1
                 if(l_annee1 != l_annee) zinitialise = 1
//
// On accorde 10 secondes depuis le retour ce qui est beaucoup trop
//
                 if(zinitialise == 0) {
                    sec_depuis_minuit = (l_heure * 3600) + (la_minute * 60) + la_seconde
                    sec_depuis_minuit1 =  (parseInt(l_heure1) * 3600) +  (parseInt(la_minute1) * 60) + parseInt(la_seconde1)
//                   alert(sec_depuis_minuit)
//                   alert(sec_depuis_minuit1)
                    if( (sec_depuis_minuit -  sec_depuis_minuit1) > 10) zinitialise = 1
                 }    
//
                 if(zinitialise == 1) {               
//                 alert('On initialise!')     
                   ecrireHeure()
                 }
                 else {
//                 alert(' Aucune initialisation de faite!')
                 }
                 return
         }
//
        function ecrireHeure(){
                 date = new Date;
                 le_mois = date.getMonth() + 1
                 if(le_mois < 10) le_mois = "0" + le_mois
                 le_jour = date.getDate()
                 if(le_jour < 10) le_jour = "0" + le_jour
	         l_annee = date.getYear()
                 l_heure = date.getHours()
                 if(l_heure < 10) l_heure = "0" + l_heure
                 la_minute = date.getMinutes()
                 if(la_minute < 10) la_minute = "0" + la_minute
                 la_seconde = date.getSeconds()
                 if(la_seconde < 10) la_seconde = "0" + la_seconde
                 heure =  "J" + le_jour + "M" + le_mois + "A" + l_annee
                 heure += "H" + l_heure + "M" + la_minute + "S" + la_seconde
                 date=new Date;
                 date.setMonth(date.getMonth()+1); // expire dans un mois
                 ecrire_cookie("commande_poigneesdamour", heure, date);
                 return
         }

//
        function ecrireHeureNeuve(){
//
// Avant de retourner à la page principale, on récrit le cookie de commande avec une nouvelle date. Si aucun
// changement n'a été fait, il ne sera pas ainsi effacé.
// 
// Lire cookie de commande

//	<TR> <TD> <INPUT TYPE=submit VALUE="Retour au menu"> <IMG SRC= Images/Menub.gif> </TD>
//
                la_commande = lire_cookie("commande_poigneesdamour");
//
// Ajustement de la date et heure pour ré-inscription
//
                date = new Date;
                le_mois = date.getMonth() + 1
                if(le_mois < 10) le_mois = "0" + le_mois
                le_jour = date.getDate()
                if(le_jour < 10) le_jour = "0" + le_jour
               l_annee = date.getYear()
                l_heure = date.getHours()
                if(l_heure < 10) l_heure = "0" + l_heure
                la_minute = date.getMinutes()
                if(la_minute < 10) la_minute = "0" + la_minute
                la_seconde = date.getSeconds()
                if(la_seconde < 10) la_seconde = "0" + la_seconde
                heure =  "J" + le_jour + "M" + le_mois + "A" + l_annee
                heure += "H" + l_heure + "M" + la_minute + "S" + la_seconde
//
// Modification de la date et heure dans la commande
//
                long= la_commande.length
                if(long > 21)  {
                  la_commandef = heure + la_commande.substring(20,long)
                }
                else {
                  la_commandef = heure
                }
                date=new Date;
                date.setMonth(date.getMonth()+1); // expire dans un mois
                ecrire_cookie("commande_poigneesdamour", la_commandef, date);
                return
                }
//
        function ecrire_ecran_commande(){
//
// Lire cookie de commande
//
    la_commande = lire_cookie("commande_poigneesdamour");
//  alert(la_commande)
//
//
    long= la_commande.length
//
// On divise l'information de la poignee
//
    grand_total = 0.0
    nbre_total = 0
    nb_p_poignees = 0
    nb_g_poignees = 0
    nb_autres = 0
    if(long > 20) {
//
// On décortique la date et l'heure de la commande
//
      if(la_commande.substring(1,2) == 0) {
        le_jour = la_commande.substring(2,3)
      }
      else {
        le_jour = la_commande.substring(1,3)
      } 
      if(la_commande.substring(4,5) == 0) {
        le_mois = la_commande.substring(5,6)
      }
      else {
        le_mois = la_commande.substring(4,6)
      }
      l_annee = la_commande.substring(7,11)
      l_heure = la_commande.substring(12,14)
      la_minute = la_commande.substring(15,17)
      la_seconde = la_commande.substring(18,20)
//
      document.writeln('<TABLE BORDER="0" CELLSPACING="8">')
      document.writeln('<TR><TD></TD><TD>')
      var texte = '<BR> <font SIZE="+2"> Date de la commande: '
      texte +=  le_jour + '-' + le_mois + '-' + l_annee + '</font>' 
      document.writeln(texte)
      var texte = '   <BR> <font SIZE="+2"> Heure de la commande: ' 
      texte += l_heure + ':' + la_minute + ':' + la_seconde + '</font>' 
      document.writeln(texte)
      document.writeln('<BR><BR>')
      document.writeln('</TD>')
      document.writeln('</TR>')
//
      i=1
      while(i<long-26) {
//
// On commence à 19 soit la date et heure de la commande - 1      

//      alert(la_commande)
        le_no = la_commande.substring(19+i,26+i)  
        le_cote = la_commande.substring(27+i,28+i) 
        l_essence = la_commande.substring(29+i,30+i) 
        le_trou = la_commande.substring(31+i,32+i) 
        le_nbre = la_commande.substring(33+i,36+i) 
        le_prix = la_commande.substring(37+i,42+i) 
//
// On valide le choix du client
//
         choixf = 0
         if(le_trou == 1) {
           var choixt = '1 trou (centré)'
         }
         if(le_trou == 2) {
           var choixt = '2 trous (7,5cm)'
         }
         if(le_trou == 3) {
           var choixt = '2 trous (9,5cm)'
         }
         if(choixt == 0)  {
           alert('ERREUR: le choix de type de trou est en erreur! SVP recommencez.')
           i = long + 1
         }
         else {
//
           if(l_essence == 'C') {
             l_essence1 = 'chêne'
           }
           else { 
             l_essence1 = 'érable'
           }       
           if(le_cote == 'G') {
             l_orientation = 'gauche'
           }
           else { 
              if(le_cote == 'D') {  
                l_orientation = 'droite'
              }
              else { 
                if(le_cote == 'A') {  
                  l_orientation = 'autre'
                }
                else { 
                  l_orientation = ' null '
                }
              }
           }
           document.writeln('<TR><TD></TD><TD>')
           if(l_orientation == 'autre') {  
              var texte1 = '<font SIZE="+1"> Article en ' + l_essence1 + ' #' + le_no + '</font>'    
           }
           else { 
             var texte1 = '<font SIZE="+1"> Poignée en ' + l_essence1 + ' #'       
             texte1 += le_no +' avec  ' 
             texte1 += choixt + ' et orientation ' + l_orientation + '</font>' 
           } 
           document.writeln(texte1)
           document.writeln('</TD><TD ALIGN="RIGHT">')
//
// On ajuste le nbre de poignées en enlevant les zéros
//
//         
           if(le_nbre.substring(0,2) == "00") {
             nb_poignees = parseInt(le_nbre.substring(2,3))
           }
           else {
             if(le_nbre.substring(0,1) == "0") { 
               nb_poignees = parseInt(le_nbre.substring(1,3))
             }
             else {
               nb_poignees = parseInt(le_nbre)
             }
           }             
           texte1 = '<font SIZE="+1">' + nb_poignees + '</font>' 
           document.writeln(texte1)
           document.writeln('</TD>')
//
           document.writeln('</TD><TD ALIGN="RIGHT">')
           texte1 = '<font SIZE="+1">'
           le_prixt = nb_poignees * parseFloat(le_prix)
           texte1 += '$' + le_prixt.toFixed(2) +'</font>' 
           document.writeln(texte1)
           document.writeln('</TD>')
           document.writeln('</TR>')
//
// On conserve le nbre de poignées commandées selons sa gatégorie
//          
           if(le_no.substring(0,4) == "AU-P") {
             nb_p_poignees = nb_p_poignees + nb_poignees
           }
           else  {
             if(le_no.substring(0,3) == "AU-") {
                nb_autres = nb_autres + nb_poignees
             }
             else {
               nb_g_poignees = nb_g_poignees + nb_poignees
             }
           }
//
           nbre_total = nbre_total + nb_poignees
           grand_total = grand_total + parseFloat(le_prixt)
           i = i + 25  // nbre de caractères par poignées - 1
         } 
       }
//
// On ecrit le grand total
//
       document.writeln('<TR><TD></TD><TD>')   
       document.writeln('_________________________________________________________________________')  
       document.writeln('</TD><TD>')
       document.writeln('________') 
       document.writeln('</TD><TD>')
       document.writeln('________')  
       document.writeln('</TD>')
       document.writeln('</TR>')
//
// On va calculer le rabais s'il y en a un, la valeur est inscrite a la main dans la fonction
// ==========================================================================================
//
       var rabais = 0.00
       var le_rabais = 0.00
       rabais = calcul_rabais(grand_total)
//
       if(rabais > 0.00) {
          document.writeln('<TR><TD></TD><TD ALIGN="RIGHT">')                     
          texte1 = '<font SIZE="+1">           Rabais (CAN) '
          le_rabais = parseFloat(rabais / grand_total) * 100
          texte1 += le_rabais + '% :</font>'
          document.writeln(texte1)
          document.writeln('</TD><TD>') 
          document.writeln('</TD><TD ALIGN="RIGHT">')
          texte1 = '<font SIZE="+1">$'
          document.write(texte1)
          document.write(rabais.toFixed(2))
          texte1 = '</font>'
          document.writeln(texte1)
          document.writeln('</TD></TR>')
          grand_total = grand_total - rabais
       }
//
// Aucune TPS et TVQ de charger
//
       la_tps = 0.0
       la_tvq = 0.0
//  
//       la_tps = grand_total * 0.05
//       document.writeln('<TR><TD></TD><TD ALIGN="RIGHT">')                     
//       texte1 = '<font SIZE="+1">  TPS (5.0%): </font>'
//       document.writeln(texte1)
//       document.writeln('</TD><TD>')
//
//       document.writeln('</TD><TD ALIGN="RIGHT">')
//       texte1 = '<font SIZE="+1">$' 
//       document.write(texte1)
//       document.write(la_tps.toFixed(2))
//       texte1 = '</font>'
//       document.writeln(texte1)
//       document.writeln('</TD>')
//       document.writeln('</TR>')
//
//       la_tvq = (grand_total + la_tps) * 0.075
//       document.writeln('<TR><TD></TD><TD ALIGN="RIGHT">')                     
//       texte1 = '<font SIZE="+1">  TVQ (7.5%): </font>'
//       document.writeln(texte1)
//       document.writeln('</TD><TD>')
//
//       document.writeln('</TD><TD ALIGN="RIGHT">')
//       texte1 = '<font SIZE="+1">$' 
//       document.write(texte1)
//       document.write(la_tvq.toFixed(2))
//       texte1 = '</font>'
//       document.writeln(texte1)
//       document.writeln('</TD>')
//       document.writeln('</TR>')
//  
       grand_total = grand_total + la_tps + la_tvq
       document.writeln('<TR><TD></TD><TD ALIGN="RIGHT">')                     
       texte1 = '<font SIZE="+1">  Total: </font>'
       document.writeln(texte1)
//
       document.writeln('</TD><TD ALIGN="RIGHT">')
       texte1 = '<font SIZE="+1">' 
       document.write(texte1)
       document.write(nbre_total)
       texte1 = '</font>'
       document.writeln(texte1)
//
       document.writeln('</TD><TD ALIGN="RIGHT">')
       texte1 = '<font SIZE="+1">$' 
       document.write(texte1)
       document.write(grand_total.toFixed(2))
       texte1 = '</font>'
       document.writeln(texte1)
       document.writeln('</TD>')
       document.writeln('</TR>')
//
//
       var cout_transport = 0.00
       var cout_si_usa = 0.00
//
// On va calculer le coùt du transport
//
       cout_transport = calcul_transport_tous(nb_p_poignees,nb_g_poignees,nb_autres)
//
       cout_si_usa = calcul_transport_usa(cout_transport)
//
       document.writeln('<TR><TD></TD><TD ALIGN="RIGHT">')                     
       texte1 = '<font SIZE="+1"> * Coût transport (CAN): </font>'
       document.writeln(texte1)
//
       document.writeln('</TD><TD>') 
       document.writeln('</TD><TD ALIGN="RIGHT">')
       texte1 = '<font SIZE="+1">$'
       document.write(texte1)
       document.write(cout_transport.toFixed(2))
       texte1 = '</font>'
       document.writeln(texte1)
       document.writeln('</TD></TR>')
//
       grand_grand_total = cout_transport + grand_total
       document.writeln('<TR><TD></TD><TD ALIGN="RIGHT">')                     
       texte1 = '<font SIZE="+1"> Grand total: </font>'
       document.writeln(texte1)
//
       document.writeln('</TD><TD>') 
       document.writeln('</TD><TD ALIGN="RIGHT">')
       texte1 = '<font SIZE="+1">$'
       document.write(texte1)
       document.write(grand_grand_total.toFixed(2))
       texte1 = '</font>'
       document.writeln(texte1)
       document.writeln('</TD></TR>')
//
       document.writeln('<TR><TD></TD><TD>')                     
       texte1 = '<font SIZE="+1"> * Coût transport si USA: $</font>'
       document.writeln(texte1)
//
       document.write(cout_si_usa.toFixed(2))
       texte1 = '</font>'
       document.writeln(texte1)
       document.writeln('</TD></TR>')
//
       document.writeln('</TABLE>')
     }     
     else {
       var texte = 'DÉCOLÉ: aucun achat de trouver!'
       alert(texte)
     }
     return
}
        function ecrire_papier_commande(){
//
// Lire cookie de commande
//
    la_commande = lire_cookie("commande_poigneesdamour");
//  alert(la_commande)
//
//
    long= la_commande.length
//
// On divise l'information de la poignee
//
    document.frmSendEmail.ligne3.value = " "
//
    grand_total = 0.0
    nbre_total = 0
    nb_p_poignees = 0
    nb_g_poignees = 0
    nb_autres = 0
    if(long > 20) {
//
// On décortique la date et l'heure de la commande
//
      if(la_commande.substring(1,2) == 0) {
        le_jour = la_commande.substring(2,3)
      }
      else {
        le_jour = la_commande.substring(1,3)
      } 
      if(la_commande.substring(4,5) == 0) {
        le_mois = la_commande.substring(5,6)
      }
      else {
        le_mois = la_commande.substring(4,6)
      }
      l_annee = la_commande.substring(7,11)
      l_heure = la_commande.substring(12,14)
      la_minute = la_commande.substring(15,17)
      la_seconde = la_commande.substring(18,20)
//
      var ligne1 = 'Date de la commande: '
      ligne1 +=  le_jour + '-' + le_mois + '-' + l_annee 
      document.frmSendEmail.ligne1.value = ligne1
//
      var ligne2 = 'Heure de la commande: ' 
      ligne2 += l_heure + ':' + la_minute + ':' + la_seconde 
      document.frmSendEmail.ligne2.value = ligne2
//
      i=1
      n = 1
      while(i<long-26) {
//
// On commence à 19 soit la date et heure de la commande - 1      

        le_no = la_commande.substring(19+i,26+i)  
        le_cote = la_commande.substring(27+i,28+i) 
        l_essence = la_commande.substring(29+i,04+i) 
        le_trou = la_commande.substring(31+i,32+i) 
        le_nbre = la_commande.substring(33+i,36+i) 
        le_prix = la_commande.substring(37+i,42+i) 
//
// On valide le choix du client
//
         choixf = 0
         if(le_trou == 1) {
           var choixt = '1 trou (centré)'
         }
         if(le_trou == 2) {
           var choixt = '2 trous (7,5cm)'
         }
         if(le_trou == 3) {
           var choixt = '2 trous (9,5cm)'
         }
         if(choixt == 0)  {
           alert('ERREUR: le choix de type de trou est en erreur! SVP recommencez.')
           i = long + 1
         }
         else {
//
           if(l_essence == 'C') {
             l_essence1 = 'chêne '
           }
           else { 
             l_essence1 = 'érable'
           }       
           if(le_cote == 'G') {
             l_orientation = 'gauche'
           }
           else { 
              if(le_cote == 'D') {  
                l_orientation = 'droite'
              }
              else { 
                l_orientation = 'null  '
              }
           }
           var ligne3 = 'Poignée en ' + l_essence1 + ' #'
           ligne3 += le_no +' avec  ' 
           ligne3 += choixt + ' et orientation ' + l_orientation
//
// On ajuste le nbre de poignées en enlevant les zéros
//
//            
           if(le_nbre.substring(0,2) == "00") {
             nb_poignees = parseInt(le_nbre.substring(2,3))
             les_espaces = '   '
           }
           else {
             if(le_nbre.substring(0,1) == "0") { 
               nb_poignees = parseInt(le_nbre.substring(1,3))
             les_espaces = '  '
             }
             else {
               nb_poignees = parseInt(le_nbre)
               les_espaces = ' '
             }
           }              
           ligne3 += '       ' + nb_poignees 
           le_prixt = nb_poignees * parseFloat(le_prix)
           ligne3 += les_espaces + '  $' + le_prixt.toFixed(2)
//
// On peut avoir un maximum de 10 items différents
//
           document.frmSendEmail.ligne4.value = n    // Le nbre de ligne ou d'items (non vraiment utilise)
           if(n == 1) {
             document.frmSendEmail.ligne3.value = ligne3
           }
           else {
             document.frmSendEmail.ligne3.value += '\n' 
             document.frmSendEmail.ligne3.value += '          ' + ligne3
           }
           n = n + 1         
//
// On conserve le nbre de poignées commandées selons sa gatégorie
//          
           if(le_no.substring(0,4) == "AU-P") {
             nb_p_poignees = nb_p_poignees + nb_poignees
           }
           else  {
             if(le_no.substring(0,3) == "AU-") {
                nb_autres = nb_autres + nb_poignees
             }
             else {
               nb_g_poignees = nb_g_poignees + nb_poignees
             }
           }
//
           nbre_total = nbre_total + nb_poignees
           grand_total = grand_total + parseFloat(le_prixt)
           i = i + 25  // nbre de caractères par poignées - 1
         } 
       }
//
// On va calculer le rabais s'il y en a un
//
       var rabais = 0.00
       rabais = calcul_rabais(grand_total)
//
       if(rabais > 0.00) {                   
          grand_total = grand_total - rabais
       }
//
//
// On ecrit le grand total
//
       la_tps = 0.0
       la_tvq = 0.0
//
//       la_tps = grand_total * 0.05                    
//       ligne101 = '          TPS (5.0%):             ' + '$' + la_tps.toFixed(2)
//       document.frmSendEmail.ligne101.value = ligne101
//
//       la_tvq = (grand_total + la_tps) * 0.075                    
//       ligne102 = '          TVQ (7.5%):             ' + '$' + la_tvq.toFixed(2)
//       document.frmSendEmail.ligne102.value = ligne102
// 
       if(nbre_total < 10) {
         les_espaces = '   '
       }
       else {
         if(nbre_total < 100) {
           les_espaces = '  '
         }        
         else {
           les_espaces = ' '
         }
       } 

       grand_total = grand_total + la_tps + la_tvq                    
       ligne103 = '               Total:       ' + nbre_total + les_espaces + '  $' +  grand_total.toFixed(2)
       document.frmSendEmail.ligne103.value = ligne103
//
//
       var cout_transport = 0.00
       var cout_si_usa = 0.00
//
// On va calculer le coùt du transport
//
        cout_transport = calcul_transport_tous(nb_p_poignees,nb_g_poignees,nb_autres)
//
// Coût final si Canada
//
       grand_grand_total = cout_transport + grand_total   
       ligne104 = 'Coût transport (CAN):             ' + '$' +  cout_transport.toFixed(2)
       document.frmSendEmail.ligne104.value = ligne104
//              
       ligne105 = '         Grand total:             ' + '$' +  grand_grand_total.toFixed(2)
       document.frmSendEmail.ligne105.value = ligne105
       document.frmSendEmail.montant_final_can.value = grand_grand_total
//
// Coût si USA
//
       var cout_si_usa = 0.00
       cout_si_usa = calcul_transport_usa(cout_transport)
       grand_grand_total = cout_si_usa + grand_total   
       ligne104 = 'Coût transport (USA):             ' + '$' +  cout_si_usa.toFixed(2)
       document.frmSendEmail.ligne104a.value = ligne104
//              
       ligne105 = '         Grand total:             ' + '$' +  grand_grand_total.toFixed(2)
       document.frmSendEmail.ligne105a.value = ligne105
       document.frmSendEmail.montant_final_usa.value = grand_grand_total
     }     
     return
}
//
	function calcul_transport_usa(cout_transport) {
// 
//     Paiement du transport si USA: ajoutée $10. sur le total.
//

         cout_si_usa = cout_transport + 10.00
         return cout_si_usa
       }
//
	function calcul_rabais(grand_total) {
//
//     Mettre la valeur le_rabais = 0.00 si on ne souhaite pas avoir de rabais
//                                  0.15 si on souhaite avoir un rabais de 15%
//
       var le_rabais = 0.00 
//
       if(le_rabais > 0.00) {
          rabais = grand_total * le_rabais 
       }
       else {
	  rabais = 0.0

       }
         return rabais
       }
//
	function calcul_transport_tous(nb_p_poignees,nb_g_poignees,nb_autres) {
//        alert(nb_p_poignees)
//        alert(nb_g_poignees)
//        alert(nb_autres)

//
//     Paiement du transport si Canada (petites poignées et PETITS articles):
//                                      1: $3;
//                                      2: $5;
//                                      3 à 5: $8;
//                                      6 et 10: $10 ;
//                                      11 et +: selon le calcul:  $10 + $1 la poignée supplémentaire   
//     Paiement du transport si USA: ajoutée $10. sur le total.
//
       cout_transport = 0.00 
       if(nb_p_poignees > 0) { 
         if(nb_p_poignees < 2) {
           cout_transport = 3.00
         }
         else {
           if(nb_p_poignees < 3) {
             cout_transport = 5.00
           }
           else {
             if(nb_p_poignees < 6) {
               cout_transport = 8.00
             }
             else {
               if(nb_p_poignees < 11) {
                 cout_transport = 10.00
               }
               else {
                 cout_transport = 10.00 + nb_p_poignees
               }
             }
           }
         }
       }
//
//     Paiement du transport si Canada (grandes poignees):
//                                      1: $8;
//                                      2: $12;
//                                      3 à 5: $20;
//                                      6 et 10: $20
//                                      11 et +: selon le calcul:  $20 + $2 la poignée supplémentaire   
//     Paiement du transport si USA: ajoutée $10. sur le total.
//
       if(nb_g_poignees > 0) {        
         if(nb_g_poignees < 2) {
           cout_transport = cout_transport + 8.00
         }
         else {
           if(nb_g_poignees < 3) {
             cout_transport = cout_transport + 12.00
           }
           else {
             if(nb_g_poignees < 6) {
               cout_transport = cout_transport + 20.00
             }
             else {
               if(nb_g_poignees < 11) {
                 cout_transport = cout_transport + 30.00
               }
               else {
                 cout_transport = cout_transport + 30.00 + (nb_g_poignees * 2.0)
               }
             }
           }
         }
       }
//
//     Paiement du transport si Canada (autres items):
//                                      1: $12;
//                                      2: $20;
//                                      3 à 5: $28;
//                                      6 et 10: $40
//                                      11 et +: selon le calcul:  $40 + $3 l'item supplémentaire   
//     Paiement du transport si USA: ajoutée $10. sur le total.
//
       if(nb_autres > 0) {
         if(nb_autres < 2) {
           cout_transport = cout_transport + 12.00
         }
         else {
           if(nb_autres < 3) {
             cout_transport = cout_transport + 20.00
           }
           else {
             if(nb_autres < 6) {
               cout_transport = cout_transport + 28.00
             }
             else {
               if(nb_autres < 11) {
                 cout_transport = cout_transport + 40.00
               }
               else {
                 cout_transport = cout_transport + 40.00 + (nb_autres * 3.0)
               }
             }
           }
         }
       }

         return cout_transport
       }
//