/* DATE DE CREATION: 9/12/2008 */


function quest(form)
{

var total = 0;
var commentaire = "" ;

/*question 1 */


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

/*question 2  */


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


if (form.box3.value == "MOISE")
	{
	total = total + 1
	form.resultat3.value = "1"
	form.correction3.value = "MOISE"
	}
else
	{
	form.correction3.value = "MOISE"
	form.resultat3.value = 0
	}
	
	
	
	
/*question 4  */


if (form.box4.value == "MOMIE" )
	{
	total = total + 1
	form.resultat4.value = "1"
	form.correction4.value = "MOMIE"
	}
else
	{
	form.correction4.value = "MOMIE"
	form.resultat4.value = 0
	}
	
	
	
	
/*question 5  */


if ((form.box5.value == "MESSIE" )|| (form.box5.value == "LE MESSIE"))
	{
	total = total + 1
	form.resultat5.value = "1"
	form.correction5.value = "LE MESSIE"
	}
else
	{
	form.correction5.value = "LE MESSIE"
	form.resultat5.value = 0
	}
	
	
	
	
/*question 6  */


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


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


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


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

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

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

if (total >= 6)
	commentaire = "Bien, mais pas parfait"
else

if (total > 4)
	commentaire = "Plus de la moyenne, c'est convenable"
else

if (total > 3)
	commentaire= "C'est insuffisant"
else

if (total >= 2)
	commentaire = "Vous pouvez sans doute mieux faire, un autre essai?"
else

if (total >= 0)
	commentaire = "Vraiment pas terrible!"


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


}



