	var  aujourdhui = new Date ();
	var cookie_name = "detect=true";expires=aujourdhui;
	document.cookie = cookie_name;


	var detect = getCookie("detect");
	
	if (detect) {
		cookie_name = "detect=";expires='Fri, 02-Jan-1970 00:00:00 GMT';
		document.cookie = cookie_name;
		document.location="espace_client.asp";
	} else {
		document.write ('<table align=\"center\" class=\"thetablesubmit\">' +
		  '<tr class=\"headlines\">' +
		    '<td width=\"416\" class=\"bighead\">Attention !</td>' +
		    '<td width=\"44\" rowspan=\"6\" valign=\"top\" class=\"rowx\"><a href=\"http://www.loc-chamonix.com\"><img src=\"../images/logoamcv.gif\" width=\"102\" height=\"62\" border=\"0\" hspace=\"10\" vspace=\"10\" /></a></td>' +
		  '</tr>' +
		 ' <tr class=\"rowx\"> ' +
		    '<td class=\"borderx\">Votre Browser soutient JavaScript ou Cookies ou il ne ' +
		        'soutient ni <br />' +
		        'JavaScript ni Cookies ou vous n\'avez pas activ&eacute; les fonctions concern&eacute;es.<br />' +
		        '<br />' +
		        'Pour r&eacute;aliser notre application nous utilisons Cookies et JavaScript.<br />' +
		        'Il n\'y a pas de possibilit&eacute; d\'utiliser sans JavaScript et Cookies. ' +
		        '<br />' +
		        'A cause de cela vous auriez du activer les fonctions n&eacute;cessaires. ' +
		        '<br />' +
		        'Si vous utiliserez un Browser qui n\'accepte pas JavaScript ou<br />' +
		      'un Browser sans Cookies, vous ne pouvez pas vous servir.</p> </td>' +
		 '</tr>' +
		  '<tr class=\"headlines\"> ' +
		    '<td class=\"borderx\">Quant au Netscape Navigateur :</td>' +
		  '</tr>' +
		  '<tr class=\"rowx\"> ' +
		    '<td class=\"borderx\">[Traiter :Ajustages: &Eacute;larg&eacute;: Activer JavaScript] ' +
		      'et <br />' +
		      '[Traiter: Ajustages: &Eacute;larg&eacute;: Accepter Cookies]</td>' +
		  '</tr>' +
		 '<tr class=\"headlines\"> ' +
		    '<td class=\"borderx\">Quant au Internet Explorer :</td>' +
		  '</tr>' +
		  '<tr class=\"rowx\"> ' +
		    '<td class=\"borderx\">[Vue: Options: S&eacute;curit&eacute; : Ex&eacute;cuter ] ' +
		      'et <br />' +
		      '[Vue: Options: S&eacute;curit&eacute; : Accepter Cookies] </td>' +
		  '</tr>' +
		'</table>' +
		'<br />' +
		'<table align=\"center\" class=\"thetablesubmit\">' +
		  '<tr align=\"center\"> ' +
		    '<td><a href=\"http://www.microsoft.com/windows/ie/\"><img src=\"../images/logo_ie.gif\" alt=\"T&eacute;l&eacute;charger Internet Explorer\" width=\"90\" height=\"43\" hspace=\"10\" border=\"0\" /></a></td>' +
		    '<td><a href=\"http://wp.netscape.com/computing/download/\"><img src=\"../images/logo_netscape.gif\" alt=\"T&eacute;l&eacute;charger Netscape \" width=\"122\" height=\"25\" hspace=\"10\" border=\"0\" /></a></td>' +
		    '<td><a href=\"http://www.mozilla.org/\"><img src=\"../images/logo_mozilla.gif\" alt=\"T&eacute;l&eacute;charger Mozilla\" width=\"111\" height=\"45\" hspace=\"10\" border=\"0\" /></a></td>' +
		  '</tr>' +
		  '<tr align=\"center\"> ' +
		    '<td colspan=\"3\"><br />' +
		      'Cette application est optimis&egrave;e pour les logiciels de navigation<br />' +
		      'Internet Explorer 5, Netscape Navigator 6 et Mozilla 1<br />' +
		      'et versions ult&egrave;rieures.<br /> &nbsp; </td>' +
		  '</tr>' +
		'</table>');


	//	document.write (xtext);
	}

	function getCookie(Name) {
	   var search = Name + "="
	   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
	         return unescape(document.cookie.substring(offset, end))
	      }
	   }
	}
