var srch_cat_name = {
'qna' : ['Business Opportunities' , 'Buying a Business' , 'Closing a Business' , 'Ecommerce' , 'Financing' , 'General work tasks' , 'How to start my own business' , 'Human resources' , 'Legal' , 'Management' , 'Marketing' , 'Networking' , 'Taxes' , 'Technology' , 'etc.' ],
'bizdoc' : ['Business Opportunities' , 'Buying a Business' , 'Closing a Business' , 'Ecommerce' , 'Financing' , 'General work tasks' , 'How to start my own business' , 'Human resources' , 'Legal' , 'Management' , 'Marketing' , 'Networking' , 'Taxes' , 'Technology' , 'etc.' ],
'bizform' : ['Accounting and Reporting' , 'Business Finance' , 'Business Management' , 'Business Travel and Maps' , 'Calendars' , 'Charts and Diagrams' , 'Cover Letters' , 'Human Resources' , 'Interview Letters and Tools' , 'Job Offer Responses' , 'Job Search Letters and Tools' , 'Labels' , 'Legal' , 'Letters to Management' , 'Marketing' , 'Manufacturing, Orders, and Inventory' , 'Meetings and Projects' , 'Planners and Schedules' , 'References and Recommendations' , 'Resumes' , 'Sales' , 'SBA forms' , 'Stationary' , 'TAX' , 'Training' ],
'bizinfo' : ['Biz Opportunities' , 'Biz Plan' , 'Biz Structures' , 'Buying a Biz' , 'Buying a Franchise' , 'Closing a Biz' , 'Ecommerce' , 'Employees' , 'Financing' , 'General work tasks' , 'Hiring' , 'How to start my own biz' , 'Human resources' , 'Legal' , 'Management' , 'Marketing' , 'Networking' , 'Risk management' , 'Taxes' , 'Technology' ],
'classified' : ['Jobs, Project' , 'Offer Service' , 'Want Category' , 'Community Event' , 'Commercial Rent' , 'Sales Biz' , 'Biz Supplies' ],
'bizdir' : ['Advertising' , 'Animals' , 'Antiques and Collectibles' , 'Apparel' , 'Architecture' , 'Automotive' , 'Boats' , 'Books' , 'Children' , 'Cleaning' , 'Communications/Networking' , 'Computers' , 'Construction' , 'Consulting' , 'Designers' , 'Disabilities' , 'Education' , 'Event Planning' , 'Farming' , 'Film Making' , 'Financial Services' , 'Food and Beverage' , 'Health Care' , 'Home and Garden' , 'Hospitality' , 'Imaging' , 'Information Services' , 'Insurance' , 'Internet' , 'Investigative Services' , 'Landscaping and Gardening' , 'Law' , 'Manufacturing' , 'Marketing' , 'Media Production' , 'Music' , 'News and Media' , 'Office Supplies and Equipment' , 'Packaging' , 'Photography' , 'Printing' , 'Radio' , 'Real estate' , 'Research and Development' , 'Retail Management' , 'Security' , 'Shipping' , 'Signage' , 'Speakers' , 'Sports' , 'Stores/Shops' , 'Suppliers' , 'Telecommunications' , 'Textiles' , 'Translation Services' , 'Travel' , 'Utilities' , 'Weather' , 'Wholesalers' , 'Writing and Editing' ]
}
var srch_cat_code = {
'qna' : ['769', '770', '771', '772', '773', '774', '775', '776', '777', '778', '779', '780', '781', '782', '783'],
'bizdoc' : ['555', '556', '557', '558', '559', '560', '561', '562', '563', '564', '565', '566', '567', '568', '784'],
'bizform' : ['448', '449', '450', '451', '452', '453', '454', '455', '456', '457', '458', '459', '460', '461', '462', '463', '464', '465', '466', '467', '468', '469', '470', '471', '472'],
'bizinfo' : ['129', '147', '1239', '1240', '1241', '1242', '1243', '1244', '1245', '1246', '1256', '1257', '1258', '1259', '1260', '1261', '1262', '1263', '1264', '1265'],
'classified' : ['2091', '2092', '2093', '2094', '2095', '2096', '2097'],
'bizdir' : ['1553', '1554', '1555', '1556', '1557', '1558', '1559', '1560', '1561', '1562', '1563', '1564', '1565', '1566', '1567', '1568', '1569', '1570', '1571', '1572', '1573', '1574', '1576', '1577', '1578', '1579', '1580', '1581', '1582', '1583', '1584', '1585', '1586', '1587', '1588', '1589', '1590', '1591', '1592', '1593', '1594', '1595', '1596', '1597', '1598', '1599', '1600', '1601', '1602', '1603', '1604', '1605', '1606', '1607', '1608', '1609', '1610', '1611', '1612', '1613']
}

function changeSearchCategory(svcmenu, catmenu) {
   catmenu.options.length = 0;
   catmenu.options[0] = new Option("== All Categories ==","");
   if (svcmenu.selectedIndex != -1 && svcmenu.selectedIndex != 0) {
     var menu1 = svcmenu.options[svcmenu.selectedIndex].value;

     var menu2_opts = srch_cat_name[menu1];
     var menu2_keys = srch_cat_code[menu1]; 
     for (var c in menu2_opts) {
	      catmenu.options[catmenu.options.length] = new Option(menu2_opts[c], menu2_keys[c]);
     }
   }
}

	
