//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 animals 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] = "What is a disorder in which brain cells misfire, producing bursts of electrical energy?"
	pickquestion[5] = "What type of seizure do most people think of as epilepsy?"
	pickquestion[6] = "What seizure that is usually confused as daydreaming or staring?"
	pickquestion[7] = "Name a common seizure in which the person remains conscious?"
	pickquestion[8] = "What type of seizure is most common in teens and adults?"
	pickquestion[9] = "Which of the following is not a good first aid measure for epilepsy?"
	pickquestion[10] = "Can people having a seizure swallow their tongue?"
	pickquestion[11] = "Epilepsy is classified as:"
	pickquestion[12] = "What should you place in the mouth of a person who is having a convulsive seizure?"
	pickquestion[13] = "What organization provides information about epilepsy and seizures?"
	pickquestion[14] = "What two jobs can a person with epilepsy NOT have?"

	questiona[0] = "Take the Womens hand"	
	questiona[1] = "Wapiti"
	questiona[2] = "San Diego"
	questiona[3] = "Sweathogs"
	questiona[4] = "Apnea"
	questiona[5] = "Absence or Petit Mal"
	questiona[6] = "Absence seizure"
	questiona[7] = "Atonic Seizure"
	questiona[8] = "Complex partial"
	questiona[9] = "Hold him/her still"
	questiona[10] = "Always"
	questiona[11] = "A disease"
	questiona[12] = "Something soft"
	questiona[13] = "Epilepsy Foundation"
	questiona[14] = "Airline pilot and commercial truck driver"

	questionb[0] = "Tap the man's shoulder"
	questionb[1] = "White-tailed deer"
	questionb[2] = "San Francisco"
	questionb[3] = "Greasehogs"
	questionb[4] = "Anorexia Nervosa"
	questionb[5] = "Atonic"
	questionb[6] = "Simple Partial"
	questionb[7] = "Generalized Tonic Clonic"
	questionb[8] = "Simple Partial"
	questionb[9] = "Remove glasses"
	questionb[10] = "Never"
	questionb[11] = "A disorder"
	questionb[12] = "Nothing"
	questionb[13] = "American Medical Association"
	questionb[14] = "U.S. President and Secretary of Defense"

	questionc[0] = "Tap the womens shoulder"
	questionc[1] = "Caribou"
	questionc[2] = "San Bernadino"
	questionc[3] = "Bosshogs"
	questionc[4] = "ADHD"
	questionc[5] = "Generalized Tonic - clonic or grand mal"
	questionc[6] = "Complex Partial"
	questionc[7] = "Simple Partial"
	questionc[8] = "Infantile Spasms"
	questionc[9] = "Loosen neckware"
	questionc[10] = "Often"
	questionc[11] = "A form of mental illness"
	questionc[12] = "Something hard"
	questionc[13] = "Epilepsy Association of America"
	questionc[14] = "Air traffic controller and paramedic"

	questiond[0] = "Announce his intention"
	questiond[1] = "Beaver"
	questiond[2] = "San Luis Obispo"
	questiond[3] = "Filthyhogs"
	questiond[4] = "Epilepsy"
	questiond[5] = "Myoclonic"
	questiond[6] = "Myoclonic"
	questiond[7] = "Absence"
	questiond[8] = "Atonic Seizures"
	questiond[9] = "Turn the person on their side"
	questiond[10] = "Rarely"
	questiond[11] = "A sign of low intelligence"
	questiond[12] = "A sponge"
	questiond[13] = "U.S.D.A."
	questiond[14] = "Bus driver and police officer"
	}

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] = "How many Americans have epilepsy?"
	pickquestion[6] = "How many Americans experience a seizure at some point in their lifetime?"
	pickquestion[7] = "How many children in the United States have epilepsy?"
	pickquestion[8] = "How many new cases of epilepsy are diagnosed each year?"
	pickquestion[9] = "What type of seizure involves the entire brain?"
	pickquestion[10] = "What is the most common known cause of epilepsy?"
	pickquestion[11] = "What is the percentage of unknown causes of epilepsy?"
	pickquestion[12] = "Which of the following is NOT a common cause of epilepsy in children?"
	pickquestion[13] = "Although epilepsy can affect anyone at any age, during which years do seizures most often first develop?"
	pickquestion[14] = "Which of the following illnesses doesn't cause seizures?"

	questiona[0] = "Steer"
	questiona[1] = "Reuben Kinciad"
	questiona[2] = "Red"
	questiona[3] = "1,000,000"
	questiona[4] = "People"
	questiona[5] = "50,000"
	questiona[6] = "One in every ten"
	questiona[7] = "Approximately 300,000,000"
	questiona[8] = "181,000"
	questiona[9] = "Generalized"
	questiona[10] = "Genetics"
	questiona[11] = "50%"
	questiona[12] = "Brain infection"
	questiona[13] = "Preschool and elementary school"
	questiona[14] = "Flu"

	questionb[0] = "Bull" 
	questionb[1] = "Jim Phelps"
	questionb[2] = "Yellow"
	questionb[3] = "500,000"
	questionb[4] = "Elle"
	questionb[5] = "500,000"
	questionb[6] = "50%"
	questionb[7] = "Approximately 100,000"
	questionb[8] = "1,000,000"
	questionb[9] = "Localized"
	questionb[10] = "Head Injury"
	questionb[11] = "70%"
	questionb[12] = "Strobe lights"
	questionb[13] = "High school"
	questionb[14] = "Stroke"

	questionc[0] = "Boar"
	questionc[1] = "Charlie"
	questionc[2] = "Black"
	questionc[3] = "200,000"
	questionc[4] = "TV Guide"
	questionc[5] = "2.3 Million"
	questionc[6] = "One in a million"
	questionc[7] = "Approximately 300,000"
	questionc[8] = "8,232"
	questionc[9] = "Specialized"
	questionc[10] = "A virus"
	questionc[11] = "0%"
	questionc[12] = "High fever"
	questionc[13] = "Adulthood"
	questionc[14] = "Lupus"

	questiond[0] = "Bear"
	questiond[1] = "Oscar Goldman"
	questiond[2] = "Blue"
	questiond[3] = "100,000"
	questiond[4] = "Talk"
	questiond[5] = "18 million"
	questiond[6] = "23%"
	questiond[7] = "Exactly 1,255,221"
	questiond[8] = "22,531"
	questiond[9] = "Traumatized"
	questiond[10] = "Bacteria"
	questiond[11] = "100%"
	questiond[12] = "Head injury"
	questiond[13] = "Infancy"
	questiond[14] = "Brain tumors"
	}

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 Touch-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 Roman Ruler with the initials of J.C. had epilepsy?"
	pickquestion[6] = "Which Greek Philosopher in Bill & Teds Excellent Adventure had epilepsy?"
	pickquestion[7] = "Who organized and ran the underground railroad system prior to and during the Civil War?"
	pickquestion[8] = "Which famous artist had epilepsy?"
	pickquestion[9] = "How many people with epilepsy are not physically able to work?"
	pickquestion[10] = "What seizure warning can cause tingling, numbness, halucinations or blurred vision?"
	pickquestion[11] = "What is the number one seizure trigger?"
	pickquestion[12] = "Strobe Lights or certain episodes of Poke'mon would be this type of seizure trigger."
	pickquestion[13] = "Which injury is not a leading cause of an adult developing epilepsy?"
	pickquestion[14] = "What can cause women with Catamenial epilepsy to have more seizures?"

	questiona[0] = "Walter Johnson"
	questiona[1] = "1"
	questiona[2] = "Jogging"
	questiona[3] = "Eat it"
	questiona[4] = "David Letterman"
	questiona[5] = "Jesus Christ"
	questiona[6] = "Socrates"
	questiona[7] = "Jefferson Davis"
	questiona[8] = "Vincent Van Gogh"
	questiona[9] = "Twenty to thirty percent"
	questiona[10] = "A shock"
	questiona[11] = "Flashing lights"
	questiona[12] = "Television overload"
	questiona[13] = "Concussion"
	questiona[14] = "Hormones"

	questionb[0] = "Sam Walton" 
	questionb[1] = "#"
	questionb[2] = "Dancing"
	questionb[3] = "Drink It"
	questionb[4] = "Garry Shandling"
	questionb[5] = "Claudius"
	questionb[6] = "Thales"
	questionb[7] = "John Brown"
	questionb[8] = "Andy Warhol"
	questionb[9] = "Fifty to sixty percent"
	questionb[10] = "An aura"
	questionb[11] = "Not taking medication properly"
	questionb[12] = "Photosensitivity"
	questionb[13] = "Automobile accidents"
	questionb[14] = "Lack of oxygen"

	questionc[0] = "Martin Delany"
	questionc[1] = "9"
	questionc[2] = "Walking"
	questionc[3] = "Ride it"
	questionc[4] = "Kermit the Frog"
	questionc[5] = "Julius Caesar"
	questionc[6] = "Pythagoras"
	questionc[7] = "Harriet Tubman"
	questionc[8] = "Leonardo daVinci"
	questionc[9] = "Ninety to one hundred percent"
	questionc[10] = "A twilight"
	questionc[11] = "Drunkenness"
	questionc[12] = "Hypertension"
	questionc[13] = "Gunshot wounds"
	questionc[14] = "Stress"

	questiond[0] = "Wally Martin"
	questiond[1] = "*"
	questiond[2] = "Spitting"
	questiond[3] = "Read it"
	questiond[4] = "Martin Short"
	questiond[5] = "Nero"
	questiond[6] = "Parmenides"
	questiond[7] = "Theodore D. Judah"
	questiond[8] = "Norman Rockwell"
	questiond[9] = "Seventy five to eighty percent"
	questiond[10] = "A foreshadowing"
	questiond[11] = "Electrical Shock"
	questiond[12] = "Visual susceptibility"
	questiond[13] = "Sporting accidents"
	questiond[14] = "Sleep depredation"
	}

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] = "How should people who have epilepsy be treated?"
	pickquestion[6] = "Which activity has the highest risk of injury for someone that has epilepsy?"
	pickquestion[7] = "What is the biggest concern of taking medications?"
	pickquestion[8] = "What is the length of time someone's drivers license is suspended after an unconscious seizure?"
	pickquestion[9] = "If a parent has epilepsy, what are the chances of them passing it onto their children?"
	pickquestion[10] = "What test looks at the activity in the brain?"
	pickquestion[11] = "Approximately 70% of all seizures can be controlled by what?"
	pickquestion[12] = "This uses a surgical device to send electrical impulses the brain."
	pickquestion[13] = "Which of the following are NOT surgical treatments for epilepsy?"
	pickquestion[14] = "With 180,000 new cases each year, where does Epilepsy rank with common neurological conditions?"

	questiona[0] = "Lower right-hand corner"
	questiona[1] = "Rabbits"
	questiona[2] = "Henry Ford, Jr"
	questiona[3] = "Go Dogs Go"
	questiona[4] = "Philadelphia"
	questiona[5] = "As if they were fragile"
	questiona[6] = "Bungee Jumping"
	questiona[7] = "Availability"
	questiona[8] = "6 months"
	questiona[9] = "6%"
	questiona[10] = "EKG"
	questiona[11] = "Meditation"
	questiona[12] = "Pacemaker"
	questiona[13] = "Lobotomy"
	questiona[14] = "Third"

	questionb[0] = "Upper right-hand corner" 
	questionb[1] = "Horses"
	questionb[2] = "Lee lacocca"
	questionb[3] = "N' Sync"
	questionb[4] = "Boston"
	questionb[5] = "Like there's something wrong with them"
	questionb[6] = "Softball"
	questionb[7] = "The cost"
	questionb[8] = "6 years"
	questionb[9] = "100%"
	questionb[10] = "EEG"
	questionb[11] = "Medication"
	questionb[12] = "Vagus Nerve Stimulation"
	questionb[13] = "Lobectomis"
	questionb[14] = "Second"

	questionc[0] = "Lower left-hand corner"
	questionc[1] = "Dogs"
	questionc[2] = "Joe Isuzu"
	questionc[3] = "Backstreet Boys"
	questionc[4] = "New York"
	questionc[5] = " Just like anyone else"
	questionc[6] = "Snorkeling"
	questionc[7] = "Side Affects"
	questionc[8] = "6 days"
	questionc[9] = "45%"
	questionc[10] = "CAT scan"
	questionc[11] = "Diet"
	questionc[12] = "Hydrocephalus"
	questionc[13] = "Corpus Callosotomies"
	questionc[14] = "First"

	questiond[0] = "Upper left-hand corner"
	questiond[1] = "Cats"
	questiond[2] = "John DeLorean"
	questiond[3] = "98 Degrees"
	questiond[4] = "Chicago"
	questiond[5] = "They should be watched constantly"
	questiond[6] = "Tennis"
	questiond[7] = "Remembering to take them"
	questiond[8] = "1 year"
	questiond[9] = "75%"
	questiond[10] = "X ray"
	questiond[11] = "Electical Shock"
	questiond[12] = "Craniotomy"
	questiond[13] = "Hemispherectomies"
	questiond[14] = "Fourth"
	}

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] = "Mixing medication with this isn't a good idea if you have epilepsy or not."
	pickquestion[6] = "When  Should I call  for medical help?"
	pickquestion[7] = "Which of the following is not a dangerous or harmful thing to do during a seizure?"
	pickquestion[8] = "Which of the following is not a bad first aid measure?"
	pickquestion[9] = "What is NOT a reason to seek medical attention following a seizure?"
	pickquestion[10] = "What former Congressman authored the American's with disabilities Act?"
	pickquestion[11] = "Stress, sleep deprivation, illness, and alcohol consumption are examples of what?"
	pickquestion[12] = "Seizures that are provoked by light exposure, computer screens, or flashing light."
	pickquestion[13] = "When is epilepsy awareness month?"
	pickquestion[14] = "What diet do doctors prescribe for epilepsy patients if medications don't help?"

	questiona[0] = "Snickers"
	questiona[1] = "1 A.M."
	questiona[2] = "Child World"
	questiona[3] = "Rabbit"
	questiona[4] = "Tools & Power"
	questiona[5] = "Fruit juice and tang"
	questiona[6] = "5 Minutes"
	questiona[7] = "Put something in the mouth"
	questiona[8] = "Remove glasses"
	questiona[9] = "The person is embarassed"
	questiona[10] = "Strom Thurmond"
	questiona[11] = "A bad day"
	questiona[12] = "Myoclonic Seizures"
	questiona[13] = "November"
	questiona[14] = "Ketogenic"

	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] = "Dancing and jogging"
	questionb[6] = "5 Seconds"
	questionb[7] = "Restrain"
	questionb[8] = "Panic"
	questionb[9] = "The person has diabetes"
	questionb[10] = "Tony Coelho"
	questionb[11] = "Seizures triggers"
	questionb[12] = "Photosensitivity"
	questionb[13] = "September"
	questionb[14] = "Atkins"

	questionc[0] = "3 Musketeers"
	questionc[1] = "3 A.M."
	questionc[2] = "Toys 'R' Us"
	questionc[3] = "Snake"
	questionc[4] = "Hammer Time"
	questionc[5] = "Alcohol or drugs"
	questionc[6] = "5 Hours"
	questionc[7] = "Check for ID"
	questionc[8] = "Give oral medication"
	questionc[9] = "The person is pregnant"
	questionc[10] = "Arlen Specter"
	questionc[11] = "Causes of epilepsy"
	questionc[12] = "Convulsive Seizures"
	questionc[13] = "March"
	questionc[14] = "Low fat"

	questiond[0] = "Reese's Pieces"
	questiond[1] = "2 A.M."
	questiond[2] = "Kay-Bee"
	questiond[3] = "Beaver"
	questiond[4] = "Tool Time"
	questiond[5] = "Driving and operating heavy machinery"
	questiond[6] = "5 Days"
	questiond[7] = "Give food"
	questiond[8] = "Restrain the person"
	questiond[9] = "The person has prolonged seizures"
	questiond[10] = "Sonny Bono"
	questiond[11] = "Grand Mal seizures"
	questiond[12] = "Atonic Seizures"
	questiond[13] = "April"
	questiond[14] = "Sodium free"


	}

	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="backtothegame.html"

	}
	
	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}

	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}

	else if (index == 3)
	{
	alert(yourname + "," + " " + "That is Correct for 500 Dollars")
	alert("Now for the 1,000 dollar 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="backtothegame.html"
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 6)
	{
	alert(yourname + "," + " " + "That is Correct for 4,000 Dollars")
	alert("Now for the 8,000 dollar 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="backtothegame.html"
	}
	else if (index == 8)
	{
	alert(yourname + "," + " " + "That is Correct for 16,000 Dollars")
	alert("Now for the 32,000 dollar 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 Dollars")
	alert("Now for the 64,000 dollar 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="backtothegame.html"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 13)
	{
	alert(yourname + "," + " " + "That is Correct for 500,000 Dollars")
	alert("Now for the 1,000,000 dollar 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 Dollars!!!"+" "+"You are a Millionaire!!")
	
	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 Dollars")
	alert("Now for the 200 dollar 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="backtothegame.html"
	}
	
	else if (index == 2)
	{
	alert(yourname + "," + " " + "That is Correct for 300 Dollars")
	alert("Now for the 500 dollar 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="backtothegame.html"
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 10)
	{
	alert(yourname + "," + " " + "That is Correct for 64,000 Dollars")
	alert("Now for the 125,000 dollar 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 Dollars")
	alert("Now for the 250,000 dollar 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 Dollars")
	alert("Now for the 500,000 dollar 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="backtothegame.html"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	}
	}


	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="backtothegame.html"
	}

	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 5)
	{
	alert(yourname + "," + " " + "That is Correct for 2,000 Dollars")
	alert("Now for the 4,000 dollar 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="backtothegame.html"
	}
	else if (index == 7)
	{
	alert(yourname + "," + " " + "That is Correct for 8,000 Dollars")
	alert("Now for the 16,000 dollar 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="backtothegame.html"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	}
	}


	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="backtothegame.html"
	}

	else if (index == 1)
	{
	alert(yourname + "," + " " + "That is Correct for 200 Dollars")
	alert("Now for the 300 dollar 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="backtothegame.html"
	}
	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}

	else if (index == 4)
	{
	alert(yourname + "," + " " + "That is Correct for 1,000 Dollars")
	alert("Now for the 2,000 dollar 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="backtothegame.html"
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="backtothegame.html"
	}
	}
	}

	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 hear will be" + " " + yourname + "'s" + " " + ", who will read you the question and the 4 possible 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 positive 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 twards 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 one's 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', '_blank' , config='height=170,width=120')}
	
	else if (index == 1)
       {window.open('askaud200.gif', '_blank' , config='height=170,width=120')}

	else if (index == 2)
	{window.open('askaud300.gif', '_blank' , config='height=170,width=120')}

	else if (index == 3)
	{window.open('askaud500.gif', '_blank' , config='height=170,width=120')}

	else if (index == 4)
	{window.open('askaud1000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 5)
	{window.open('askaud2000.gif', '_blank' , config='height=170,width=120')}	

	else if (index == 6)
	{window.open('askaud4000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 7)
	{window.open('askaud8000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 8)
	{window.open('askaud16000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 9)
	{window.open('askaud32000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 10)
	{window.open('askaud64000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 11)
	{window.open('askaud125000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 12)
	{window.open('askaud250000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 13)
	{window.open('askaud500000.gif', '_blank' , config='height=170,width=120')}

	else if (index == 14)
	{window.open('askaud1000000.gif', '_blank' , config='height=170,width=120')}


	}
	document.millionare.askaudience.value = "XXXXX"
	}


	function walkaway()
	{
	if (confirm(yourname + "," + " " + "Is that your final decision, to walk away?") )
	{alert("Congratulations," + " " + yourname + "," + " " +  "you won" + " " + cash + " " + "Dollars")
	parent.location.href="backtothegame.html"}
	}
