
//do not remove the following
//This script was created by William
//http://www.geocities.com/william1424
//\        /  .  |  |  .    /\    |\  /|
// \  /\  /   |  |  |  |   /__\   | \/ | 
//  \/  \/    |  |  |  |  /    \  |    |  


	var pickgame = Math.round(5 * Math.random());
	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
	alert("This script takes a minute to load. Be patient and wait for the question and answers to appear.")

if (pickgame <= 1)
	{
	pickquestion[0] = "All flowering plants are classified as either monocotyledons or"
	pickquestion[1] = "Ferns reproduce by means of"
	pickquestion[2] = "The name narcissus is most often associated with the Greek youth _____ , with whom the nymph Echo fell in love."
	pickquestion[3] = "The name cyclamen comes from the Greek kyklo meaning"
	pickquestion[4] = "Which of the following was introduced to Japan by Zen Buddhist monks?"
	pickquestion[5] = "Which of the following was Thomas Jefferson afraid to plant in the garden in Monticello?"
	pickquestion[6] = "Its leaves inspired ornamentation in Ancient Greek architecture"
	pickquestion[7] = "Dogwood was supposedly used to build which of the following ancient structures?"
	pickquestion[8] = "The earliest magnolias to reach Europe came from"
	pickquestion[9] = "______ were flowers of the Virgin Mary and were used to decorate church altars."
	pickquestion[10] = "The name ____ comes from a Brazilian word for tobacco."
	pickquestion[11] = "With a pH value below 7."
	pickquestion[12] = "To remove spent flower-heads in order to prolong flowering and prevent self-seeding."
	pickquestion[13] = "Narrow, straight furrow in the soil into which seeds are sown."
	pickquestion[14] = "Ensiform"

	questiona[0] = "bicotyledons"	
	questiona[1] = "seeds"
	questiona[2] = "Persephone"
	questiona[3] = "circle"
	questiona[4] = "Acanthus"
	questiona[5] = "Nasturtium"
	questiona[6] = "Acanthus"
	questiona[7] = "The Cross"
	questiona[8] = "America"
	questiona[9] = "Marigolds"
	questiona[10] = "Nicotiana"
	questiona[11] = "Basic"
	questiona[12] = "Shear"
	questiona[13] = "Drill"
	questiona[14] = "Strap-shaped"

	questionb[0] = "dicotyledons"
	questionb[1] = "offsets"
	questionb[2] = "Narcissus"
            questionb[3] = "tortoise"
	questionb[4] = "Rose"
	questionb[5] = "Cherry Tree"
	questionb[6] = "Water Lily"
	questionb[7] = "Helen of Troy's ship"
	questionb[8] = "Japan"
	questionb[9] = "Lilies"
	questionb[10] = "Petunia"
	questionb[11] = "Acidic"
	questionb[12] = "Deadhead"
	questionb[13] = "Hole"
	questionb[14] = "Star-shaped"

	questionc[0] = "hybrids"
	questionc[1] = "runners"
	questionc[2] = "Effluvia"
	questionc[3] = "chameleon"
	questionc[4] = "Cherry trees"
	questionc[5] = "Datura"
	questionc[6] = "Laurel"
	questionc[7] = "The Trojan Horse"
	questionc[8] = "China"
	questionc[9] = "Roses"
	questionc[10] = "Hemp"
	questionc[11] = "Neurtral"
	questionc[12] = "Parrothead"
	questionc[13] = "Hoe Line"
	questionc[14] = "Hear-shaped"

	questiond[0] = "cultivars"
	questiond[1] = "spores"
	questiond[2] = "Jonquil"
	questiond[3] = "cyclone"
	questiond[4] = "Chrysanthemum"
	questiond[5] = "Forsythia"
	questiond[6] = "Fig"
	questiond[7] = "Noah's Ark"
	questiond[8] = "India"
	questiond[9] = "Irises"
	questiond[10] = "Dieffenbachia"
	questiond[11] = "Alkaline"
	questiond[12] = "De-flower"
	questiond[13] = "Seed Cut"
	questiond[14] = "Round"
	}
