function checkme() {
var win = window.open("", "solution", "width=400,height=300,resizable,scrollbars");
	var myURL = window.location.pathname.match(/^.*\//);
	if (navigator.appName == "Microsoft Internet Explorer") {myURL = "";}


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

for (i = 0; i < 10; i++) {
	clue[i] = win.window.opener.document.world.elements[i].value;
	if (!clue[i]) {clue[i] = "Blank";}
	clue[i] = clue[i].toUpperCase();
	if (clue[i] == answer[i]) {score++;}
}

win.document.write("<html>\n<head>\n<title>There's No Space Like Home</title>\n</head>\n");
win.document.write('<body background="',myURL,'images/bgstars.gif" bgcolor="#000000" text="#FFFFFF">\n');
win.document.write('<basefont size=4>\n<p align="center"><font size=7>Results</font></p><p>\n');
win.document.write('<CENTER>\n');
if (score == 10) {
	win.document.write('Congratulations!  You got them all correct!</P><P>\n');
}
else {
	win.document.write('You got ' + score + ' out of 10 correct!</P><P>\n');
}
win.document.write('</CENTER>\n');
win.document.write('<BR>\n');

win.document.write('<CENTER>\n');
win.document.write('<FORM>\n');
win.document.write('<TABLE BORDER=5 CELLPADDING=10>\n');
win.document.write('<TR><TD ALIGN="CENTER">\n');
win.document.write('<INPUT TYPE=button VALUE="Close" onClick="window.close()">\n');
win.document.write('</TD></TR>\n</TABLE>\n</FORM>\n</CENTER>\n');
win.document.write('</body>\n</html>\n');
win.document.close();
}

function reset() {
	location = "world.html";
}
