function calcul() {

<!--déclaration des variables// -->
var montant_tva=0;
var prix_ht_filet=0;
var prix_ht_picot_typeU2=0;
var prix_ht_picot_typeU4=0;
var prix_ht_silicone=0;
var total_ttc = 0;
var frais_de_port = 25;
var qte_filet = document.getElementById("qte_filet").value;
var qte_picot_typeU2 = document.getElementById("qte_picot_typeU2").value;
var qte_picot_typeU4 = document.getElementById("qte_picot_typeU4").value;
var qte_silicone = document.getElementById("qte_silicone").value;

<!-- Calcule et affiche le montant total hors taxe// -->
ht = Math.round((qte_filet*8)+(qte_picot_typeU2*10)+(qte_picot_typeU4*14)+(qte_silicone*9)+frais_de_port);
document.getElementById("mht").innerHTML= ht+" €";
document.getElementById("montant_ht_php").value= ht;


<!--Calcule et affiche le montant total TVA// -->
montant_tva = ((19.6*ht)/100);
montant_tva_arrondi = (Math.round(montant_tva*100)/100);
document.getElementById("montant_tva").innerHTML= montant_tva_arrondi+" €";
<!--remplace variable dans champ hidden pour envoi par post
document.getElementById("montant_tva_php").value= montant_tva_arrondi;


<!--CALCUL DES PRIX "TOTAL HORS TAXES"// -->
<!-- Calcule et affiche le prix HT des filets// -->
prix_ht_filet = (qte_filet*8);
document.getElementById("prix_ht_filet").innerHTML= prix_ht_filet+" €";
<!--remplace variable dans champ hidden pour envoi par post// -->
document.getElementById("prix_ht_filet_php").value= prix_ht_filet;

<!-- Calcule et affiche le prix HT des picotU2// -->
prix_ht_picot_typeU2 = (qte_picot_typeU2*10);
document.getElementById("prix_ht_picot_typeU2").innerHTML= prix_ht_picot_typeU2+" €";
<!--remplace variable dans champ hidden pour envoi par post// -->
document.getElementById("prix_ht_picot_typeU2_php").value= prix_ht_picot_typeU2;

<!-- Calcule et affiche le prix HT des picotU4// -->
prix_ht_picot_typeU4 = (qte_picot_typeU4*14);
document.getElementById("prix_ht_picot_typeU4").innerHTML= prix_ht_picot_typeU4+" €";
<!--remplace variable dans champ hidden pour envoi par post
document.getElementById("prix_ht_picot_typeU4_php").value= prix_ht_picot_typeU4;

<!-- Calcule et affiche le prix HT silicone// -->
prix_ht_silicone = (qte_silicone*9);
document.getElementById("prix_ht_silicone").innerHTML= prix_ht_silicone+" €";
<!--remplace variable dans champ hidden pour envoi par post// -->
document.getElementById("prix_ht_silicone_php").value= prix_ht_silicone;


<!-- Calcule et affiche le montant global TTC (+ frais de port)// -->
total_ttc = (ht + montant_tva_arrondi);
total_ttc_arrondi = (Math.round(total_ttc*100)/100);
document.getElementById("total_ttc").innerHTML= total_ttc_arrondi+" €";
<!--remplace variable dans champ hidden pour envoi par post// -->
document.getElementById("total_ttc_php").value= total_ttc_arrondi;
}
