var space = new Array(
	"The Soviet Union launched <I>Sputnik</I>, the world's first man-made satellite.<BR></TD>\n",
	"John Glenn orbited the Earth three times in <I>Friendship 7</I>.<BR></TD>\n",
	"A cockpit fire during an <I>Apollo 1</I> training exercise claimed the lives of astronauts Edward White II, Roger Chaffee, and Virgil Grissom.<BR></TD>\n",
	"American astronauts Neil Armstrong and Edwin Aldrin became the first humans to set foot on the moon.<BR></TD>\n",
	"The final and longest Apollo mission to the moon occurred as <I>Apollo 17</I> spent twelve days on the moon's surface.<BR></TD>\n",
	"The United States launched the Space Shuttle <I>Columbia</I>.  <I>Columbia</I> was the first reusable manned spacecraft ever to be launched.<BR></TD>\n",
	"Sally Ride became the first American woman in space when she launched aboard the Space Shuttle <I>Challenger</I>.<BR></TD>\n",
	"The Space Shuttle <I>Challenger</I> exploded 73 seconds after take-off killing all seven astronauts on board.<BR></TD>\n",
	"The <I>Hubble Telescope</I> was launched aboard the Space Shuttle <I>Discovery</I> and deployed in space.<BR></TD>\n",
	"Dr. Valeri Polyakov, a Russian cosmonaut, ended a 14 month stay aboard Space Station <I>Mir</I>, claiming the record for the longest continuous stay in space.<BR></TD>\n")

var earth = new Array(
	"The Treaty of Rome led to the formation of the European Economic Community.  Known as the Common Market, it originally included six countries, but had grown to twelve by 1983.<BR></TD></TR>\n",
	"The USSR set up nuclear weapon bases in Cuba.  Alarmed that nuclear weapons were only 90 miles from the coast of the United States, President Kennedy demanded that the weapons be removed.  Soviet leaders agreed and the weapons left Cuba.<BR></TD></TR>\n",
	"As the United States became more involved in the Vietnam conflict in Southeast Asia, more Americans took to the streets to demonstrate for peace.<BR></TD></TR>\n",
	"Robin Knox Johnston became the first person to sail around the world without stopping.  The journey took a total of 312 days.<BR></TD></TR>\n",
	"Mark Spitz, an American swimmer, became the first person to win seven gold medals at a single Olympic Games.<BR></TD></TR>\n",
	"Sandra Day O'Connor became the first woman to be appointed to the United States Supreme Court.<BR></TD></TR>\n",
	"President Reagan ordered the invasion of Granada, an island in the Caribbean, after rebels took over the government there and threatened American medical students in the area.<BR></TD></TR>\n",
	"After twenty years as president and dictator, Ferdinand Marcos was removed from power in the Philippines and sent into exile.  Corazon Aquino assumed the role as president of the Philippines.<BR></TD></TR>\n",
	"The Republics of Latvia, Lithuania, and Estonia demanded, and eventually received, their independence from the USSR.<BR></TD></TR>\n",
	"The presidents of Bosnia-Herzegovina, Croatia, and Serbia met to sign an agreement to bring peace to the war-torn Balkan region.  The agreement called for Bosnia-Herzegovina to be divided into a Bosnian-Croat federation and a Serbian Republic.<BR></TD></TR>\n")

var clue = new Array(10);
for (i = 0; i < 10; i ++) {
	clue[i] = window.opener.document.time.elements[i].value;
	if (!clue[i]) {clue[i] = "BLANK";}
	clue[i] = clue[i].toUpperCase();
}

var answer = new Array("E","C","I","A","F","B","H","D","J","G");
var correct = 0;

for (i = 0; i < 10; i++) {
	if (clue[i] == answer[i]) {correct++;}
}

if (correct == 10) {
	document.write('<H2 ALIGN="CENTER">Congratulations!  ');
	document.write('You got 100%</H2>\n');
}
else {
	document.write('<H3 ALIGN="CENTER">You got ');
	document.write(correct + ' out of 10 correct!</H3>\n');
}

document.write('<CENTER>\n');
document.write('<TABLE BORDER=5 CELLPADDING=5 CELLSPACING=5>\n');
document.write('<TR><TH ALIGN="CENTER">Your Response</TH>');
document.write('<TH ALIGN="CENTER">The Correct Response</TH>');
document.write('<TH ALIGN="CENTER">Space Related Event</TH>');
document.write('<TH ALIGN="CENTER">Earth-Bound Event</TH></TR>\n');

for (i = 0; i < 10; i++) {
	document.write('<TR><TD ALIGN="CENTER">\n');
	if (clue[i] == answer[i]) {
		document.write(clue[i] + '<BR></TD>\n');
	}
	else if ((clue[i] == "A") || (clue[i] == "B") || (clue[i] == "C") ||
		(clue[i] == "D") || (clue[i] == "E") || (clue[i] == "F") ||
		(clue[i] == "G") || (clue[i] == "H") || (clue[i] == "I") ||
		(clue[i] == "J")) {
		document.write('<FONT COLOR="#FF0000">');
		document.write(clue[i] + '<BR></TD>\n');
	}
	else {
		document.write('No valid selection<BR></TD>\n');
	}
	document.write('<TD ALIGN="CENTER">' + answer[i] + '<BR></TD>\n');
	document.write('<TD>' + space[i]);
	document.write('<TD>' + earth[i]);
}

document.write('</TABLE>\n');
document.write('</CENTER>\n');
document.close();




