ValeurCookie = LireCookie("SensDeLaVie");
if (ValeurCookie != "OK")
{
reponse = confirm ("This website contains information unknown of the general public (or some pages of fiction) that may shock some fragile people, even if the whole content contains no vulgarity or pornography. Consequently we advise fragile readers against reading www.sens-de-la-vie.com. Click OK to enter means that you are aware of this and that you have read the page of Warning: http://www.sens-de-la-vie.com/Disclaimer.htm and have the legal age.");

if (reponse) {
CreeCookie();
}
else
{
 location.replace("./access-denied.html");
}
}
function EcrireCookie (nom,
                       valeur,
                       datevalid,
                       chemin,
                       domaine,
                       securise) {

        document.cookie =  nom + "=" + escape (valeur) +
               ((datevalid) ? "; expires=" + datevalid.toGMTString() : "") +
               ((chemin)    ? "; path=" + chemin : "") +
               ((domaine)  ? "; domain=" + domaine : "") +
               ((securise)  ? "; secure=" + securise : "");
      }
      
function LireCookie (nom) {

        anzCookies = document.cookie.length;
        
        cookieNom = nom + "=";
        cookieNomLongueur = cookieNom.length;

        if (document.cookie.indexOf (cookieNom) > -1) {

          finDuCookie = document.cookie.substring (
              document.cookie.indexOf (cookieNom) +
                            cookieNomLongueur);

          cookievalue = finDuCookie.substring (0,
              ((finDuCookie.indexOf (";") > -1) ?
                finDuCookie.indexOf (";") : anzCookies));

          return unescape(cookievalue)
        }
      }
function CreeCookie () {
      
        TroisJours = new Date ();
        TroisJours.setTime (TroisJours.getTime () +
                      (3 * 24 * 60 * 60 * 1000));
      
        EcrireCookie ("SensDeLaVie",
                      "OK",
                      TroisJours);
      }
