'; for (var i = 0; i < quiz.length; i++) { if (quiz[i].isCorrect()) correct++; } var score = Math.round((correct / quiz.length) * 100); correctPage += 'Score: ' + score + ' %'; if (correct < quiz.length) { correctPage += ifWrong; for (var i = 0; i < quiz.length; i++) { if (!quiz[i].isCorrect()) { correctPage += (i + 1) + '. ' + quiz[i].userChoices[quiz[i].correctAnswer] + '
'; } } } else correctPage += ifAced; correctPage += ''; correctwin = window.open ('', '', 'height=300,width=300,scrollbars=yes'); if (correctwin.opener == null) correctwin.opener = window; correctwin.location = 'javascript:opener.correctPage'; } // Message to display if quiz is aced. var ifAced = "

Well done, you are a true X-Phile!

"; // Message to display if any are wrong. var ifWrong = "

Not quite there .. here are the correct answers to the questions you got wrong:

"; // Create four question objects... quiz = new makeArray(4); quiz[0] = new makeQuestion("Mulder is also whose mother's maiden name?", // 1st question 2, // correct answer "David Duchovny", // choice 0 "Gillian Anderson", // choice 1 "Chris Carter", // choice 2 "Nicholas Lea"); // choice 3 quiz[1] = new makeQuestion("True or False? Doug Hutchinson, who plays liver-eating Tooms in Squeeze is actually a vegetarian ", // 2nd question 0, // correct answer "True", // choice 0 "False", // choice 1 "He was vegetarian before the part, but playing it gave him a taste for meat", //choice 2 "He became vegetarian after playing the part"); quiz[2] = new makeQuestion("What's different that appears at the opening credits on the 'Anasazi' episode?", 3, "The words 'EI AANEIIGOO AHOOT'E', which translates into 'Trust No One' in Navajo", "The words 'EI AANEIIGOO AHOOT'E', which translates into 'I Am The Truth' in Navajo", "The words 'EI AANEIIGOO AHOOT'E', which translates into 'The X-Files' in Navajo", "The words 'EI AANEIIGOO AHOOT'E', which translates into 'The Truth Is Out There' in Navajo"); quiz[3] = new makeQuestion("What is the address given in Samantha Mulder's file?", 3, "2790 Dine Street", "2970 Dine Street", "2970 Vine Street", "2790 Vine Street"); // -->
Fanfic Episodes Movie Out There Trivia Pictures Chat Links

Correct Quiz