function Fn_Vote(w_num_cocktail,w_ident_vote,note)
 {
if (note >= 0)
 {
  mot ='/vote/mc_vote02.php?w_num_cocktail='+w_num_cocktail+'&w_ident='+w_ident_vote+'&note='+note;
  window.open(mot, 'newWin', 'scrollbars=no,status=no,width=350,height=310');
 }
else
 {
  window.alert('Vous devez effectuer un choix avant de voter');
 }
}

function Fn_Affiche_Vote(w_num_cocktail,w_ident_vote)
{
 mot ='/vote/mc_vote01.php?w_num_cocktail='+w_num_cocktail+'&w_ident='+w_ident_vote;
 window.open(mot, 'newWin', 'scrollbars=no,status=no,width=350,height=310');
}

function Html_vote(num_cocktail,identifiant,w_titre,largeur)
{
	if (largeur == '')
	{
		largeur=560;
	}
	document.write('<center><table border="2" tyle="border-collapse: collapse" bordercolor="#111111" width="' + largeur + '"><tr>');
	document.write('<td valign="top" align="center" bordercolor="#FFFFFF">' + w_titre + '<form method="POST" action="" name="fr_vote_' + num_cocktail + '"><input type="hidden" VALUE="-1" name="hidden_note">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">');
	document.write('<tr><td width="33%"><p align="left"><input type="radio" value="0" checked name="rb_vote" onClick="fr_vote_' + num_cocktail + '.hidden_note.value=0">J\'aime pas</td>');
	document.write('<td width="33%"><p align="left"><input type="radio" name="rb_vote" value="1" onClick="fr_vote_' + num_cocktail + '.hidden_note.value=1">J\'aime</p></td>');
	document.write('<td width="33%"><p align="center"><input type="radio" name="rb_vote" value="2" onClick="fr_vote_' + num_cocktail + '.hidden_note.value=2">Excellent</td></tr>');
	document.write('</table>');
	document.write('<center><input type="button" value="Je vote !" name="pb_vote" onClick=Fn_Vote('+num_cocktail+',"'+identifiant+'",fr_vote_' + num_cocktail + '.hidden_note.value)></center>');
	document.write('</form>');
	document.write('<div style="cursor:hand" onClick=Fn_Affiche_Vote('+num_cocktail+',"'+identifiant+'")><b><u>Voir les votes</u></b></div>');
	document.write('</td></tr></table></center>');
}