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("Before voting I thoroughly investigate the qualifications of all the candidates.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I never hesitate to go out of my way to help someone in trouble.");
	CorrectChoice("True");
	WrongChoice("False");

Question("It is sometimes hard for me to go on with my work if I am not encouraged.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I have never intensely disliked anyone.");
	CorrectChoice("True");
	WrongChoice("False");

Question("On occasions I have had doubts about my ability to succeed in life.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I sometimes feel resentful when I don’t get my way.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I am always careful about my manner of dress.");
	CorrectChoice("True");
	WrongChoice("False");

Question("My table manners at home are as good as when I eat out in a restaurant.");
	CorrectChoice("True");
	WrongChoice("False");

Question("If I could get into a movie without paying and be sure I was not seen I would probably do it.");
	CorrectChoice("True");
	WrongChoice("False");

Question("On a few occasions, I have given up something because I thought too little of my ability.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I like to gossip at times.");
	CorrectChoice("True");
	WrongChoice("False");

Question("There have been times when I felt like rebelling against people in authority even though I knew they were right.");
	CorrectChoice("True");
	WrongChoice("False");

Question("No matter who I’m talking to, I’m always a good listener.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I can remember “playing sick” to get out of something.");
	CorrectChoice("True");
	WrongChoice("False");

Question("There have been occasions when I have taken advantage of someone.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I’m always willing to admit it when I make a mistake.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I always try to practice what I preach.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I don’t find it particularly difficult to get along with loudmouthed, obnoxious people.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I sometimes try to get even rather than forgive and forget.");
	CorrectChoice("True");
	WrongChoice("False");

Question("When I don’t know something I don’t mind at all admitting it.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I am always courteous, even to people who are disagreeable.");
	CorrectChoice("True");
	WrongChoice("False");

Question("At times I have really insisted on having things my own way.");
	CorrectChoice("True");
	WrongChoice("False");

Question("There have been occasions when I felt like smashing things.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I would never think of letting someone else be punished for my wrong-doings.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I never resent being asked to return a favor.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I have never been irked when people expressed ideas very different from my own.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I never make a long trip without checking the safety of my car.");
	CorrectChoice("True");
	WrongChoice("False");

Question("There have been times when I was quite jealous of the good fortune of others.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I have almost never felt the urge to tell someone off.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I am sometimes irritated by people who ask favors of me.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I have never felt that I was punished without cause.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I sometimes think when people have a misfortune they only got what they deserved.");
	CorrectChoice("True");
	WrongChoice("False");

Question("I have never deliberately said something that hurt someone’s feelings.");
	CorrectChoice("True");
	WrongChoice("False");

/* 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;
}*/