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("How many stars are there in our flag?");
	CorrectChoice("50");
	WrongChoice("45");
	WrongChoice("15");

Question("What do the stripes on the flag mean?");
	WrongChoice("They represent 13 flags.");
	WrongChoice("They represent the first 13 presidents.");
	CorrectChoice("They represent the original 13 states.");

Question("How many states are there in the union?");
	WrongChoice("25");
	CorrectChoice("50");
	WrongChoice("20");

Question("Who is the vice-president of the United States?");
	WrongChoice("George W. Bush");
	CorrectChoice("Richard B. Cheney");
	WrongChoice("Robert M. Gates");

Question("What are the three branches of government?");
	CorrectChoice("legislative, executive, judiciary");
	WrongChoice("commerce, labor, defense");
	WrongChoice("energy, transportation, treasury");

Question("How many senators are there in Congress?");
	WrongChoice("50");
	CorrectChoice("100");
	WrongChoice("250");

Question("How many representatives are there in Congress?");
	CorrectChoice("435");
	WrongChoice("335");
	WrongChoice("250");

Question("What is the judiciary branch of our government?");
	WrongChoice("Environmental Protection Agency");
	WrongChoice("Department of Homeland Security");
	CorrectChoice("The Supreme Court");

Question("Who said, 'Give me liberty or give me death?'");
	WrongChoice("Abraham Lincoln");
	CorrectChoice("Patrick Henry");
	WrongChoice("Thurgood Marshall");

Question("How many terms can a president serve?");
	CorrectChoice("2");
	WrongChoice("4");
	WrongChoice("1");

Question("Why are there 100 senators in the Senate?");
	WrongChoice("There are 5 from each state");
	WrongChoice("They need the power to declare war");
	CorrectChoice("There are 2 from each state");

Question("Who was the main writer of the Declaration of Independence?");
	CorrectChoice("Thomas Jefferson");
	WrongChoice("James Madison");
	WrongChoice("John Quincy Adams");

Question("When was the Declaration of Independence adopted?");
	WrongChoice("July 4, 1876");
	CorrectChoice("July 4, 1776");
	WrongChoice("July 4, 1976");

Question("Name the national anthem of the United States.");
	WrongChoice("The Pledge of Allegiance");
	WrongChoice("Yankee Doodle Dandy");
	CorrectChoice("The Star-Spangled Banner");

Question("Who wrote the Star-Spangled Banner?");
	CorrectChoice("Francis Scott Key");
	WrongChoice("Mark Twain");
	WrongChoice("Beverly Cleary");

Question("Who signs bills into law?");
	CorrectChoice("president");
	WrongChoice("governor");
	WrongChoice("Congress");

Question("Who did we fight during the Revolutionary War?");
	WrongChoice("Japan");
	CorrectChoice("England");
	WrongChoice("Germany");

Question("Who has the power to declare war?");
	WrongChoice("president");
	WrongChoice("Senate");
	CorrectChoice("Congress");

Question("Who was the president during the Civil War?");
	CorrectChoice("Abraham Lincoln");
	WrongChoice("Andrew Jackson");
	WrongChoice("William Henry Harrison");

Question("What are the first 10 amendments to the Constitution called?");
	WrongChoice("The Union");
	CorrectChoice("The Bill of Rights");
	WrongChoice("The Declaration of Independence");

Question("Name the 13 original states.");
	CorrectChoice("Connecticut, New Hampshire, New York, New Jersey, Massachusetts, Pennsylvania, Delaware, Virginia, North Carolina, South Carolina, Georgia, Rhode Island and Maryland.");
	WrongChoice("Connecticut, New Hampshire, New York, New Jersey, Texas, Pennsylvania, Delaware, Virginia, North Carolina, South Carolina, Georgia, Rhode Island and Maryland.");
	WrongChoice("Connecticut, New Hampshire, Arizona, New Jersey, Massachusetts, Pennsylvania, Delaware, Virginia, North Carolina, South Carolina, Georgia, Rhode Island and Maryland.");

Question("Which president was the first Commander in Chief of the U.S. military?");
	WrongChoice("John Tyler");
	WrongChoice("James Buchanan");
	CorrectChoice("George Washington");

Question("Who is the Commander in Chief of the U.S. military today?");
	CorrectChoice("George W. Bush");
	WrongChoice("Condoleezza Rice");
	WrongChoice("Michael Chertoff");

Question("What are the two major political parties in the U.S.?");
	WrongChoice("the left wing and the right wing");
	CorrectChoice("Democratic and Republican");
	WrongChoice("the Congress and the Senate");

Question("In what month is the new president inaugurated?");
	WrongChoice("November");
	WrongChoice("March");
	CorrectChoice("January");


/* 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 = 30;

/* 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;
}

/*

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;
}*/