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("A “handkerchief head” is:");
	WrongChoice("a cool cat");
	WrongChoice("a porter");
	CorrectChoice("an Uncle Tom");
	WrongChoice("a hoddi");
	WrongChoice("a preacher");

Question("Which word is most out of place here?");
	WrongChoice("splib");
	WrongChoice("blood");
	CorrectChoice("gray");
	WrongChoice("spook");
	WrongChoice("black");

Question("A “gas head” is a person who has a:");
	WrongChoice("fast-moving car");
	WrongChoice("stable of “lace”");
	CorrectChoice("”process”");
	WrongChoice("habit of stealing cars");
	WrongChoice("long jail record for arson");

Question("”Bo Diddley” is a:");
	WrongChoice("game for children");
	WrongChoice("down-home cheap wine");
	CorrectChoice("down-home singer");
	WrongChoice("new dance");
	WrongChoice("Moejoe call");

Question("”Hully Gully” came from:");
	WrongChoice("East Oakland");
	WrongChoice("Fillmore");
	CorrectChoice("Watts");
	WrongChoice("Harlem");
	WrongChoice("Motor City");

Question("Cheap chitlings (not the kind you purchase at a frozen food counter) will taste rubbery unless they are cooked long enough. How soon can you quit cooking them to eat and enjoy them?");
	WrongChoice("45 minutes");
	WrongChoice("2 hours");
	CorrectChoice("24 hours");
	WrongChoice("1 week (on a low flame)");
	WrongChoice("1 hour");

Question("What are the “Dixie Hummingbirds?”");
	WrongChoice("part of the KKK");
	WrongChoice("a swamp disease");
	CorrectChoice("a modern gospel group");
	WrongChoice("a Mississippi Negro paramilitary group");
	WrongChoice("Deacons");

Question("If you throw the dice and 7 is showing on the top, what is facing down?");
	CorrectChoice("7");
	WrongChoice("snake eyes");
	WrongChoice("boxcars");
	WrongChoice("little Joes");
	WrongChoice("11");

Question("”Jet” is:");
	WrongChoice("an East Oakland motorcycle club");
	WrongChoice("one of the gangs in “West Side Story”");
	CorrectChoice("a news and gossip magazine");
	WrongChoice("a way of life for the very rich");

Question("T-Bone Walker got famous for playing what?");
	WrongChoice("trombone");
	WrongChoice("piano");
	WrongChoice("”T-Flute”");
	CorrectChoice("guitar");
	WrongChoice("hambone");

Question("”Bird” or “Yardbird” was the “jacket” that jazz lovers from coast to coast hung on:");
	WrongChoice("Lester Young");
	WrongChoice("Peggy Lee");
	WrongChoice("Benny Goodman");
	CorrectChoice("Charlie Parker");
	WrongChoice("”Birdman of Alcatraz”");

Question("Hattie Mae Johnson is on the Country. She has four children and her husband is now in jail for non-support, as he was unemployed and was not able to give her any money. Her welfare check is now $286 per month. Last night she went out with the highest player in town. If she got pregnant, then nine months from now how much more will her welfare check be?");
	CorrectChoice("$80");
	WrongChoice("$2");
	WrongChoice("$35");
	WrongChoice("$150");
	WrongChoice("$100");

Question("”Money don’t get everything it’s true.”");
	WrongChoice("but I don’t have none and I’m so blue");
	CorrectChoice("but what it don’t get I can’t use");
	WrongChoice("so make do with what you’ve got");
	WrongChoice("but I don’t know that and neither do you");

Question("How much does a short dog cost?");
	CorrectChoice("$0.15");
	WrongChoice("$2.00");
	WrongChoice("$0.35");
	WrongChoice("$0.05");
	WrongChoice("$0.86 plus tax");

Question("Many people say that “Juneteenth” (June 19) should be made a legal holiday because this was the day when:");
	WrongChoice("the slaves were freed in the USA");
	CorrectChoice("the slaves were freed in Texas");
	WrongChoice("the slaves were freed in Jamaica");
	WrongChoice("the slaves were freed in California");
	WrongChoice("Martin Luther King was born");
	WrongChoice("Booker T. Washington died");


/* 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;
}*/
