//------------------------------Ajout rapide Code produit--------------------------
    function confirm_addproduit()
    if document.getElementById("code_produit").value = "" then
            msgbox("Veuillez entrer le code produit à 4 chiffres !")
            //document.getElementById("code_produit").focus()
            confirm_addproduit=false:exit function
    end if
     dim code_produit_val
     code_produit_val=document.getElementById("code_produit").value
     if len(code_produit_val)<>4 then
           msgbox("Le code produit est un nombre à 4 chiffres !")
           document.getElementById("code_produit").value=""
           //document.getElementById("code_produit").focus()
           confirm_addproduit=false:exit function
     end if
     dim chkZ
     chkZ = 1
     for i=0 to len(document.getElementById("code_produit").value)-1 step 1

         if document.getElementById("code_produit").value.charAt(i) < 0 and documentgetElementById("code_produit").value.charAt(i) > 9 then
            chkZ = -1
         end if
     next
         if chkZ = -1 then
            msgbox("Le code produit est un nombre à 4 chiffres !")
            document.getElementById("code_produit").value=""
            //document.getElementById("code_produit").focus()
            confirm_addproduit=false:exit function
         end if
end function
//------------------------------Confirmer choix------------------------------------
function confirm_supp()
       dim reponse
       reponse=confirm("Voullez vous vraiment continuer la suppression ?? Celle-ci sera définitive !")
        if reponse = true then
             confirm_supp=true:exit function
        else
             confirm_supp=false:exit function
        end if
end function