
	var RAND = 28;
	var PLACE; 
	var PLACE; 
	var LINE = "_____________________________"; 
	QUESTION = new Array (4);
	HOLD = new Array (4);	FACTS0 = new Array ("Which day had the most visitors?","Which day had the fewest visitors?","About how many more visitors came on Friday than on Saturday?","How many visitors were there on Wednesday?","How many days had less than 200 visitors?");
	FACTS1 = new Array ("Which year had the most visitors?","Which year had the fewest visitors?","About how many more visitors came in 1999 than 1998?","How many visitors came in 2001?","How many years had more than 58,000 visitors?");
	FACTS2 = new Array ("Which sport was the most popular?","Which sport was the least popular?","How many more students like baseball than football?","How many students liked soccer?","What was the total number of students?");
	FACTS3 = new Array ("Which grade has the most pets?","Which grade has the fewest pets?","How many more students with pets in grade 7 than grade 6?","How many students have pets in grade 5?","How many students in grades 1 and 2 have pets?");
	FACTS4 = new Array ("Which month had the most precipitation?","Which month had the least precipitation?","How many more inches of precipitation fell in February than June?","How many inches fell in April?","Which month had about 5 inches of precipitation?");
	FACTS5 = new Array ("Which year had the most home runs?","Which year had the fewest home runs?","About how many more home runs were hit in 1997 than 1995?","How many home runs were hit in 2000?","How many years had less than 60 home runs?");
	FACTS6 = new Array ("Which day had the most computers sold?","Which day had the fewest computers sold?","How many more computers were sold on Saturday than Thursday?","How many computers were sold on Thursday?","Which day sold 30 less than Friday?");
	FACTS7 = new Array ("Which time had the second most children?","How many students were at the YMCA at 7 PM?","Which time had the fewest students?","How many more students were there at 6 PM than 5 PM?","What time had almost 50 students?");
	FACTS8 = new Array ("Which day had the most attendance?","Which day had the least atendance?","Which day had the greatest increase in attendance?","What was the increase from Friday to Saturday?","Which day had 700 people?");
	FACTS9 = new Array ("How many books were borrowed in September?","How many more books were borrowed in October than September?","How many books were borrowed in January and February?","Which month had 1,700 books borrowed?","Which month had 400 more books borrowed than March?");
	FACTS10 = new Array ("How many pound were raised from 1921-1930?","Which years had the most cattle raised?","Which years had the least cattle raised?","How much more cattle was raised in 1951-1960 than 1941-1950?","How many years are shown?");
	FACTS11 = new Array ("How many Apollo missions were there?","Which year had the most new astronauts?","Which year had the same number of missions and new astronauts?","Which year had the most missions?","How many missions were done during the 1970's?");
	FACTS12 = new Array ("Which day had the most people attend?","Which day had the most adults attend?","Which day had about 90 children attend?","Which day had more adults than children attend?","How many days had less than 60 adults?");
	FACTS13 = new Array ("How many students listen for 40 minutes?","How many students listen for 50 or 60 minutes?","How many students were surveyed?","How many students listen more than 40 minutes?","How many more students listen 60 minutes than 30 minutes?");
	FACTS14 = new Array ("Which day was the hottest?","Which day was the coldest?","How many days were above 90 degrees?","Which day was almost 100 degrees?","What was the temperature on Thursday?");
	FACTS15 = new Array ("Which year had the most cattle?","Which livestock declined during each 20 year period?","In which year were there more dairy cows than sheep?","About how much livestock was there in 1960?","How many dairy cows were there in 1980?");
	FACTS16 = new Array ("Which year had almost 50 national parks?","How many national parks were there in 1960?","Which year had the greatest increase in national parks?","About how many more national parks were there in 1990 than 1930?","How many years had more than 30 national parks?");
	FACTS17 = new Array ("Which color is the most popular?","What percent of the people liked red?","Which color is half of purple?","What percent more like blue than red?","Which color is 20%?");
	FACTS18 = new Array ("How many boats were produced by Sassy Sails?","Which company produced more in 2004 than 2003?","Which company showed the largest increase?","Which company showed the largest decrease?","Which company produced 8,200 sailboats?");
	FACTS19 = new Array ("Which game had the most goals scored?","How many games had 3 goals scored?","How many goals were scored?","What was the decrease in goals from game 5 to game 9?","What was the increase in goals from game 9 to 10?");
	FACTS20 = new Array ("Which time had the most vehicles?","Which time period had the fewest vehicles?","How many vehicles 1-2 PM?","How many times had more than 1,000?","Which time had a little less than 1,000?");
	FACTS21 = new Array ("How many months are shown?","Which month had the most radios sold?","What was the least radios sold in one month?","Which month had the largest increase in sales?","Which month had the largest decrease?");
	FACTS22 = new Array ("Which day had the most cars recycled?","What was the total number of cars recycled?","How many cars were recycled on Thursday?","Which day had the greatest decline?","Which day had six cars recycled?");
	FACTS23 = new Array ("How many people rented 10 videos?","How many people rented more than 25 videos?","What was the most videos one person rented?","How many people rented more than 30 videos?","How many people rented 2 videos?");
	FACTS24 = new Array ("How many people attended the movies?","How many people attended 11 movies?","What was the most movies attended by one person?","How many people attended more than 30 movies?","What was the fewest number of movies attended?");
	FACTS25 = new Array ("How many players had more than 55 hits?","How many players had 41 hits?","How many players had less than 31 hits?","What was the most hits a player had?","How many players had between 40 and 45 hits?");
	FACTS26 = new Array ("How many students read 50 or more books?","How many students read 51 books?","How many students read less than 11 books?","What was the most books read by a student?","How many students read between 20 and 25 books?");
	FACTS27 = new Array ("How many stories sold 50 books?","What was the most books sold by a store?","How many stories sold 60 or more books?","How many stories sold less than 45 books?","How many stories sold between 52 and 62 books?");
	FACTS28 = new Array ("How many students purchased 72 packs?","How many students purchased more than 90 packs?","How many students purchased more than 83 packs?","How many students purchased between 63 and 67 packs?","How many students purchased less than 55?");
	ANSWER0 = new Array ("Friday","Monday","200","300","2");
	ANSWER1 = new Array ("2000","1998","8,000","60,000","5");
	ANSWER2 = new Array ("Baseball","Football","60","70","250");
	ANSWER3 = new Array ("3","6","12","32","76");
	ANSWER4 = new Array ("May","June","10","14","March");
	ANSWER5 = new Array ("200","1995","15","66","5");
	ANSWER6 = new Array ("Friday","Monday","10","50","Wednesday");
	ANSWER7 = new Array ("7 PM","45","9 PM","12","7 PM");
	ANSWER8 = new Array ("Friday","Monday","Thursday","100","Sunday");
	ANSWER9 = new Array ("900","600","2,900","May","December");
	ANSWER10 = new Array ("4.1 million","1901-1910","1821-1830","1.5 million","150");
	ANSWER11 = new Array ("30","1965","1962","1965","8");
	ANSWER12 = new Array ("Friday","Friday","Saturday","none","2");
	ANSWER13 = new Array ("13","16","42","16","3");
	ANSWER14 = new Array ("Sunday","Thursday","2","Sunday","81");
	ANSWER15 = new Array ("1980","sheep","2000","140,000,000","13,303,000");
	ANSWER16 = new Array ("1990","38","1930","20","2");
	ANSWER17 = new Array ("blue","25%","green","5%","purple");
	ANSWER18 = new Array ("900","Sail Ahoy","Sail Ahoy","Sailing World","Sailing World");
	ANSWER19 = new Array ("10","3","31","4","6");
	ANSWER20 = new Array ("7-8 PM","2-3 PM","700","4","4-5 PM");
	ANSWER21 = new Array ("6","Feb.","15","Oct.","March");
	ANSWER22 = new Array ("Saturday","35","7","Sunday","Tuesday");
	ANSWER23 = new Array ("3","8","39","8","2");
	ANSWER24 = new Array ("38","2","49","15","1");
	ANSWER25 = new Array ("3","3","12","59","5");
	ANSWER26 = new Array ("11","4","13","57","5");
	ANSWER27 = new Array ("3","77","23","22","4");
	ANSWER28 = new Array ("7","10","19","1","4");
	SCREENIMAGE = new Array ("table0.gif","table1.gif","table2.gif","table3.gif","table4.gif","table5.gif","table6.gif","table7.gif","table8.gif","table9.gif","table10.gif","table11.gif","table12.gif","table13.gif","table14.gif","table15.gif","table16.gif","table17.gif","table18.gif","table19.gif","table20.gif","table21.gif","table22.gif","table23.gif","table24.gif","table25.gif","table26.gif","table27.gif","table28.gif");

	function CreateNumber()
	{
		NUMBER = Math.random() * RAND;
	   	 NUMBER = Math.round(NUMBER);
    		document.images.SHAPE.src  = SCREENIMAGE[NUMBER];


		for (i = 0; i < 5; i++)
		{
			PROBLEM = eval ("FACTS" + NUMBER);  		/* Place the QUESTIONS into variable PROBLEM */
			QUESTION[i] = PROBLEM[i];			/* Place the QUESTION into the array QUESTION */
			PLACE1 = eval ("ANSWER" + NUMBER);  		/* Place the ANSWERS into variable PLACE1 */
			HOLD[i] = PLACE1[i];				/* Place the ANSWER into the array HOLD */
		}
		CORRECT = "1) " + HOLD[0] + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2) " + HOLD[1] + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3) " + HOLD[2] + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4) " + HOLD[3] + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5) " + HOLD[4];
	}
