function date_jour(){
  var dDate = new Date() ;
  var Jours = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi") ;
  var Mois = new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Décembre");
  document.write(Jours[dDate.getDay()] + " " + dDate.getDate() + " " + Mois[dDate.getMonth()] + " " + dDate.getFullYear()) ;
}

function logoff() {
  var ok=confirm('Etes-vous sûr de vouloir vous déconnecter ?\nAttention, si vous avez un panier en cous, il sera réinitialisé.');
  if (ok) document.location.href='/dyn/user_login.asp?act=reset';
}

function getCookie(nomCookie) {
        maChaine = new String(document.cookie);
        monTab = maChaine.split('; ');
        cont = true;
        for (i=0;i<monTab.length && cont;i++) {
                if((index=monTab[i].indexOf(nomCookie+'='))>=0) {
                        valeur = monTab[i].substr(index+nomCookie.length+1);
                        return valeur;
                }
        }
        return '';
}

function setCookie(nomCookie, valeurCookie) {
        document.cookie = nomCookie+'='+valeurCookie;
}

function setCookiePersist(nom,valeur,jours) {
  var expDate = new Date();
  expDate.setTime(expDate.getTime() + (jours *24*3600*1000));
  document.cookie = nom + "=" + escape(valeur) +";expires=" + expDate.toGMTString() + ";path=/";
}