﻿///////////////////////////////////////////////////////////////
// Fichier Commun à toutes les enseignes                     //
// Merci de Synchroniser tous les sites avec le même fichier //
///////////////////////////////////////////////////////////////

var valeurSecure = 1;

function urlencode(str) {
    return escape(str.replace(/%/g, '%25').replace(/\+/g, '%2B')).replace(/%25/g, '%');
}

function shopzilla() {

    info = "";

    if (nomSite == "vertbaudetfr") {
        if (estNouveauClient == "1")
            actionShopzilla = "1";
        else
            actionShopzilla = "2";

        aujourdhui = new Date();
        minute = aujourdhui.getMinutes();

        if ((minute >= 10) && (minute <= 40))
            info = "<script language=\"JavaScript\"  src=\"https://evaleu.shopzilla.com/js/pos_84556.js\" type=\"text/javascript\"></script>";
    }

    if (nomSite == "cyrillusfr") {
        if (estNouveauClient == "1")
            actionShopzilla = "1";
        else
            actionShopzilla = "2";

        aujourdhui = new Date();
        minute = aujourdhui.getMinutes();

        if ((minute >= 0) && (minute <= 30))
            info = "<script language=\"JavaScript\"  src=\"https://evaleu.shopzilla.com/js/pos_86017.js\" type=\"text/javascript\"></script>";
    }

    if (nomSite == "vertbaudetde") {
        if (estNouveauClient == "1")
            actionShopzilla = "1";
        else
            actionShopzilla = "2";

        aujourdhui = new Date();
        minute = aujourdhui.getMinutes();

        if ((minute >= 10) && (minute <= 50))
            info = "<script language=\"JavaScript\"  src=\"https://evaleu.shopzilla.com/js/pos_197056.js\" type=\"text/javascript\"></script>";
    }

    if (nomSite == "cyrillusde") {
        if (estNouveauClient == "1")
            actionShopzilla = "1";
        else
            actionShopzilla = "2";

        aujourdhui = new Date();
        minute = aujourdhui.getMinutes();

        if ((minute >= 0) && (minute <= 15))
            info = "<script language=\"JavaScript\"  src=\"https://evaleu.shopzilla.com/js/pos_164733.js\" type=\"text/javascript\"></script>";
    }

    if (nomSite == "somewherefr") {
        if (estNouveauClient == "1")
            actionShopzilla = "1";
        else
            actionShopzilla = "2";

        aujourdhui = new Date();
        minute = aujourdhui.getMinutes();

        if ((minute >= 0) && (minute <= 20))
            info = "<script language=\"JavaScript\"  src=\"https://evaleu.shopzilla.com/js/pos_84555.js\" type=\"text/javascript\"></script>";
    }

    //alert('shopzilla');
    info += "<!-- " + nomSite + "/TAG SHOPZILLA TRAFIC -->";
    info += "<script>";
    info += "var mid = '" + organisationShopzillaId + "';"
    info += "var cust_type = '" + actionShopzilla + "';";
    info += "var order_value = '" + totalCommandeHT + "';";
    info += "var order_id = '" + purchaseID + "';";
    info += "var units_ordered = '" + nombreArticle + "';";
    info += "</script>";

    info += "<script language=\"javascript\" src=\"https://www.Shopzilla.com/css/roi_tracker.js\"></script>";
    info += "<!-- END TAG SHOPZILLA TRAFIC -->";

    document.write(info);
}

function criteoProduit() {
    info = "";
    info += "<script language=\"javascript\" src=\"http://ld2.criteo.com/criteo_ld.js\"></script>";

    var prod = products.substring(1, products.length);
    var idSite = "";
    var pv = "";


    /*if (nomSite == "somewherefr") 
    {
    idSite = "7709021";
    pv = "psu";
    }

    if (nomSite == "vertbaudetfr") 
    {
    idSite = "7709011";
    pv = "pvx";
    }*/
    //alert(prod);

    if (document.location.href.indexOf("somewhere.fr") > 0) {
        idSite = "7709021";
        pv = "psu";
    }

    if (document.location.href.indexOf("vertbaudet.fr") > 0) {
        idSite = "7709011";
        pv = "pvx";
    }

    if (document.location.href.indexOf("daxon.fr") > 0) {
        idSite = "7709203";
        pv = "pdf";
    }

    info += "<script type=\"text/javascript\">";
    info += "document.write('<div id=\"cto_se_" + idSite + "_ac\" style=\"display:none\">');";
    info += "document.write('<div class=\"ctoWidgetServer\">http:\/\/widget.criteo.com\/" + pv + "\/<\/div>');";
    info += "document.write('<div class=\"ctoDataType\">sendEvent<\/div>');";
    info += "document.write('<div class=\"ctoParams\">wi=" + idSite + "&pt1=2&i=" + prod + "<\/div>');";
    info += "document.write('<\/div>');";
    info += "</script>";

    document.write(info);

}

function criteoAchat() {

    //articles = listeArticles.split('||');
    articles = products.split('|');

    reference = '';
    prix = '';
    quantite = '';
    info = '';
    reportInfo = '';
    review = '';

    var idSite = "";
    var pv = "";

    if (nomSite == "somewherefr") {
        idSite = "7709022";
        pv = "psu";
    }

    if (nomSite == "vertbaudetfr") {
        idSite = "7709012";
        pv = "pvx";
    }

    if (nomSite == "daxonfr") {
        idSite = "7709204";
        pv = "pdf";
    }

    for (var i = 0; i < articles.length - 1; i++) {

        var article = articles[i].split(';');

        reference = article[1];
        quantite = article[2];
        prix = article[3];

        reportInfo += "&i" + i + 1 + "=" + reference + "&p" + i + 1 + "=" + prix + "&q" + i + 1 + "=" + quantite;
    }

    info = "";
    info += "<script language=\"javascript\" src=\"https://ld1.criteo.com/criteo_ld.js\"></script>";
    info += "<script type=\"text/javascript\">";
    info += "document.write('<div id=\"cto_tr_" + idSite + "_ac\" style=\"display:none\">');";
    info += "document.write('<div class=\"ctoWidgetServer\">https:\/\/widget.criteo.com\/" + pv + "\/<\/div>');";
    info += "document.write('<div class=\"ctoDataType\">transaction<\/div>');";

    info += "document.write('<div class=\"ctoParams\">wi=" + idSite + "&t=" + purchaseID + "&s=1" + reportInfo + "<\/div>');";
    info += "document.write('<\/div>');";
    info += "</script>";
    document.write(info);

}


