function init_sondage() 
{
	//A decommenter pour le debuggage
	//alert("Lancement de init sondage");
	var max_vote;
	var tableau_votes = new Array();;
	max_candidat = 0;
	max_vote = 0;	
	for (i=0;i<6;i++)
	{
		j=i+1;		
		tableau_votes[i]=document.getElementById('nombreVoteCandidat'+j).innerHTML;			
		if (tableau_votes[i]>max_vote)
		{
			max_vote = tableau_votes[i];
			max_candidat = i;
		}
	}
	document.getElementById('imgSondageCandidat'+(max_candidat+1)).height=50;							
	//A decommenter pour le debuggage :
	//alert(max_candidat);
	for (i=0;i<6;i++)
	{
		if (i!=max_candidat)
		{
			//alert(i);
			j=i+1;
			//On redimensionne les blocs de podium :
			document.getElementById('imgSondageCandidat'+j).height=((50*tableau_votes[i])/max_vote);	
			//alert(document.getElementById('imgSondageCandidat'+j).height);
		}
	}
}

function get_radio_value()
{
for (var i=0; i < document.formulaireSondage.sondage.length; i++)
   {
   if (document.formulaireSondage.sondage[i].checked)
      {
      var radio_value = document.formulaireSondage.sondage[i].value;
      return radio_value;
	  }
   }
}