else if (pickgame == 2)
	{
	pickquestion[0] = "Rose is a rose is a rose is a rose."
	pickquestion[1] = "Sugary, liquid secretion that attracts some pollinators"
	pickquestion[2] = "Another name for an apiary is"
	pickquestion[3] = "Bougainvilleas were discovered and named by"
	pickquestion[4] = "The symbol of the Mikado"
	pickquestion[5] = "Which of the following is not a gymnosperm?"
	pickquestion[6] = "Pneumatophores on bald cypress are more commonly know as"
	pickquestion[7] = "Plants having foliage that remains functional through more than one growing season are called?"
	pickquestion[8] = "Succulent, scabrous, coriaceous, and hispid are used to describe?"
	pickquestion[9] = "Which of the following is not considered a fruit?"
	pickquestion[10] = "Common name for Licopersicon esculentum"
	pickquestion[11] = "Established the binomial system for naming plants, 18th century"
	pickquestion[12] = "When was the International Code of Nomenclature for Cultivated Plants first issued?"
	pickquestion[13] = "The ground level around a structure"
	pickquestion[14] = "America's oldest botanical garden"

	questiona[0] = "Robert Frost"
	questiona[1] = "Honey"
	questiona[2] = "Bird cage"
	questiona[3] = "Philibert Commerson"
	questiona[4] = "Cherry blossom"
	questiona[5] = "Cycad"
	questiona[6] = "knees"
	questiona[7] = "Deciduous"
	questiona[8] = "Leaf textures"
	questiona[9] = "Spore"
	questiona[10] = "Broccoli"
	questiona[11] = "Benjamin Franklin"
	questiona[12] = "1776"
	questiona[13] = "Grade"
	questiona[14] = "Bartram's Gardens"

	questionb[0] = "Gertrude Stein" 
	questionb[1] = "Pollen"
	questionb[2] = "Bee hive"
            questionb[3] = "Louis Antoine de Bougainville"
	questionb[4] = "Iris"
	questionb[5] = "Ginkgo"
	questionb[6] = "feet"
	questionb[7] = "Tropical"
	questionb[8] = "Flower color"
	questionb[9] = "Berry"
	questionb[10] = "Tomato"
	questionb[11] = "Carl von Linnaeus"
	questionb[12] = "1958"
	questionb[13] = "Slope"
	questionb[14] = "Brooklyn Botanical Gardens"

	questionc[0] = "Geoffrey Chaucer"
	questionc[1] = "Honey-dew"
	questionc[2] = "Butterfly garden"
	questionc[3] = "Louis XV"
	questionc[4] = "Camellia"
	questionc[5] = "Apple"
	questionc[6] = "crowns"
	questionc[7] = "Evergreen"
	questionc[8] = "Flower scent"
	questionc[9] = "Drupe"
	questionc[10] = "Lettuce"
	questionc[11] = "Thomas Jefferson"
	questionc[12] = "1876"
	questionc[13] = "Run"
	questionc[14] = "Delaware Valley Botanical Gardens"

	questiond[0] = "William Shakespeare"
	questiond[1] = "Nectar"
	questiond[2] = "Worm farm"
	questiond[3] = "Jean Baret"
	questiond[4] = "Chrysanthemum"
	questiond[5] = "Pine"
	questiond[6] = "knobs"
	questiond[7] = "Annual"
	questiond[8] = "Root shapes"
	questiond[9] = "Nut"
	questiond[10] = "Endive"
	questiond[11] = "Johann van der Deutz"
	questiond[12] = "1938"
	questiond[13] = "Elevation"
	questiond[14] = "The National Gardens in Washington, D.C."
	}

