// JavaScript Document

//Set the available choices for application type based on the number input into Number of landings
function ChkMaxVal()
{
		if (parseFloat(document.forms[0].floors.value) >16){
			
				document.forms[0].DriveType.options.length = 0;
				document.forms[0].DriveType.options[0] = new Option("Baked Enamel", "Baked Enamel", false, false);
				document.forms[0].DriveType.options[1] = new Option("Stainless Steel, satin", "Stainless Steel, satin", false, false);
				document.forms[0].DriveType.options[2] = new Option("Stainless Steel, polished", "Stainless Steel, polished", false, false);
				document.forms[0].DriveType.options[3] = new Option("Bronze, satin", "Bronze, satin", false, false);
				document.forms[0].DriveType.options[4] = new Option("Bronze, polished", "Bronze, polished", false, false);
				document.forms[0].DriveType.options[5] = new Option("Aluminum", "Aluminum", false, false);
		}
		else if (parseFloat(document.forms[0].floors.value) <=16){
				document.forms[0].DriveType.options.length = 0;
				document.forms[0].DriveType.options[0] = new Option("Baked Enamel", "Baked Enamel", false, false);
				document.forms[0].DriveType.options[1] = new Option("Stainless Steel, satin", "Stainless Steel, satin", false, false);
				document.forms[0].DriveType.options[2] = new Option("Stainless Steel, polished", "Stainless Steel, polished", false, false);
				document.forms[0].DriveType.options[3] = new Option("Bronze, satin", "Bronze, satin", false, false);
				document.forms[0].DriveType.options[4] = new Option("Bronze, polished", "Bronze, polished", false, false);
				document.forms[0].DriveType.options[5] = new Option("Aluminum", "Aluminum", false, false);
		}
}
