<!--

//Popup
function popupPage() {
var page = "http://www.albatros-club.be/show2005.html";
var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,width=270,height=350";
window.open(page, "Popup", windowprops);
//if (getCookie(acgpopup)="") window.open(page, "Popup", windowprops);
//setCookie(acgpopup,agc,1);
}

//Création du cookie
function setCookie(name, value, duration) {
today=new Date(); //expire demain
ty=today.getFullYear();
tm=today.getMonth();
td=today.getDate(); 
nextday=new Date(ty,tm,td);
//nextday=new Date() +duration;
varpath="; path=/";
dateExp=nextday.toGMTString();
nc=name+"="+escape(value)+varpath+"; expires="+dateExp;
//document.write(nc);
document.cookie=nc;
}

//Réccupération du cookie
function getCookie(Name) {
var search = Name + "=";
var cookie="";
if (document.cookie.length > 0) {// if there are any cookies
	offset = document.cookie.indexOf(search);       
	if (offset != -1) { // if cookie exists
		offset += search.length  // set index of beginning of value         
		end = document.cookie.indexOf(";", offset)  // set index of end of cookie value
		if (end == -1) end = document.cookie.length;
		cookie=unescape(document.cookie.substring(offset, end));
		}
	}
return(cookie);
}

function getAllCookies() {
var debut=0;
var ch=document.cookie;
var fin=ch.length;
var debut=0;
var lastcookie=getCookie("lastcookie");
var allCook="<UL>";
var courant="";
var select=false;
while (debut<fin) {
   pv=ch.indexOf(";",debut);
   if (pv<debut) {pv=fin;}
   courant=unescape(ch.substring(debut,pv));
   if (courant.indexOf("lastcookie",0)<0) {
      allCook=allCook+"<LI>";
      pl=courant.indexOf(lastcookie,0);
      select=((lastcookie.length>1)&&(pl>=0));
      if (select) {allCook=allCook+"<b>";}
      allCook=allCook+courant;
      if (select) {allCook=allCook+"</b>";}
      }
   debut=pv+1;
   }
allCook=allCook+"</UL>";
return(allCook);
}
// -->
