// Note: These arrays could be created dynamically
arrAluminum = ["None","Anodize Clear", "Anodize Silver", "Anodize Black", "Anodize Red", "Anodize Green", "Anodize Blue", "Cadium", "Zinc","Other"]
arrMostMetals = ["None","Cadium","Zinc","Nickel","Tin","Black Oxide","Chrome","Other"]
arrStainlessSteel = ["None","Passivate","Cadium","Zinc","Nickel","Tin","Black Oxide","Chrome","Other"]
arrSpringSteel = ["None", "Black Oxide", "Cadium","Nickel","Phosphate","Tin","Zinc"]
arrNone = ["None"]
arrFibre=["None","Black","Red","Other"]
arrNylon=["None","Dye Black","Dye Red", "Dye Green","Dye Blue","Dye Brown","Other"]
arrAllTypes=["None","Anodize Clear", "Anodize Silver", "Anodize Black", "Anodize Red", "Anodize Green", "Anodize Blue", "Cadium", "Zinc","Nickel","Tin","Black Oxide","Chrome","Passivate","Black","Red","Dye Black","Dye Red", "Dye Green","Dye Blue","Dye Brown","Other"]
arrMaterial=[arrAluminum, arrMostMetals, arrStainlessSteel, arrSpringSteel, arrNone, arrFibre, arrNylon, arrAllTypes]
//arrMaterial=[arrAluminum=0, arrMostMetals=1, arrStainlessSteel=2, arrSpringSteel=3, arrNone=4, arrFibre=5, arrNylon=6, arrAllTypes7]
function handleChange(newDisplay, el)
{ 	
	if(el.value == "Other"){
		alert("Please enter the material that you would like under Other Requirements.")
	}
		
	PlatingSelect = document.form.Plating
	
	//clear Platings from drop down box
	for (i = PlatingSelect.length; i > 0; i--)
	{
		PlatingSelect.options[i-1] = null
	}
	PlatingSelect.options[0] = new Option("Choose Plating",-1)
		
		if (newDisplay >= 0)
		{
			NumEntries = arrMaterial[newDisplay].length
			for (i = 1; i <= NumEntries; i++)
			{
				PlatingSelect.options[i] = new Option((arrMaterial[newDisplay])[i-1],(arrMaterial[newDisplay])[i-1])
			}
		}
	PlatingSelect.selectedIndex = 0
	PlatingSelect.focus()
}

function metallicDisabled(){
	document.form.NonMetallic.disabled= false; 
	document.form.Metallic.disabled = true; 
	document.form.Metallic.value="-1"
}

function nonMetallicDisabled(){
	document.form.Metallic.disabled=false; 
	document.form.NonMetallic.disabled = true;
	document.form.NonMetallic.value="-1"
}