<!-- Begin Scroll

var display_text;
var place;
var meter; 
var out = " ";
var place = 10;
var score = 0;

// Change this to the number of Questions
var howmany = 10

// Change this to have as many values as the number of Questions
var ans = new Array;
ans[0] = 0;
ans[1] = 0;
ans[2] = 0;
ans[3] = 0;
ans[4] = 0;
ans[5] = 0;
ans[6] = 0;
ans[7] = 0;
ans[8] = 0;
ans[9] = 0;
ans[10] = 0;


function addscore() 
{
score=0
for (i = 0; i <= howmany; i++) 
    {
score = parseInt(score) + parseInt(ans[i]);

    }
alert("Guru Pyare - your total score out of 10 is  " + score );
}

function Quiz(question, answer) {
ans[question] = answer;
}

// End -->