var ans = new Array;
var done = new Array;
var score = 0;
ans[1] = "c";
ans[2] = "d";
ans[3] = "b";
ans[4] = "b";
ans[5] = "d";
ans[6] = "c";
ans[7] = "c";
ans[8] = "c";
ans[9] = "d";
ans[10] = "a";
function Engine(question, answer) {
if (answer != ans[question]) {
if (!done[question]) {
done[question] = -1;
alert("Wrong!\n\nYour score is now: " + score);
}
else {
alert("You have already answered that!");
   }
}
else {
if (!done[question]) {
done[question] = -1;
score++;
alert("Correct!\n\nYour score is now: " + score);
}
else {		
alert("You have already answered that!");
      }
   }
}
	
function NextLevel () {
if (score > 10) {
alert("Cheater!");
}
if (score >= 7 && score <= 11) {
self.location="biblequizend.html"

//change previous line to: self.location="biblequizend.html" if you make more

}
else {
alert("Access denied!  You need 7 points to enter the next level.")
   }
}