function printout(){var bottle = new Array();var i = 1;var j = 1;var header = "";var tailer = "";var isay = "";var labeler = "";var yourname = prompt("Please enter your name:","Joe Miner");var today = new Date();var yr = today.getYear().toString();var time = today.getMonth() + "/" + today.getDate() + "/" + yr.substring(1);var myname = "print";w=window.open("",myname,"resizable,menubar,scrollbars")d = w.documentbottle[1] = {gf:"hno3",nm:"Nitric Acid",fm:"HNO<sub>3</sub>"};bottle[2] = {gf:"hcl",nm:"Hydrochloric Acid",fm:"HCl<sub>&nbsp;</sub>"};bottle[3] = {gf:"naso4",nm:"Sodium Sulfate",fm:"Na<sub>2</sub>SO<sub>4</sub>"};bottle[4] = {gf:"ki",nm:"Potassium Iodide",fm:"KI<sub>&nbsp;</sub>"};bottle[5] = {gf:"kco3",nm:"Potassium Carbonate",fm:"K<sub>2</sub>CO<sub>3</sub>"};bottle[6] = {gf:"pbno3",nm:"Lead(II) Nitrate",fm:"Pb(NO<sub>3</sub>)<sub>2</sub>"};bottle[7] = {gf:"bano3",nm:"Barium Nitrate",fm:"Ba(NO<sub>3</sub>)<sub>2</sub>"};bottle[8] = {gf:"agno3",nm:"Silver Nitrate",fm:"AgNO<sub>3</sub>"};d.write("<b>" + yourname + "&nbsp;&nbsp;&nbsp;&nbsp;" + time + "&nbsp;&nbsp;&nbsp;&nbsp;_________________________________</b><p>");isay += "<center><table border = 1><tr><td>";//makes overall tableisay += "<table border = 1><tr><td></td>";//first inner tablefor (i == 1; i < 6; i++){	who = bottle[which0.charAt(i-1)].gf + "V.gif";	isay += "<td align = 'center'><img src = " + who + " width = 24></td>"}isay += "</tr>";for (j==1;j<6;j++){		i = 1;		who = bottle[which0.charAt(j-1)].gf + ".gif"; 	isay += "<tr><td><img src = " + who + " width = 78></td>" ;	for (i == 1; i< 6; i++){isay += "<td align = 'center'>";	labeler =  eval("labels0[" + j + i + "]");					if (labeler){					isay += labeler + "</td>";				}else{					isay += "&nbsp</td>";				}		}isay += "</tr><tr><td></td>";}isay += "</table></td>";//closes first table d.write(isay);isay = "<td>&nbsp;&nbsp;&nbsp;</td>";//spacerisay += "<td valign = bottom><table border = 1><tr><td></td>";//starts second tablej = 1;i = 1;for (i == 1; i < 6; i++){	isay += "<td align = 'center'><img src = 'H" + i + ".gif' width = 24></td>"}for (j==1;j<6;j++){	i = 1;	isay += "<tr><td><img src = 'V" + j + ".gif'></td>";	for (i == 1; i< 6; i++){isay += "<td align = 'center'>";	labeler =  eval("labels1[" + j + i + "]");					if (labeler){					isay += labeler + "</td>";				}else{					isay += "&nbsp</td>";				}		}}isay += "</tr>";isay += "</table></td></tr>";//closes second tableisay += "</table></center>"; d.write(isay);isay = "<p><center><table><tr><td><b>Solution:</b></td><td><b>Match to:</b></td><td></td></tr>";i = 0;for (i==0;i < 5;i++){isay += "<tr><td><b>" + bottle[which0.charAt(i)].fm + "</b></td><td align = center><b>" + parent.CC.chosen[i + 1] + "</b></td>" if (which1.charAt(parent.CC.chosen[i+1] - 1) == which0.charAt(i)){			isay += "<td><img src = 'right.gif' height = 18 width = 18></td></tr>";	}else{			isay += "<td><img src = 'wrong.gif' height = 18 width = 18></td></tr>";			}			 }isay += "</table></center>"; d.write(isay); 	d.close();}