<!--
var cookValue = "" ;
var cookName = "" ;
var egal = document.cookie.indexOf( "=" ) ;
cookName = document.cookie.substring ( 0, egal );
cookValue = document.cookie.substring ( egal + 1 );
if(cookName=="mesVotes") {
	var chaineVote = cookValue;
	}
else {
	var chaineVote = "#";
	}

// ------------------------------------------------- AjouterVote
function ajouterVote(id,note){
	chaineVote += id+":"+note+"#";
	SauveCookieVotes();
}

// ------------------------------------------------- SauveCookieVotes
function SauveCookieVotes() {
	var expiration = new Date();
	expiration.setMonth(expiration.getMonth() + 1);
	document.cookie = "mesVotes = "+ chaineVote + "; expires=" + expiration ;
}
// ------------------------------------------------- VerifCookieVotes()
function VerifCookieVotes(id) {
	var temoins = document.cookie.split("#");
	var trouve = 0;
	temoins.shift();
	temoins.pop();
	for (var i=0;i<temoins.length;i++){
		temoins_temp = temoins[i].split(":");
		if(temoins_temp[0]==id) {
			trouve=temoins_temp[1];
			}
		}
	if(trouve==0) {
		return false;
		}
	else {
		return trouve;
		}
	}
-->

