<!-- Begin
var ans = new Array;
var done = new Array;
var yourAns = new Array;
var explainAnswer = new Array;

var score = 0;
ans[1] = "a";
ans[2] = "b";
ans[3] = "d";
ans[4] = "b";
ans[5] = "d";

explainAnswer[1]="It is a sin against the First Commandment to worship anything other than God, including bread (and not excluding football, TV, and, well, you get the picture).";
explainAnswer[2]="Catholics do not worship bread; Catholics worship Jesus (who is God) under the appearances of bread (and wine).";
explainAnswer[3]="The Holy Eucharist is the Most Blessed Sacrament because through a miracle we mere mortals cannot understand, Jesus makes Himself Present to us under the appearances of bread and wine.";
explainAnswer[4]="We call the Holy Eucharist the Blessed Sacrament because it is Jesus Himself, and no Sacrament could possibly be more Blessed than Jesus made Present to us on earth.";
explainAnswer[5]="St. Peter didn't create this Sacrament; no man could ever create a Sacrament. All of the Sacraments were instituted by Jesus; Jesus created the Holy Eucharist at the Last Supper. St. Peter, however, was present.";

function Engine(question, answer) {
yourAns[question]=answer;
}

function Score(){
var answerText = "How did you do?\n------------------------------------\n";
for(i=1;i<=5;i++){
   answerText=answerText+"\nQuestion :"+i+"\n";
  if(ans[i]!=yourAns[i]){
    answerText=answerText+"\nThe correct answer was "+ans[i]+"\n"+explainAnswer[i]+"\n";
  }
  else{
    answerText=answerText+" \nCorrect! \n";
    score++;
  }
}

answerText=answerText+"\n\nYour total score is : "+score+"\n";

//now score the user
answerText=answerText+"\nComment : ";
if(score<=0){
answerText=answerText+"Don't give up! Try again!";
}
if(score>=1 && score <=2){
answerText=answerText+"Try it again - you can do it!";
}
if(score>=3 && score <=3){
answerText=answerText+"You almost got 'em - keep trying!";
}
if(score>4){
answerText=answerText+"You're obviously a genius!";
}

alert(answerText);

}
//  End -->

