<!--
var YourAns = new Array

function Engine(Question,Answer)
 {
 YourAns[Question] = Answer
 }

function ScoreQuiz()
 {
 var Question = 0
 var Score = 0

 for (Question = 0;Question < document.getElementById("key").lastChild.nodeValue.length;Question++)
  {
  if (document.getElementById("key").lastChild.nodeValue.charAt(Question) != YourAns[Question])
   {
   document.getElementById("ans" + Question).lastChild.nodeValue = "Incorrect..." + document.getElementById("cor" + Question).lastChild.nodeValue
   }
  else
   {
   document.getElementById("ans" + Question).lastChild.nodeValue = "Correct!..." + document.getElementById("cor" + Question).lastChild.nodeValue
   Score += (100 / document.getElementById("key").lastChild.nodeValue.length)
   }
  }
 document.getElementById("score").lastChild.nodeValue = "Your total score is: " + Score
 window.scroll(0,0)
 }
//-->