PSEmail = "./";		//Enter URL for ProductSelectorPost.php
PSFont = "Arial";	//Enter Font Family such as Arial, Times Roman, Etc. This should be a font that everyone has.
PSColor = "Black";	//Enter Font Color such as Red, Green, or RGB Number such as #FFFF00.
PSBGColor = "White";	//Enter Background Color such as Red, Green, etc. or RGB Number such as #FFFF00.
PSBGImage = "";	//Enter URL or reference to image for background

if (PSEmail.charAt(PSEmail.length - 1) != "/") {
	PSEmail = PSEmail + "/";
}

function PScalc_unit() {
	// Validate inputs
	if (document.ProductSelector.Lighting.value == "Choose...") {
		alert("Please complete the Lighting selection.");
		document.ProductSelector.Lighting.focus();
	} else {
		if (document.ProductSelector.AvgTemp.value == "Choose...") {
			alert("Please complete the Average Temperature selection.");
			document.ProductSelector.AvgTemp.focus();
		} else {
			// Valid inputs so process
			if (document.ProductSelector.AvgTemp.value == "Below 85°F") {
				switch (document.ProductSelector.Lighting.value) {
					case "1,000-3,000" :
						document.forms.ProductSelector.Recomendation.value = "compactpackage.html";
						break;
					case "4,000-6,000" :
						document.forms.ProductSelector.Recomendation.value = "2tonpackage.html";
						break;
					case "7,000-8,000" :
						document.forms.ProductSelector.Recomendation.value = "25package.html";
						break;
					case "9,000" :
						document.forms.ProductSelector.Recomendation.value = "3tonpackage.html";
						break;
					case "10,000-11,000" :
						document.forms.ProductSelector.Recomendation.value = "35tonpackage.html";
						break;
					case "12,000" :
						document.forms.ProductSelector.Recomendation.value = "4tonpackage.html";
						break;
					case "13,000-15,000" :
						document.forms.ProductSelector.Recomendation.value = "5tonpackage.html";
				}
			} else {
				switch (document.forms.ProductSelector.Lighting.value) {
					case "1,000-3,000" :
						document.forms.ProductSelector.Recomendation.value = "cautioncompactpackage.html";
						break;
					case "4,000-6,000" :
						document.forms.ProductSelector.Recomendation.value = "caution2tonpackage.html";
						break;
					case "7,000-8,000" :
						document.forms.ProductSelector.Recomendation.value = "caution25package.html";
						break;
					case "9,000" :
						document.forms.ProductSelector.Recomendation.value = "caution3tonpackage.html";
						break;
					case "10,000-11,000" :
						document.forms.ProductSelector.Recomendation.value = "caution35tonpackage.html";
						break;
					case "12,000" :
						document.forms.ProductSelector.Recomendation.value = "caution4tonpackage.html";
						break;
					case "13,000-15,000" :
						document.forms.ProductSelector.Recomendation.value = "caution5tonpackage.html";
				}
			}
			if (location.protocol.toLowerCase() == "file:") {
				location = document.forms.ProductSelector.Recomendation.value;
			} else {
				document.ProductSelector.submit();
			}
		}
	}
};
document.writeln('<form name="ProductSelector" method="post" action="' + PSEmail + 'ProductSelectorPost.php">');
document.writeln('	<TABLE id="PSTable1" cellSpacing="1" cellPadding="1" border="1" style="background-color:' + PSBGColor + '; background-image:url(' + PSBGImage + ')">');
document.writeln('		<TR>');
document.writeln('			<TD>');
document.writeln('				<TABLE id="PSTable2" cellSpacing="1" cellPadding="1" style="font-family:' + PSFont + '; color:' + PSColor + '">');
document.writeln('					<TR>');
document.writeln('						<TD vAlign="top" align="right">Room Size (in feet)?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD align="right" width="68">');
document.writeln('							<TABLE id="Table3" cellSpacing="1" cellPadding="1" STYLE="color:' + PSColor + '">');
document.writeln('								<TR>');
document.writeln('									<TD>Width:</TD>');
document.writeln('									<TD><INPUT id="Text4" type="text" maxLength="999" size="3" name="Width"></TD>');
document.writeln('								</TR>');
document.writeln('								<TR>');
document.writeln('									<TD>Depth:</TD>');
document.writeln('									<TD><INPUT id="Text6" type="text" maxLength="999" size="3" name="Depth"></TD>');
document.writeln('								</TR>');
document.writeln('								<TR>');
document.writeln('									<TD>Height:</TD>');
document.writeln('									<TD><INPUT id="Text8" type="text" maxLength="999" size="3" name="Height"></TD>');
document.writeln('								</TR>');
document.writeln('							</TABLE>');
document.writeln('						</TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD align="right">How many Watts of lighting?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><SELECT id="Select1" size="1" name="Lighting">');
document.writeln('								<OPTION value="Choose..." selected>Choose...</OPTION>');
document.writeln('								<OPTION value="1,000-3,000">1,000-3,000</OPTION>');
document.writeln('								<OPTION value="4,000-6,000">4,000-6,000</OPTION>');
document.writeln('								<OPTION value="7,000-8,000">7,000-8,000</OPTION>');
document.writeln('								<OPTION value="9,000">9,000</OPTION>');
document.writeln('								<OPTION value="10,000-11,000">10,000-11,000</OPTION>');
document.writeln('								<OPTION value="12,000">12,000</OPTION>');
document.writeln('								<OPTION value="13,000-15,000">13,000-15,000</OPTION>');
document.writeln('							</SELECT>');
document.writeln('						</TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD vAlign="top" align="right">Do you have R12 or better ');
document.writeln('							insulation?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><INPUT id="Checkbox1" type="checkbox" size="20" name="R12"></TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD vAlign="top" align="right">Do you burn CO2?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><INPUT id="Checkbox2" type="checkbox" name="CO2"></TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD align="right">Desired "On Cycle" room temperature?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><SELECT id="Select2" size="1" name="CycleTemp">');
document.writeln('								<OPTION value="Choose..." selected>Choose...</OPTION>');
document.writeln('								<OPTION value="72°F-76°F">72°F-76°F</OPTION>');
document.writeln('								<OPTION value="77°F-80°F">77°F-80°F</OPTION>');
document.writeln('								<OPTION value="81°F-85°F">81°F-85°F</OPTION>');
document.writeln('							</SELECT>');
document.writeln('						</TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD align="right">Average outdoor summer temperature?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><SELECT id="Select4" size="1" name="AvgTemp">');
document.writeln('								<OPTION value="Choose..." selected>Choose...</OPTION>');
document.writeln('								<OPTION value="Below 85°F">Below 85°F</OPTION>');
document.writeln('								<OPTION value="85°F - 100°F">85°F - 100°F</OPTION>');
document.writeln('								<OPTION value="Over 100°F">Over 100°F</OPTION>');
document.writeln('								<OPTION value=""></OPTION>');
document.writeln('							</SELECT></TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD align="right">City?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><INPUT id="Text2" type="text" name="City"></TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD align="right">State/Province?&nbsp;&nbsp;&nbsp;</TD>');
document.writeln('						<TD><SELECT id="Select3" size="1" name="StateProv">');
document.writeln('								<OPTION selected>Choose...</OPTION>');
document.writeln('								<OPTION>CANADA</OPTION>');
document.writeln('								<OPTION>Alberta</OPTION>');
document.writeln('								<OPTION>British Columbia</OPTION>');
document.writeln('								<OPTION>Saskatchewan</OPTION>');
document.writeln('								<OPTION>Manitoba</OPTION>');
document.writeln('								<OPTION>Ontario</OPTION>');
document.writeln('								<OPTION>Quebec</OPTION>');
document.writeln('								<OPTION>Newfoundland</OPTION>');
document.writeln('								<OPTION>New Brunswick</OPTION>');
document.writeln('								<OPTION>Nova Scotia</OPTION>');
document.writeln('								<OPTION>P.E.I.</OPTION>');
document.writeln('								<OPTION>Nortwest Territories</OPTION>');
document.writeln('								<OPTION>USA</OPTION>');
document.writeln('								<OPTION>Alabama</OPTION>');
document.writeln('								<OPTION>Alaska</OPTION>');
document.writeln('								<OPTION>Arizona</OPTION>');
document.writeln('								<OPTION>Arkansas</OPTION>');
document.writeln('								<OPTION>California</OPTION>');
document.writeln('								<OPTION>Colorado</OPTION>');
document.writeln('								<OPTION>Connecticut</OPTION>');
document.writeln('								<OPTION>Delaware</OPTION>');
document.writeln('								<OPTION>District of Columbia</OPTION>');
document.writeln('								<OPTION>Florida</OPTION>');
document.writeln('								<OPTION>Georgia</OPTION>');
document.writeln('								<OPTION>Hawaii</OPTION>');
document.writeln('								<OPTION>Idaho</OPTION>');
document.writeln('								<OPTION>Illinois</OPTION>');
document.writeln('								<OPTION>Indiana</OPTION>');
document.writeln('								<OPTION>Iowa</OPTION>');
document.writeln('								<OPTION>Kansas</OPTION>');
document.writeln('								<OPTION>Kentucky</OPTION>');
document.writeln('								<OPTION>Louisiana</OPTION>');
document.writeln('								<OPTION>Maine</OPTION>');
document.writeln('								<OPTION>Maryland</OPTION>');
document.writeln('								<OPTION>Massachusetts</OPTION>');
document.writeln('								<OPTION>Michigan</OPTION>');
document.writeln('								<OPTION>Minnesota</OPTION>');
document.writeln('								<OPTION>Mississippi</OPTION>');
document.writeln('								<OPTION>Missouri</OPTION>');
document.writeln('								<OPTION>Montana</OPTION>');
document.writeln('								<OPTION>Nebraska</OPTION>');
document.writeln('								<OPTION>Nevada</OPTION>');
document.writeln('								<OPTION>New Hampshire</OPTION>');
document.writeln('								<OPTION>New Jersey</OPTION>');
document.writeln('								<OPTION>New Mexico</OPTION>');
document.writeln('								<OPTION>New York</OPTION>');
document.writeln('								<OPTION>North Carolina</OPTION>');
document.writeln('								<OPTION>North Dakota</OPTION>');
document.writeln('								<OPTION>Ohio</OPTION>');
document.writeln('								<OPTION>Oklahoma</OPTION>');
document.writeln('								<OPTION>Oregon</OPTION>');
document.writeln('								<OPTION>Pennsylvania</OPTION>');
document.writeln('								<OPTION>Puerto Rico</OPTION>');
document.writeln('								<OPTION>South Carolina</OPTION>');
document.writeln('								<OPTION>South Dakota</OPTION>');
document.writeln('								<OPTION>Tennessee</OPTION>');
document.writeln('								<OPTION>Texas</OPTION>');
document.writeln('								<OPTION>Utah</OPTION>');
document.writeln('								<OPTION>Vermont</OPTION>');
document.writeln('								<OPTION>Verginia</OPTION>');
document.writeln('								<OPTION>Virgin Islands</OPTION>');
document.writeln('								<OPTION>Washinton</OPTION>');
document.writeln('								<OPTION>West Virginia</OPTION>');
document.writeln('								<OPTION>Wisconsin</OPTION>');
document.writeln('								<OPTION>Wyoming</OPTION>');
document.writeln('							</SELECT>');
document.writeln('						</TD>');
document.writeln('					</TR>');
document.writeln('					<TR>');
document.writeln('						<TD align="center" colSpan="2"><INPUT id="Button1" onclick="PScalc_unit()" type="button" value="Instantly Recommend Unit Size"');
document.writeln('								name="Recomend"><INPUT id="Hidden1" type="hidden" size="1" name="Recomendation"></TD>');
document.writeln('					</TR>');
document.writeln('				</TABLE>');
document.writeln('			</TD>');
document.writeln('		</TR>');
document.writeln('	</TABLE>');
document.writeln('	<\/script>');
document.writeln('</form>');