var tradeSubCategories = new Array(new Array(),new Array('Advertising'),new Array('Food/Beverages','Landscaping','Production/Crops','Animal/Livestock'),new Array('Amusement and Entertainment'),new Array('Apparel & Accessories'),new Array('Supplies/Equipment','Repair Services','Dealers','Other','Rental /Leasing','Petroleum'),new Array('Other','Cleaning/Polishing Agents & Toiletries','Petroleum'),new Array('Cleaning/Polishing Agents & Toiletries'),new Array('Telephone','Other'),new Array('Computer Hardware/Software','Computer Services'),new Array('Supplies/Equipment','Electrical','Masonry, Stonework, Tile Setting, Plastering','Carpentry/ Floor Work','Plumbing/Heating/Refrigeration (HVAC)','Other','Roofing, Siding, And Sheet Metal Work','Concrete Work'),new Array('Supplies/Equipment','Construction'),new Array('Financial Services'),new Array('Food/Beverages'),new Array('Government Services'),new Array('Medical Services','Medical Supplies/ Equipment'),new Array('Industrial Supplies/Equipment'),new Array('Insurance Services'),new Array('Membership Organizations'),new Array('Petroleum','Used Merchandise','Publishing, Printing/Binding','Electronics','Other','Food/Beverages','Home Improvement','Office Supplies/Equipment','Computer Hardware/Software','Furnishing & Equipment'),new Array('Office Supplies/Equipment'),new Array('Photography'),new Array('Plumbing/Heating/Refrigeration (HVAC)'),new Array('Medical Services','Electrical','Legal Services','Publishing, Printing/Binding','Temp Help/ Staffing','Other','Education','Consulting','Vetinary services','Computer Services','Automotive','Construction','Cleaning/Polishing Agents & Toiletries'),new Array('Publishing, Printing/Binding','Printing Trade','Other'),new Array('Automotive','Other'),new Array('Electrical','Automotive','Furnishing & Equipment','Other','Computer Services'),new Array('Medical Services','Electrical','Petroleum','Metals','Publishing, Printing/Binding','Other','Food/Beverages','Home Improvement','Office Supplies/Equipment','Automotive','Construction','Computer Hardware/Software','Plumbing/Heating/Refrigeration (HVAC)','Medical Supplies/ Equipment','Industrial Supplies/Equipment'),new Array('Air','Freight/Moving/Storage','Railroads','Passenger','Other','Water'),new Array('Other','Telecommunications','Financial Services'),new Array('Electrical','Metals','Other','Automotive','Office Supplies/Equipment','Construction','Computer Hardware/Software','Plumbing/Heating/Refrigeration (HVAC)','Medical Supplies/ Equipment','Industrial Supplies/Equipment'),new Array('Publishing, Printing/Binding','Food/Beverages','Office Supplies/Equipment','Apparel & Accessories','Other','Medical Services','Chemicals','Petroleum')); function createHTMLOptionElement(text, value) { var option = document.createElement("option"); option.value = value; option.appendChild(document.createTextNode(text)) return option; } function populateTradeSubCategories(tradeCategoryDD) { subCategoryDD = document.getElementsByName('tradeSubCategory')[0]; var optionLength = subCategoryDD.length; for (i = 0; i < optionLength; i++) subCategoryDD.remove(0); var option = createHTMLOptionElement("Choose Industry Sub-Type", ""); subCategoryDD.appendChild(option); subCategoryDD.appendChild(option); for (i = 0; i < tradeSubCategories[tradeCategoryDD.selectedIndex].length; i++) { subIndustry = tradeSubCategories[tradeCategoryDD.selectedIndex][i]; option = createHTMLOptionElement(subIndustry, subIndustry); subCategoryDD.appendChild(option); } }