
//do not remove the following
//This script was created by William
//http://www.geocities.com/william1424
//\        /  .  |  |  .    /\    |\  /|
// \  /\  /   |  |  |  |   /__\   | \/ | 
//  \/  \/    |  |  |  |  /    \  |    |  

	
	var pickgame = Math.round(5 * Math.random());	
	var usedfiftyfifty = 0
	var pickquestion = new Array(15)
	var questiona = new Array(15)
	var questionb = new Array(15)
	var questionc = new Array(15)
	var questiond = new Array(15)
	var index = 0
	var cash = 0
	var yourname = prompt("What is your name" , "enter your name")
	
	pickgame = pickgame + 1
	


if (pickgame <= 1)
	{
	pickquestion[0] = "According to emily post, if a man wants to cut in on another couple dancing, what should he do"
	pickquestion[1] = "Which of the following aniamls does not have antlers?"
	pickquestion[2] = "According to the song made popular by singer Tony Bennett, where did he leave his heart?"
	pickquestion[3] = "On the classic television show welcome back kotter, which of the following groups was Mr. Kotter assigned to teach?"
	pickquestion[4] = "On which of the following would you find a clutch lever, twist-grip throttle and pillion footrest"
	pickquestion[5] = "Which of the following Ben and Jerry's ice cream flavors is named after a music group"
	pickquestion[6] = "What movie critic wrote the screenplay for Russ Meyer's classic cult movie Beyond the vally of the Dolls"
	pickquestion[7] = "Which of the following players did not win the Heisman trophy?"
	pickquestion[8] = "Which of the following legendary structures was built as a tomb for a queen?"
	pickquestion[9] = "Which of the following words is an eponym?"
	pickquestion[10] = "Which of the following is a type of ornamental design found in architecture"
	pickquestion[11] = "What is the name of the flight pattern that NASA uses to achieve weightlessness in Earth's atmosphere?"
	pickquestion[12] = "Which charicter in Greek mythology killed his father, married his sister , and ate his own childern?"
	pickquestion[13] = "Which of the following passengers did not perish during the sinking of the Titanic?"
	pickquestion[14] = "Who has been chosen as the new model for Marianne, the symbol of the French Republic"

	questiona[0] = "Take the Womens hand"	
	questiona[1] = "Wapiti"
	questiona[2] = "San Diego"
	questiona[3] = "Sweathogs"
	questiona[4] = "Surrey"
	questiona[5] = "Chunkey Monkey"
	questiona[6] = "Roger Ebert"
	questiona[7] = "Ernie Davis"
	questiona[8] = "Taj Mahal"
	questiona[9] = "Leotard"
	questiona[10] = "Block and takle"
	questiona[11] = "Paramount"
	questiona[12] = "Hades"
	questiona[13] = "J. Bruce Ismay"
	questiona[14] = "Laetitia Casta"

	questionb[0] = "Tap the man's shoulder"
	questionb[1] = "White-tailed deer"
	questionb[2] = "San Francisco"
        questionb[3] = "Greasehogs"
	questionb[4] = "Rickshaw"
	questionb[5] = "Wavy Gravy"
	questionb[6] = "Gene Siskel"
	questionb[7] = "O.J Simpson"
	questionb[8] = "Hagia Sophia"
	questionb[9] = "Dreidel"
	questionb[10] = "Egg and dart"
	questionb[11] = "Parabola"
	questionb[12] = "Cronos"
	questionb[13] = "Caption Edward J. Smith"
	questionb[14] = "Estelle Hallyday"

	questionc[0] = "tap the womens shoulder"
	questionc[1] = "Caribou"
	questionc[2] = "San Bernadino"
	questionc[3] = "Bosshogs"
	questionc[4] = "Ski lift"
	questionc[5] = "Phish Food"
	questionc[6] = "Rex Reed"
	questionc[7] = "Jerry Rice"
	questionc[8] = "Westminster Cathedral"
	questionc[9] = "Splash"
	questionc[10] = "Hook and eye"
	questionc[11] = "Ellipsis"
	questionc[12] = "Hephaestus"
	questionc[13] = "Thomas Andrews"
	questionc[14] = "Nathalie Simon"

	questiond[0] = "Announce his intention"
	questiond[1] = "Beaver"
	questiond[2] = "San Luis Obispo"
	questiond[3] = "Filthyhogs"
	questiond[4] = "Motorcycle"
	questiond[5] = "Rainforest Crunch"
	questiond[6] = "Gene Shalit"
	questiond[7] = "Steve Spurrier"
	questiond[8] = "Topkapi Palace"
	questiond[9] = "Xerox"
	questiond[10] = "Buck and wing"
	questiond[11] = "Roller coaster"
	questiond[12] = "Posedion"
	questiond[13] = "Benjamin Guggenheim"
	questiond[14] = "Daniela Lumbroso"
	}

