var vminutes = 2;
var vseconds = 00;
var boxedanswers = 1;
var autocomplete = 1;
var gamever = 0;
var justincase1 = 0;
var justincase2 = 0;


function loadanswers()
{
	answers = new Array();
	answers.push( new inans('Neil Alden Armstrong', new Array('Neil Armstrong')));
	answers.push( new inans('Edwin Eugene \'Buzz\' Aldrin', new Array('Buzz Aldrin','Edwin Eugene ALdrin')));
	answers.push( new inans('Charles \'Pete\' Conrad, Jr', new Array('Charles Conrad','Pete Conrad')));
	answers.push( new inans('Alan LaVern Bean', new Array('Alan Bean')));
	answers.push( new inans('Alan Bartlett Shepard, Jr', new Array('Alan Bartlett Shepard','Alan Shepard')));
	answers.push( new inans('Edgar Dean Mitchell, D.Sc', new Array('Edgar Dean Mitchell','Edgar Mitchell')));
	answers.push( new inans('David Randolph Scott', new Array('David Scott')));
	answers.push( new inans('James Benson Irwin', new Array('James Irwin')));
	answers.push( new inans('John Watts Young', new Array('John W. Young','John Young')));
	answers.push( new inans('Charles Moss Duke, Jr', new Array('Charles Duke','Charles Moss Duke')));
	answers.push( new inans('Eugene Andrew Cernan', new Array('Eugene Cernan')));
	answers.push( new inans('Harrison Hagan \'Jack\' Schmitt', new Array('Harrison Hagan Schmitt','Harrison Schmitt','Jack Schmitt')));
	remaining = answers.length;
	displayRemaining();
}

function doEndAlert()
{
	var total = (correct + remaining);
	var percentunrounded = (correct/total) * 100;
	var percent = roundNumber(percentunrounded,2)
	if ( percent == 100 ) {
	alert("One giant leap for you as you got all " + correct + " answers correct.\nWell done!!!");
	}
	if ( percent >= 70 && percent < 100) {
	alert("Nice!!! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is an amazing score");
	}
	if ( percent >= 40 && percent < 70) {
	alert("Great Job! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a very good score");
	}
	if ( percent >= 25 && percent < 40) {
	alert("Good Job! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a good score");
	}
	if ( percent >= 15 && percent < 25) {
	alert("Not bad! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a average score");
	}
	if ( percent < 15) {
	alert("Not very good, I'm afraid! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a not a very good score");
	}
}