function kelkooCommande() {
    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    organizationId = "1092498";
    eventId = "53571";

    if (nomSite == "cyrillusfr") {
        organisationId = "1092498";
        eventId = "53571";
    }

    if (nomSite == "vertbaudetfr") {
        organisationId = "926904";
        eventId = "14927";
    }

    if (nomSite == "daxonfr") {
        organisationId = "1083485";
        eventId = "50487";
    }

    if (nomSite == "vertbaudetes") {
        organisationId = "1115685";
        eventId = "58277";
    }

    articles = listeArticles.split('||');
    reference = '';
    prix = '';
    quantite = '';
    info = '';
    reportInfo = '';
    review = '';

    for (var i = 0; i < articles.length - 1; i++) {

        var article = articles[i].split(';;');

        reference = article[0];
        quantite = article[1];
        prix = article[2];

        reportInfo += "f1=" + quantite + "&f2=" + reference + "&f3=" + prix + "&f4=" + i + "|";

    }

    review = "name=" + nom + " " + prenom;
    review += "&email=" + email;
    review += "&expDeliveryDate=";
    review = escape(review);

    reportInfo = escape(reportInfo);

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "tbs.tradedoubler.com/report?organization=" + organizationId;
    info += "&event=" + eventId;
    info += "&&orderNumber=" + purchaseID;
    info += "&orderValue=" + totalCommandeHT;
    info += "&currency=EUR";
    info += "&reportInfo=" + reportInfo;
    info += "&review=" + review + "\">";

    document.write(info);
}

function kelkooCommande2() {
    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    //organizationId = "1115685";
    organizationId = "926904";
    //eventId ="14927";
    eventId = "14927";



    articles = listeArticles.split('||');
    reference = '';
    prix = '';
    quantite = '';
    info = '';
    reportInfo = '';
    review = '';

    for (var i = 0; i < articles.length - 1; i++) {

        var libelles = listeArticlesAvecLibelles[i].split(';;');
        var article = articles[i].split(';;');

        reference = article[0];
        quantite = article[1];
        prix = article[2];

        libelle = libelles[i];

        reportInfo += "f1=" + reference + "&f2=" + libelle + "&f3=" + prix + "|";

    }

    reportInfo = escape(reportInfo);

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "tracker.tradedoubler.com/pan/TrackBackServlet?organization=" + organizationId;
    info += "&event=" + eventId;
    info += "&currency=EUR";
    info += "&reportInfo=" + reportInfo + "\">";

    document.write(info);
}

function eSearchvisionCommande() {
    eventEs = "";
    actionEs = "";

    if (nomSite == "cyrillusfr") {
        eventEs = "A10055";
        actionEs = "ventes";
    }

    if (nomSite == "somewherefr") {
        eventEs = "A262";
        actionEs = "achat";
    }

    info = "<script>";
    info += "esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'" + actionEs + "', amount:'" + totalCommandeNet + "', orderid:'" + purchaseID + "', email : '" + email + "', zipcode : '" + zip + "'});";
    info += "esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'email', amount:'0', orderid:'0', email : '" + email + "', zip : '" + zip + "'});";
    info += "</script>";

    document.write(info);

}

function eSearchvisionCommande2() {

    //info = "<script type=\"text/javascript\" src=\"https://ssltracking.esearchvision.com/esi/esearchvisiontracking_test.js\"></script>";
    info = "";


    modeHttp = "http://";
    actionEs = "";

    if (nomSite == "somewherefr") {
        eventEs = "A262";
    }

    if (nomSite == "vertbaudetfr") {
        eventEs = "A235";
    }

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    if (estNouveauClient == "1")
        actionEs = "Nouveau_client";
    else
        actionEs = "ancien_client";

    info += "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<script>";
    info += "esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'" + actionEs + "', amount:'" + totalCommandeNet + "', orderid:'" + purchaseID + "'});";
    info += "</script>";
    //info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ssltracking.esearchvision.com/esi/once.gif?esvid=A235";
    //info += "&amount=" + totalCommandeNet + "&event=" + actionEs + "&event=" + purchaseID + "&adresse_email=" + email + "\" width=1 border=0><!-- END TAG ESEARCH VISION -->";

    //alert(info);
    document.write(info);

}

function eSearchvisionCommande3() {

    //info = "<script type=\"text/javascript\" src=\"https://ssltracking.esearchvision.com/esi/esearchvisiontracking_test.js\"></script>";
    info = "";


    modeHttp = "http://";
    actionEs = "";

    if (nomSite == "somewherefr") {
        eventEs = "A262";
    }

    if (nomSite == "vertbaudetfr") {
        eventEs = "A235";
    }

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    if (estNouveauClient == "1")
        actionEs = "Nouveau_client";
    else
        actionEs = "ancien_client";

    info += "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<script>";
    info += "esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'" + actionEs + "', amount:'" + totalCommandeNet + "', orderid:'" + purchaseID + "'});";
    info += "esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'email', amount:'0', orderid:'0', email : '" + email + "'});";
    info += "</script>";
    //info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ssltracking.esearchvision.com/esi/once.gif?esvid=A235";
    //info += "&amount=" + totalCommandeNet + "&event=" + actionEs + "&event=" + purchaseID + "&adresse_email=" + email + "\" width=1 border=0><!-- END TAG ESEARCH VISION -->";

    //alert(info);
    document.write(info);

}


