 function quiz(form) {

	var i = 0

	var result1=document.form1.answer1.selectedIndex

	var result2=document.form2.answer2.selectedIndex

	var result3=document.form3.answer3.selectedIndex

	var result4=document.form4.answer4.selectedIndex

	var result5=document.form5.answer5.selectedIndex

	var result6=document.form6.answer6.selectedIndex

	// Addition #1 Goes Here



	if (result1==0){

		alert("Question 1 was not answered");}

	if (result2==0){

		alert("Question 2 was not answered");}

	if (result3==0){

		alert("Question 3 was not answered");}

	if (result4==0){

		alert("Question 4 was not answered");}

	if (result5==0){

		alert("Question 5 was not answered");}

	if (result6==0){

		alert("Question 6 was not answered");}

	// Addition #2 Goes Here



	else {

		if (result1==2){i++}

		if (result2==3){i++} 

		if (result3==1){i++} 

		if (result4==2){i++} 

		if (result5==3){i++} 

		if (result6==3){i++} 

		
		// Addition #3 Goes Here



		document.total.score.value = i

		var per =  Math.round((i / 6) * 100) 

		document.total.percent.value = per 



		if (result1 == 2){  

			document.form1.check1.checked = true}

		else {document.form1.check1.checked = false}

		if (result2 == 3){  

			document.form2.check2.checked = true}

		else {document.form2.check2.checked = false}

		if (result3 == 1){   

			document.form3.check3.checked = true}

		else {document.form3.check3.checked = false}

if (result4 == 2){   

			document.form4.check4.checked = true}

		else {document.form4.check4.checked = false}

if (result5 == 3){   

			document.form5.check5.checked = true}

		else {document.form5.check5.checked = false}

if (result6 == 3){  

			document.form6.check6.checked = true}

		else {document.form6.check6.checked = false}
		}

}
