var q1suivi=201; var q2suivi=201; var q3suivi=201; var q4suivi=201; var q5suivi=201; var q6suivi=201; var q7suivi=201;
var q8suivi=201; var q9suivi=201; var q10suivi=201; var q11suivi=201; var q12suivi=201; var q13suivi=201; var q14suivi=201;
var q15suivi=201; var q16suivi=201; var q17suivi=201; var q18suivi=201


function verif1()
{
nreponse1=0
nreponse2=0
nreponse3=0
score=0
score=q1suivi+q2suivi+q3suivi+q4suivi+q5suivi+q6suivi+q7suivi+q8suivi+q9suivi+q10suivi+q11suivi+q12suivi+q13suivi+q14suivi+q15suivi+q16suivi+q17suivi+q18suivi
{
if(score>61)
 {alertemessage="VOUS N'AVEZ PAS REPONDU A TOUTES LES QUESTIONS"
  alert(alertemessage)
 }
else
 {
  {
   n=1
   do
   {
     toto=document.promotion.elements['QUE'+n].value
    {if(toto==3)
     {nreponse3=nreponse3+1}
    else if(toto==2)
     {nreponse2=nreponse2+1}
    else
     {nreponse1=nreponse1+1}
    }
   n=n+1
   }
   while(n<19)
  }
total1=score
sstotal=Math.max(nreponse1,Math.max(nreponse2,nreponse3))
 {if(total1>=40)
  {if(nreponse3==sstotal)
   {window.open("TEST2_REPONCE1.html","","top=200,left=150,width=670,height=400,","menubar=no,scrollbars=no,statusbar=no")
   }
   else if(nreponse2==sstotal)
   {window.open("TEST2_REPONCE2.html","","top=200,left=150,width=670,height=400,","menubar=no,scrollbars=no,statusbar=no")
   }
  }
  else if((total1>=20)&&(total1<40))
  {if(nreponse3==sstotal)
   {window.open("TEST2_REPONCE1BIS.html","","top=200,left=150,width=670,height=400,","menubar=no,scrollbars=no,statusbar=no")
   }
   else if(nreponse2==sstotal)
   {window.open("TEST2_REPONCE2BIS.html","","top=200,left=150,width=670,height=400,","menubar=no,scrollbars=no,statusbar=no")
   }
   else
   {window.open("TEST2_REPONCE3BIS.html","","top=200,left=150,width=670,height=400,","menubar=no,scrollbars=no,statusbar=no")
   }
  }
  else
  {window.open("TEST2_REPONCE3TER.html","","top=200,left=150,width=670,height=400,","menubar=no,scrollbars=no,statusbar=no")
  }
 }
 }
}
}