function eSearchvisionCommandeNouveauClient() {
    eventEs = "";
    actionEs = "";

    if (nomSite == "cyrillusfr") {
        eventEs = "A10055";
        actionEs = "nouveau_client";
    }

    if (nomSite == "somewherefr") {
        eventEs = "A262";
        actionEs = "Nouveau_client";
    }

    info = "<script>esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'" + actionEs + "', amount:'0', orderid:'0', email : '" + email + "', zipcode : '" + zip + "'});</script>";

    if (estNouveauClient == "1")
        document.write(info);
}

/*
 Fonction créée pour ajouter un tag sur somewhere.fr
 Créée le 25/02/2010
 Modifiée le ---
 Auteur : VVE
*/
function eSearchvisionCommandeNouveauClient2() {
    eventEs = "";
    actionEs = "";

    if (nomSite == "somewherefr") 
	{
        eventEs = "A262";
    }

    if (estNouveauClient == "1") 
	{
        actionEs = "Nouveau_client";
	}
    else 
	{
        actionEs = "ancien_client";
	}

    info = "<script>esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'" + actionEs + "', amount:'" + totalCommandeNet + "', orderid:'" + purchaseID + "', email : '" + email + "', zipcode : '" + zip + "'});</script>";
	document.write(info);
}

function eSearchvisionFormulaire() {

    eventEs = "";
    complement = ", zipcode : '" + zip + "'";

    if (nomSite == "cyrillusfr") {
        eventEs = "A10055";
    }

    if (nomSite == "somewherefr") {
        eventEs = "A262";

        if (actionESearchVision == "demande_catalogue") {
            actionESearchVision = "demande_catalogue_formulaire";
        }
        complement = "";
    }

    if (nomSite == "vertbaudetfr") {
        eventEs = "A265";
    }

    info = "<script>esvtk_track( {esvtk_v:'1', esvtk_esvid:'" + eventEs + "' , event:'" + actionESearchVision + "', email : '" + email + "'" + complement + "});</script>";
    document.write(info);
}

function zanoxCommandeNouveauClient() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    if (nomSite == "daxonfr") {
        actionZanox = "NCL";
    }

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/ppl/?" + zanoxId;
    info += "&CID=[[" + actionZanox + "]]";
    info += "&CustomerID=[[" + numeroClient + "]]";
    info += "&OrderID=[[" + email + "]]";
    info += "&PartnerID=[[" + zanoxId + "]]\">";

    if (estNouveauClient == "1")
        document.write(info);
}


function zanoxCommandeNouveauClient2() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/pps/?" + zanoxId;
    info += "&CID=[[NCL]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\">";

    info += "<SCRIPT TYPE=\"text/javascript\" src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[1]]&CID=[[NCL]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\"></SCRIPT>";

    info += "<NOSCRIPT><IMG src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[2]]&CID=[[NCL]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\" width=\"1\" height=\"1\"></NOSCRIPT>";
    info += "<!-- FIN du code HTML zanox-affiliate -->";

    if (estNouveauClient == "1")
        document.write(info);
}

// Pour VB
function zanoxCommandeNouveauClient3() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/ppl/?" + zanoxId;
    info += "&CustomerID=[[" + nom + " " + prenom + "]]";
    info += "&OrderID=[[" + email + "]]\">";

    if (estNouveauClient == "1")
        document.write(info);
}

function zanoxCommande() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/pps/?" + zanoxId;
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\">";
    //info += "&PartnerID=[[" + zanoxId + "]]\">";

    info += "<SCRIPT TYPE=\"text/javascript\" src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[1]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\"></SCRIPT>";

    info += "<NOSCRIPT><IMG src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[2]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\" width=\"1\" height=\"1\"></NOSCRIPT>";
    info += "<!-- FIN du code HTML zanox-affiliate -->";

    document.write(info);
}

function zanoxCommandeComplement() {

    if (nomSite == "vertbaudetfr") {
        zanoxId = "3650C1723647024";
    }

    zanoxCommande();

}

function zanoxCommande2() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/pps/?" + zanoxId;
    info += "&CID=[[ACL]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\">";

    info += "<SCRIPT TYPE=\"text/javascript\" src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[1]]&CID=[[ACL]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\"></SCRIPT>";

    info += "<NOSCRIPT><IMG src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[2]]&CID=[[ACL]]";
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\" width=\"1\" height=\"1\"></NOSCRIPT>";
    info += "<!-- FIN du code HTML zanox-affiliate -->";

    if (estNouveauClient != "1")
        document.write(info);
}

function zanoxCommande3() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/pps/?" + zanoxId;
    info += "&CustomerID=[[" + email + "]]";
    info += "&OrderID=[[" + purchaseID + "]]";
    info += "&CurrencySymbol=[[EUR]]";
    info += "&TotalPrice=[[" + totalCommandeHT + "]]\">";
    //info += "&PartnerID=[[" + zanoxId + "]]\">";   

    document.write(info);
}

function zanoxFormulaire() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/ppl/?" + zanoxId;
    info += "&OrderID=[[" + email + "]]\">";

    info += "<SCRIPT TYPE=\"text/javascript\" src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[1]]";
    info += "&OrderID=[[" + email + "]]\"></SCRIPT>";

    info += "<NOSCRIPT><IMG src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&mode=[[2]]";
    info += "&OrderID=[[" + email + "]]\" width=\"1\" height=\"1\"></NOSCRIPT>";
    info += "<!-- FIN du code HTML zanox-affiliate -->";

    document.write(info);
}

function zanoxFormulaire2() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/ppl/?" + zanoxId;
    info += "&CustomerID=[[" + nom + "]]";
    info += "&OrderID=[[" + email + "]]";
    info += "&PartnerID=[[" + zanoxId + "]]";
    info += "&ReviewNote=[[" + prenom + "]]\">";

    document.write(info);
}

function zanoxFormulaire3() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/ppl/?" + zanoxId;
    info += "&CID=[[" + actionZanox + "]]";
    info += "&CustomerID=[[" + numeroClient + "]]";
    info += "&OrderID=[[" + email + "]]";
    info += "&PartnerID=[[" + zanoxId + "]]\">";

    document.write(info);
}

