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("<u>Elvis Presley - ARE YOU LONESOME TONIGHT</u><br>Are you lonesome tonight<br>Do you miss me tonight<br>Are you sorry we drifted apart<br>Does your memory stray to a bright sunny day");
	WrongChoice("When you kissed me and called me sweetheart");
	WrongChoice("When I missed you because we're apart");
	WrongChoice("When I held you and told you my heart");
	CorrectChoice("When I kissed you and called you sweetheart");	

Question("<u>Roy Orbison - OH PRETTY WOMAN</u><br>Pretty woman, walkin' down the street<br>Pretty woman the kind I like to meet<br>Pretty woman I don't believe you, you're not the truth");
	WrongChoice("No one can look as good as you, have mercy");
	WrongChoice("No one could sing as good as you, mercy");
	WrongChoice("No one can dance as good as you, have mercy");
	CorrectChoice("No one could look as good as you, mercy");
	 
Question("<u>Sonny and Cher - I GOT YOU BABE</u><br>They say our love won't pay the rent<br>Before it's earned our money's all been spent");
	CorrectChoice("I guess thats so, we don't have a pot");
	WrongChoice("I guess thats so, we don't have a lot");
	WrongChoice("I guess thats so, we won't have a pot");
	WrongChoice("I guess thats so, we won't have a lot");
 
Question("<u>Rolling Stones - (I CAN'T GET NO)SATISFACTION</u><br>When I'm drivin' in my car, and the man come on the radio<br>He's tellin' me more and more about some useless information");
	WrongChoice("Supposed to be emancipation");
	CorrectChoice("Supposed to fire my imagination");
	WrongChoice("Supposed to conquer illumination");
	WrongChoice("Supposed to be my culmination");
 
Question("<u>The Monkeys - I'M A BELIEVER</u><br>I thought love was only true in fairy tales<br>Meant for someone else, but not for me<br>Ah, love was out to get to me");
	CorrectChoice("That's the way it seemed");
	WrongChoice("I can't believe it was true");
	WrongChoice("It seemed to over take me");
	WrongChoice("And love was catching up with me");
 
Question("<u>Bee Gees - NIGHT FEVER</u><br>Then I get night fever, night fever<br>We know how to do it<br>Gimme that night fever, night fever"); 
	WrongChoice("We know how to do it");
	WrongChoice("We know how to strut it");
	CorrectChoice("We know how to show it");
	WrongChoice("We know how to prove it");
 
Question("<u>Louis Armstrong - WHAT A WONDERFUL WORLD</u><br>The colours of the rainbow, so pretty in the sky<br>Are also on the faces of people going by"); 
	 WrongChoice("I see friends passing by waving hello and good-bye");
     WrongChoice("I see friends shaking hands then waving good-bye");
	 CorrectChoice("I see friends shaking hands saying how do you do");
     WrongChoice("I see friends waving hi saying how do you do");
 
Question("<u>Engelbert Humperdinck - THE LAST WALTZ</u><br>I wondered should I go, or should I stay<br>The band had only one more song to play<br>And then I saw you out the corner of my eye"); 
     WrongChoice("A young woman so alone and shy");
     CorrectChoice("A little girl alone and so shy");
     WrongChoice("A young girl so alone and shy");
     WrongChoice("A little girl so very shy");
 
Question("<u>Frank Sinatra - THREE COINS IN THE FOUNTAIN</u><br>Three hearts in the fountain<br>Each heart longing for its home<br>There they lie in the fountain<br>"); 
     WrongChoice("Somewhere in there is home");
     WrongChoice("I'll be thinking of home");
	 CorrectChoice("Somewhere in the heart of Rome");
     WrongChoice("Somewhere in Rome is home");
     

Question("<u>Roger Miller - KING OF THE ROAD</u><br>Trailers for sale or rent<br>Rooms to let, fifty cents<br>No phone, no pool, no pets<br>I ain't got no cigarettes<br>");
	WrongChoice("I got two hours of sweeping rooms");
	WrongChoice("I bet two dogs were asleep at noon");
	WrongChoice("Ah, got two hours of cleaning rooms");
	CorrectChoice("Ah, but two hours of pushin' broom"); 
 



/* 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 = false;



/* 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;
}

/*

if(timelimit != "")
  {
  timenote = "<B>Note: You have a time limit of " + timelimit + " seconds, starting when this page is loaded.</B>";
  }

function starttime(){
if(timelimit != "")
  setTimeout("timeup()",timelimit * 1000);
}

function timeup(){
alert("Sorry, time's up!");
document.theform.button.onclick = void();
location.href = timeuplocation;
}*/
