document.write('\
');document.write('
\
');
var cpt_6645 = new Array();
var limite_cpt_6645 = new Array();
var limite_type_6645 = new Array();
var num_quest_6645 = new Array();
cpt_6645[43737] = 0;
limite_cpt_6645[43737] = 0;
limite_type_6645[43737] = 'max';
num_quest_6645[43737] = 1;
cpt_6645[43738] = 0;
limite_cpt_6645[43738] = 0;
limite_type_6645[43738] = 'max';
num_quest_6645[43738] = 2;
cpt_6645[43739] = 0;
limite_cpt_6645[43739] = 0;
limite_type_6645[43739] = 'max';
num_quest_6645[43739] = 3;
cpt_6645[43740] = 0;
limite_cpt_6645[43740] = 0;
limite_type_6645[43740] = 'max';
num_quest_6645[43740] = 4;
cpt_6645[43741] = 0;
limite_cpt_6645[43741] = 0;
limite_type_6645[43741] = 'max';
num_quest_6645[43741] = 5;
cpt_6645[43742] = 0;
limite_cpt_6645[43742] = 0;
limite_type_6645[43742] = 'max';
num_quest_6645[43742] = 6;
cpt_6645[43743] = 0;
limite_cpt_6645[43743] = 0;
limite_type_6645[43743] = 'max';
num_quest_6645[43743] = 7;
cpt_6645[43744] = 0;
limite_cpt_6645[43744] = 0;
limite_type_6645[43744] = 'max';
num_quest_6645[43744] = 8;
cpt_6645[43745] = 0;
limite_cpt_6645[43745] = 0;
limite_type_6645[43745] = 'max';
num_quest_6645[43745] = 9;
cpt_6645[43746] = 0;
limite_cpt_6645[43746] = 0;
limite_type_6645[43746] = 'max';
num_quest_6645[43746] = 10;
cpt_6645[43760] = 0;
limite_cpt_6645[43760] = 0;
limite_type_6645[43760] = 'max';
num_quest_6645[43760] = 11;
function sondage_pager6645(direction)
{
var active_question = 0;
for(i = 0 ; i < 11 ; i ++)
{
if(document.getElementsByClassName('contenu6645')[i].style.display == 'block')
{
active_question = i;
break;
}
}
if(direction == 'next')
{
active_question ++;
if(active_question > 10)
{
active_question = 10;
}
document.getElementsByClassName('pager-link6645')[0].style.display = 'inline-block';
document.getElementsByClassName('pager-link6645')[1].style.display = 'inline-block';
if(active_question == 10)
{
document.getElementsByClassName('pager-link6645')[1].style.display = 'none';
document.getElementsByClassName('bouton6645')[0].style.display = 'none';
document.getElementsByClassName('bouton6645')[1].style.display = 'block';
}
}
else
{
active_question --;
if(active_question < 0)
{
active_question = 0;
}
document.getElementsByClassName('pager-link6645')[0].style.display = 'inline-block';
document.getElementsByClassName('pager-link6645')[1].style.display = 'inline-block';
if(active_question == 0)
{
document.getElementsByClassName('pager-link6645')[0].style.display = 'none';
}
}
for(i = 0 ; i < 11 ; i ++)
{
if(i == active_question)
{
document.getElementsByClassName('contenu6645')[i].style.display = 'block';
}
else
{
document.getElementsByClassName('contenu6645')[i].style.display = 'none';
}
}
}
function compter6645(cb, idq)
{
if(cb.type == 'checkbox')
{
if(cb.checked == true)
{
cpt_6645[idq] ++;
}
else
{
cpt_6645[idq] --;
}
}
else if(cb.type == 'radio')
{
if(cb.checked == true)
{
cpt_6645[idq] = 1;
}
else
{
cpt_6645[idq] = 0;
}
}
}
function formSubmit6645()
{
msg1 = msg2 = '';
for(idq in cpt_6645)
{
if(cpt_6645[idq] == 0)
{
msg2 = 'Veuillez r\351pondre \340 toutes les questions !';
break;
}
else if(limite_type_6645[idq] == 'max' && limite_cpt_6645[idq] > 0 && cpt_6645[idq] > limite_cpt_6645[idq])
{
msg1 += '- Veuillez ne pas cocher plus de ' + limite_cpt_6645[idq] + ' r\351ponses pour la question num\351ro ' + num_quest_6645[idq] + ' !\n';
}
else if(limite_type_6645[idq] == 'exact' && limite_cpt_6645[idq] > 0 && cpt_6645[idq] != limite_cpt_6645[idq])
{
msg1 += '- Veuillez cocher ' + limite_cpt_6645[idq] + ' r\351ponses pour la question num\351ro ' + num_quest_6645[idq] + ' !\n';
}
}
if(msg2 != '')
{
alert(msg2);
return false;
}
else if(msg1 != '')
{
alert(msg1);
return false;
}
document.getElementById('formSondage6645').referer.value = document.location.href;
return true;
}
window.setTimeout('document.getElementById(\'formSondage6645\').reset()', 500);