function zanoxFormulaire4() {

    modeHttp = "http://";

    if (enSecure == valeurSecure)
        modeHttp = "https://";

    if (nomSite == "daxonfr") {
        if (actionZanox == "newsletter")
            actionZanox = "NLE";
    }

    info = "<!-- DEBUT du code HTML zanox-affiliate -->";
    info += "<!-- (Le code HTML zanox-affiliate ne peut pas être modifié pour préserver une fonctionnalité parfaite !)-->";
    info += "<img width=\"1\" height=\"1\" src=\"" + modeHttp + "ad.zanox.com/ppl/?" + zanoxId;
    info += "&CID=[[" + actionZanox + "]]";
    info += "&OrderID=[[" + email + "]]\">";

    info += "<SCRIPT TYPE=\"text/javascript\" src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&CID=[[" + actionZanox + "]]";
    info += "&mode=[[1]]";
    info += "&OrderID=[[" + email + "]]\"></SCRIPT>";

    info += "<NOSCRIPT><IMG src=\"" + modeHttp + "ad.zanox.com/3pn/?" + zanoxId;
    info += "&CID=[[" + actionZanox + "]]";
    info += "&mode=[[2]]";
    info += "&OrderID=[[" + email + "]]\" width=\"1\" height=\"1\"></NOSCRIPT>";
    info += "<!-- FIN du code HTML zanox-affiliate -->";

    document.write(info);
}


function shoppingQuestionnaire() {
    eventEs = "";
    afficher = 0;

    aujourdhui = new Date();
    minute = aujourdhui.getMinutes();

    if (nomSite == "cyrillusfr") {
        eventEs = "439713";
        afficher = 1;
    }

    if (nomSite == "somewherefr") {
        eventEs = "408108";
        afficher = 1;
    }

    if (nomSite == "somewherefr") {
        eventEs = "408108";
        afficher = 1;
    }

    if (nomSite == "vertbaudetfr") {
        eventEs = "406358";

        if ((minute >= 10) && (minute <= 20))
            afficher = 0;
        else
            afficher = 1;
    }

    if (nomSite == "vertbaudetfr") {
        eventEs = "197056";

        if ((minute >= 10) && (minute <= 50))
            afficher = 0;
        else
            afficher = 1;
    }

    info = "<!-- Tag Shopping.com de suivi des ventes -->";
    info += "<script>var merchant_id = '" + eventEs + "';";
    info += "var order_amt = '" + totalCommandeNet + "';";
    info += "var order_id = '" + purchaseID + "';</script>";

    info += "<script language=\"JavaScript\" src=\"https://stat.DealTime.com/ROI/ROI.js?mid=" + eventEs + "\"></script>";

    if (afficher == 1) {
        info += "<script type=\"text/javascript\" language=\"JavaScript\" src=\"https://fr.shopping.com/xMSJ?pt=js&direct=1&mid=" + eventEs + "&lid=6&bm=1\"></script>";
    }

    document.write(info);

}

function comeAndStay() {
    info = "<img src=\"https://www.selfaffiliation.com/tracking/cpa?advert=10&camp=125&track=" + email + "&montant=3\" height=\"1\" width=\"1\" border=\"0\">";

    document.write(info);
}


function quaMedia() {

    articles = listeArticles.split('||');
    reference = '';
    prix = '';
    quantite = '';
    info = '';

    id = 'daxon';
    if (nomSite == "vertbaudetfr") {
        id = 'vertbaudet';
    }

    for (var i = 0; i < articles.length - 1; i++) {

        var article = articles[i].split(';;');


        reference = article[0];
        quantite = article[1];
        prix = article[2];
        info += "EURECA_shoppingcartadd('" + prix + "', '" + quantite + "', '" + reference + "');";

    }

    info += "EURECA_shoppingcartamount(id, '" + totalCommandeNet + "', '" + purchaseID + "', '15d', '', '');";

    if (nomSite == "vertbaudetfr") {
        if (estNouveauClient == "1") {
            document.write("<script>" + info + "</script>");
        }
    }
    else {
        document.write("<script>" + info + "</script>");
    }

}

function GetEstatTagRoiRender() {

    info = '';

    articles = listeArticlesAvecCategorie.split('||');
    produitid = '';
    prix = '';
    quantite = '';

    prefixeHttps = 'http://';


    for (var i = 0; i < articles.length; i++) {

        var article = articles[i].split(';;');

        for (var j = 0; j < article.length; j++) {
            categorieEstatRoi = article[0];
            sousCategorieEstatRoi = article[1];
            produitId = article[2];
            quantiteArticle = article[3];
            totalArticleNet = article[4];

            if (enSecure == "0") {
                prefixeHttps = 'https://';
            }

            info = "<IMG SRC=\"" + prefixeHttps + "prof.estat.com/m/web/" + estatRoiId1 + "?g=" + estatRoiId2 + "&action=" + actionEstatRoi + "&ptype=" + categorieEstatRoi + "&pbrand=" + sousCategorieEstatRoi + "&pref=" + produitId + "&nb=" + quantiteArticle + "&ca=" + totalArticleNet + "&st=0&sjs=0\" BORDER=\"0\" WIDTH=\"1\" HEIGHT=\"1\" />";
        }
    }
}

function GetGoogleServices() {
    googleServiceId = "1066556306";
    language = "fr";

    if (nomSite == "VertbaudetEs") {
        googleServiceId = "1067320378";
        language = "es";
    }

    info = "";
    info += "<!-- Google Code for purchase Conversion Page -->";
    info += "<script language=\"JavaScript\" type=\"text/javascript\">";

    info += "var google_conversion_id = " + googleServiceId + ";";
    info += "var google_conversion_language = \"" + language + "\";";
    info += "var google_conversion_format = \"1\";";
    info += "var google_conversion_color = \"666666\";";
    info += "var google_conversion_value = 1.00;";
    info += "var google_conversion_label = \"Lead\";";
    info += "</script>";

    info += "<script language=\"JavaScript\" src=\"https://www.googleadservices.com/pagead/conversion.js\">";
    info += "</script>";
    info += "<noscript>";
    info += "<img height=1 width=1 border=0 src=\"https://www.googleadservices.com/pagead/conversion/" + googleServiceId + "/?value=1.00&label=Lead&script=0\" />";
    info += "</noscript>";

    document.write(info);
}

