

function scoring() {
	function getselectedIndex() {
		return document.quiz.nr1.selectedIndex
		return document.quiz.nr2.selectedIndex
		return document.quiz.nr3.selectedIndex
		return document.quiz.nr4.selectedIndex
		return document.quiz.nr5.selectedIndex	
		return document.quiz.nr6.selectedIndex
		}
	var Answers=new Array(1,2,2,3,1,1)
	var Choices=new Array(document.quiz.nr1.selectedIndex,document.quiz.nr2.selectedIndex,document.quiz.nr3.selectedIndex,document.quiz.nr4.selectedIndex,document.quiz.nr5.selectedIndex,document.quiz.nr6.selectedIndex)
	var count0=0

	if (Answers[0]==Choices[0])count0=count0+15
	else count0=count0

	if (Answers[1]==Choices[1])count1=count0+15
	else count1=count0

	if (Answers[2]==Choices[2])count2=count1+15
	else count2=count1

	if (Answers[3]==Choices[3])count3=count2+15
	else count3=count2

	if (Answers[4]==Choices[4])count4=count3+15
	else count4=count3

	if (Answers[5]==Choices[5])count5=count4+15
	else count5=count4

	if (count5==90) newCount5=100
	else newCount5=count5

	alert("Your score is  "+newCount5+ " % correct.")
	}