var country = Array(); country[38] = Array("66|Alberta","67|British Columbia","68|Manitoba","69|New Brunswick","70|Newfowndland","71|Northwest Territories","72|Nova Scotia","73|Nunavut","74|Ontario","75|Prince Edward Island","76|Quebec","77|Saskatchewan","78|Yukon"); country[226] = Array("1|Alaska","2|Alabama","3|American Samoa","4|Arizona","5|Arkansas","6|California","7|Colorado","8|Connecticut","9|Delaware","10|District of Columbia","11|Federated state of Micronesia","12|Florida","13|Georgia","14|Guam","15|Hawaii","16|Idaho","17|Illinois","18|Indiana","19|Iowa","20|Kansas","21|Kentucky","22|Louisiana","23|Maine","24|Marshall Islands","25|Maryland","26|Massachusetts","27|Michigan","28|Minnesota","29|Mississippi","30|Missouri","31|Montana","32|Nebraska","33|Nevada","34|New Hampshire","35|New Jersey","36|New Mexico","37|New York","38|North Carolina","39|North Dakota","40|Northern Mariana Islands","41|Ohio","42|Oklahoma","43|Oregon","44|Palau","45|Pennsylvania","46|Puerto Rico","47|Rhode Island","48|South Carolina","49|South Dakota","50|Tennessee","51|Texas","52|Utah","53|Vermont","54|Virgin Islands","55|Virginia","56|Washington","57|West Virginia","58|Wisconsin","59|Wyoming","60|Armed Forces Africa","61|Armed Forces Americas (except Canada)","62|Armed Forces Canada","63|Armed Forces Europe","64|Armed Forces Middle East","65|Armed Forces Pacific"); function showStates(countryId, prefix) { // Clear existing items while(document.getElementById(prefix+'state').options.length > 2) { document.getElementById(prefix+'state').options[document.getElementById(prefix+'state').options.length-1] = null; } if(country[countryId] && country[countryId].length > 0) { for(x=0;x<=country[countryId].length-1;x++) { tmp = country[countryId][x].split("|"); document.getElementById(prefix+'state').options[x+2] = new Option(tmp[1],tmp[0]); document.getElementById(prefix+'state').disabled = false; } } else { document.getElementById(prefix+'state').disabled = true; } } function selectState(stateId, prefix) { for(x=0;x<=document.getElementById(prefix+'state').options.length-1;x++) { if (stateId==document.getElementById(prefix+'state').options[x].value && stateId != '' && stateId != null) { document.getElementById(prefix+'state').selectedIndex = x; } } } var cat = Array(); cat[1] = Array("110|Relief Valves","111|Safety Valves","148|Safety Valve Accessories","167|Safety & Relief Valve Repair"); cat[2] = Array("120|Insert Check Valves","121|Housed Check Valves","122|Mini-Check Valves","123|Tubing Check Valve"); cat[7] = Array("150|Screwed and Flanged"); cat[43] = Array("136|Electric Thermostats","137|Radiator Valves","140|Radiant Heating Specialties","141|Differential Pressure Regulators","145|Thermic By-Pass Valves","169|Pump Controls","173|Miscellaneous"); cat[46] = Array("124|Linear Control Valves","125|Rotary Control Valves","126|3 Way Control Valves","127|On-Off Valves","128|Actuators and Positioners","129|Electro Pneumatic Controllers","130|Pneumatic Pilot Controllers","149|Noise Reduction Apparatus"); cat[56] = Array("175|Float Valve","176|Lever Valve"); cat[57] = Array("131|Self Acting Valves","132|Pilot Actuated Valves"); cat[59] = Array("174|Strainer"); cat[60] = Array("160|Steam Water Heaters"); cat[61] = Array("142|3 way mixing valves","143|4 way mixing valves","144|Motors","146|Thermostatic Mixing Valves","147|Tempering Valves","162|Thermic By-Pass"); cat[62] = Array("189|Bronze solenoid valves","190|Stainless Steel Solenoid Valves"); cat[66] = Array("158|Residential","159|Commercial"); cat[67] = Array("133|Pressure Regulators","134|Temperature Regulators","163|Draft Regulator"); cat[70] = Array("155|Set Point Control","191|Sequencing Control"); cat[72] = Array("156|Residential Controls","157|Commercial Controls"); cat[73] = Array("161|Air Whistles"); cat[74] = Array("164|Balancing valves"); cat[75] = Array("166|Test Stand"); cat[79] = Array("168|Safety & Relief Valve Repair"); cat[81] = Array("172|Pump Controls"); cat[85] = Array("181|Brass Ball Valves","182|Carbon Steel Ball Valves","183|Alloy Ball Valves","184|Iron Ball Valves","185|Stainless Steel Ball Valves"); function showSub(catId) { // Clear existing items while(document.getElementById('sub').options.length > 2) { document.getElementById('sub').options[document.getElementById('sub').options.length-1] = null; } if(cat[catId] && cat[catId].length > 0) { for(x=0;x<=cat[catId].length-1;x++) { tmp = cat[catId][x].split("|"); document.getElementById('sub').options[x+2] = new Option(tmp[1],tmp[0]); document.getElementById('sub').disabled = false; } } else { document.getElementById('sub').disabled = true; } } function selectSub(subId) { for(x=0;x<=document.getElementById('sub').options.length-1;x++) { if (subId==document.getElementById('sub').options[x].value && subId != '' && subId != null) { document.getElementById('sub').selectedIndex = x; } } }