/* AUTEUR: Benjamin Bradu - MODIF. par jeuxdeby */
/* DATE DE CREATION: 25/11/99  - 14/02/10 */


function quest(form)
{

var total = 0;
var commentaire = "" ;

/*question 1 */


if (form.box1.value == "GOLF")
	{
	total = total + 1
	form.resultat1.value = "1"
	form.correction1.value = "GOLF"
	}
else
	{
	form.correction1.value = "GOLF"
	form.resultat1.value = 0
	}

/*question 2  */


if ((form.box2.value == "BASKET-BALL") || (form.box2.value == "BASKET"))
	{
	total = total + 1
	form.resultat2.value = "1"
	form.correction2.value = "BASKET-BALL"
	}
else
	{
	form.correction2.value = "BASKET-BALL"
	form.resultat2.value = 0
	}
	
	
		
/*question 3  */


if ((form.box3.value == "BASE-BALL") || (form.box3.value == "BASEBALL"))
	{
	total = total + 1
	form.resultat3.value = "1"
	form.correction3.value = "BASE-BALL"
	}
else
	{
	form.correction3.value = "BASE-BALL"
	form.resultat3.value = 0
	}
	
	
	
	
/*question 4  */


if ((form.box4.value == "HOCKEY SUR GLACE") || (form.box2.value == "HOCKEY"))
	{
	total = total + 1
	form.resultat4.value = "1"
	form.correction4.value = "HOCKEY SUR GLACE"
	}
else
	{
	form.correction4.value = "HOCKEY SUR GLACE"
	form.resultat4.value = 0
	}
	
	
	
	
/*question 5  */

if (form.box5.value == "BADMINTON")
	{
	total = total + 1
	form.resultat5.value = "1"
	form.correction5.value = "BADMINTON"
	}
else
	{
	form.correction5.value = "BADMINTON"
	form.resultat5.value = 0
	}

	
	
	
	
/*question 6  */


if (form.box6.value == "CURLING")
	{
	total = total + 1
	form.resultat6.value = "1"
	form.correction6.value = "CURLING"
	}
else
	{
	form.correction6.value = "CURLING"
	form.resultat6.value = 0
	}
	
	
	
	
/*question 7  */


if (form.box7.value == "RUGBY")
	{
	total = total + 1
	form.resultat7.value = "1"
	form.correction7.value = "RUGBY"
	}
else
	{
	form.correction7.value = "RUGBY"
	form.resultat7.value = 0
	}
	
	
	
	
/*question 8  */


if (form.box8.value == "NATATION")
	{
	total = total + 1
	form.resultat8.value = "1"
	form.correction8.value = "NATATION"
	}
else
	{
	form.correction8.value = "NATATION"
	form.resultat8.value = 0
	}
	
	
	
	
/*question 9  */


if (form.box9.value == "CROQUET")
	{
	total = total + 1
	form.resultat9.value = "1"
	form.correction9.value = "CROQUET"
	}
else
	{
	form.correction9.value = "CROQUET"
	form.resultat9.value = 0
	}
	
	
	
	
/*question 10  */


if (form.box10.value == "BOWLING")
	{
	total = total + 1
	form.resultat10.value = "1"
	form.correction10.value = "BOWLING"
	}
else
	{
	form.correction10.value = "BOWLING"
	form.resultat10.value = 0
	}
	
	
	
	
/*TOTAL*/ 

if (total == 10)
	commentaire = "100% de réussite, bravo!"
else

if (total > 8)
	commentaire = "Une seule faute, c'est vraiment très bien"
else

if (total >= 7)
	commentaire = "Bien, mais pas parfait"
else
if (total > 5)
	commentaire = "Plus de la moyenne, c'est convenable"
else

if (total > 3)
	commentaire= "C'est pas terrible!"
else

if (total >= 1)
	commentaire = "Il y a sans doute mieux à faire, un autre essai?"
else

if (total >= 0)
	commentaire = "Là, il faut le faire exprès!"


alert(" Le score est de  " + total + " : " + commentaire)


}