else if (pickgame == 2)
	{
	pickquestion[0] = "Which of the following is the term for an investor who anticipates a rise in stock prices?"
	pickquestion[1] = "In the television series The Six Million Dollar Man, who did Steve Austin report to?"
	pickquestion[2] = "During the Persian Gulf War, what color ribbon was popularly used to honor the American soldiers?"
	pickquestion[3] = "In the U.S music buisness when an album goes platinum, a minimum of how many copies have been sold?"
	pickquestion[4] = "What Magazine did Miramax Films cofound"
	pickquestion[5] = "Which of the following was discovered by Galileo?"
	pickquestion[6] = "Who of the following has never been related to actor George Clooney?"
	pickquestion[7] = "According to the Bible, what is the moral of the Prodigal Son parable?"
	pickquestion[8] = "In what arithmetic process would you find a minuend and subtrehend?"
	pickquestion[9] = "Which of the following cities has never hosted a worlds fair?"
	pickquestion[10] = "The name of which state originates from the Indian word meaning at the long tidal river"
	pickquestion[11] = "Howard University was named after which founding member of the Freedman's Bureau?"
	pickquestion[12] = "What scale is used to measure the damage caused by an earthquake?"
	pickquestion[13] = "The words to the song Hail to the Cheif come from a poem written by which of the following people?"
	pickquestion[14] = "What was the first company to air a television commercial in the U.S"

	questiona[0] = "Steer"
	questiona[1] = "Reuben Kinciad"
	questiona[2] = "Red"
	questiona[3] = "1,000,000"
	questiona[4] = "People"
	questiona[5] = "Star of David"
	questiona[6] = "Mark Wahlberg"
	questiona[7] = "Justice"
	questiona[8] = "Subtraction"
	questiona[9] = "Totonto, Canada"
	questiona[10] = "Mississippi"
	questiona[11] = "J.Imogene Howard"
	questiona[12] = "Saffir-Simpson"
	questiona[13] = "Sir Walter Scott"
	questiona[14] = "Bulova Company"

	questionb[0] = "Bull" 
	questionb[1] = "Jim Phelps"
	questionb[2] = "Yellow"
        questionb[3] = "500,000"
	questionb[4] = "Elle"
	questionb[5] = "Ring of Kerry"
	questionb[6] = "Debby Boone"
	questionb[7] = "Freedom"
	questionb[8] = "Multiplication"
	questionb[9] = "Osaka, Japan"
	questionb[10] = "Connecticut"
	questionb[11] = "General Oliver Howard"
	questionb[12] = "Mercalli"
	questionb[13] = "James Sanderson"
	questionb[14] = "Sweetheart Soap"

	questionc[0] = "Boar"
	questionc[1] = "Charlie"
	questionc[2] = "Black"
	questionc[3] = "200,000"
	questionc[4] = "TV Guide"
	questionc[5] = "Moons of Jupiter"
	questionc[6] = "Jose Ferrer"
	questionc[7] = "Forgiveness"
	questionc[8] = "Division"
	questionc[9] = "Seatle, WA"
	questionc[10] = "California"
	questionc[11] = "Howard Taft"
	questionc[12] = "Humboldt"
	questionc[13] = "Francis Scott Key"
	questionc[14] = "Texaco"

	questiond[0] = "Bear"
	questiond[1] = "Oscar Goldman"
	questiond[2] = "Blue"
	questiond[3] = "100,000"
	questiond[4] = "Talk"
	questiond[5] = "Laura Palmer"
	questiond[6] = "Rosemary Clooney"
	questiond[7] = "Trust"
	questiond[8] = "Addition"
	questiond[9] = "Knoxville, TN"
	questiond[10] = "Missouri"
	questiond[11] = "Edwin Clarence Howard"
	questiond[12] = "Volcus"
	questiond[13] = "Sir Thomas Malory"
	questiond[14] = "Geritol"
	}