function GetGoogleServicesCommande2() {
    googleServiceId = "1066556306";
    language = "fr";
    label = "";

    if (nomSite == "VertbaudetCh") {
        googleServiceId = "1042061275";
        label = "nG-vCNGVRRDbr_LwAw";
        language = "fr";

        if (document.location.href.indexOf("/de/") > 0) {
            label = "o6BQCPGgRRDbr_LwAw";
            language = "de";
        }
    }

    if (nomSite == "VertbaudetEs") {
        googleServiceId = "1067320378";
        label = "purchase";
        language = "es";
    }

    info = "";
    info += "<!-- Google Code for purchase Conversion Page -->";
    info += "<script language=\"JavaScript\" type=\"text/javascript\">";

    info += "var google_conversion_id = " + googleServiceId + ";";
    info += "var google_conversion_language = \"" + language + "\";";
    info += "var google_conversion_format = \"1\";";
    info += "var google_conversion_color = \"FFFFFF\";";
    info += "var google_conversion_value = \"" + totalCommandeNet + "\";";
    info += "var google_conversion_label = \"" + label + "\";";
    info += "</script>";

    info += "<script language=\"JavaScript\" src=\"https://www.googleadservices.com/pagead/conversion.js\">";
    info += "</script>";
    info += "<noscript>";
    info += "<img height=1 width=1 border=0 src=\"https://www.googleadservices.com/pagead/conversion/" + googleServiceId + "/?value=1.00&label=Lead&script=0\" />";
    info += "</noscript>";

    document.write(info);
}

function GetGoogleServiceCommandeNouveauClient() {

    typeAppel = "purchase";
    isParametrageOk = 0;
    If(totalCommandeNet == 1)
    typeAppel = "Lead"

    if (nomSite == "VertbaudetCh") {

        if (document.location.href.toLowerCase().indexOf("/de/") > 0) {
            conversionId = "1042061275";
            langue = "de";
            couleur = "FFFFFF";
            typeAppel = "cJgGCP-iRRDbr_LwAw";
            isParametrageOk = 1;
        }

        if (document.location.href.toLowerCase().indexOf("/fr/") > 0) {
            conversionId = "1042061275";
            langue = "fr";
            couleur = "FFFFFF";
            typeAppel = "wa7nCKWiRRDbr_LwAw";
            isParametrageOk = 1;
        }
    }

    if (isParametrageOk == 1) {
        info = "";

        info += "<script language=\"JavaScript\" type=\"text\/javascript\">\r\n";

        info += "var google_conversion_id = " + conversionId + ";\r\n";
        info += "var google_conversion_language = \"" + langue + "\";\r\n";
        info += "var google_conversion_format = \"1\";\r\n";
        info += "var google_conversion_color = \"" + couleur + "\";\r\n";
        info += "if (1.0) {\r\n";

        //info+="var google_conversion_value = " & prix.ToString().Replace(",", ".") & ";";
        info += "var google_conversion_value = " + totalCommandeNet.toString().replace(",", ".") + ";\r\n";
        info += "}";
        info += "var google_conversion_label = \"" + typeAppel + "\";\r\n";
        info += "<\/script>";

        info += "<script language=\"JavaScript\" src=\"https://www.googleadservices.com/pagead/conversion.js\">\r\n";
        info += "<\/script>\r\n";
        info += "<noscript>\r\n";
        info += "<img height=1 width=1 border=0 src=\"https:\/\/www.googleadservices.com/pagead/conversion/" + conversionId + "/?value=" + totalCommandeNet.toString().replace(",", ".") + "&label=" + typeAppel + "&script=0\" \/>\r\n";
        info += "<\/noscript>\r\n";

        if (estNouveauClient == "1") {
            document.write(info);
        }
    }
}



function GetGoogleServicesFormulaire() {
    googleServiceId = "1066556306";
    language = "fr";

    if (nomSite == "VertbaudetEs") {
        googleServiceId = "1067320378";
        language = "es";
    }

    info = "";
    info += "<!-- Google Code for purchase Conversion Page -->";
    info += "<script language=\"JavaScript\" type=\"text/javascript\">";

    info += "var google_conversion_id = " + googleServiceId + ";";
    info += "var google_conversion_language = \"" + language + "\";";
    info += "var google_conversion_format = \"1\";";
    info += "var google_conversion_color = \"FFFFFF\";";
    info += "var google_conversion_value = 1.00;";
    info += "var google_conversion_label = \"Lead\";";
    info += "</script>";

    info += "<script language=\"JavaScript\" src=\"https://www.googleadservices.com/pagead/conversion.js\">";
    info += "</script>";
    info += "<noscript>";
    info += "<img height=1 width=1 border=0 src=\"https://www.googleadservices.com/pagead/conversion/" + googleServiceId + "/?value=1.00&label=Lead&script=0\" />";
    info += "</noscript>";

    document.write(info);
}


function GetGoogleServicesCommande() {
//    idGoogle = "UA-1944051-10";

//    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
//    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//    var pageTracker = _gat._getTracker(idGoogle);
//    pageTracker._initData();
//    pageTracker._trackPageview();

}

function GetGoogleServicesAnalytique() {
    info = "";
    info += "<script language=\"JavaScript\" src=\"https://ssl.google-analytics.com/urchin.js\">";
    info += "<script type=\"text/javascript\">";
    info += "_uacct = \"UA-366276-1\";";
    info += "urchinTracker();";
    info += "</script>";
    //info+="<script>__utmSetTrans();</script>";
    //info+="<form style=\"display:none;\" name=\"utmform\">";
    //info+="<textarea id=\"utmtrans\">UTM:T|" + purchaseID + "|Vertbaudet.es|" + totalCommandeNet + "|empty|empty|" + city + "|empty|empty UTM:I|empty|empty|empty|empty|empty|empty</textarea>"
    //info+="</form>"; 

    document.write(info);

}

