function quizCheck()
{
	var result;
      var question;
      var friendly;
      var evil;
      var humble;
      var wimp;
      var result;
      var choice;
      var friendly_evil;
      var humble_wimp;
	  
      question = 1;
      friendly = 0;
      evil = 0;
      humble = 0;
      wimp = 0;
      result = "";
      friendly_evil = 0;
      humble_wimp = 0;
      for (question = 1; question <= 10; question++) {
         var q = document.forms['quiz'].elements['q'+question];
            for (var i = 0; i < q.length; i++) {
               if (q[i].checked) {
                  choice = q[i].value;
               }
            }
            if (choice == "friendly") {
               friendly++;
            }
            if (choice == "evil") {
               evil++;
            }
            if (choice == "humble") {
               humble++;
            }
            if (choice == "wimp") {
               wimp++;
            }
         }
      friendly_evil = friendly - evil;
      humble_wimp = humble - wimp;
      if (friendly == 0 && evil == 0 && humble == 0 && wimp == 0) {
         // the user hasn't taken the quiz
         result = "wpay-results/oops";
      }
      else if (friendly_evil > 0 && humble_wimp > 0 && friendly > humble) {
         // mainly friendly, also humble
         result = "wpay-results/pikachu";
      }
      else if (friendly_evil > 0 && humble_wimp > 0 && humble > friendly) {
         // mainly humble, also friendly
         result = "wpay-results/bayleef";
      }
      else if (friendly_evil > 0 && humble_wimp > 0 && humble == friendly) {
         // humble and friendly equally
         result = "wpay-results/pikachu";
      }
      else if (friendly_evil > 0 && humble_wimp < 0 && friendly > wimp) {
         // mainly friendly, also wimp
         result = "wpay-results/skitty";
      }
      else if (friendly_evil > 0 && humble_wimp < 0 && wimp > friendly) {
         // mainly wimp, also friendly
         result = "wpay-results/squirtle";
      }
      else if (friendly_evil > 0 && humble_wimp < 0 && wimp == friendly) {
         // wimp and friendly equally
         result = "wpay-results/squirtle";
      }
      else if (friendly_evil < 0 && humble_wimp > 0 && evil > humble) {
         // mainly evil, also humble
         result = "wpay-results/gengar";
      }
      else if (friendly_evil < 0 && humble_wimp > 0 && humble > evil) {
         // mainly humble, also evil
         result = "wpay-results/bayleef";
      }
      else if (friendly_evil < 0 && humble_wimp > 0 && humble == evil) {
         // humble and evil equally
         result = "wpay-results/arcanine";
      }
      else if (friendly_evil < 0 && humble_wimp < 0 && evil > wimp) {
         // mainly evil, also wimp
         result = "wpay-results/seviper";
      }
      else if (friendly_evil < 0 && humble_wimp < 0 && wimp > evil) {
         // mainly wimp, also evil
         result = "wpay-results/meowth";
      }
      else if (friendly_evil < 0 && humble_wimp < 0 && wimp == evil) {
         // wimp and evil equally
         result = "wpay-results/gorebyss";
      }
      else if (friendly_evil == 0 && humble_wimp > 0) {
         // neutral friendly/evil, humble
         result = "wpay-results/charizard";
      }
      else if (friendly_evil == 0 && humble_wimp < 0) {
         // neutral friendly/evil, wimp
         result = "wpay-results/bulbasaur";
      }
      else if (friendly_evil > 0 && humble_wimp == 0) {
         // neutral humble/wimp, friendly
         result = "wpay-results/skitty";
      }
      else if (friendly_evil < 0 && humble_wimp == 0) {
         // neutral humble/wimp, evil
         result = "wpay-results/gengar";
      }
      else if (friendly_evil == 0 && humble_wimp == 0) {
         // neutral
         result = "wpay-results/arcanine";
      }
      else {
         // no result found
         result = "wpay-results/oops";
      }
      window.location = result + ".html";
}

