// JavaScript Document For Residential Configurator

var StandardClosedOpts = new Array("1-2 People","2-3 People","3-4 People","4-5 People","6+ People");
var System5Opts = new Array("1-3 People", "4-5 People", "6+ People", "", "");
var StandardOpenOpts = new Array("1-2 People","3-4 People","4-5 People","5-7 People","");
var Empty = new Array("","","","","");

function Generate(){

var PriceSystem120Feet = "$1295";
var PriceSystem130Feet = "$1545";
var PriceSystem140Feet = "$1795";
var PriceSystem150Feet = "$2045";
var PriceSystem160Feet = "$2295";
	
	
var PriceSystem540Feet = "$3980";
var PriceSystem560Feet = "$4520";
var PriceSystem580Feet = "$4995";


var PriceSystem4PV30Feet = "$2625";
var PriceSystem4PV40Feet = "$2875";
var PriceSystem4PV50Feet = "$3215";
var PriceSystem4PV60Feet = "$3465";
var PriceSystem4PV80Feet = "$3865";

var PriceSystem4AC30Feet = "$2525";
var PriceSystem4AC40Feet = "$2775";
var PriceSystem4AC50Feet = "$3115";
var PriceSystem4AC60Feet = "$3365";
var PriceSystem4AC80Feet = "$3785";

var PriceSystem3Light20FeetRetro = "$1948";
var PriceSystem3Light30FeetRetro = "$2198";
var PriceSystem3Light40FeetRetro = "$2478";
var PriceSystem3Light60FeetRetro = "$2995";

var PriceSystem3Light20Feet80Gallon = "$2848";
var PriceSystem3Light30Feet80Gallon = "$3098";
var PriceSystem3Light40Feet80Gallon = "$3378";
var PriceSystem3Light60Feet80Gallon = "$3895";

var PriceSystem3Light60Feet120Gallon = "$4431";

var PriceSystem3No20FeetRetro = "$1675";
var PriceSystem3No30FeetRetro = "$1945";
var PriceSystem3No40FeetRetro = "$2215";
var PriceSystem3No60FeetRetro = "$2755";

var PriceSystem3No20Feet80Gallon = "$2575";
var PriceSystem3No30Feet80Gallon = "$2845";
var PriceSystem3No40Feet80Gallon = "$3115";
var PriceSystem3No60Feet80Gallon = "$3655";

var PriceSystem3No60Feet120Gallon = "$4191";

var StyleSystem120Feet = "<i>With (2) 6' Collectors</i>-100112C<br><i>With (1) 12' Collectors</i>-200111C";
var StyleSystem130Feet = "<i>With (3) 6' Collectors</i>-100113C";
var StyleSystem140Feet = "<i>With (4) 6' Collectors</i>-100114C<br><i>With (2) 12' Collectors</i>-200112C";
var StyleSystem150Feet = "<i>With (5) 6' Collectors</i>-100115C";
var StyleSystem160Feet = "<i>With (3) 12' Collectors</i>-200113C";


var StyleSystem540Feet = "<i>With (4) 6' Collectors</i>-100154C80EXWT<br><i>With (2) 12' Collectors</i>-200152C80EXWT";
var StyleSystem560Feet = "<i>With (3) 12' Collectors</i>-200153C80EXWT";
var StyleSystem580Feet = "<i>With (4) 12' Collectors</i>-200154C80EXWT";


var StyleSystem4PV30Feet = "<i>With (3) 6' Collectors</i>-100143CPV";
var StyleSystem4PV40Feet = "<i>With (4) 6' Collectors</i>-100144CPV<br><i>With (2) 12' Collectors</i>-200142CPV";
var StyleSystem4PV50Feet = "<i>With (5) 6' Collectors</i>-100145CPV";
var StyleSystem4PV60Feet = "<i>With (3) 12' Collectors</i>-200143CPV";
var StyleSystem4PV80Feet = "<i>With (4) 12' Collectors</i>-200144CPV";

var StyleSystem4AC30Feet = "<i>With (3) 6' Collectors</i>-100143C";
var StyleSystem4AC40Feet = "<i>With (4) 6' Collectors</i>-100144C<br><i>With (2) 12' Collectors</i>-200142C";
var StyleSystem4AC50Feet = "<i>With (5) 6' Collectors</i>-100145C";
var StyleSystem4AC60Feet = "<i>With (3) 12' Collectors</i>-200143C";
var StyleSystem4AC80Feet = "<i>With (4) 12' Collectors</i>-200144C";

var StyleSystem3Light20FeetRetro = "<i>With (2) 6' Collectors</i>-100132CF3<br><i>With (1) 12' Collectors</i>-200131CF3";
var StyleSystem3Light30FeetRetro = "<i>With (3) 6' Collectors</i>-100133CF3";
var StyleSystem3Light40FeetRetro = "<i>With (4) 6' Collectors</i>-100134CF3<br><i>With (2) 12' Collectors</i>-200132CF3";
var StyleSystem3Light60FeetRetro = "<i>With (3) 12' Collectors</i>-200133CF3";

var StyleSystem3Light20Feet80Gallon = "<i>With (2) 6' Collectors</i>-100132C80F3<br><i>With (1) 12' Collectors</i>-200131C80F3";
var StyleSystem3Light30Feet80Gallon = "<i>With (3) 6' Collectors</i>-100133C80F3";
var StyleSystem3Light40Feet80Gallon = "<i>With (4) 6' Collectors</i>-100134C80F3<br><i>With (2) 12' Collectors</i>-200132C80F3";
var StyleSystem3Light60Feet80Gallon = "<i>With (3) 12' Collectors</i>-200133C80F3";

var StyleSystem3Light60Feet120Gallon = "<i>With (3) 12' Collectors</i>-200133C120F3";

var StyleSystem3No20FeetRetro = "<i>With (2) 6' Collectors</i>-100132C<br><i>With (1) 12' Collectors</i>-200131C";
var StyleSystem3No30FeetRetro = "<i>With (3) 6' Collectors</i>-100133C";
var StyleSystem3No40FeetRetro = "<i>With (4) 6' Collectors</i>-100134C<br><i>With (2) 12' Collectors</i>-200132C";
var StyleSystem3No60FeetRetro = "<i>With (3) 12' Collectors</i>-200133C";

var StyleSystem3No20Feet80Gallon = "<i>With (2) 6' Collectors</i>-100132C80<br><i>With (1) 12' Collectors</i>-200131C80";
var StyleSystem3No30Feet80Gallon = "<i>With (3) 6' Collectors</i>-100133C80";
var StyleSystem3No40Feet80Gallon = "<i>With (4) 6' Collectors</i>-100134C80<br><i>With (2) 12' Collectors</i>-200132C80</i>";
var StyleSystem3No60Feet80Gallon = "<i>With (3) 12' Collectors</i>-200133C80";

var StyleSystem3No60Feet120Gallon = "<i>With (3) 12' Collectors</i>-200133C120";
	
	System = "System ?";
	People = "";
	Price = "$0";
	Style = "";
	Footage = "";
	RoofMsg = "";
	
	locIndex = document.the_form.Location.selectedIndex;
	sysType = document.the_form.Location.options[index].value;

	var PeopleIndex = document.the_form.Size.selectedIndex;
	People = document.the_form.Size.options[PeopleIndex].text;
	
	roofIndex = document.the_form.RoofStyle.selectedIndex;
	roofType = document.the_form.RoofStyle.options[roofIndex].value;

	/* Record Correct Square Footage of Collectors */
	if(sysType == "Freeze"){
		if(People == "1-2 People")
			Footage = "30 Square Feet";
		else if(People == "2-3 People")
			Footage = "40 Square Feet";
		else if(People == "3-4 People")
			Footage = "50 Square Feet";
		else if(People == "4-5 People")
			Footage = "60 Square Feet";
		else if(People == "6+ People")
			Footage = "80 Square Feet";
		else if(People == "1-3 People")
			Footage = "40 Square Feet";
		else if(People == "4-5 People")
			Footage = "60 Square Feet";
	}else{
		if(People == "1-2 People")
			Footage = "20 Square Feet";
		else if(People == "3-4 People")
			Footage = "30 Square Feet";
		else if(People == "4-5 People")
			Footage = "40 Square Feet";
		else if (People == "5-7 People")
			Footage = "60 Square Feet";
	}
	
	if(document.the_form.OG300[0].checked)
		OG300Ans = "Yes";
	else
		OG300Ans = "No";
	
	/* System 1 does not have Retrofit/New Option So Check It First */
	
	if(document.the_form.Location.options[document.the_form.Location.selectedIndex].text == "Caribbean"){
		System = "System 1";
		SystemDescription = "<b><i>TROPICAL ONLY</i></b><br>10 or 20 sq. ft solar thermal collector(s), 20\" wide x 6' or 12' long, 110°F snap switch (S110) with transformer, Rail flush mounting kit, 12 Volt circulation pump, Compression unions, Lag screws, Washers, Tec screws,  Quick Connect Kit for existing or added water heater with shut off and drain valves, Floating ball check valve (Bottom Connect is standard, Top Connect (TC02) is available at $60.00 extra charge, Solar Loop Pressure Relief Valve (PRV, coin vent with pre-soldered assembly, labeling, Installation and Owner's Manuals.";
	}else{
		for (i=0;i<document.the_form.RetroOrNew.length;i++){ 
			if (document.the_form.RetroOrNew[i].checked){ 
        		installationType = document.the_form.RetroOrNew[i].value;
           		if(installationType == "Retrofit"){
	        	    	if(sysType == "No"){
		       					System = "System 3 Retrofit No Freeze";
	            				SystemDescription = "OG-300 Rated System.<br>  System Includes: Collectors trimmed in Musket Brown or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, mixing valve, and 2 roof boots.<br>  Valves included: Pressure relief, coin vent, 2 isolation, check valve, 2 drain bibs.";
            			}else if(sysType == "Light"){
	       	     			System = "System 3 Retrofit Light Freeze";
	       	     			SystemDescription = "OG-300 Rated System.<br> System Includes: Collectors trimmed in Musket Brown, or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, recirculating freeze snap switch (12 volt), mixing valve, and 2 roof boots.<br>  Valves included: Pressure relief, coin vent, 2 isolation, check valave, 2 drain bibs.";
           	 		}else if (sysType == "Freeze"){
	           	 		
	            		for (i=0;i<document.the_form.System4.length;i++){ 
      						if (document.the_form.System4[i].checked){ 
             					System4Version = document.the_form.System4[i].value;
             					if(System4Version == "PV"){
	             					System = "System 4 PV";
	             					SystemDescription = "Collectors trimmed in Musket Brown or Dove Gray, flat plate heat exchanger, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, mixing valve, expansion tank, and 2 roof boots.  <br> Valves included: Pressure relief, coin vent, 2 isolation, check valve, 2 drain bibs.";
             					}else if(System4Version == "AC"){
	             					System = "System 4 AC";
	             					SystemDescription = "Collectors trimmed in Musket Brown or Dove Gray, flat plate heat exchanger, mounting rails, brackets, 110 volt pump with differential controller, 50' 1/2\" OD copper tubing, 2 temperature gauges, mixing valve, expansion tank, and 2 roof boots.  <br> Valves included: Pressure relief, coin vent, 2 isolation, check valve, 2 drain bibs.";
             					}
             				}
         				}
     				}
     			}if(installationType == "New" || (OG300Ans == "Yes" && sysType == "Freeze")){
            		if(sysType == "No"){
						if(People == "5-7 People"){
							System = "System 3 No Freeze with 80 Gallon or 120 Gallon Rheem Tank";
	            			SystemDescription = "OG-300 Rated System.<br>  System Includes: Collectors trimmed in Musket Brown or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, mixing valve, and 2 roof boots.<br>  Valves included: Pressure relief, coin vent, 2 isolation, check valve, 2 drain bibs.<br> Rheem 80-Gallon or 120-Gallon 4-Tube Storage Tank with electric back-up.";
						}else{
	            			System = "System 3 No Freeze with 80 Gallon Rheem Tank";
	            			SystemDescription = "OG-300 Rated System.<br>  System Includes: Collectors trimmed in Musket Brown or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, mixing valve, and 2 roof boots.<br>  Valves included: Pressure relief, coin vent, 2 isolation, check valve, 2 drain bibs.<br> Rheem 80-Gallon 4-Tube Storage Tank with electric back-up.";
	            		}
	            	}else if(sysType == "Light"){
						if(People == "5-7 People"){
							System = "System 3 Light Freeze with 80 Gallon or 120 Gallon Rheem Tank";
	            			SystemDescription = "OG-300 Rated System.<br> System Includes: Collectors trimmed in Musket Brown, or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, recirculating freeze snap switch (12 volt), mixing valve, and 2 roof boots.<br>  Valves included: Pressure relief, coin vent, 2 isolation, check valave, 2 drain bibs.<br>Rheem 80-Gallon or 120-Gallon 4-Tube Storage Tank with electric back-up.";
						}else{
							System = "System 3 Light Freeze with 80 Gallon Rheem Tank";
	            			SystemDescription = "OG-300 Rated System.<br> System Includes: Collectors trimmed in Musket Brown, or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, recirculating freeze snap switch (12 volt), mixing valve, and 2 roof boots.<br>  Valves included: Pressure relief, coin vent, 2 isolation, check valave, 2 drain bibs.<br>Rheem 80-Gallon 4-Tube Storage Tank with electric back-up.";}
            		}else if(sysType == "Freeze"){
            			System = "System 5"; 
						SystemDescription = "OG-300 Rated System.<br>Collectors trimmed in Musket Brown or Dove Gray, mounting rails, brackets, PV Panel, 12V DC pump, 50' 1/2\" OD copper tubing, 2 temperature gauges, 25' PV wire, mixing valve, expansion tank, and 2 roof boots.  <br> Valves included: Pressure relief, coin vent, 2 isolation, check valve, 2 drain bibs.<br> Rheem 80-Gallon Heat Exchange Tank with electric back-up.";
					}
             				 
        		}
      		} 
		} //end for 
	}
	
	
	if(System == "System 5"){
		if(People == "1-3 People"){
			Price = PriceSystem540Feet;
			Style = StyleSystem540Feet;		
		}else if(People == "4-5 People"){
			Price = PriceSystem560Feet;
			Style = StyleSystem560Feet;
		}else if(People == "6+ People"){
			Price = PriceSystem580Feet;
			Style = StyleSystem580Feet;
		}			
	}
	
	else if(System == "System 4 PV"){
		if(People == "1-2 People"){
			Price = PriceSystem4PV30Feet;
			Style = StyleSystem4PV30Feet;
		}else if(People == "2-3 People"){
			Price = PriceSystem4PV40Feet;	
			Style = StyleSystem4PV40Feet;		
		}else if(People == "3-4 People"){
			Price = PriceSystem4PV50Feet;
			Style = StyleSystem4PV50Feet;
		}else if(People == "4-5 People"){
			Price = PriceSystem4PV60Feet;
			Style = StyleSystem4PV60Feet;	
		}else if(People == "6+ People"){
			Price = PriceSystem4PV80Feet;
			Style = StyleSystem4PV80Feet;
		}
	}
	else if(System == "System 4 AC"){
		if(People == "1-2 People"){
			Price = PriceSystem4AC30Feet;
			Style = StyleSystem4AC30Feet;
		}else if(People == "2-3 People"){
			Price = PriceSystem4AC40Feet;
			Style = StyleSystem4AC40Feet;				
		}else if(People == "3-4 People"){
			Price = PriceSystem4AC50Feet;
			Style = StyleSystem4AC50Feet;
		}else if(People == "4-5 People"){
			Price = PriceSystem4AC60Feet;	
			Style = StyleSystem4AC60Feet;
		}else if(People == "6+ People"){
			Price = PriceSystem4AC80Feet;
			Style = StyleSystem4AC80Feet;
		}
	}
	else if(System == "System 3 Retrofit Light Freeze"){
		if(People == "1-2 People"){
			Price = PriceSystem3Light20FeetRetro;
			Style = StyleSystem3Light20FeetRetro;
		}else if(People == "3-4 People"){
			Price = PriceSystem3Light30FeetRetro;	
			Style = StyleSystem3Light30FeetRetro;		
		}else if(People == "4-5 People"){
			Price = PriceSystem3Light40FeetRetro;
			Style = StyleSystem3Light40FeetRetro;
		}else if(People == "5-7 People"){
			Price = PriceSystem3Light60FeetRetro;
			Style = StyleSystem3Light60FeetRetro;
		}	
	}
	else if(System == "System 3 Retrofit No Freeze"){
		if(People == "1-2 People"){
			Price = PriceSystem3No20FeetRetro;
			Style = StyleSystem3No20FeetRetro;
		}else if(People == "3-4 People"){
			Price = PriceSystem3No30FeetRetro;
			Style = StyleSystem3No30FeetRetro;			
		}else if(People == "4-5 People"){
			Price = PriceSystem3No40FeetRetro;
			Style = StyleSystem3No40FeetRetro;
		}else if(People == "5-7 People"){
			Price = PriceSystem3No60FeetRetro;
			Style = StyleSystem3No60FeetRetro;
		}	
	}
	
	else if(System == "System 3 No Freeze with 80 Gallon or 120 Gallon Rheem Tank"){
		Price = "Price with 80 Gallon Tank: " + PriceSystem3No60Feet80Gallon + "<br>Price with 120 Gallon Tank: " + PriceSystem3No60Feet120Gallon;
		Style = "Style with 80 Gallon Tank: " + StyleSystem3No60Feet80Gallon + "<br>Style with 120 Gallon Tank: " + StyleSystem3No60Feet120Gallon;

	}
	else if(System == "System 3 Light Freeze with 80 Gallon or 120 Gallon Rheem Tank"){
		Price = "Price with 80 Gallon Tank: " + PriceSystem3Light60Feet80Gallon + "<br>Price with 120 Gallon Tank: " + PriceSystem3Light60Feet120Gallon;
		Style = "Style with 80 Gallon Tank: " + StyleSystem3Light60Feet80Gallon + "<br>Style with 120 Gallon Tank: " + StyleSystem3Light60Feet120Gallon;
	}
	
	else if(System == "System 3 Light Freeze with 80 Gallon Rheem Tank"){
		if(People == "1-2 People"){
			Price = PriceSystem3Light20Feet80Gallon;
			Style = StyleSystem3Light20Feet80Gallon;
		}
		else if(People == "3-4 People"){
			Price = PriceSystem3Light30Feet80Gallon;
			Style = StyleSystem3Light30Feet80Gallon;
		}			
		else if(People == "4-5 People"){
			Price = PriceSystem3Light40Feet80Gallon; 
			Style = StyleSystem3Light40Feet80Gallon; 
		}
		else if(People == "5-7 People"){
			Price = PriceSystem3Light60Feet80Gallon;
			Style = StyleSystem3Light60Feet80Gallon;
		}	
	}
		
	else if(System == "System 3 No Freeze with 80 Gallon Rheem Tank"){
		if(People == "1-2 People"){
			Price = PriceSystem3No20Feet80Gallon;
			Style = StyleSystem3No20Feet80Gallon;
		}
		else if(People == "3-4 People"){
			Price = PriceSystem3No30Feet80Gallon;	
			Style = StyleSystem3No30Feet80Gallon;	
		}		
		else if(People == "4-5 People"){
			Price = PriceSystem3No40Feet80Gallon;	
			Style = StyleSystem3No40Feet80Gallon;	
		}

	}
	
	else if(System == "System 1"){
		if(People == "1-2 People"){
			Price = PriceSystem120Feet;
			Style = StyleSystem120Feet;
		}else if(People == "3-4 People"){
			Price = PriceSystem130Feet;	
			Style = StyleSystem130Feet;		
		}else if(People == "4-5 People"){
			Price = PriceSystem140Feet;
			Style = StyleSystem140Feet;
		}else if(People == "5-7 People"){
			Price = PriceSystem160Feet;
			Style = StyleSystem160Feet;
		}	
	}

	if(roofType == "Flat")
		RoofMsg = "Due to flat roof, a tilt kit will be required at an additional cost to tilt collectors.";
	else if(roofType == "Tile")
		RoofMsg = "Special spacers are available for collectors mounted on a tile roof."
	else
		RoofMsg = "";
	 
	
	document.getElementById("SystemType").innerHTML = "<b>" + System + "</b><br>" + SystemDescription;
	document.getElementById("CollectorFootage").innerHTML = Footage;
	document.getElementById("SystemPrice").innerHTML = Price;
	document.getElementById("SystemStyle").innerHTML = Style;
	document.getElementById("Roof").innerHTML = RoofMsg;
}


