var NHM_COOKIES = { FIRST_REFERER: "www.votresanteaunaturel.info", FIRST_HTTP_REFERER: "https://www.votresanteaunaturel.info/problemes-de-sante-alimentation/prurit_et_alimentation.news.php", FIRST_PARTNER_ID: "", FIRST_PARTNER_REF: "", THIS_REFERER: "www.votresanteaunaturel.info", THIS_HTTP_REFERER: "https://www.votresanteaunaturel.info/problemes-de-sante-alimentation/prurit_et_alimentation.news.php", THIS_PARTNER_ID: "", THIS_PARTNER_REF: "" }; // function NHMtrack(session_id, partner_id, partner_ref, referer){ function NHMtrack(cookies){ this.getCookieVal = function (offset) { var endstr=document.cookie.indexOf (";", offset); if (endstr==-1) endstr=document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } this.GetCookie = function (name) { var arg=name+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i 2) ? argv[2] : null; var path=(argc > 3) ? argv[3] : null; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? argv[5] : false; // document.cookie=name+"="+escape(value)+ document.cookie=name+"="+value+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); // document.cookie=name+"="+value; }; var date10ans = new Date(); date10ans.setFullYear(date10ans.getFullYear()+10); if(this.GetCookie('NHM_FIRST_REFERER')==null) this.SetCookie('NHM_FIRST_REFERER', cookies.FIRST_REFERER, date10ans, '/'); if(this.GetCookie('NHM_FIRST_HTTP_REFERER')==null) this.SetCookie('NHM_FIRST_HTTP_REFERER', cookies.FIRST_HTTP_REFERER, date10ans, '/'); if(this.GetCookie('NHM_FIRST_PARTNER_ID')==null) this.SetCookie('NHM_FIRST_PARTNER_ID', cookies.FIRST_PARTNER_ID, date10ans, '/'); if(this.GetCookie('NHM_FIRST_PARTNER_REF')==null) this.SetCookie('NHM_FIRST_PARTNER_REF', cookies.FIRST_PARTNER_REF, date10ans, '/'); if(this.GetCookie('NHM_THIS_REFERER')==null) this.SetCookie('NHM_THIS_REFERER', cookies.THIS_REFERER, null, '/'); if(this.GetCookie('NHM_THIS_HTTP_REFERER')==null) this.SetCookie('NHM_THIS_HTTP_REFERER', cookies.THIS_HTTP_REFERER, null, '/'); if(this.GetCookie('NHM_THIS_PARTNER_ID')==null) this.SetCookie('NHM_THIS_PARTNER_ID', cookies.THIS_PARTNER_ID, null, '/'); if(this.GetCookie('NHM_THIS_PARTNER_REF')==null) this.SetCookie('NHM_THIS_PARTNER_REF', cookies.THIS_PARTNER_REF, null, '/'); /* this.SetCookie('NHMtrackId', session_id); if(partner_id != '')this.SetCookie('NHMpartnerId', partner_id); if(partner_ref != '')this.SetCookie('NHMpartnerRef', partner_ref); if(referer != '')this.SetCookie('NHMreferer', referer); */ } // NHMtracking = new NHMtrack(NHM_SESSION, NHM_PARTNER_ID, NHM_PARTNER_REF, HTTP_REFERER); NHMtracking = new NHMtrack(NHM_COOKIES); /* function setTrackCoockie(){ } function recordPageVisit(){ } function recordPageVisitTime(){ } */ // setTrackCoockie();