else if (pickgame == 3)
	{
	pickquestion[0] = "Specialized cell extensions which penetrate into the openings between soil particles"
	pickquestion[1] = "Stems too weak to support themselves"
	pickquestion[2] = "Short or inconspicuous stems"
	pickquestion[3] = "What is the proper thing to do with a chorizo?"
	pickquestion[4] = "Usually grow underground, but have buds or eyes from which spring new stems, i.e. potato plants"
	pickquestion[5] = "The elongated stalk or neck connecting the ovary with the stigma"
	pickquestion[6] = "There is no ancient gentlemen but gardeners."
	pickquestion[7] = "City with the rosarium which holds the largest collection of rare roses in the world"
	pickquestion[8] = "On what ship did Charles Darwin serve as a naturalist during a five-year voyage in the 1830's?"
	pickquestion[9] = "Herb which was at the heart of the legendary decadence of absinthe"
	pickquestion[10] = " South Africa's national flower is the _____"
	pickquestion[11] = "Gymnosperm means"
	pickquestion[12] = "Florida's State Tree"
	pickquestion[13] = "Highest Point in Florida"
	pickquestion[14] = "Which of the following was not a Famous Floridian?"

	questiona[0] = "Tap root"
	questiona[1] = "Simple"
	questiona[2] = "Rhizomes"
	questiona[3] = "Eat it"
	questiona[4] = "Corms"
	questiona[5] = "Anther"
	questiona[6] = "William Shakespeare"
	questiona[7] = "New York"
	questiona[8] = "The Beagle"
	questiona[9] = "Wormwood"
	questiona[10] = "Clematis"
	questiona[11] = "Strong, but small"
	questiona[12] = "Orange"
	questiona[13] = "Britton Hill"
	questiona[14] = "Felix Mendelssohn"

	questionb[0] = "Root hairs" 
	questionb[1] = "Branched"
	questionb[2] = "Crowns"
            questionb[3] = "Prune it"
	questionb[4] = "Bulbs"
	questionb[5] = "Filament"
	questionb[6] = "Sir Walter Scott"
	questionb[7] = "Paris"
	questionb[8] = "The Bountiful"
	questionb[9] = "Marijuana"
	questionb[10] = "Protea"
	questionb[11] = "Naked-seeded"
	questionb[12] = "Sabal Palmetto"
	questionb[13] = "Spook Hill"
	questionb[14] = "Butterfly McQueen"

	questionc[0] = "Fibrous roots"
	questionc[1] = "Creeping"
	questionc[2] = "Stolons"
	questionc[3] = "Plant it"
	questionc[4] = "Rhizomes"
	questionc[5] = "Style"
	questionc[6] = "Voltaire"
	questionc[7] = "Sangerhausen"
	questionc[8] = "The Nautilus"
	questionc[9] = "Poppy"
	questionc[10] = "African Daisy"
	questionc[11] = "Embryonic leaf"
	questionc[12] = "Royal Palm"
	questionc[13] = "Jupiter Lighthouse"
	questionc[14] = "John James Audubon"

	questiond[0] = "Aerial roots"
	questiond[1] = "Climbing"
	questiond[2] = "Creeping"
	questiond[3] = "Read it"
	questiond[4] = "Stem tubers"
	questiond[5] = "Stigma"
	questiond[6] = "Henry David Thoreau"
	questiond[7] = "London"
	questiond[8] = "The Galapagos"
	questiond[9] = "Mugwort"
	questiond[10] = "Shasta Daisy"
	questiond[11] = "True-seed"
	questiond[12] = "Cypress Tree"
	questiond[13] = "High Ridge Road"
	questiond[14] = "Pat Boone"
	}

