<!-- hide

/* GameQuiz v1.0 by Monichar.
   Copyright (c) of Monichar, 1997.
   Permission to use, edit, etc. granted as long as the head section is intact!
*/

var ans = new Array;
var done = new Array;
var score = 0;
// LOSER!  Don't read the answers!

ans[1] = "c";
ans[2] = "a";
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) {
		alert("Congratulations! Now let's see how good you really are with next level");
		self.open("quizz2.html");
		}
	else {
		alert("Access denied!  You need 7 points to enter the next level.")
		}
}

//-->