function GetGoogleServicesAnalytiqueFormulaire() {
    info = "";
    info += "<script language=\"JavaScript\" src=\"http://www.google-analytics.com/urchin.js\">";
    info += "<script type=\"text/javascript\">";
    info += "_uacct = \"UA-366276-1\";";
    info += "urchinTracker();";
    info += "</script>";
    info += "<script>__utmSetTrans();</script>";

    document.write(info);

}


function GetAventMediaDemandeCata() {

    var id = "";
    info = "";

    if (nomSite == "daxonfr") {
        id = "5265";
    }

    if (nomSite == "daxonbe") {
        id = "5265";
    }


    if (id != "") {
        info = "<img src=\"https://tsw0.com/" + id + "/?aid=2&value=&cur=EUR&ordid=&pdesc=demandecatalogue&group=\" height=\"1\" width=\"1\" border=\"0\" />";
    }

    document.write(info);

}

function GetAventMediaTagRender() {

    var id = "";
    info = "";

    if (nomSite == "daxonfr") {
        id = "5265";
    }

    if (nomSite == "daxonbe") {
        id = "5265";
    }


    if (id != "") {
        info = "<img src=\"https://tsw0.com/" + id + "/?aid=1&value=" + totalCommandeNet + "&cur=EUR&ordid=" + purchaseID + "\" height=\"1\" width=\"1\" border=\"0\" />";
    }

    document.write(info);

}

function GetHurraTagCommande() {
    idClient = "";
    info = "";
    if (nomSite == "daxonfr") {
        idClient = "0C585S0CL30PPS";
    }

    if (nomSite == "cyrillusde") {
        idClient = "0C259S0CL30PPS"
    }

    if (nomSite == "cyrilluscom") {
        idClient = "0C452S0CL30PPS"
    }

    if (nomSite == "vertbaudetde") {
        idClient = "0C861S0CL30PPS";
    }


    info = "<iframe name=\"Switch\" src=\"https://ssl.hurra.com/TrackIt?tid=" + idClient + "&sale=" + totalCommandeHT + "&orderid=" + purchaseID + "&clientid=&currency=EUR&ifrsw=1\" marginwidth=1 marginheight=1 height=1 width=1 border=0 frameborder=0></iframe>";
    document.write(info);
}

function GetHurraTagNouveauClient() {

    idClient = "";
    info = "";
    num = "";

    aujourdhui = new Date();
    minute = aujourdhui.getMinutes();
    heure = aujourdhui.getHours();
    seconde = aujourdhui.getSeconds();
    jour = aujourdhui.getDay();
    mois = aujourdhui.getMonth();
    annee = aujourdhui.getYear();

    if (nomSite == "cyrillusde") {
        idClient = "0C259S0CL30PPL";

        num = "517594";
        id = jour.toString() + mois.toString() + annee.toString() + heure.toString() + minute.toString() + seconde.toString();
    }

    info = "<iframe name=\"Switch\" src=\"https://ssl.hurra.com/TrackIt?tid=" + idClient + "&leadid=" + id + "&mc=" + num + "&ifrsw=1\" marginwidth=1 marginheight=1 height=1 width=1 border=0 frameborder=0></iframe>";

    if (estNouveauClient == "1")
        document.write(info);

}

function GetHurraTagDemandeCatalogue() {

    idClient = "";
    info = "";
    num = "";

    if (nomSite == "cyrillusde") {
        idClient = "0C259S0CL30PPL";
        num = "259102";
        id = Date.Now.ToString(jour.toString() + mois.toString() + annee.toString() + heure.toString() + minute.toString() + seconde.toString());
    }

    if (nomSite == "cyrilluscom") {
        idClient = "0C452S0CL30PPL";
        num = "516408";
        id = Date.Now.ToString(jour.toString() + mois.toString() + annee.toString() + heure.toString() + minute.toString() + seconde.toString());
    }

    info = "<iframe name=\"Switch\" src=\"https://ssl.hurra.com/TrackIt?tid=" + idClient + "&leadid=" + id + "&mc=" + num + "&ifrsw=1\" marginwidth=1 marginheight=1 height=1 width=1 border=0 frameborder=0></iframe>";
    document.write(info);

}

function GetHurraTagNewsLetter() {

    idClient = "";
    info = "";
    num = "";

    if (nomSite == "cyrillusde") {
        idClient = "0C259S0CL30PPL";
        num = "259102";
        id = Date.Now.ToString(jour.toString() + mois.toString() + annee.toString() + heure.toString() + minute.toString() + seconde.toString());
    }

    if (nomSite == "cyrilluscom") {
        idClient = "0C452S0CL30PPL";
        num = "516409";
        id = Date.Now.ToString(jour.toString() + mois.toString() + annee.toString() + heure.toString() + minute.toString() + seconde.toString());
    }

    info = "<iframe name=\"Switch\" src=\"https://ssl.hurra.com/TrackIt?tid=" + idClient + "&leadid=" + id + "&mc=" + num + "&ifrsw=1\" marginwidth=1 marginheight=1 height=1 width=1 border=0 frameborder=0></iframe>";
    document.write(info);

}

//optimisation SEM pour vertbaudetde
function GetHurraTagSEM() {
    if (nomSite == "vertbaudetde")
	{
		info ="<script id=\"lpopro_trigger\" language=\"javascript\" type=\"text/javascript\">LPOPRO_CONTROL.init();</script>";
		document.write(info);
	}
}

