    var vote = -1;
	
    function remplirEtoiles(i) {

        var etoiles = document.getElementsByName('etoile');
        var choix = vote;
        if (choix == null) choix = -1;

        if (i < 0 && choix >= 0) {
            i = choix;
        }
        
        for(j=1; j <= etoiles.length; j++) {
            if (i > 0 && j <= i) {
                etoiles[j-1].src = "data/images/etoileverte.jpg";
            }
            else {
                etoiles[j-1].src = "data/images/etoilegrise.jpg";
            }
        }
    }