function SelectLocation(){
		index = document.the_form.Location.selectedIndex;
		selectedText = document.the_form.Location.options[index].text;
		
		/* Caribbean System 1 does not include installation type option, so go direct to system size */
		if(selectedText == "Caribbean"){
			SystemSize("StandardOpenOpts");
			document.getElementById("OG300").style.display = "none";
			document.getElementById("TypeOfInstallation").style.display = "none";
		}
		else if(selectedText!=""){
			document.getElementById("TypeOfInstallation").style.display = "block";
		}
}
   
function toggleLocationHelp(){
	currentDisplay = document.getElementById("locationHelp").style.display;
	if(currentDisplay == "block")
		document.getElementById("locationHelp").style.display = "none";
	else
		document.getElementById("locationHelp").style.display = "block"
}

function toggleOG300Help(){
	currentDisplay = document.getElementById("OG300Help").style.display;
	if(currentDisplay == "block")
		document.getElementById("OG300Help").style.display = "none";
	else
		document.getElementById("OG300Help").style.display = "block"
}

function toggleTypeOfInstallationHelp(){
	currentDisplay = document.getElementById("typeOfInstallationHelp").style.display;
	if(currentDisplay == "block")
		document.getElementById("typeOfInstallationHelp").style.display = "none";
	else
		document.getElementById("typeOfInstallationHelp").style.display = "block"
}

