questions = new Array();
questionnum = -1;
possibleanswers = new Array();
answers = new Array();

/* BELOW IS WHERE YOU MODIFY THE QUESTIONS AND ANSWERS */

/* Here is where you modify the questions and answers.
 * Use Question("put question here") to add a new question.
 * Immediately following that, add the choices that the user will have
 * for his or her guess. Use WrongChoice("put choice here") to add a choice
 * that will be marked incorrect if selected, and
 * CorrectChoice("put choice here") to add a choice that is correct.
 *
 * If you know the JavaScript language, you can use JavaScript programming
 * commands within the brackets, such as:
 * CorrectChoice(100*100)
 * I used commands like these in some of my example answers, but don't let yourself
 * get confused by them.
 */

Question("Which song did Judy <I>not</I> sing in <I>Broadway Melody of 1938</I>?");
	WrongChoice("Yours and Mine");
	CorrectChoice("Zing! Went the Strings of My Heart");
	WrongChoice("Everybody Sing");
	WrongChoice("(Dear Mr. Gable) You Made Me Love You");

Question("Which of the following songs was <I>not</I> sung by Judy in <I>Easter Parade</I>?");
	CorrectChoice("Happy Easter");
	WrongChoice("Better Luck Next Time");
	WrongChoice("A Couple of Swells");
	WrongChoice("I Wish I Were in Michigan");

Question("In which film does Judy sing &quot;I'm Always Chasing Rainbows&quot;?");
	CorrectChoice("<I>Ziegfeld Girl</I>");
	WrongChoice("<I>For Me and My Gal</I>");
	WrongChoice("<I>The Pirate</I>");
	WrongChoice("<I>Summer Stock</I>");

Question("In which film does Judy sing &quot;Singin' in the Rain&quot;?");
	WrongChoice("<I>Singin' in the Rain</I>");
	CorrectChoice("<I>Little Nellie Kelly</I>");
	WrongChoice("<I>The Harvey Girls</I>");
	WrongChoice("<I>Meet Me in St. Louis</I>");

Question("Which of the following movie/song associations is incorrect?");
	WrongChoice("<I>The Wizard of Oz</I>, Over the Rainbow");
	WrongChoice("<I>Girl Crazy</I>, I Got Rhythm");
	CorrectChoice("<I>Everybody Sing</I>, Everybody Sing");
	WrongChoice("<I>In the Good Old Summertime</I>, Merry Christmas");

Question("In which of the following films does Judy sing &quot;F.D.R. Jones&quot;?");
	WrongChoice("<I>Babes in Arms</I>");
	CorrectChoice("<I>Babes on Broadway</I>");
	WrongChoice("<I>Strike Up the Band</I>");
	WrongChoice("None of the above");

Question("Which song, all introduced by Judy, was <I>not</I> nominated for a Best Song Academy Award?");
	WrongChoice("Over the Rainbow");
	CorrectChoice("Have Yourself a Merry Little Christmas");
	WrongChoice("The Man That Got Away");
	WrongChoice("The Faraway Part of Town");

Question("Which of the following is <I>not</I> a Mickey/Judy duet?");
	WrongChoice("Our Love Affair");
	WrongChoice("How About You");
	CorrectChoice("Chin Up, Cheerio, Carry On");
	WrongChoice("I Wish I Were in Love Again");

Question("Which song was the first that Judy ever sang on film?");
	WrongChoice("Over the Rainbow");
	CorrectChoice("That's the Good Old Sunny South");
	WrongChoice("The Balboa");
	WrongChoice("(Dear Mr. Gable) You Made Me Love You");

Question("Which song was the last that Judy ever sang in a movie?");
	WrongChoice("The Faraway Part of Town");
	WrongChoice("The Man That Got Away");
	WrongChoice("Paris Is a Lonely Town");
	CorrectChoice("I Could Go On Singing");

Question("Which song contains the phrase &quot;I like potato chips, moonlight and motor trips&quot;?");
	WrongChoice("Our Love Affair");
	CorrectChoice("How About You");
	WrongChoice("Meet the Beat of My Heart");
	WrongChoice("Embraceable You");

