document.write('<HTML>\n<HEAD>\n');
document.write('<TITLE>Pair Me UP, Scottie Results</TITLE>');
document.write('</HEAD>\n');
document.write('<BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#66FFFF" \n');
document.write('VLINK="#33FF33" ALINK="#FF0000">\n');
document.write('<BASEFONT SIZE=4>\n');
document.write('<P ALIGN="CENTER"><FONT SIZE=7>Results</FONT></P><P>\n');
 
one = window.opener.document.match.one.value;
if (!one) {one = "Blank";}
two = window.opener.document.match.two.value;
if (!two) {two = "Blank";}
three = window.opener.document.match.three.value;
if (!three) {three = "Blank";}
four = window.opener.document.match.four.value;
if (!four) {four = "Blank";}

correct=0;

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

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



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

document.write<'</BODY>\n</HTML>\n');