function togglePumpHelp(){
	currentDisplay = document.getElementById("pumpHelp").style.display;
	if(currentDisplay == "block")
		document.getElementById("pumpHelp").style.display = "none";
	else
		document.getElementById("pumpHelp").style.display = "block"
}

function toggleSizeHelp(){
	currentDisplay = document.getElementById("sizeHelp").style.display;
	if(currentDisplay == "block")
		document.getElementById("sizeHelp").style.display = "none";
	else
		document.getElementById("sizeHelp").style.display = "block"
}

function toggleRoofStyleHelp(){
	currentDisplay = document.getElementById("roofStyleHelp").style.display;
	if(currentDisplay == "block")
		document.getElementById("roofStyleHelp").style.display = "none";
	else
		document.getElementById("roofStyleHelp").style.display = "block"
}


function InstallationType(type){

	locIndex = document.the_form.Location.selectedIndex;
	systemType = document.the_form.Location.options[locIndex].value;

	
	for (i=0;i<document.the_form.OG300.length;i++){ 
      						if (document.the_form.OG300[i].checked){ 
             					OG300Ans = document.the_form.OG300[i].value;
             				}
         				}
	
	if(systemType == "Light" || systemType == "No")
			SystemSize("StandardOpenOpts");
	else if(type == "Retrofit" && OG300Ans == "No"){
			if(systemType == "Freeze"){
	
			document.getElementById("RetrofitSystem4").style.display = "block";
			SystemSize("StandardClosedOpts");
		}
	}else{
		document.getElementById("RetrofitSystem4").style.display = "none";
				
		SystemSize("System5Opts");
		
	}
	
}

