SUBS_1 = [['','-----------------------'], ['215', 'Bed and Breakfast'], ['217', 'Hotels and Inns'], ['218', 'Motels and Resorts'], ['219', 'Suites and Apartments']]; SUBS_7 = [['','-----------------------'], ['300', 'Bars and Pubs'], ['306', 'Breakfast Spots'], ['303', 'Casual Dining'], ['308', 'Coffee and Tea'], ['305', 'Fine Dining'], ['307', 'Ice Cream'], ['304', 'Patio Dining'], ['295', 'Picnic Supplies'], ['495', 'Pizza'], ['299', 'Take-Out'], ['297', 'Taverns']]; SUBS_22 = [['','-----------------------'], ['408', 'Antiques & Collectibles'], ['192', 'Art Galleries'], ['185', 'Books and Periodicals'], ['176', 'Bridal Wear'], ['145', 'Craft & Art Supplies'], ['181', 'Fabric Shops'], ['504', 'Food & Groceries'], ['182', 'Furniture'], ['150', 'Gardening'], ['335', 'Gifts'], ['161', 'Hobby, Toys & Games'], ['137', 'Home Electronics'], ['151', 'Interior Décor Sales'], ['153', 'Jewellery'], ['440', 'Kitchens'], ['155', 'Lingerie'], ['156', 'Men\'s Fashions'], ['158', 'Music'], ['147', 'Pet Shops'], ['173', 'Photography'], ['503', 'Specialty'], ['31', 'Specialty Foods'], ['162', 'Women\'s Fashions']]; SUBS_3 = [['','-----------------------'], ['238', 'Exhibitions'], ['502', 'Festivals'], ['239', 'Lecture Series'], ['240', 'Museums'], ['519', 'Psychic Fairs'], ['236', 'Public Art Galleries'], ['237', 'Theatres'], ['242', 'Tours'], ['243', 'Towns & Villages']]; SUBS_12 = [['','-----------------------'], ['33', 'Baked Goods'], ['38', 'Beer, Wine & Spirits'], ['29', 'Candy & Chocolate'], ['510', 'Cheese & Dairy'], ['27', 'Farms'], ['512', 'Fruits & Vegetables'], ['34', 'Markets'], ['36', 'Meats & Deli'], ['514', 'Teas & Coffees']]; SUBS_25 = [['','-----------------------'], ['406', 'Air Travel'], ['411', 'Bus']]; SUBS_27 = [['','-----------------------'], ['216', 'Camping']]; SUBS_15 = [['','-----------------------'], ['93', 'Library'], ['94', 'Local History'], ['95', 'Visitor Information']]; SUBS_21 = [['','-----------------------'], ['325', 'Boat Rental'], ['520', 'Fishing'], ['322', 'Golf Courses'], ['521', 'Outdoor Activities'], ['507', 'Performers and Entertainers'], ['330', 'Swimming']]; SUBS_2 = [['','-----------------------'], ['235', 'Painters'], ['508', 'Photographers']]; SUBS_17 = [['','-----------------------'], ['109', 'Spas']]; SUBS_16 = [['','-----------------------'], ['98', 'Radio']]; SUBS_8 = [['','-----------------------'], ['505', 'Art Schools'], ['319', 'Cooking Classes'], ['506', 'Theatre Schools']]; SUBS_9 = [['','-----------------------'], ['18', 'Hospitals & Emergency Services'], ['17', 'Police']]; SUBS_19 = [['','-----------------------'], ['118', 'Insurance Brokers & Agents'], ['128', 'Photographers']]; SUBS_23 = [['','-----------------------'], ['197', 'Associations'], ['199', 'Organizations'], ['200', 'Service Clubs'], ['195', 'Societies'], ['194', 'Sports Clubs & Associations']]; SUBS_26 = [['','-----------------------'], ['407', 'Anglican'], ['409', 'Associated Gospel Church'], ['410', 'Baptist'], ['413', 'Christian'], ['435', 'Jehovah\'s Witnesses'], ['517', 'Judaism'], ['455', 'Lutheran'], ['460', 'Mennonite'], ['518', 'Muslim'], ['480', 'Presbyterian'], ['485', 'Roman Catholic'], ['400', 'United']]; SUBS_11 = [['','-----------------------'], ['20', 'Financial Planners'], ['24', 'Tax Preparation']]; SUBS_18 = [['','-----------------------'], ['42', 'Massage Therapy']]; var opval = ""; var flag=false; function popMenu() { if (document.form1) { var ops = document.form1.ypcat; var testval = document.form1.ypcatval.value; var cat = document.form1.cat; var val = cat.options[cat.selectedIndex].value; if (val!="") { if (document.all) for (i=ops.options.length; i>=0; i--) ops.options.remove(i); else for (i=ops.options.length; i>=0; i--) ops.remove(i); var opArray = "SUBS_"+val; //alert(opArray); for (x=0; x < eval(opArray).length; x++) { var myval = eval(opArray)[x][0]; var mytext = eval(opArray)[x][1]; op = document.createElement("OPTION"); if (document.all) ops.options.add(op,x); else ops.add(op,null); op.value = myval; op.text = mytext; } if (testval!="") { for (x=0;x<=ops.options.length;x++) { if (ops.options[x]&&ops.options[x].value==testval) { flag=true; break; } } } } if (flag) ops.options[x].selected=true; else ops.options[0].selected=true; } }