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

Question("What does one penny on the tax rate equal in real dollars for the town budget in Wendell?");
	WrongChoice("In the 2007-08 budget year, a single penny on the tax rate equaled about $60,600.");
	WrongChoice("A single penny equaled about $50,600.");
	WrongChoice("A single penny equaled about $40,600.");
	CorrectChoice("A single penny on the tax rate equaled about $30,600.");

Question("What percent of the tax base is residential in Wendell?");
	CorrectChoice("About 76 percent of the town's taxes come from residential property.");
	WrongChoice("About 66 percent come from residential property.");
	WrongChoice("About 56 percent come from residential property.");
	WrongChoice("About 46 percent come from residential property.");

Question("Of the $20 every Wendell customer pays monthly for garbage collection, how much does Waste Industries, the garbage collector, receive?");
	WrongChoice("Waste Industries gets $14.77.");
	WrongChoice("Waste Industries gets $13.77.");
	CorrectChoice("Waste Industries gets $12.77.");
	WrongChoice("Waste Industries gets $11.77.");

Question("How much does a fully equipped police car cost?");
	WrongChoice("A police car's total cost is $40,000.");
	CorrectChoice("Total cost is $35,000.");
	WrongChoice("Total cost is $30,000.");
	WrongChoice("Total cost is $25,000.");

Question("How much will a new fire truck cost in Knightdale?");
	WrongChoice("A new fire truck costs about $300,000.");
	CorrectChoice("A new truck costs about $350,000.");
	WrongChoice("A new truck costs about $400,000.");
	WrongChoice("A new truck costs about $450,000.");

Question("How much will the new fire station cost in Knightdale?");
	WrongChoice("The new planned fire station is estimated to cost about $2.2 million.");
	WrongChoice("The fire station will cost about $2 million.");
	WrongChoice("The fire station will cost about $1.8 million.");
	CorrectChoice("The fire station will cost about $1.6 million.");

Question("Who are the three largest employers in Knightdale?");
	WrongChoice("Knightdale's largest employers are (in order) the town, Square D and Home Depot.");
	WrongChoice("The largest employers are (in order) Schneider Electric, Lowes Home Improvement and the Wake County Public School System.");
	CorrectChoice("The largest employers are (in order) the Wake County Public School System, Schneider Electric and Lowes Home Improvement.");
	WrongChoice("The largest employers are (in order) Square D, Home Depot and the town.");

Question("How much is Zebulon's annual debt payment on the Wakelon School purchase?");
	CorrectChoice("The annual debt payment on the purchase is about $391,000.");
	WrongChoice("The debt payment is about $371,000.");
	WrongChoice("The debt payment is about $351,000.");
	WrongChoice("The debt payment is about $331,000.");

Question("What percentage of Zebulon's tax base is industrial?");
	WrongChoice("About 38 percent of Zebulon's tax base is commercial/industrial.");
	WrongChoice("About 48 percent.");
	WrongChoice("About 58 percent.");
	CorrectChoice("About 68 percent.");

Question("How much money does Progress Energy pay in property taxes to the town of Zebulon?");
	WrongChoice("Progress Energy pays about $20,300.");
	CorrectChoice("About $30,300.");
	WrongChoice("About $40,300.");
	WrongChoice("About $50,300.");


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

/*

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