else if (pickgame == 3)
	{
	pickquestion[0] = "Who started with a single five-and-dime store before going on to found Wal-Mart?"
	pickquestion[1] = "On most standard American Toch-Tone phones, what button is directly left of 0?"
	pickquestion[2] = "In the 1984 movie footloose, which of the following activities is outlawed?"
	pickquestion[3] = "What is the proper thing to do with a chorizo?"
	pickquestion[4] = "As of November 1999, who of the following had never guest-hosted the Tonight Show?"
	pickquestion[5] = "Which author began one of his classic books with the phrase, it was the best of times , it was the worst of times?"
	pickquestion[6] = "In which wing of the White house In washington D.C would you find the Oval Office?"
	pickquestion[7] = "Which country music star wrote the song Crazy, made famous by singer Patsy Cline?"
	pickquestion[8] = "On what ship did Charles Darwin serve as a naturalist during a five-year voyage in the 1830's?"
	pickquestion[9] = "In 1917, America purchased what are now known as the U.S virgin Islands from which country?"
	pickquestion[10] = "Who of the following was not a five-star general?"
	pickquestion[11] = "What is the name of the queen and wife of Pharaoh Akhenaton?"
	pickquestion[12] = "In the book The Legend of Sleepy Hollow what is the name of Ichabod Crane's horse?"
	pickquestion[13] = "What is the only planet in our solar system which rotates clockwise?"
	pickquestion[14] = "Which composer wrote The Hebrides Overture, also known as Fingal's Cave?"

	questiona[0] = "Walter Johnson"
	questiona[1] = "1"
	questiona[2] = "Jogging"
	questiona[3] = "Eat it"
	questiona[4] = "David Letterman"
	questiona[5] = "F. Scott Fitzgerald"
	questiona[6] = "The West Wing"
	questiona[7] = "George Jones"
	questiona[8] = "The Beagle"
	questiona[9] = "Denmark"
	questiona[10] = "Douglas MacArthur"
	questiona[11] = "Cleopatra"
	questiona[12] = "Shadowfax"
	questiona[13] = "Venus"
	questiona[14] = "Felix Mendelssohn"

	questionb[0] = "Sam Walton" 
	questionb[1] = "#"
	questionb[2] = "Dancing"
        questionb[3] = "Drink It"
	questionb[4] = "Garry Shandling"
	questionb[5] = "J.R.R Tolkein"
	questionb[6] = "The East Wing"
	questionb[7] = "Merle Haggard"
	questionb[8] = "The Bountiful"
	questionb[9] = "Portugal"
	questionb[10] = "George S. Patton"
	questionb[11] = "Nefertiti"
	questionb[12] = "Gunpowder"
	questionb[13] = "Earth"
	questionb[14] = "Benjamin Britten"

	questionc[0] = "Martin Delany"
	questionc[1] = "9"
	questionc[2] = "Walking"
	questionc[3] = "Ride it"
	questionc[4] = "Kermit the Frog"
	questionc[5] = "Charles Dickens"
	questionc[6] = "The South Wing"
	questionc[7] = "Willie Nelson"
	questionc[8] = "The Nautilus"
	questionc[9] = "Spain"
	questionc[10] = "Dwight D. Eisenhower"
	questionc[11] = "Nefertari"
	questionc[12] = "Buttermilk"
	questionc[13] = "Jupiter"
	questionc[14] = "Edvard Grieg"

	questiond[0] = "Wally Martin"
	questiond[1] = "*"
	questiond[2] = "Spitting"
	questiond[3] = "Read it"
	questiond[4] = "Martin Short"
	questiond[5] = "Ernest Hemingway"
	questiond[6] = "The North Wing"
	questiond[7] = "Kenny Rogers"
	questiond[8] = "The Galapagos"
	questiond[9] = "England"
	questiond[10] = "Omar Nelson Bradley"
	questiond[11] = "Alexandria"
	questiond[12] = "Old England"
	questiond[13] = "Saturn"
	questiond[14] = "Ludwig van Beethoven"
	}