function SystemSize(Options){
     var Select = document.the_form.Size;
     var theArray = eval(Options);

     for (loop = 0; loop < Select.options.length; loop++) {
          Select.options[loop].text = theArray[loop];
     }
}

function ResetBelowLocation(){

	index = document.the_form.Location.selectedIndex;
	selectedText = document.the_form.Location.options[index].text;


	/* Reset Type of Installation */
	for (i=0;i<document.the_form.RetroOrNew.length;i++){ 
		if (document.the_form.RetroOrNew[i].checked)
        	document.the_form.RetroOrNew[i].checked = false;
	}
	
	ResetBelowTypeOfInstallation();

	
}

function ResetBelowTypeOfInstallation(){
	/* Reset Pump */
	for (i=0;i<document.the_form.RetroOrNew.length;i++){ 
		if (document.the_form.System4[i].checked)
        	document.the_form.System4[i].checked = false;
	}


	document.getElementById("RetrofitSystem4").style.display = "none";
	

	SystemSize("Empty");
	ResetResults();
}

function ResetResults(){
	document.getElementById("SystemType").innerHTML = "";
	document.getElementById("CollectorFootage").innerHTML = "";
	document.getElementById("SystemPrice").innerHTML = "";
	document.getElementById("SystemStyle").innerHTML = "";
}
