ctr=0;
/* Put the title of your test here, just
   as you want it to appear on screen. */
ttl="2. Fragen zum Text";

/* Now, what is a perfect score? Although
   it will usually be 100, you can alter 
   it if you wish. However, it may not
   exceed 999 and must be a whole number. */
psco=100;

/* Deduction for each wrong answer. May
   be the perfect score divided by the
   number of questions.  But if you "weight"
   wrong answers, as we have done in this
   little demo script, it may be higher,
   but must be a whole number.  */
wrans=33;

/* Deduction for each "no answer". Usually
   this will be the simple arithmetical
   perfect score divided by number of
   questions. (A whole number) However,
   again, you are in charge. */
noans=33;

/* Change "nr" below to be equal to the
   number of questions you have on this
   test. (Our demo has 5 questions) */
nr=3;

/* Simply replace the "questions" below with
   the ones you wish to use for this test. If
   you wish more than 5 questions, simply add
   ques[5], ques[6], etc. But be sure that the
   "nr" just above is changed to reflect the
   actual number of questions you have
   prepared.  NOTE: do not use any double
   quote signs in your questions.  If you
   need them, use the HTML &quot; instead.
   Or, single quote signs may be safely used. */
ques=new Array();
ques[0]="Was stellst du dir unter Apollo vor?";
ques[1]="Was ist Delos?";
ques[2]="Was bedeutet in unserem Text signum?";

// add as many questions as you wish here

/* Now the tedious part.  You must put the
   letter equivalent for each correct answer
   (a, b, c, d, or e) in order in a row for
   your particular test.  As you can see
   below, I've done so for the demo test. */
cor="cbbcb";

/* When entering your own answers, do not
   use any double quote signs in your 
   answers.  Instead, use the HTML &quot;
   so the JS will not get confused. */
ans=new Array();
ans[0]="ein Raumschiff";
ans[1]="einen r&ouml;mischen Feldherrn";
ans[2]="einen griechischen Gott";

ans[3]="eine Stadt in Italien";
ans[4]="eine griechische Insel";
ans[5]="eine r&ouml;mische Provinz";


ans[6]="Merkmal";
ans[7]="Statue";
ans[8]="Standarte";


// Continue adding answers here


/* Text-Felder-Script: */

if (window.focus) self.focus();

var numQues = 6;

var answers = new Array(numQues);
answers[0] = "Verres kommt nach Delos.";
answers[1] = "Dort nimmt er aus dem Tempel des Apollo eine Statue weg.";
answers[2] = "Er läßt die Statue in ein Schiff tragen.";
answers[3] = "Plöztlich erhebt sich ein Sturm.";
answers[4] = "Das Schiff kentert.";
answers[5] = "Die Bewohner von Delos finden die Statue am Strand wieder und bringen sie in den Tempel zurück.";


function getScore(form) {
  var score = 0;

  for (i=0; i<numQues; i++) {
    if (form.elements[i].value == answers[i]) {
      score++;
    }
  }

  score = Math.round(score/numQues*100);
  form.percentage.value = score + "%";

  var correctAnswers = "";
  for (i=1; i<=numQues; i++) {
    correctAnswers +=  answers[i-1] + "\r\n";
  }
  form.solutions.value = correctAnswers;
}