<!-- Begin
// Insert number of questions
var numQues = 10;

// Insert number of choices in each question
var numChoi = 4;

// Insert number of questions displayed in answer area
var answers = new Array(10);

// Insert answers to questions
answers[0] = "the country will run a $930 billion trade deficit.";
answers[1] = "neither net exports nor consumption decreases.";
answers[2] = "lower, raise";
answers[3] = "regulates, supervise";
answers[4] = "Diagram B, which shows an open market sale of government bonds.";
answers[5] = "Diagram A, which shows an open market purchase of government bonds.";
answers[6] = "OMOs pursuant to contractionary monetary policy will cause bond prices to fall.";
answers[7] = "The current account changes by -$500, and the capital account changes by +$500.";
answers[8] = "selling Treasury securities.";
answers[9] = "the growth rate of M3 was accelerating and greatly exceeded the real growth rate of the U.S. economy, but the average growth rate of M1 was less than the real growth rate of the U.S. economy.";

// Do not change anything below here ...
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*100);
  form.percentage.value = score + "%";
  var correctAnswers = "";
  for (i=1; i<=numQues; i++) {
    correctAnswers += i + ". " + answers[i-1] + "\r\n";
  }
  form.solutions.value = correctAnswers;
}
//  End -->