else if (pickgame == 4)
	{
	pickquestion[0] = "On what part of a letter or postcard is it appropriate to affix a stamp?"
	pickquestion[1] = "Lynx,Russian blue , and Abyssinian are all breeds of what animal?"
	pickquestion[2] = "Who of the following helped save the Crysler Corporation and wrote an autobiodraphy that sold several million copies?"
	pickquestion[3] = "Which of the following is not a popular boy band?"
	pickquestion[4] = "Television's Judge Judy was originally a Family Court judge in which U.S city?"
	pickquestion[5] = "Which of the following is a perfect score on the College Board's Scholastic Assessment Test?"
	pickquestion[6] = "What of the following is another word for dandruff?"
	pickquestion[7] = "What mounth is named for the Roman god of war?"
	pickquestion[8] = "What were movie theater audiences encouraged to use while watching the John Waters movie Polyester?"
	pickquestion[9] = "Why was the originally gray colored Executive Mansion-later called the White House-painted white after the war of 1812?"
	pickquestion[10] = "Which of the following is not a trademarked name?"
	pickquestion[11] = "Who was the first American to go outside an orbiting spacecraft, attached only by a tether?"
	pickquestion[12] = "Which of the following was the only Gilbert and Sullivan operetta to open in New York City before London?"
	pickquestion[13] = "What was the given family name of President Bill Clinton before he formally changed it at age fifteen?"
	pickquestion[14] = "The Rock of Gibraltar is composed of primarily of what type of stone?"

	questiona[0] = "Lower right-hand corner"
	questiona[1] = "Rabbits"
	questiona[2] = "Henry Ford, Jr"
	questiona[3] = "Go Dogs Go"
	questiona[4] = "Philadelphia"
	questiona[5] = "1000"
	questiona[6] = "Scurf"
	questiona[7] = "October"
	questiona[8] = "Scratch-and-sniff cards"
	questiona[9] = "To cover up burn marks"
	questiona[10] = "Velcro"
	questiona[11] = "John Glenn"
	questiona[12] = "The H.M.S Pinafore"
	questiona[13] = "Blythe"
	questiona[14] = "Limestone"

	questionb[0] = "Upper right-hand corner" 
	questionb[1] = "Horses"
	questionb[2] = "Lee lacocca"
      questionb[3] = "N' Sync"
	questionb[4] = "Boston"
	questionb[5] = "1200"
	questionb[6] = "Scruff"
	questionb[7] = "January"
	questionb[8] = "Tomatoes"
	questionb[9] = "To suit Abigail Adams"
	questionb[10] = "Mayonnaise"
	questionb[11] = "Ed White"
	questionb[12] = "Pirates of Penzance"
	questionb[13] = "Oxford"
	questionb[14] = "Granite"

	questionc[0] = "Lower left-hand corner"
	questionc[1] = "Dogs"
	questionc[2] = "Joe Isuzu"
	questionc[3] = "Backstreet Boys"
	questionc[4] = "New York"
	questionc[5] = "1600"
	questionc[6] = "Sprue"
	questionc[7] = "March"
	questionc[8] = "Headphones"
	questionc[9] = "To camouflage in the winter"
	questionc[10] = "Frisbee"
	questionc[11] = "Gus Grissom"
	questionc[12] = "The Sorcerer"
	questionc[13] = "LaPlante"
	questionc[14] = "Basalt"

	questiond[0] = "Upper left-hand corner"
	questiond[1] = "Cats"
	questiond[2] = "John DeLorean"
	questiond[3] = "98 Degrees"
	questiond[4] = "Chicago"
	questiond[5] = "2000"
	questiond[6] = "Ich"
	questiond[7] = "May"
	questiond[8] = "3-D glasses"
	questiond[9] = "To celebrate Easter"
	questiond[10] = "Band-Aid"
	questiond[11] = "Alan Shepard"
	questiond[12] = "Princess Ida"
	questiond[13] = "Wood"
	questiond[14] = "Schist"
	}