function GetKelkooTagCommande() {
    info = "";
    reviewStr = "";

    if (nomSite == "daxonfr") {
        organisationId = "1083485";
        eventId = "50487";
    }

    aujourdhui = new Date();

    aujourdhui.setDate(today.getDate() + 21);
    dateExpire = aujourdhui.dateFormat("Y-m-d");

    reviewStr = "name=" & prenom & " " & nom & "&email=" & email & "&expDeliveryDate=" & dateExpire;
    reviewStr = urlencode(reviewStr);

    info = "<img src=\"https://tbs.tradedoubler.com/report?organization=" + organisationId + "&event=" + eventId + "&orderNumber=" + purchaseID + "&orderValue=" + totalCommandeHT + "&currency=EUR&reportInfo=&review=" + reviewStr + "\" />";

    document.write(info);

}

function GetCodibarras() {
    info = "";
    info += "<img src=\"https://www.codigobarras.com/share-ht/acb.php?p=" + totalCommandeHT + " &ref=" + purchaseID + "\" width=1 height=1>";
    document.write(info);
}

function GetMetaAffiliation() {
    info = "";
    info += "<img src=\"https://action.metaffiliation.com/suivi.php?mclic=S4117F1012&argmon=" + totalCommandeHT + "&argann=" + numeroClient + "\" width=1 height=1>";
    document.write(info);
}

function GetCodibarras2() {
    idCodiBarras = "4371";

    if (nomSite == "VertbaudetEs") {
        idCodiBarras = "4317";
    }

    info = "";
    info += "<img src=\"https://www.codigobarras.com/share-ht/acb.php?p=" + totalCommandeHT + " &ref=" + purchaseID + "\" width=1 height=1>";

    info += "<script language=\"JavaScript\" src=\"https://www.codigobarras.com/share-ht/js/roi/cbn.js\">";
    info += "</script>";
    info += "<script language='javascript'>actualizarRoi(" + idCodiBarras + ",'" + purchaseID + "','" + totalCommandeHT + "');</script>";

    document.write(info);
}

function GetEProfessionalTag() {
    info = "";
    info += "<img src=\"http://counter.eanalyzer.de/?client=3413&type=landmark&name=kataloge\" width=1 height=1>";

    document.write(info);
}


function GetDoubleClickProduit() {
    info = "";
    info += "<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->";
    info += "<SCRIPT language=\"JavaScript\">";
    info += "var axel = Math.random()+\"\";";
    info += "var a = axel * 10000000000000;";
    info += "document.write('<IMG SRC=\"http://ad.pt.doubleclick.net/activity;src=1387968;type=vertb384;cat=" + prop1 + ";ord='+ a + '?\" WIDTH=1 HEIGHT=1 BORDER=0>');";
    info += "</SCRIPT>";
    info += "<NOSCRIPT>";
    info += "<IMG SRC=\"http://ad.pt.doubleclick.net/activity;src=1387968;type=vertb384;cat=" + prop1 + ";ord=1?\" WIDTH=1 HEIGHT=1 BORDER=0>";
    info += "</NOSCRIPT>";
    info += "<!-- End of DoubleClick Spotlight Tag: Please do not remove-->";
    //alert(info);
    document.write(info);

}

function GetDoubleClickAccueil() {
    info = "";
    info += "<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->";
    info += "<SCRIPT language=\"JavaScript\">";
    info += "var axel = Math.random()+\"\";";
    info += "var a = axel * 10000000000000;";
    info += "document.write('<IMG SRC=\"http://ad.pt.doubleclick.net/activity;src=1387968;type=vertb384;cat=homep311;ord='+ a + '?\" WIDTH=1 HEIGHT=1 BORDER=0>');";
    info += "</SCRIPT>";
    info += "<NOSCRIPT>";
    info += "<IMG SRC=\"http://ad.pt.doubleclick.net/activity;src=1387968;type=vertb384;cat=homep311;ord=1?\" WIDTH=1 HEIGHT=1 BORDER=0>";
    info += "</NOSCRIPT>";
    info += "<!-- End of DoubleClick Spotlight Tag: Please do not remove-->";
    document.write(info);
}

function GetDoubleClickDemandeCatalogue() {
    info = "";
    info += "<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->";
    info += "<!-- Activity Name for this tag is:Pedido Catálogo - conf -->";
    info += "<!-- Web site URL where tag should be placed: http://www.vertbaudet.pt/pt/Views/CompteClient/Detail.aspx?m=7&c=2 -->";
    info += "<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->";
    info += "<SCRIPT language=\"JavaScript\">";
    info += "var axel = Math.random()+\"\";";
    info += "var a = axel * 10000000000000;";
    info += "document.write('<IMG SRC=\"http://ad.doubleclick.net/activity;src=1387968;type=conve213;cat=pedid589;ord=1;num='+ a + '?\" WIDTH=1 HEIGHT=1 BORDER=0>');";
    info += "</SCRIPT>";
    info += "<NOSCRIPT>";
    info += "<IMG SRC=\"https://ad.doubleclick.net/activity;src=1387968;type=conve213;cat=pedid589;ord=1;num=1?\" WIDTH=1 HEIGHT=1 BORDER=0>";
    info += "</NOSCRIPT>";
    info += "<!-- End of DoubleClick Spotlight Tag: Please do not remove-->";
    document.write(info);
}

function GetDoubleClickDemandeCarteVB() {
    info = "";
    info += "<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->";
    info += "<!-- Activity Name for this tag is:Pedido de Cartão - Info Cartão VB -->";
    info += "<!-- Web site URL where tag should be placed: http:// (página com informação sobre pedido de cartão Vertbaudet) -->";
    info += "<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->";
    info += "<SCRIPT language=\"JavaScript\">";
    info += "var axel = Math.random()+\"\";";
    info += "var a = axel * 10000000000000;";
    info += "document.write('<IMG SRC=\"http://ad.pt.doubleclick.net/activity;src=1387968;type=conve213;cat=pedid782;ord='+ a + '?\" WIDTH=1 HEIGHT=1 BORDER=0>');";
    info += "</SCRIPT>";
    info += "<NOSCRIPT>";
    info += "<IMG SRC=\"http://ad.pt.doubleclick.net/activity;src=1387968;type=conve213;cat=pedid782;ord=1?\" WIDTH=1 HEIGHT=1 BORDER=0>";
    info += "</NOSCRIPT>";
    info += "<!-- End of DoubleClick Spotlight Tag: Please do not remove-->";

}

