<!--

var numQues = 10;
var numChoi = 3;

var answers = new Array(10);
answers[0] = "Yamato civilisation lived in Japan";
answers[1] = "10 houses will support 50 people";
answers[2] = "Shallows allow all units to pass";
answers[3] = "Big Bertha is a large Catapult";
answers[4] = "Alligators can be found in AoE";
answers[5] = "Fishing boats can carry 15 fish";
answers[6] = "Academy isn't available in Tool Age";
answers[7] = "1000 stone is needed for a Wonder";
answers[8] = "Cheat fires villagers and cows";
answers[9] = "Ballista Towers can be converted";

function getScore(form) {
  var Score = 0;
  var currElt;
  var currSelection;

  for (i=0; i<numQues; i++) {
    currElt = i*numChoi;
    for (j=0; j<numChoi; j++) {
      currSelection = form.elements[currElt + j];
      if (currSelection.checked) {
        if (currSelection.value == answers[i]) {
          Score++;
          break;
        }
      }
    }
  }

  Score = Math.round(Score/numQues*10);
  form.Percentage.value = Score + " points";

  var correctAnswers = "";
  for (i=1; i<=numQues; i++) {
    correctAnswers += i + ". " + answers[i-1] + "\r\n";
  }
  form.solutions.value = correctAnswers;

}

// -->