function choix_onClick(rep) {
document.Submit.REP1.checked=false;
document.Submit.REP2.checked=false;
document.Submit.REP3.checked=false;
document.Submit.REP4.checked=false;
eval('document.Submit.REP'+rep+'.checked=true');
}
function SubmitSondage_onClick() {
var atleastonechoosed=0;
if (document.Submit.REP1.checked) { atleastonechoosed=1; };
if (document.Submit.REP2.checked) { atleastonechoosed=1; };
if (document.Submit.REP3.checked) { atleastonechoosed=1; };
if (document.Submit.REP4.checked) { atleastonechoosed=1; };
if (atleastonechoosed == 0) { alert('Vous devez faire un choix'); return; }
tmp="/cgi-bin/add_sondage.pl?ID_QUESTION="+document.Submit.ID_QUESTION.value;
tmp+="&REP1="+(document.Submit.REP1.checked?"1":"0");
tmp+="&REP2="+(document.Submit.REP2.checked?"1":"0");
tmp+="&REP3="+(document.Submit.REP3.checked?"1":"0");
tmp+="&REP4="+(document.Submit.REP4.checked?"1":"0");
var l = 680;
var h = 500;
var wfeatures="directories=0,menubar=1,status=0,resizable=1,scrollbars=1,toolbar=0,width="+l+",height="+h+",left=" + eval("(screen.width - l)/2") + ",top=" + eval("(screen.height - h)/2");
fen=window.open(tmp,'sondage',wfeatures);
}

document.writeln('<table cellspacing="0" cellpadding="0" width="300"><tr bgcolor="#ffffff"><td valign="bottom" align="right" style="font-size:10px">');
// ligne suivante a commenter pour enlever le bord
document.writeln('<table class=CTable2Border cellspacing="1" cellpadding="0" width="300"><tr bgcolor="#ffffff"><td>');
document.writeln('<table width=100% class=CTable2 bgcolor=#EEEEEE border=0 cellspacing=0 cellpadding=4>');
document.writeln('<form name="Submit" action="/cgi-bin/add_sondage.pl" METHOD=POST ENCTYPE="application/x-www-form-urlencoded">');
document.writeln('<tr class=CTable2><td colspan=2 class=CTable2><b>Quelle est pour vous la bonne durée d\'une petite annonce en ligne pour un chien</b></td></tr>');
document.writeln('<tr><td colspan=2><table width=100% cellpadding=0 cellspacing=0 border=0>');
document.writeln('<tr class=CTable2><td class=CTable2 align=left><input type="radio" name="REP1" onClick="choix_onClick(1)"> 2 semaines</td></tr>');
document.writeln('<tr class=CTable2><td class=CTable2 align=left><input type="radio" name="REP2" onClick="choix_onClick(2)"> 1 mois</td></tr>');
document.writeln('<tr class=CTable2><td class=CTable2 align=left><input type="radio" name="REP3" onClick="choix_onClick(3)"> 2 mois ou plus</td></tr>');
document.writeln('<tr class=CTable2><td class=CTable2 align=left><input type="radio" name="REP4" onClick="choix_onClick(4)"> Ca dépend</td></tr>');
document.writeln('</table>');
document.writeln('</td></tr>');

document.writeln('<tr><td valign=bottom align=center colspan=2>');
document.writeln('Pour voter, faites votre choix et cliquer <a href="javascript:SubmitSondage_onClick();"><img src="/images/20x20ok.gif" border=0></a>&nbsp;');
document.writeln('<input type="hidden" name="ID_QUESTION" value="25">');
document.writeln('</td></tr>');

document.writeln('<tr><td valign=bottom align=right colspan=2>');
document.writeln('<a href="/php/sondage.php">Voir résultats de tous les sondages...</a>');
document.writeln('</td></tr>');

document.writeln('</form>');
document.writeln('</table>');
// ligne suivante a commenter pour enlever le bord
document.writeln('</td></tr></table>');
document.writeln('<img src="./images/pxGGGGGG.gif" width="186" height="1"><img src="./images/module_sondage.gif">');
document.writeln('</td></tr></table>');