else if (pickgame == 4)
	{
	pickquestion[0] = "Florida State Bird"
	pickquestion[1] = "The southernmost state in the United States is?"
	pickquestion[2] = "The United States city with the highest rate of lightning strikes per capita is"
	pickquestion[3] = "Miami Beach pharmacist _____ invented the first suntan cream in 1944."
	pickquestion[4] = "The Winter Strawberry Capital of the World is"
	pickquestion[5] = "Florida's flag represents the land of sunshine, flowers, _____, rivers and lakes."
	pickquestion[6] = "Florida has __ National Forests."
	pickquestion[7] = "Florida achieved Statehood in ____"
	pickquestion[8] = "Named on Easter 1513 by Ponce de Leon for Pascua Florida, meaning _____"
	pickquestion[9] = "The acknowledged discoverer of Florida"
	pickquestion[10] = "Spain turned Florida over to the Britain in ____."
	pickquestion[11] = "Who was the first American to go outside an orbiting spacecraft, attached only by a tether?"
	pickquestion[12] = "Theme park promoted as the world's foremost tropical showplace?"
	pickquestion[13] = "The second oldest tourist attraction in Florida?"
	pickquestion[14] = "Edward W. Bok, who built Bok Tower Gardens was originally from ____."

	questiona[0] = "Mourning Dove"
	questiona[1] = "Texas"
	questiona[2] = "Miami"
	questiona[3] = "Benjamin Green"
	questiona[4] = "Philadelphia"
	questiona[5] = "Orange Trees"
	questiona[6] = "3"
	questiona[7] = "February 3, 1845"
	questiona[8] = "Flowery Easter"
	questiona[9] = "Juan Ponce De Leon"
	questiona[10] = "1862-63"
	questiona[11] = "John Glenn"
	questiona[12] = "Busch Gardens"
	questiona[13] = "Sunken Gardens"
	questiona[14] = "The Netherlands"

	questionb[0] = "Mockingbird" 
	questionb[1] = "California"
	questionb[2] = "Clearwater"
            questionb[3] = "Panama Jack Johnston"
	questionb[4] = "Boston"
	questionb[5] = "Beaches"
	questionb[6] = "5"
	questionb[7] = "January 15, 1901"
	questionb[8] = "Sunshine State"
	questionb[9] = "Christopher Columbus"
	questionb[10] = "1763-64"
	questionb[11] = "Ed White"
	questionb[12] = "Cypress Gardens"
	questionb[13] = "Monkey Jungle"
	questionb[14] = "Spain"

	questionc[0] = "Scrub Jay"
	questionc[1] = "Florida"
	questionc[2] = "Tampa"
	questionc[3] = "Neil Smith"
	questionc[4] = "Ybor City"
	questionc[5] = "Palm trees"
	questionc[6] = "2"
	questionc[7] = "March 3, 1845"
	questionc[8] = "Beautiful Flowers"
	questionc[9] = "Sir Walter Raleigh"
	questionc[10] = "1775-76"
	questionc[11] = "Gus Grissom"
	questionc[12] = "Walt Disney World"
	questionc[13] = "Cypress Gardens"
	questionc[14] = "England"

	questiond[0] = "Pelican"
	questiond[1] = "Hawaii"
	questiond[2] = "Key West"
	questiond[3] = "Dr. John Gorrie"
	questiond[4] = "Plant City"
	questiond[5] = "Fish"
	questiond[6] = "7"
	questiond[7] = "July 6, 1798"
	questiond[8] = " To celebrate Easter "
	questiond[9] = "Horatio Hornblower"
	questiond[10] = "1558-59"
	questiond[11] = "Alan Shepard"
	questiond[12] = "Sunken Gardens"
	questiond[13] = "Blue Spring"
	questiond[14] = "Germany"
	}

