// report HTML Version
function report() {
 	
	var design = document.applets[0].getDesign();
   	var data = document.applets[0].getData();
   	var equip = document.applets[0].getEquip();
 	
	w = window.open("","","toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480");
    	w.document.open("text/html");
	w.document.writeln("<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>");
	w.document.writeln("<HTML>");
	w.document.writeln("<BODY>");
	
    w.document.writeln("<TABLE BORDER=\"0\" width=\"600\">");
    w.document.writeln("<TR><TD ALIGN=\"LEFT\"><IMG SRC=\"../images/logobar.jpg\" BORDER=0 height=32 width=167></TD>");
    w.document.writeln("<TD ALIGN=\"RIGHT\"><B><font face=\"Trebuchet MS\" size=\"2\" COLOR=\"#800000\">Results of Kwik-Way Selection</B></TD>");
    w.document.writeln("</TR>");
    w.document.writeln("</TABLE>");
    w.document.writeln("<BR><HR WIDTH=\"600\" ALIGN=\"LEFT\"><BR>");

    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=BLACK>");
    
   
    
    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=\"#800000\">");
    w.document.writeln("<IMG SRC=\"../images/bull.jpg\" ALIGN=\"ABSMIDDLE\">&nbsp;<B>Design Conditions for Residence:</B><BR><BR>");
     
    // var contract = document.applets[0].getContract();
    
    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=BLACK>");
    w.document.writeln(design);
    w.document.writeln("<BR>");
    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=\"#800000\">");
    w.document.writeln("<IMG SRC=\"../images/bull.jpg\" ALIGN=\"ABSMIDDLE\">&nbsp;<B>Room-by-Room Heat Gain (Loss) Data:</B><BR><BR>");
    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=BLACK>");
    w.document.writeln(data);
    w.document.writeln("<BR>");
    w.document.writeln("<HR WIDTH=\"600\" ALIGN=\"LEFT\"><BR>");
    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=\"#800000\">");
    w.document.writeln("<IMG SRC=\"../images/bull.jpg\" ALIGN=\"ABSMIDDLE\">&nbsp;<B>Recommeded SpacePak &reg; Equipment:</B><BR><BR>");
    w.document.writeln("<FONT face=\"Trebuchet MS\" size=\"2\" COLOR=BLACK>");
    w.document.writeln(equip);
    w.document.writeln("<BR>");
    
    //w.document.writeln(contract);
   
    w.document.writeln("<HR WIDTH=\"600\" ALIGN=\"LEFT\"><BR>");
    w.document.writeln("<FORM name=form0>");
    w.document.writeln("<INPUT TYPE=\"BUTTON\" VALUE=\" Back \" onclick=\"javascript:window.close()\">");
    w.document.writeln("<INPUT TYPE=\"BUTTON\" VALUE=\" Print \" onclick=\"javascript:window.print()\">");
    w.document.writeln("</FORM>");

    
    w.document.writeln("</BODY>");
    w.document.writeln("</HTML>");
    
    w.document.close();
}

function reload() {
    
    location.href = location.href;
    
}