function levelTwo()
{
	alert("Hello.")

	alert("This is the second level.")

	alert("And it is the hardest and most tedious, I think.")

	alert("See, you'll have to rummage through a bunch of boring alerts.")

	alert("To get to the password.")

	alert("The password is in one of the alerts.")

	alert("But you don't know which one.")

	alert("So you'll have to read through all of them.")

	alert("If you hold down Enter to skip it")

	alert("you might miss it!")

	alert("And never get out of here!")

	alert("Muahahahaha!")

	alert("This first part is actually entertaining compared to what you will soon experience.")

	alert("I will count to 100, recite the ABC's, and do all sorts of pointless stuff.")

	alert("And you'll have to read them all!")

	alert("Because you might skip the password.")

	alert("Which is the only thing that will get you out!")

	alert("1")

	alert("2")

	alert("3")

	alert("4")

	alert("5")

	alert("6")

	alert("7")

	alert("8")

	alert("9")

	alert("10")

	alert("11")

	alert("12")

	alert("13")

	alert("14")

	alert("15")

	alert("16")

	alert("17")

	alert("18")

	alert("19")

	alert("20")

	alert("21")

	alert("22")

	alert("23")

	alert("24")

	alert("25")

	alert("26")

	alert("27")

	alert("28")

	alert("29")

	alert("30")

	alert("31")

	alert("32")

	alert("33")

	alert("34")

	alert("35")

	alert("36")

	alert("37")

	alert("38")

	alert("39")

	alert("40")

	alert("41")

	alert("42")

	alert("43")

	alert("44")

	alert("45")

	alert("46")

	alert("47")

	alert("48")

	alert("49")

	alert("50")

	alert("51")

	alert("52")

	alert("53")

	alert("54")

	alert("55")

	alert("56")

	alert("57")

	alert("58")

	alert("59")

	alert("60")

	alert("61")

	alert("62")

	alert("63")

	alert("64")

	alert("65")

	alert("66")

	alert("67")

	alert("68")

	alert("69")

	alert("70")

	alert("71")

	alert("72")

	alert("73")

	alert("74")

	alert("75")

	alert("76")

	alert("77")

	alert("78")

	alert("79")

	alert("80")

	alert("81")

	alert("82")

	alert("83")

	alert("84")

	alert("The password is in the next alert, so watch out!")

	alert("getmeout")

	alert("85")

	alert("86")

	alert("87")

	alert("88")

	alert("89")

	alert("90")

	alert("91")

	alert("92")

	alert("93")

	alert("94")

	alert("95")

	alert("96")

	alert("97")

	alert("98")

	alert("99")

	alert("100")

	alert("Now for the ABC's.")

	alert("A")

	alert("B")

	alert("C")

	alert("D")

	alert("E")

	alert("F")

	alert("G")

	alert("H")

	alert("I")

	alert("J")

	alert("K")

	alert("L")

	alert("M")

	alert("N")

	alert("O")

	alert("P")

	alert("Q")

	alert("R")

	alert("S")

	alert("T")

	alert("U")

	alert("V")

	alert("W")

	alert("X")

	alert("Y")

	alert("Z")

	alert("Now for the cookie chant!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("Cookies!")

	alert("How about whistling?")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")

	alert("*whistle*")



	<!--hide;

	var getmeout;

	var pass1="getmeout";

	getmeout=prompt('Enter the password or you will have to go through the alerts again. Muahahahaha.');



	if (getmeout==pass1)

	{

	alert("Congratulations! You've got the password correct!")

	alert("You will now proceed onto the third level.")

	window.location="/3rdstage/";

	}



	else

	{

	alert("Muahahahaha!")

	alert("You've typed in the wrong password!")

	alert("The alerts shall now repeat!")

	window.location="/secondlevel/";

	}

	//-->

}

function babble()
{
	var num = 50;

	var say = new Array()
	say[0]="Hello!";
	say[1]="My name is Lugia if you haven't guessed.";
	say[2]="I really like babbling.";
	say[3]="Babbling is, like, the coolest things in the world!";
	say[4]="Thanks for keeping me company by clicking this rather *stupid* page. =D";
	say[5]="Phwee!";
	say[6]="Randomness owns all.";
	say[7]="Am I the master at babbling or what?";
	say[8]="I own Lugia's Island... *duh*";
	say[9]="I'll tell you the story of something really, really interesting. But you'll just have to press your luck and see if the next thing I say is even about the story! Nya, nya. =P";
	say[10]="So here's the beginning of my story: Once there was a Pokemon named Lugia.";
	say[11]="Lugia was so strong that he could lift a building.";
	say[12]="Aren't you liking the story so far?";
	say[13]="He had an arch-nemesis named Ho-Oh.";
	say[14]="Lugia and Ho-Oh got engaged in a big fight!";
	say[15]="Lugia won and the whole world was happeh!";
	say[16]="...Well? Didn't you like my story?!";
	say[17]="I know, you're just dying to click me again. Clicky click!";
	say[18]="Say... click me some more!";
	say[19]="I must be occupying a lot of your time right now.";
	say[20]="I have many fans such as the ever-so-awesome Silverwing.";
	say[21]="Silverwing is one of the most awesome-est people in the world!";
	say[22]="Random. =D";
	say[23]="You must have come across some of my last quotes a few times.";
	say[24]="You'll never see the end of my babbling!";
	say[25]="There's no end to my babbling!";
	say[26]="Ahh... the power of speech is a wonderful thing... to annoy you with! =P";
	say[27]="This site is so cool, isn't it?";
	say[28]="Am I boring you or what? This is about as bad as the Neverending Marquee.";
	say[29]="Muahahahahahahahahahahaha!";
	say[30]="Blame Silverwing for this. She was the one that made me this page and script up!";
	say[31]="^^Click me NOW^^";
	say[32]="Clicking me is addictive, isn't it? Even if it's annoying. xD";
	say[33]="*whistles*";
	say[34]="I should be paid for keeping people's attention for this long!";
	say[35]="This is a worthless quote! =D";
	say[36]="Adding more variables on... teehee ^^";
	say[37]="Am I ruining this site for you?";
	say[38]="Smash the screen now! I know you want to do it. ;)";
	say[39]="I'm a rare Pokemon. There's only one of me in the world! (and no wonder xD)";
	say[40]="Meep."
	say[41]="The only way to shut me up is to not click the button, but I know you want to click it! *evil laugh*";
	say[42]="Hey, don't leave yet! Keep on clicking!";
	say[43]="It <em>is</em> your fault for clicking this page in the first place...";
	say[44]="The world is a wonderful place, yes?";
	say[45]="Hmm... I wonder how many clicks it would take for you to beat the addictiveness and click another link on the screen. =D";
	say[46]="That makes one more click...";
	say[47]="*singsong* One hundred and thirty-one clicks to go, one hundred and thirty-one clliiiiicks~!";
	say[48]="PIE?! *sniff sniff* Did anyone say pie?";
	say[49]="Now, you must really be bored. o_O";
	say[50]="Quoting those drug-free commercials 'Beat the addiction!'";

	var random=Math.random() * num;
	random=Math.round(random);
	var quote =say[random];

	document.write("<center><strong>"+quote+"</strong></center>");
}

function secondLevel()
{

alert("Hello.")

alert("This is the second level.")

alert("And it is the hardest and most tedious, I think.")

alert("See, you'll have to rummage through a bunch of boring alerts.")

alert("To get to the password.")

alert("The password is in one of the alerts.")

alert("But you don't know which one.")

alert("So you'll have to read through all of them.")

alert("If you hold down Enter to skip it")

alert("you might miss it!")

alert("And never get out of here!")

alert("Muahahahaha!")

alert("This first part is actually entertaining compared to what you will soon experience.")

alert("I will count to 100, recite the ABC's, and do all sorts of pointless stuff.")

alert("And you'll have to read them all!")

alert("Because you might skip the password.")

alert("Which is the only thing that will get you out!")

alert("1")

alert("2")

alert("3")

alert("4")

alert("5")

alert("6")

alert("7")

alert("8")

alert("9")

alert("10")

alert("11")

alert("12")

alert("13")

alert("14")

alert("15")

alert("16")

alert("17")

alert("18")

alert("19")

alert("20")

alert("21")

alert("22")

alert("23")

alert("24")

alert("25")

alert("26")

alert("27")

alert("28")

alert("29")

alert("30")

alert("31")

alert("32")

alert("33")

alert("34")

alert("35")

alert("36")

alert("37")

alert("38")

alert("39")

alert("40")

alert("41")

alert("42")

alert("43")

alert("44")

alert("45")

alert("46")

alert("47")

alert("48")

alert("49")

alert("50")

alert("51")

alert("52")

alert("53")

alert("54")

alert("55")

alert("56")

alert("57")

alert("58")

alert("59")

alert("60")

alert("61")

alert("62")

alert("63")

alert("64")

alert("65")

alert("66")

alert("67")

alert("68")

alert("69")

alert("70")

alert("71")

alert("72")

alert("73")

alert("74")

alert("75")

alert("76")

alert("77")

alert("78")

alert("79")

alert("80")

alert("81")

alert("82")

alert("83")

alert("84")

alert("The password is in the next alert, so watch out!")

alert("getmeout")

alert("85")

alert("86")

alert("87")

alert("88")

alert("89")

alert("90")

alert("91")

alert("92")

alert("93")

alert("94")

alert("95")

alert("96")

alert("97")

alert("98")

alert("99")

alert("100")

alert("Now for the ABC's.")

alert("A")

alert("B")

alert("C")

alert("D")

alert("E")

alert("F")

alert("G")

alert("H")

alert("I")

alert("J")

alert("K")

alert("L")

alert("M")

alert("N")

alert("O")

alert("P")

alert("Q")

alert("R")

alert("S")

alert("T")

alert("U")

alert("V")

alert("W")

alert("X")

alert("Y")

alert("Z")

alert("Now for the cookie chant!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("Cookies!")

alert("How about whistling?")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

alert("*whistle*")

var getmeout;

var pass1="getmeout";

getmeout=prompt('Enter the password or you will have to go through the alerts again. Muahahahaha.');



if (getmeout==pass1)

{

alert("Congratulations! You've got the password correct!")

alert("You will now proceed onto the third level.")

window.location="/3rdstage.php";

}



else

{

alert("Muahahahaha!")

alert("You've typed in the wrong password!")

alert("The alerts shall now repeat!")

window.location="/secondlevel.php";

}

return;
}

function fraud()
{
	alert("Nope! This is a fake!")
	alert("Better luck next time!")
}

function real()
{
	alert("Yay!")
	alert("You've found the real one!")
	alert("Proceed to level two!")
	window.location="secondlevel/"
}