else if (pickgame >= 5)
	{
	pickquestion[0] = "Leu Gardens is located in ____."
	pickquestion[1] = "If it's 11 P.M in Seattle, what time is it in Miami?"
	pickquestion[2] = "Florida has __ State Parks."
	pickquestion[3] = "Flower spike which normally produces only staminate or pistillate flowers?"
	pickquestion[4] = "Wild hyacinths always bend toward the ___"
	pickquestion[5] = "Death of a shoot, beginning at the tip, due to damage or disease is known as?"
	pickquestion[6] = "Exposed Mediterranean habitat covered with scrub vegetation?"
	pickquestion[7] = "Chemical used to control or eradicate weeds?"
	pickquestion[8] = "Loose and open, not compact?"
	pickquestion[9] = "Another name for mutation?"
	pickquestion[10] = "Neutral?"
	pickquestion[11] = "Light granules of volcanic minerals added to soil to improve aeration?"
	pickquestion[12] = "Habitat with poor or dry soil, covered with shrubs and small trees?"
	pickquestion[13] = "Fleshy fruit of a rose?"
	pickquestion[14] = "To intertwine the branches of a tree or shrub to form a hedge or screen?"

	questiona[0] = "Miami"
	questiona[1] = "1 A.M"
	questiona[2] = "5"
	questiona[3] = "Catkin"
	questiona[4] = "light"
	questiona[5] = "Blight"
	questiona[6] = "Garigue"
	questiona[7] = "Fertilizer"
	questiona[8] = "Lax"
	questiona[9] = "Sport"
	questiona[10] = "Acid, not alkaline"
	questiona[11] = "Lava Rock"
	questiona[12] = "Desert"
	questiona[13] = "Hip"
	questiona[14] = "Pleach"

	questionb[0] = "Orlando" 
	questionb[1] = "8 P.M"
	questionb[2] = "9"
            questionb[3] = "Spadix"
	questionb[4] = "right"
	questionb[5] = "Breaking"
	questionb[6] = "Plain"
	questionb[7] = "Insecticide"
	questionb[8] = "Friable"
	questionb[9] = "Shoot"
	questionb[10] = "Neither acid nor alkaline."
	questionb[11] = "Perlite"
	questionb[12] = "Scrub"
	questionb[13] = "Drupe"
	questionb[14] = "Pollard"

	questionc[0] = "Tampa"
	questionc[1] = "3 A.M"
	questionc[2] = "10"
	questionc[3] = "Raceme"
	questionc[4] = "left"
	questionc[5] = "Die-back"
	questionc[6] = "Field"
	questionc[7] = "Herbicide"
	questionc[8] = "Limpid"
	questionc[9] = "Cultivar"
	questionc[10] = "Alkaline, not acid."
	questionc[11] = "Tufa"
	questionc[12] = "Plateau"
	questionc[13] = "Apple"
	questionc[14] = "Pruinose"

	questiond[0] = "Fort Myers"
	questiond[1] = "2 A.M"
	questiond[2] = "12"
	questiond[3] = "Corymb"
	questiond[4] = "ground"
	questiond[5] = "Withering"
	questiond[6] = "Plateau"
	questiond[7] = "Fungicide"
	questiond[8] = "Layered"
	questiond[9] = "Meristem"
	questiond[10] = "None of the above."
	questiond[11] = "Ash"
	questiond[12] = "Shore"
	questiond[13] = "Bud"
	questiond[14] = "Pectinate"
	}

	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.floridagardener.com/millionaire/backtothegame.html"

	}
	
	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}

	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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!!!")
	parent.location.href="http://www.floridagardener.com/millionaire/youwin.html"
	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="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 5)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}

	else if (index == 1)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 2)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}

	else if (index == 4)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 3)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/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="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 6)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 7)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 8)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 9)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 10)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 11)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 12)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 13)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	else if (index == 14)
	{alert(yourname + "," + " " + "I'm sorry but you are incorrect")
	parent.location.href="http://www.floridagardener.com/millionaire/backtothegame.html"
	}
	}
	}

	function fiftyfifty()
	{

	if (document.millionare.fiftyfiftybutton.value == "XXXXX")
	{alert("You have already used the fifty fifty")}

	else if (document.millionare.fiftyfiftybutton.value == "50 / 50") 
	
	{
	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"
	}
	


	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 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 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)
       {alert("A:" + questiona[index] + " " + " " + "5%")
 	alert("B:" + questionb[index] + " " + " " + "88%") 
	alert("C:" + questionc[index] + " " + " " + "6%") 
	alert("D:" + questiond[index] + " " + " " + "4%")}

	else if (index == 1)
       {alert("A:" + questiona[index] + " " + " " + "5%")
 	alert("B:" + questionb[index] + " " + " " + "4%") 
	alert("C:" + questionc[index] + " " + " " + "6%") 
	alert("D:" + questiond[index] + " " + " " + "88%")}

	else if (index == 2)
       {alert("A:" + questiona[index] + " " + " " + "7%")
 	alert("B:" + questionb[index] + " " + " " + "75%") 
	alert("C:" + questionc[index] + " " + " " + "10%") 
	alert("D:" + questiond[index] + " " + " " + "8%")}

	else if (index == 3)
       {alert("A:" + questiona[index] + " " + " " + "62%")
 	alert("B:" + questionb[index] + " " + " " + "28%") 
	alert("C:" + questionc[index] + " " + " " + "6%") 
	alert("D:" + questiond[index] + " " + " " + "4%")}

	else if (index == 4)
       {alert("A:" + questiona[index] + " " + " " + "5%")
 	alert("B:" + questionb[index] + " " + " " + "4%") 
	alert("C:" + questionc[index] + " " + " " + "6%") 
	alert("D:" + questiond[index] + " " + " " + "88%")}

	else if (index == 5)
       {alert("A:" + questiona[index] + " " + " " + "5%")
 	alert("B:" + questionb[index] + " " + " " + "4%") 
	alert("C:" + questionc[index] + " " + " " + "88%") 
	alert("D:" + questiond[index] + " " + " " + "3%")}

	else if (index == 6)
       {alert("A:" + questiona[index] + " " + " " + "45%")
 	alert("B:" + questionb[index] + " " + " " + "35%") 
	alert("C:" + questionc[index] + " " + " " + "12%") 
	alert("D:" + questiond[index] + " " + " " + "8%")}

	else if (index == 7)
       {alert("A:" + questiona[index] + " " + " " + "20%")
 	alert("B:" + questionb[index] + " " + " " + "4%") 
	alert("C:" + questionc[index] + " " + " " + "45%") 
	alert("D:" + questiond[index] + " " + " " + "31%")}

	else if (index == 8)
       {alert("A:" + questiona[index] + " " + " " + "51%")
 	alert("B:" + questionb[index] + " " + " " + "19%") 
	alert("C:" + questionc[index] + " " + " " + "12%") 
	alert("D:" + questiond[index] + " " + " " + "18%")}

	else if (index == 9)
       {alert("A:" + questiona[index] + " " + " " + "30%")
 	alert("B:" + questionb[index] + " " + " " + "34%") 
	alert("C:" + questionc[index] + " " + " " + "26%") 
	alert("D:" + questiond[index] + " " + " " + "18%")}

	else if (index == 10)
               {alert("A:" + questiona[index] + " " + " " + "36%")
 	alert("B:" + questionb[index] + " " + " " + "36%") 
	alert("C:" + questionc[index] + " " + " " + "18%") 
	alert("D:" + questiond[index] + " " + " " + "10%")}

	else if (index == 11)
                {alert("A:" + questiona[index] + " " + " " + "22%")
 	alert("B:" + questionb[index] + " " + " " + "27%") 
	alert("C:" + questionc[index] + " " + " " + "23%") 
	alert("D:" + questiond[index] + " " + " " + "28%")}

	else if (index == 12)
              {alert("A:" + questiona[index] + " " + " " + "22%")
 	alert("B:" + questionb[index] + " " + " " + "27%") 
	alert("C:" + questionc[index] + " " + " " + "23%") 
	alert("D:" + questiond[index] + " " + " " + "28%")}

	else if (index == 13)
              {alert("A:" + questiona[index] + " " + " " + "28%")
 	alert("B:" + questionb[index] + " " + " " + "23%") 
	alert("C:" + questionc[index] + " " + " " + "27%") 
	alert("D:" + questiond[index] + " " + " " + "22%")}

	else if (index == 14)
              {alert("A:" + questiona[index] + " " + " " + "27%")
 	alert("B:" + questionb[index] + " " + " " + "28%") 
	alert("C:" + questionc[index] + " " + " " + "23%") 
	alert("D:" + questiond[index] + " " + " " + "22%")}


	}
	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.floridagardener.com/millionaire/backtothegame.html"}
	}
