document.write('\ ');document.write('
\
\
\ \
VOTRE IDEAL MASCULIN OU FEMININ ?
\
\ \
\
1/10 Avez vous un idéal (féminin, masculin )?
\
\
\
\
\
\ \ \ \ \ \ \ \ \ \ \ \
\
\
\
\
\ '); var cpt_8354 = new Array(); var limite_cpt_8354 = new Array(); var limite_type_8354 = new Array(); var num_quest_8354 = new Array(); cpt_8354[42850] = 0; limite_cpt_8354[42850] = 0; limite_type_8354[42850] = 'max'; num_quest_8354[42850] = 1; cpt_8354[42851] = 0; limite_cpt_8354[42851] = 0; limite_type_8354[42851] = 'max'; num_quest_8354[42851] = 2; cpt_8354[42852] = 0; limite_cpt_8354[42852] = 0; limite_type_8354[42852] = 'max'; num_quest_8354[42852] = 3; cpt_8354[42853] = 0; limite_cpt_8354[42853] = 0; limite_type_8354[42853] = 'max'; num_quest_8354[42853] = 4; cpt_8354[42854] = 0; limite_cpt_8354[42854] = 0; limite_type_8354[42854] = 'max'; num_quest_8354[42854] = 5; cpt_8354[42855] = 0; limite_cpt_8354[42855] = 0; limite_type_8354[42855] = 'max'; num_quest_8354[42855] = 6; cpt_8354[42856] = 0; limite_cpt_8354[42856] = 0; limite_type_8354[42856] = 'max'; num_quest_8354[42856] = 7; cpt_8354[42857] = 0; limite_cpt_8354[42857] = 0; limite_type_8354[42857] = 'max'; num_quest_8354[42857] = 8; cpt_8354[42858] = 0; limite_cpt_8354[42858] = 0; limite_type_8354[42858] = 'max'; num_quest_8354[42858] = 9; cpt_8354[42859] = 0; limite_cpt_8354[42859] = 0; limite_type_8354[42859] = 'max'; num_quest_8354[42859] = 10; function sondage_pager8354(direction) { var active_question = 0; for(i = 0 ; i < 10 ; i ++) { if(document.getElementsByClassName('contenu8354')[i].style.display == 'block') { active_question = i; break; } } if(direction == 'next') { active_question ++; if(active_question > 9) { active_question = 9; } document.getElementsByClassName('pager-link8354')[0].style.display = 'inline-block'; document.getElementsByClassName('pager-link8354')[1].style.display = 'inline-block'; if(active_question == 9) { document.getElementsByClassName('pager-link8354')[1].style.display = 'none'; document.getElementsByClassName('bouton8354')[0].style.display = 'none'; document.getElementsByClassName('bouton8354')[1].style.display = 'block'; } } else { active_question --; if(active_question < 0) { active_question = 0; } document.getElementsByClassName('pager-link8354')[0].style.display = 'inline-block'; document.getElementsByClassName('pager-link8354')[1].style.display = 'inline-block'; if(active_question == 0) { document.getElementsByClassName('pager-link8354')[0].style.display = 'none'; } } for(i = 0 ; i < 10 ; i ++) { if(i == active_question) { document.getElementsByClassName('contenu8354')[i].style.display = 'block'; } else { document.getElementsByClassName('contenu8354')[i].style.display = 'none'; } } } function compter8354(cb, idq) { if(cb.type == 'checkbox') { if(cb.checked == true) { cpt_8354[idq] ++; } else { cpt_8354[idq] --; } } else if(cb.type == 'radio') { if(cb.checked == true) { cpt_8354[idq] = 1; } else { cpt_8354[idq] = 0; } } } function formSubmit8354() { msg1 = msg2 = ''; for(idq in cpt_8354) { if(cpt_8354[idq] == 0) { msg2 = 'Veuillez r\351pondre \340 toutes les questions !'; break; } else if(limite_type_8354[idq] == 'max' && limite_cpt_8354[idq] > 0 && cpt_8354[idq] > limite_cpt_8354[idq]) { msg1 += '- Veuillez ne pas cocher plus de ' + limite_cpt_8354[idq] + ' r\351ponses pour la question num\351ro ' + num_quest_8354[idq] + ' !\n'; } else if(limite_type_8354[idq] == 'exact' && limite_cpt_8354[idq] > 0 && cpt_8354[idq] != limite_cpt_8354[idq]) { msg1 += '- Veuillez cocher ' + limite_cpt_8354[idq] + ' r\351ponses pour la question num\351ro ' + num_quest_8354[idq] + ' !\n'; } } if(msg2 != '') { alert(msg2); return false; } else if(msg1 != '') { alert(msg1); return false; } document.getElementById('formSondage8354').referer.value = document.location.href; return true; } window.setTimeout('document.getElementById(\'formSondage8354\').reset()', 500);