// JavaScript Document
function testform()
{var score=0;
var answers=0;
if (document.french.assortir.options[french.assortir.selectedIndex].value=="re2") 
	{score = score + 1}

if (document.french.assortir.options[french.assortir.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.curer.options[french.curer.selectedIndex].value=="re2")
	{score = score + 1} 

if (document.french.curer.options[french.curer.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.former1.options[french.former1.selectedIndex].value=="re2")
	{score = score + 1} 

if (document.french.former1.options[french.former1.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.former2.options[french.former2.selectedIndex].value=="re1")
	{score = score + 1} 

if (document.french.former2.options[french.former2.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.futer.options[french.futer.selectedIndex].value=="re2")
	{score = score + 1} 

if (document.french.futer.options[french.futer.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.lancer.options[french.lancer.selectedIndex].value=="re1")
	{score = score + 1} 

if (document.french.lancer.options[french.lancer.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.munerer.options[french.munerer.selectedIndex].value=="re2")
	{score = score + 1} 

if (document.french.munerer.options[french.munerer.selectedIndex].value!="default") 
	{answers = answers + 1}

if (document.french.partir.options[french.partir.selectedIndex].value=="re2")
	{score = score + 1} 
	
if (document.french.partir.options[french.partir.selectedIndex].value!="default") 
	{answers = answers + 1}

if (answers<8) {document.french.evaluation.value = "Make all your selections."} else {
if (score==0) {document.french.evaluation.value = "Oops!"};
if (score==1) {document.french.evaluation.value = "Good start."};
if (score==2) {document.french.evaluation.value = "Keep going!"};
if (score==3) {document.french.evaluation.value = "Un peu."};
if (score==4) {document.french.evaluation.value = "Essai encore!"};
if (score==5) {document.french.evaluation.value = "Ne concédez pas!"};
if (score==6) {document.french.evaluation.value = "Très bon!"};
if (score==7) {document.french.evaluation.value = "Un plus!"};
if (score==8) {document.french.evaluation.value = "Chapeau!";
				document.french.scoreoutput.value = "8 out of 8!"
				window.location="certificate.htm"} else {document.french.scoreoutput.value = score + " out of 8."}
	}
}