
	document.oncontextmenu = ejs_nodroit;
		
	function ScanCookie(variable)
		{
		cook = document.cookie;
		variable += "=";
		place = cook.indexOf(variable,0);
		if (place <= -1)
			return("0");
		else
			{
			end = cook.indexOf(";",place)
			if (end <= -1)
				return(unescape(cook.substring(place+variable.length,cook.length)));
			else
				return(unescape(cook.substring(place+variable.length,end)));
			}
		}

	function CreationCookie(nom,valeur,permanent)
		{
		if(permanent)
			{
			dateExp = new Date(2020,11,11);
			dateExp = dateExp.toGMTString();
			ifpermanent = '; expires=' + dateExp + ';';
			}
		else
			ifpermanent = '';
		document.cookie = nom + '=' + escape(valeur) + ifpermanent;
		}

	function ejs_nodroit()
		{
			return(false);
		}
	
	function DateModif()
		{
			date=document.lastModified
			jour=date.charAt(3)+date.charAt(4)
			mois=date.charAt(0)+date.charAt(1)
			annee=date.charAt(6)+date.charAt(7)+date.charAt(8)+date.charAt(9)
			todays_date(mois);
			document.write("Dernière modification le "+jour+" "+document.month+" "+annee)
		}

	function NewWindows(Adress,Nom,large,haut)
		{
			var top=(screen.height-haut)/2;
			var left=(screen.width-large)/2;
			window.open(Adress,Nom,'width='+large+',height='+haut+',left='+left+',top='+top+',scrollbars=yes');
		}

	function NewWindows1(Adress,Nom,larg,hau)
		{
			var topv=0;
			var haut=(screen.height);
			var leftv=0;
			var large=(screen.width);
			window.open(Adress,Nom,'width='+large+',height='+haut+',left='+leftv+',top='+topv+',scrollbars=yes');
		}

	function todays_date(month) {
		document.month=""
		if(month==01) {
			document.month="Janvier ";
		}
		if(month==2) {
			document.month="Février ";
		}
		if(month==3) {
			document.month="Mars ";
		}
		if(month==4) {
			document.month="Avril ";
		}
		if(month==5) {
			document.month="Mai ";
		}
		if(month==6) {
			document.month="Juin ";
		}
		if(month==7) {
			document.month="Juillet ";
		}
		if(month==8) {
			document.month="Août ";
		}
		if(month==9) {
			document.month="Septembre ";
		}
		if(month==10) {
			document.month="Octobre ";
		}
		if(month==11) {
			document.month="Novembre ";
		}
		if(month==12) {
			document.month="Décembre ";
		}
	}