Question("Which of the following MGM movie songs did Judy <I>not</I> re-record for Decca?");
	WrongChoice("Over the Rainbow");
	WrongChoice("(Dear Mr. Gable) You Made Me Love You");
	CorrectChoice("Singin' in the Rain");
	WrongChoice("Everybody Sing");

Question("Three of the following songs belong together, but one is out of place. Which One?");
	WrongChoice("In-Between");
	WrongChoice("It Never Rains But What It Pours");
	CorrectChoice("I'm Nobody's Baby");
	WrongChoice("Meet the Beat of My Heart");

Question("Which of the following was <I>not</I> a duet with Gene Kelly?");
	WrongChoice("For Me and My Gal");
	CorrectChoice("How Ya Gonna Keep 'em Down on the Farm?");
	WrongChoice("Be a Clown");
	WrongChoice("You Wonderful You");

Question("\"The Joint Is Really Jumpin' in Carnegie Hall\" is featured in which film?");
	WrongChoice("<I>Ziegfeld Girl</I>");
	WrongChoice("<I>Ziegfeld Follies</I>");
	WrongChoice("<I>Till the Clouds Roll By</I>");
	CorrectChoice("<I>Thousands Cheer</I>");


/* If you would like, you can have the script give you helpful information if
 * there was an error in your input above. Should be false once you are done,
 * but handy while your are working on it. */
 debug = true;

/* In order, these are the characters that will be used as labels for each possible
 * answer for a question, each seperated by a |. These may include HTML tags to
 * apply different formatting for choice labels if desired.
 * The default configuration allows for 26 different possible answers for each question.
 */
labels = "a.|b.|c.|d.|e.|f.|g.|h.|i.|j.|k.|l.|m.|n.|o.|p.|q.|r.|s.|t.|u.|v.|w.|x.|y.|z.";


/* BELOW IS FOR SETTING UP A TIME LIMIT (OPTIONAL) -- COMING SOON */

/* Your quiz can have a time limit if you would like. Set this value in seconds to how
 * long a user can stay at the quiz before they are booted to a specified page.
 * If you don't want a time limit, set this it to "".
 * timelimit = "60"; */

 /* If you want a time limit, specify the page to which the person should be sent after
  * their time is up.
  * timeuplocation = "http://www.yahoo.com"; */

/* BELOW IS USED FOR THE RESULTS PAGE. KEEP GOING, YOU'RE ALMOST DONE! */

/* Below, put the excellent and failing grades (percent).
 */
excellentGrade = 80;
failingGrade = 50;

/* Put the email address where you want the score to be sent, or a CGI script. Make sure
 * to use mailto: as a prefix if you aren't using a CGI script.
 * (Optional, set to "" if not wanted)
 */
email = "";

/* You have a choice to send the score automatically to the above address, or the
user could have a choice to send it. */
autosend = false;

/* Do you want the answers to the questions that were answered wrong to be shown on
 * the results page?
 */
showanswers = true;



/* NO MODIFICATIONS BELOW HERE */


debugm = "Debugging message:\n";

if(debug)
  {
  if(answers.length < questions.length)
    {
    alert(debugm+"Not every question has a correct answer specified!");
    }
  if(answers.length > questions.length)
    {
	alert(debugm+"You gave some questions more than one right answer!");
	}
  if(possibleanswers.length < questions.length)
    {
	alert(debugm+"You didn't specify any choices for some questions!");
	}
  }

function Question(question){
questionnum++;
questions[questionnum] = question;
possibleanswers[questionnum] = new Array();
}

function CorrectChoice(choice){
WrongChoice(choice);
answers[questionnum] = choice;
}

function WrongChoice(choice){
var choicenumber = possibleanswers[questionnum].length;
possibleanswers[questionnum][choicenumber] = choice;
}

function Asplit(str,seperator){
var arraya = new Array();
var first = 0;

if(str.charAt(str.length) != seperator)
  {
  str += seperator;
  }

for(var i=0;i<str.length;i++)
  {
  if(str.charAt(i) == seperator)
    {
    second = i;
 	arraya[arraya.length] = str.substring(first,second);
	first = second;
	}
  }

for(var i=0;i<arraya.length;i++)
  {
  if(arraya[i].charAt(0) == seperator)
    {
    arraya[i] = arraya[i].substring(1,arraya[i].length);
	}
  }

return arraya;
}
