var today=new Date();var expDays = 30;var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));var jour = today.getDate();

if (jour <10){var jour='0'+jour}
var fichier2="<A HREF=\"http://www.cyberliege.be/cgi-bin/cartedujour.cgi\"><IMG SRC=\"http://www.cyberliege.be/DIVERS/cartes_du_jour/"+jour+"-r.jpg\"></A>";

if(top.frames.length > 0)top.location.href=self.location;

function LaCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1) endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function LeCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg) return LaCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; 
}
return null;
}

function PlaceCookie (name, value) {
var argv = PlaceCookie.arguments;
var argc = PlaceCookie.arguments.length;
var expires = (argc > 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) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function EffaceCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1); 
var cval = LeCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function getcount(){
var count = LeCookie('count')
if(count == null) {
PlaceCookie('count','1',exp)
popup()
return 0
}
else {
var newcount = parseInt(count) + 1;
EffaceCookie('count')
PlaceCookie('count',newcount,exp)
return count
}
}

var expDays = 30;var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function popup(){
window.open('abonnement.html','popup','width=408,height=275,menubar=0,scrollbars=2,location=0,resize=0');}

function popupauto(){setTimeout("p('DIVERS/cyblg/abo/popup.html')",1) }

function p(i){
//i="actu/"+i; avec scrollbars
window.open(i, "Updates", "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=360, left=130, top=100");
}

function pp(i){
//i="actu/"+i;
window.open(i, "Updates", "toolbar=no, location=no, directories=no, status=no, resizable=no, copyhistory=no, width=380, height=460, left=130, top=20");
}

function Controle_Vote()
{
xx=0;
if(document.ff.a[0].checked ){xx=1}
if(document.ff.a[1].checked ){xx=1}
if(document.ff.a[2].checked ){xx=1}
if(xx==0) {alert("Vous n'avez rien coché");return false };
}


