catPrefix = "/Scripts/prodList.asp?idCategory=";
mfrPrefix = "/Scripts/prodList.asp?idMfr=";

aMfrNames =       new Array("Select a Link",
                     "A. R. Lintern",
                     "Ace Rubber", 
                     "Aeroflash Signal",
                     "Auto-Jet Muffler",
                     "Baader Brown",
                     "Beams",
                     "Besi Mfg",
                     "Bluebird",
                     "Braun",
                     "C. E. White Company",
                     "Carpenter",
                     "Certified Safety Training",
                     "Champion",
                     "Collins",
                     "CRS Electronics",
                     "Custom Radio Corp",
                     "E-Z-On Products Inc.",
                     "Evans Tempcon",
                     "Forest River (StarTrans)",
                     "Formax Industries",
                     "Freedman Seating",
                     "General Coach",
                     "Goshen Coach",
                     "Hehr International",
                     "Hydro Aluminum Wells",
                     "In-Power",
                     "Insta-Chain",
                     "International/Amtran/Ward",
                     "Kidde Safety",
                     "Lighting Products",
                     "Luminator",
                     "Maxxima",
                     "Mid Bus",
                     "Midland Brake",
                     "Mirrorlite",
                     "Mobile Conversions",
                     "Nabson-Tubecraft",
                     "Prime Industries",
                     "Pro Air",
                     "Q-Straint",
                     "Radio Engineering Inc.",
                     "RCA Rubber",
                     "Ricon",
                     "Rifled Air Conditioning",
                     "Rosco",
                     "Silent Witness USA",
                     "Solar Graphics",
                     "Specialty Manufacturing",
                     "Sperry Rubber & Plastics",
                     "Star Headlight & Lantern",
                     "Sure-Lok/Kinedyne",
                     "Terra Transit(Turtle Top)",
                     "Thomas",
                     "Trans Air",
                     "Transpec Worldwide",
                     "Triad Fabco",
                     "Trombetta Electromagnetics",
                     "UNI Grip",
                     "US Bus",
                     "Wayne",
                     "Weldon",
                     "Westerfille Fire Safety");
   
   aMfrValues =      new Array("#",mfrPrefix+"60",
                    mfrPrefix+"3",
                    mfrPrefix+"55",
                    mfrPrefix+"4",
                    mfrPrefix+"65",
                    mfrPrefix+"5",
                    mfrPrefix+"64",
                    mfrPrefix+"6",
                    mfrPrefix+"7",
                    mfrPrefix+"1",
                    mfrPrefix+"53",
                    mfrPrefix+"9",
                    mfrPrefix+"63",
                    mfrPrefix+"62",
                    mfrPrefix+"10",
                    mfrPrefix+"11",
                    mfrPrefix+"67",
                    mfrPrefix+"13",
                    mfrPrefix+"14",
                    mfrPrefix+"16",
                    mfrPrefix+"17",
                    mfrPrefix+"61",
                    mfrPrefix+"18",
                    mfrPrefix+"19",
                    mfrPrefix+"20",
                    mfrPrefix+"21",
                    mfrPrefix+"22",
                    mfrPrefix+"59",
                    mfrPrefix+"23",
                    mfrPrefix+"24",
                    mfrPrefix+"25",
                    mfrPrefix+"26",
                    mfrPrefix+"52",
                    mfrPrefix+"27",
                    mfrPrefix+"28",
                    mfrPrefix+"29",
                    mfrPrefix+"30",
                    mfrPrefix+"31",
                    mfrPrefix+"32",
                    mfrPrefix+"33",
                    mfrPrefix+"66",
                    mfrPrefix+"34",
                    mfrPrefix+"35",
                    mfrPrefix+"36",
                    mfrPrefix+"38",
                    mfrPrefix+"39",
                    mfrPrefix+"2",
                    mfrPrefix+"40",
                    mfrPrefix+"41",
                    mfrPrefix+"42",
                    mfrPrefix+"56",
                    mfrPrefix+"15",
                    mfrPrefix+"43",
                    mfrPrefix+"46",
                    mfrPrefix+"47",
                    mfrPrefix+"48",
                    mfrPrefix+"45",
                    mfrPrefix+"49",
                    mfrPrefix+"57",
                    mfrPrefix+"54",
                    mfrPrefix+"50",
                    mfrPrefix+"51" );

aCategoryNames = new Array("Select a Category",
                  "Body Components",
                  " > Body Doors", 
                  " > Miscellaneous Components",
                  " > Transit Signs",
                  "Chassis Components",
                  " > Exhaust Components",
                  " > Miscellaneous Components",
                  "Decals & Marking Products",
                  "Electrical",
                  " > Connectors & Misc.",
                  " > Flashers & Relays",
                  " > Radios & P.A. Equipment",
                  " > Solenoids",
                  " > Video & Surveillance",
                  "Floor Coverings",
                  "Glass",
                  "Handles & Latches",
                  "HVAC",
                  " > Air Conditioning",
                  " > Heaters & Vents",
                  "Lights & Lenses",
                  "Mirrors & Visors",
                  "Miscellaneous",
                  "Mobility Equipment",
                  " > Lift Assemblies",
                  " > Lift Parts",
                  " > W/C Tie Downs, Straps",
                  "Motors, Pumps, Valves",
                  "Roof Hatches",
                  "Safety & Emergency Equip.",
                  " > Crossing Gates",
                  " > Fire Extinguishers",
                  " > First Aid Kits",
                  " > Flags, Flares & Fusees",
                  " > Other",
                  " > Stop Arms",
                  "Seats, Upholstery & Restraints",
                  "Switches",
                  "Windshield Wipers");

aCategoryValues = new Array("#",
                  catPrefix+"14",catPrefix+"22",
                  catPrefix+"43",catPrefix+"41",
                  catPrefix+"15",catPrefix+"23",
                  catPrefix+"42",catPrefix+"12",
                  catPrefix+"3",catPrefix+"34",
                  catPrefix+"33",catPrefix+"19",
                  catPrefix+"32",catPrefix+"20",
                  catPrefix+"10",catPrefix+"7",
                  catPrefix+"8",catPrefix+"4",
                  catPrefix+"40",catPrefix+"39",
                  catPrefix+"2",catPrefix+"6",
                  catPrefix+"18",catPrefix+"16",
                  catPrefix+"35",catPrefix+"36",
                  catPrefix+"38",catPrefix+"17",
                  catPrefix+"13",catPrefix+"11",
                  catPrefix+"31",catPrefix+"28",
                  catPrefix+"27",catPrefix+"29",
                  catPrefix+"30",catPrefix+"21",
                  catPrefix+"9",catPrefix+"37",
                  catPrefix+"5");
                    
function setupPage() {
   // populate the SelectByCategory select box
   categoryList = document.getElementById("SelectByCategory");
   mfrList = document.getElementById("SelectByMfr");
   
   var i;

   // create the options for categories
   for( i = 0; i < aCategoryNames.length; i++ ) {
      categoryList.options[i] = new Option(aCategoryNames[i],aCategoryValues[i]);
   }
   // create the options for manufacturers
   for( i = 0; i < aMfrNames.length; i++ ) {
      mfrList.options[i] = new Option(aMfrNames[i],aMfrValues[i]);
   }
   
}

function ChangePage(vBox){
   this.location=vBox.value;
}
