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 = "";}


	win.document.write('<HTML>\n<HEAD>\n');
	win.document.write('<TITLE>Cosmic Couples Results</TITLE>');
	win.document.write('</HEAD>\n');
	win.document.write('<BODY BACKGROUND="',myURL,'images/level1_background.gif" BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#66FFFF" \n');
	win.document.write('VLINK="#33FF33" ALINK="#FF0000">\n');
	win.document.write('<BASEFONT SIZE=4>\n');
	win.document.write('<P ALIGN="CENTER"><FONT SIZE=7>Results</FONT></P><P>\n');
 
one = document.match.one.value;
if (!one) {one = "Blank";}
two = document.match.two.value;
if (!two) {two = "Blank";}
three = document.match.three.value;
if (!three) {three = "Blank";}
four = document.match.four.value;
if (!four) {four = "Blank";}

correct=0;

if (one == "2") {correct++;}
if (two == "4") {correct++;}
if (three == "1") {correct++;}
if (four == "3") {correct++;}

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



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

}

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