else if (pickgame >= 5)
	{
	pickquestion[0] = "What candies take their name from the company's cofounders, Forrest mars and Bruce Murrie?"
	pickquestion[1] = "If it's 11 P.M in Seatle, what time is it in Miami?"
	pickquestion[2] = "Which of the following toy stores was featured in the movie Big?"
	pickquestion[3] = "What animal lives in a warren?"
	pickquestion[4] = "In the telvision show Home improvement, what is the name of the Home-repair show hosted by Tim Taylor?"
	pickquestion[5] = "The Defense of Fort McHenry was the original title of what song?"
	pickquestion[6] = "How is your posture described if you're standing with hands on hips and elbows bent outward?"
	pickquestion[7] = "The play Inherit the wind is a fictionalized account of which famous 1920s trial?"
	pickquestion[8] = "Which of the following is not a beach at Normandy?"
	pickquestion[9] = "In the fourth century B.C, egypt's King Ptolemy I oversaw the creating of what object in Alexandria?"
	pickquestion[10] = "What U.S state capital's primary access is by air or water?"
	pickquestion[11] = "In 1961, what hung upside down at New York's Museum of Modern Art for more than a mounth before someone notised the mistake?"
	pickquestion[12] = "Where can the Maxwell Gap be found?"
	pickquestion[13] = "What country's national flag is not in the shape of a rectangle?"
	pickquestion[14] = "In Mozart's opera Don Giovanni, how many lovers does Leporello claim Don Giovanni has had in Spain?"

	questiona[0] = "Snickers"
	questiona[1] = "1 A.M"
	questiona[2] = "Child World"
	questiona[3] = "Rabbit"
	questiona[4] = "Tools & Power"
	questiona[5] = "Battle Hymn of the republic"
	questiona[6] = "Akimbo"
	questiona[7] = "Leopold and Loeb"
	questiona[8] = "Saber"
	questiona[9] = "Library"
	questiona[10] = "Olympia"
	questiona[11] = "A 25,000 pound mobile"
	questiona[12] = "Mars"
	questiona[13] = "Nepal"
	questiona[14] = "1,003"

	questionb[0] = "M&M's" 
	questionb[1] = "8 P.M"
	questionb[2] = "F.A.Q Schwarz"
        questionb[3] = "Opossum"
	questionb[4] = "The Power Hour"
	questionb[5] = "Over there"
	questionb[6] = "Courant"
	questionb[7] = "Sacco and Vanzetti"
	questionb[8] = "Sword"
	questionb[9] = "Sphinx"
	questionb[10] = "Juneau"
	questionb[11] = "A Henri matisse painting"
	questionb[12] = "Saturn's rings"
	questionb[13] = "Qatar"
	questionb[14] = "156"

	questionc[0] = "3 Musketeers"
	questionc[1] = "3 A.M"
	questionc[2] = "Toys 'R' Us"
	questionc[3] = "Snake"
	questionc[4] = "Hammer Time"
	questionc[5] = "The Star-Spangled Banner"
	questionc[6] = "Sejeant"
	questionc[7] = "Scopes Monkey"
	questionc[8] = "Utah"
	questionc[9] = "Temple"
	questionc[10] = "Baton Rouge"
	questionc[11] = "A Mondrian painting"
	questionc[12] = "Halley's comet"
	questionc[13] = "Guyana"
	questionc[14] = "849"

	questiond[0] = "Reese's Pieces"
	questiond[1] = "2 A.M"
	questiond[2] = "Kay-Bee"
	questiond[3] = "Beaver"
	questiond[4] = "Tool Time"
	questiond[5] = "Onward, Christian Soldiers"
	questiond[6] = "Cross-purposed"
	questiond[7] = "Scottsboro boys"
	questiond[8] = "Juno"
	questiond[9] = "Wall"
	questiond[10] = "Honolulu"
	questiond[11] = "The Mona Lisa"
	questiond[12] = "The asteroid belt"
	questiond[13] = "Liechtenstein"
	questiond[14] = "3,727"


	}

	function play()
	{
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
		
	function a()
	{
	if (confirm(yourname + "," + " " + "Is that your final answer"))
	{
	if (index == 0)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"

	}
	
	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 3)
	{
	alert(yourname + "," + " " + "That is Correct for 500 Dollers")
	alert("Now for the 1,000 doller question")
	index = index + 1
	cash = 500
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 6)
	{
	alert(yourname + "," + " " + "That is Correct for 4,000 Dollers")
	alert("Now for the 8,000 doller question")
	index = index + 1
	cash = "4,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 8)
	{
	alert(yourname + "," + " " + "That is Correct for 16,000 Dollers")
	alert("Now for the 32,000 doller question")
	index = index + 1
	cash = "16,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 9)
	{
	alert(yourname + "," + " " + "That is Correct for 32,000 Dollers")
	alert("Now for the 64,000 doller question")
	index = index + 1
	cash = "32,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 13)
	{
	alert(yourname + "," + " " + "That is Correct for 500,000 Dollers")
	alert("Now for the 1,000,000 doller question")
	index = index + 1
	cash = "500,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 14)
	{
	alert(yourname + "," + " " + "That is Correct for 1,000,000 Dollers!!!")
	parent.location.href = "http://www.cyber-junkie.com/fun/million"
	window.open('youwon.html', 'Millionare' , config = 'height=300 , width = 300')
	index = index + 1
	cash = "1,000,000"
	document.millionare.cash.value = cash
	}
	}
	}


	function b()
	{

	if (confirm(yourname + "," + " " + "Is that your final answer") )
	{
	if (index == 0)
	{
	alert(yourname + "," + " " + "That is Correct for 100 Dollers")
	alert("Now for the 200 doller question")
	index = index + 1
	cash = 100
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}

	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	
	else if (index == 2)
	{
	alert(yourname + "," + " " + "That is Correct for 300 Dollers")
	alert("Now for the 500 doller question")
	index = index + 1
	cash = 300
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}

	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 10)
	{
	alert(yourname + "," + " " + "That is Correct for 64,000 Dollers")
	alert("Now for the 125,000 doller question")
	index = index + 1
	cash = "64,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 11)
	{
	alert(yourname + "," + " " + "That is Correct for 125,000 Dollers")
	alert("Now for the 250,000 doller question")
	index = index + 1
	cash = "125,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 12)
	{
	alert(yourname + "," + " " + "That is Correct for 250,000 Dollers")
	alert("Now for the 500,000 doller question")
	index = index + 1
	cash = "250,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	}
	}


	function c()
	{
	if (confirm(yourname + "," + " " + "Is that your final answer") )
	{
	if (index == 0)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 5)
	{
	alert(yourname + "," + " " + "That is Correct for 2,000 Dollers")
	alert("Now for the 4,000 doller question")
	index = index + 1
	cash = "2,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 7)
	{
	alert(yourname + "," + " " + "That is Correct for 8,000 Dollers")
	alert("Now for the 16,000 doller question")
	index = index + 1
	cash = "8,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	}
	}


	function d()
	{
	if (confirm(yourname + "," + " " + "Is that your final answer") )
	{
	if (index == 0)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 1)
	{
	alert(yourname + "," + " " + "That is Correct for 200 Dollers")
	alert("Now for the 300 doller question")
	index = index + 1
	cash = 200
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}

	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}

	else if (index == 4)
	{
	alert(yourname + "," + " " + "That is Correct for 1,000 Dollers")
	alert("Now for the 2,000 doller question")
	index = index + 1
	cash = "1,000"
	document.millionare.cash.value = cash
	document.millionare.question.value = pickquestion[index]
	
	document.millionare.answera.value = questiona[index]
	document.millionare.answerb.value = questionb[index]
	document.millionare.answerc.value = questionc[index]
	document.millionare.answerd.value = questiond[index]
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.cyber-junkie.com/fun/million"
	}
	}
	}

	function fiftyfifty()
	{
	

	if (usedfiftyfifty == 5)
	{alert("You have already used the fifty fifty")}

	else  
	
	{
	if (index == 0)
	{document.millionare.answera.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 1)
	{document.millionare.answerb.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 2)
	{document.millionare.answerd.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 3)
	{document.millionare.answerd.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 4)
	{document.millionare.answera.value = "--------"
	document.millionare.answerb.value = "--------"}
	else if (index == 5)
	{document.millionare.answera.value = "--------"
	document.millionare.answerd.value = "--------"}
	else if (index == 6)
	{document.millionare.answerb.value = "--------"
	document.millionare.answerd.value = "--------"}
	else if (index == 7)
	{document.millionare.answera.value = "--------"
	document.millionare.answerb.value = "--------"}
	else if (index == 8)
	{document.millionare.answerd.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 9)
	{document.millionare.answerb.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 10)
	{document.millionare.answera.value = "--------"
	document.millionare.answerd.value = "--------"}
	else if (index == 11)
	{document.millionare.answera.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 12)
	{document.millionare.answerd.value = "--------"
	document.millionare.answerc.value = "--------"}
	else if (index == 13)
	{document.millionare.answerb.value = "--------"
	document.millionare.answerd.value = "--------"}
	else if (index == 14)
	{document.millionare.answerc.value = "--------"
	document.millionare.answerd.value = "--------"}
	
	}
	document.millionare.fiftyfiftybutton.value = "XXXXX"
	usedfiftyfifty = 5
	}
	


	function callafriend()
	{
	if (document.millionare.phoneafriend.value == "XXXXX")
	{alert("You have already used the Phone a Friend")}

	else if (document.millionare.phoneafriend.value == "phone a friend") 
	{

	var whotocall = prompt("Who do you wish to call" , "Enter a name")

	while (whotocall == " ")
	{alert("You have to enter a name")
	var whotocall = prompt("Who do you wish to call" , " ")}
	
	
	
	alert("ok, we will get" + " " + whotocall + " " + "on the line")
	alert("Ring.....")
	alert("Hello...." + " " + whotocall + ",")
	alert("We have" + " " + yourname + " " + "In the hotseat and he has won" +  " " + cash + " " + "Dollars, and needs your help")
	alert("The next voice you here will be" + " " + yourname + "'s" + " " + "and will read you the question and the 4 posible answers")
	alert("Hey," + " " + whotocall + " " + " " + " " + " " + "'" + pickquestion[index] + "'")
	alert("Is it A," + " " + questiona[index])
	alert("Is it B," + " " + questionb[index])
	alert("Is it C," + " " + questionc[index])
	alert("Or Is it D," + " " + questiond[index])


	if (index == 0)
	{alert(yourname + "," + " " + "the answer is B," + " " + questionb[index])}
	else if (index == 1)
	{alert(yourname + "," + " " + "the answer is D," + " " + questiond[index])}
	else if (index == 2)
	{alert(yourname + "," + " " + "the answer is B," + " " + questionb[index])}
	else if (index == 3)
	{alert(yourname + "," + " " + "the answer is A," + " " + questiona[index])}
	else if (index == 4)
	{alert(yourname + "," + " " + "the answer is D," + " " + questiond[index])}
	else if (index == 5)
	{alert(yourname + "," + " " + "I am not possitive but I would say C," + " " + questionc[index])}
	else if (index == 6)
	{alert(yourname + "," + " " + "Well I am positive about this one, and the answer is A," + " " + questiona[index])}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm not sure but I would lean twords C," + " " + questionc[index])}
	else if (index == 8)
	{alert("I'm sorry," + " " + yourname + " " + "But I just don't know this one")}
	else if (index == 9)
	{alert(yourname + "," + " " + "I have no Idea, but I would guess C," + " " + questionc[index])}
	else if (index == 10)
	{alert(yourname + "," + " " + "The Correct answer is B," + " " + questionb[index])}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm Sorry I have no idea")}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but I don't know know this one")}
	else if (index == 13)
	{alert(yourname + "," + " " + "I am 100 % sure that the Correct answer is A," + " " + questiona[index])}
	else if (index == 14)
	{alert(yourname + "," + " " + "Wow!, This ones hard , I have to say that I don't know")}
	
	alert("thanks," + " " + whotocall)


	}
	document.millionare.phoneafriend.value = "XXXXX"

	
	}



	function pollaudience()
	{

	if (document.millionare.askaudience.value == "XXXXX")
	{alert(yourname + "," + " " + "You have already asked the Audience")}

	else if (document.millionare.askaudience.value == "ask the audience") 
	{

	if (index == 0)
       {window.open('askaud100.gif', 'milliongame' , config='height=170,width=120')}
	
	else if (index == 1)
       {window.open('askaud200.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 2)
	{window.open('askaud300.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 3)
	{window.open('askaud500.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 4)
	{window.open('askaud1000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 5)
	{window.open('askaud2000.gif', 'milliongame' , config='height=170,width=120')}	

	else if (index == 6)
	{window.open('askaud4000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 7)
	{window.open('askaud8000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 8)
	{window.open('askaud16000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 9)
	{window.open('askaud32000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 10)
	{window.open('askaud64000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 11)
	{window.open('askaud125000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 12)
	{window.open('askaud250000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 13)
	{window.open('askaud500000.gif', 'milliongame' , config='height=170,width=120')}

	else if (index == 14)
	{window.open('askaud1000000.gif', 'milliongame' , config='height=170,width=120')}


	}
	document.millionare.askaudience.value = "XXXXX"
	}


	function walkaway()
	{
	if (confirm(yourname + "," + " " + "Is that your final desision, to walk away") )
	{alert("Congradulations," + " " + yourname + "," + " " +  "you won" + " " + cash + " " + "Dollars")
	parent.location.href="http://www.cyber-junkie.com/fun/million"}
	}