function GetDoubleClickAchat() {
    info = "";
    info += "<SCRIPT language=\"JavaScript\">";
    info += "document.write('<IMG SRC=\"https://ad.doubleclick.net/activity;src=1387968;type=venda852;cat=venda034;qty=1;cost=' + totalCommandeHT + ';ord=' + purchaseID + '?\" WIDTH=1 HEIGHT=1 BORDER=0>');";
    info += "</SCRIPT>";
    document.write(info);
}

function GetDoubleClickNouveauClient() {
    info = "";
    info += "<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->";
    info += "<SCRIPT language=\"JavaScript\"> ";
    info += "var axel = Math.random()+\"\"; ";
    info += "var a = axel * 10000000000000; ";
    info += "document.write('<IMG SRC=\"https://ad.doubleclick.net/activity;src=1387968;type=conve213;cat=novoc928;ord=1;num='+ a + '?\" WIDTH=1 HEIGHT=1 BORDER=0>'); ";
    info += "</SCRIPT> ";
    info += "<NOSCRIPT> ";
    info += "<IMG SRC=\"https://ad.doubleclick.net/activity;src=1387968;type=conve213;cat=novoc928;ord=1;num=1?\" WIDTH=1 HEIGHT=1 BORDER=0> ";
    info += "</NOSCRIPT> ";
    info += "<!-- End of DoubleClick Spotlight Tag: Please do not remove-->";
    if (estNouveauClient == "1")
        document.write(info);
}

function GetDoubleClickNewsletter() {
    info = "";
    info += "<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->";
    info += "<!-- Activity Name for this tag is:Newsletter - conf -->";
    info += "<!-- Web site URL where tag should be placed: http://www.vertbaudet.pt/pt/page/inscrever-newsletter.htm -->";
    info += "<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->";
    info += "<SCRIPT language=\"JavaScript\">";
    info += "var axel = Math.random()+\"\";";
    info += "var a = axel * 10000000000000;";
    info += "document.write('<IMG SRC=\"https://ad.doubleclick.net/activity;src=1387968;type=conve213;cat=newsl445;ord=1;num='+ a + '?\" WIDTH=1 HEIGHT=1 BORDER=0>');";
    info += "</SCRIPT>";
    info += "<NOSCRIPT>";
    info += "<IMG SRC=\"https://ad.doubleclick.net/activity;src=1387968;type=conve213;cat=newsl445;ord=1;num=1?\" WIDTH=1 HEIGHT=1 BORDER=0>";
    info += "</NOSCRIPT>";
    info += "<!-- End of DoubleClick Spotlight Tag: Please do not remove-->";
    document.write(info);
}


function GetRetargetingAccueil() {
    info = "";
    info += "<script src=\"http://nxtck.com/act.php?zid=13511\"></script>";
    document.write(info);
}

function GetRetargetingProduit() {

    var prod = products.substring(1, products.length);

    info = "";
    info += "<script src=\"http://nxtck.com/act.php?zid=13512&pid=" + prod + "\"></script>";

    document.write(info);

}

function GetRetargetingPanier() {
    info = "";
    info += "<script src=\"http://nxtck.com/act.php?zid=13513\"></script>";
    document.write(info);
}

function GetRetargetingConfirmation() {
    info = "";
    info += "<script src=\"http://nxtck.com/act.php?zid=13514&id=" + purchaseID + "&mt=0\"></script>";
    document.write(info);
}

function GetRoiConfirmation() {
    info = "";
    info += "<script type=\"text/javascript\">";

    info += "/* NexTag ROI Optimizer Data */";
    info += "var id = '4471692';";
    info += "var rev = 'O';";
    info += "var order = '" + purchaseID + "';";
    info += "</script>";
    info += "<script type=\"text/javascript\" src=\"https://imgsrv.nextag.com/imagefiles/includes/roitrack.js\"></script>";
    document.write(info);
}


function GetGoogleAnalyticsAR() {
    info = "";
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    info += "<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>";
    info += "<script>";
    info += "try {";
    info += "var pageTracker = _gat._getTracker(\"UA-11769023-1\");";
    info += "pageTracker._trackPageview();";
    info += "";
    info += "pageTracker._addTrans(purchaseID,nomSite,totalCommandeNet,\"\",totalCommandeHT,city,zip,state);";
    info += "";
    info += "articles = listeArticles.split('||');";
    info += "artLibelles = listeArticlesAvecLibelles.split(';;');";
    info += "";
    info += "for (var i = 0; i < articles.length - 1; i++) {";
    info += "    var article = articles[i].split(';;');";
    info += "    reference = article[0];";
    info += "    quantite = article[1];";
    info += "    prix = article[2];";
    info += "    ";
    info += "    var nomArticle = \"\";";
    info += "    if (artLibelles.length>i)";
    info += "        nomArticle=artLibelles[i];";
    info += "    ";
    info += "    pageTracker._addItem(purchaseID,reference,nomArticle,\"\",prix,quantite);";
    info += "    ";
    info += "}";
    info += "";
    info += "";
    info += "pageTracker._trackTrans();";
    info += "} catch(err) {}";
    info += "</script>";
    document.write(info);

}

function NeolanePanier() {
    document.write("<img height='0' width='0' alt='' src='http://" + nomSite.substring(0, nomSite.length - 2) + ".pprnl.net/r/" + Math.random().toString() + "?tagid=panier'>");
}

function NeolanePaiement() {
    articles = listeArticles.split('||');
    document.write("<img height='0' width='0' alt='' src='https://" + nomSite.substring(0, nomSite.length - 2) + ".pprnl.net/r/" + Math.random().toString() + "?tagid=paiement&amount=" + totalCommandeNet + "&article=" + articles.length + "'>");
}