// <!-- 
function ExpireDate (DateExp) {
	var today = new Date(0);
	var todayDate = today.getTime();

	if (todayDate > 0)
		DateExp.setTime (DateExp.getTime() - todayDate);
}

function SetCookie (name,value,expire,path,domain,secure) {
	document.cookie =  name + "=" + escape (value) + ((expire) ? "; expires=" + expire.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
}


function DelCookie (name,path,domain) {
	if (GetCookieValue(name)) {
		document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}


function CookieValue (Pos) {
	var endstr = document.cookie.indexOf (";", Pos);
	if (endstr == -1)

	endstr = document.cookie.length;
	return unescape(document.cookie.substring (Pos, endstr));
}


function GetCookieValue (name) {
	var cookielength = document.cookie.length;
	var arg = name + "=";
	var arglength = arg.length;
	var i = 0;
	
	while (i < cookielength) {
		var j = i + arglength;
		if (document.cookie.substring(i, j) == arg)
			return CookieValue (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break; 
	}
	return null;
}

function CADAdminAccess() {
	var link = GetCookieValue('CADClimbersAdminLink');
	
	if (link != null && link != 'null' && link != '') 
		document.write('<br><a href="' + link + '"><img src="/images/fr/nav/suiv/vertical/cad_admin.jpg" width="138" height="55" border="0"></a>');
}

function CADMemberAccess() {
	var link = GetCookieValue('CADClimbersMemberLink');
	
	if (link != null && link != 'null' && link != '') 
		document.write('<br><a href="' + link + '"><img src="/images/fr/membres/memb_access.jpg" width="125" height="60" border="0"></a>');
}

//-->
