// Quiz Engine script by Jordan Hiller <lhiller@compupartner-edm.com>

questionnum = -1;
questions = new Array();
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("You want to go on a date with that special someone, the first step is...");
    CorrectChoice("To plan what you will say, how you will say it, and where you want to go.");
    WrongChoice("To call the person on the phone and just ask them out.");
    WrongChoice("To hope that the person will call you one day.");

Question("Your on the date and the most important things to remember are...");
    WrongChoice("Lovin, respect and romance");
    WrongChoice("A fun time, wildness and rock it");
    CorrectChoice("Respect, safety, and sincerity");
    WrongChoice("Whatever happens - happens");

Question("You know you are on the right date when...");
    WrongChoice("You feel like you are on cloud nine and waiting to go to cloud ten");
    CorrectChoice("You feel good about yourself, about the person and about where you are and what you are doing");
    WrongChoice("You feel unsure but you know the person looks good");

Question("Converstaions on a date should cover...");
    WrongChoice("Emotional, Physical and Intellectual issues");
    WrongChoice("Social and Intellectual issues");
    CorrectChoice("Emotional, Social, Intellectual and Spiritual issues");
    WrongChoice("Intellectual and Physical issues since that is all that matters; brain and bod");

Question("You are about to select clothes to go on a date you should now...");
    WrongChoice("Dress in a seductive way to tempt.");
    WrongChoice("Dress in the latest style of fashion.");
    CorrectChoice("Dress in a comfortable way that suits the activity of your date and yet maintain self-respect");
    WrongChoice("Ask your little brother if you would look good in this or that....");
    WrongChoice("Buy some new clothes because I never have the correct clothes !");

Question("I am preparing to go on a date I should MAKE SURE to...");
    WrongChoice("Take a 'cowboy', quick bath using a cloth in water, and hope for the better");
    WrongChoice("Buy the most expensive perfumes available");
    CorrectChoice("Shower, smell good, shave, be clean");
   

Question("The first place of choice to take a date should be...");
    CorrectChoice("A place where you feel good about yourself, about the person and you can get to know each other");
    WrongChoice("A place that is dark and similar to a cave");
    WrongChoice("Anyplace... it does not really matter, if they like me they will go anywhere");


Question("The primary reason to go on a date should be to learn about the person you are interested in...");
    WrongChoice("False");
    CorrectChoice("True");


Question("I should date when I am the age of...");
    WrongChoice("21 and after parental consent");
    WrongChoice("10");
    CorrectChoice("16 and older");


Question("This is a new generation so I should...");
    WrongChoice("Change all the rules and be radical");
    WrongChoice("Be all that I can be...");
    CorrectChoice("Still remember that virtue never changes");
    WrongChoice("See what the 'in' thing to do is... and just do it!");


Question("You should date only people that will treat you with respect.");
    WrongChoice("False");
    CorrectChoice("True");


Question("I first have to like myself before others can like me.");
    WrongChoice("False");
    CorrectChoice("True");


Question("Romance starts with you and...");
    WrongChoice("Ends after we get married");
    CorrectChoice("Never ends, but goes through all eternity");
    WrongChoice("Stops after the first date");
    WrongChoice("Changes based on how I feel");

Question("The best places to meet new people are...");
    WrongChoice("Bars and Pubs");
    WrongChoice(" Cinemas");
    CorrectChoice("Community Projects, through friends, school, Church ");
    WrongChoice("An internet chat room");
    WrongChoice("Blind date arranged by someone else");

Question("JB@Trinidad and SOL are very Romantic");
    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 separated 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 USED FOR THE RESULTS PAGE. KEEP GOING, YOU'RE ALMOST DONE! */

/* Below, put the excellent and failing grades (percent).
 */
excellentGrade = 95;
failingGrade = 60;

/* Put the email address where you want the score to be sent, or the location of
 * 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 = "mailto:master_builder@excite.com";

/* If you are using the mailing or CGI function, the form method may be
 * different depending on what you are using it. This should be either POST
 * or GET.
 */
 method = "GET";

/** Many CGI scripts require additional information in the form of <INPUT TYPE="hidden">
 * form elements. If necessary, insert any additional html to go inside the form here.
 * Remember to replace all quotes you need in the html with \"
 */
 otherFormTags = "";


/* You have a choice to send the score automatically to the above address, or the
user could have a choice to send it. */
autosend = true;

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

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