// Generation started: 06/10/2008 23:37:56 /* // ListersGroup.co.uk 2005 (v5) // QuickSearch Javascript */ function qsUpdateModels(selMake, selModel) { selModel.disabled = selMake[selMake.selectedIndex].value == ""; } var addQuickSearchScript = function() { var qsMakes = document.getElementById(qsMakesID); var qsModels = document.getElementById(qsModelsID); qsMakes.onchange = function() { var qsMakes = document.getElementById(qsMakesID); var qsModels = document.getElementById(qsModelsID); if (qsMakes[qsMakes.selectedIndex].value != "") { qsModels.disabled = false; var MakeIndex = qsMakes.selectedIndex-1; qsModels.options.length = 0; for (var i = 0; i < arrQsModels[MakeIndex].length; i++) { var Model = arrQsModels[MakeIndex][i]; var optNew = new Option(); optNew.text = Model; if (Model.indexOf("Any ") == 0) { optNew.value = ""; } else if (Model.lastIndexOf(" (") >= 0) { optNew.value = Model.substr(0, Model.lastIndexOf(" (")); } else { optNew.value = Model; } qsModels.options.length ++; qsModels.options[qsModels.options.length - 1] = optNew; } } else { qsModels.options.length = 0; var optAdvice = new Option(); optAdvice.text = "Select a Manufacturer first."; optAdvice.className = "NotSelectable"; optAdvice.value = ""; optAdvice.disabled = true; qsModels.options.length ++; qsModels.options[0] = optAdvice; qsModels.disabled = true; } } qsMakes.onchange(); } var qsMakesCheck = function() { var qsMakes = document.getElementById(qsMakesID); var qsModels = document.getElementById(qsModelsID); if (qsMakes[qsMakes.selectedIndex].value != "") { qsModels.disabled = false; var MakeIndex = qsMakes[qsMakes.selectedIndex].value.split(":")[1] - 0; qsModels.options.length = 0; for (var i = 0; i < arrQsModels[MakeIndex].length; i++) { var Make = arrQsModels[MakeIndex][i].split(":")[0]; var MakeID = arrQsModels[MakeIndex][i].split(":")[1]; var optNew = new Option(); optNew.text = Make; optNew.value = Make + ":" + MakeID; qsModels.options.length ++; qsModels.options[qsModels.options.length - 1] = optNew; } } else { qsModels.options.length = 0; var optAdvice = new Option(); optAdvice.text = "Select a Manufacturer first."; optAdvice.className = "NotSelectable"; optAdvice.value = ""; optAdvice.disabled = true; qsModels.options.length ++; qsModels.options[0] = optAdvice; qsModels.disabled = true; } } /* // QuickSearch Data // Automatically Generated on 06/10/2008 23:37:56 // Do not change any double square bracketed comments */ var arrQsModels = new Array( new Array("Any Aston Martin (1)", "Vantage (1)"), new Array("Any Audi (475)", "A2 (1)", "A3 (105)", "A4 (66)", "A4 Avant (58)", "A4 Cabriolet (33)", "A5 (8)", "A6 (49)", "A6 Avant (32)", "A8 (15)", "Allroad (7)", "Q7 (24)", "R8 (4)", "RS4 (8)", "RS4 Cabriolet (1)", "RS6 (4)", "S3 (2)", "S4 (3)", "S4 Cabriolet (2)", "S5 (2)", "S6 (1)", "S6 Avant (1)", "S8 (3)", "TT (46)"), new Array("Any Bentley (1)", "Arnage (1)"), new Array("Any BMW (162)", "1 Series (27)", "3 Series (67)", "5 Series (23)", "6 Series (7)", "7 Series (1)", "M3 (8)", "M5 (1)", "X3 (7)", "X5 (9)", "X6 (2)", "Z3 (1)", "Z4 (9)"), new Array("Any Chrysler (27)", "300C (6)", "Crossfire (3)", "Grand Voyager (5)", "PT Cruiser (5)", "Sebring (1)", "Voyager (7)"), new Array("Any Citroen (5)", "C2 (2)", "C3 (1)", "Xsara Picasso (2)"), new Array("Any Dodge (12)", "Caliber (9)", "Nitro (3)"), new Array("Any Ford (14)", "Fiesta (2)", "Focus (8)", "Mondeo (4)"), new Array("Any Honda (432)", "Accord (56)", "Civic (179)", "CR-V (57)", "FR-V (15)", "Jazz (104)", "Legend (3)", "NSX (1)", "S2000 (17)"), new Array("Any Hyundai (1)", "Tucson (1)"), new Array("Any Jaguar (6)", "S-Type (2)", "XK (1)", "X-Type (3)"), new Array("Any Jeep (23)", "Cherokee (9)", "Commander (1)", "Compass (1)", "Grand Cherokee (9)", "Patriot (2)", "Wrangler (1)"), new Array("Any Kia (5)", "Ceed (1)", "Cerato (1)", "Sedona (1)", "Sorento (1)", "Sportage (1)"), new Array("Any Land Rover (11)", "Discovery (2)", "Freelander (4)", "Range Rover (1)", "Range Rover Sport (4)"), new Array("Any Lexus (149)", "GS (19)", "IS (79)", "LS (5)", "RX (44)", "SC (2)"), new Array("Any Mazda (4)", "MX-5 (3)", "RX-8 (1)"), new Array("Any Mercedes-Benz (416)", "A Class (61)", "B Class (31)", "C Class (126)", "CL (15)", "CLC (3)", "CLK (24)", "CLS (15)", "E Class (63)", "GL Class (1)", "M Class (32)", "R Class (8)", "S Class (4)", "SL Class (14)", "SL Series (1)", "SLK (17)", "Vito (1)"), new Array("Any MG (1)", "ZT (1)"), new Array("Any Mini (30)", "Cooper (10)", "Cooper Clubman (5)", "Cooper S (7)", "Cooper S Clubman (3)", "One (5)"), new Array("Any Mitsubishi (4)", "L200 (1)", "Shogun (2)", "Shogun Sport (1)"), new Array("Any Nissan (6)", "Navara (3)", "Note (1)", "Pathfinder (1)", "X-Trail (1)"), new Array("Any Peugeot (7)", "207 (2)", "307 (3)", "407 (2)"), new Array("Any Porsche (4)", "911 [997] (1)", "Boxster (2)", "Cayman (1)"), new Array("Any Renault (4)", "Clio (1)", "Laguna (1)", "Megane (1)", "Megane Scenic (1)"), new Array("Any Saab (5)", "9-3 (4)", "9-5 (1)"), new Array("Any SEAT (85)", "Alhambra (4)", "Altea (12)", "Ibiza (18)", "Leon (50)", "Toledo (1)"), new Array("Any Skoda (3)", "Superb (3)"), new Array("Any Smart (20)", "Forfour Hatchback (1)", "Fortwo Cabrio (10)", "Fortwo Coupe (8)", "Roadster (1)"), new Array("Any Subaru (2)", "Impreza (2)"), new Array("Any Toyota (453)", "Auris (74)", "Avensis (68)", "Aygo (40)", "Celica (3)", "Corolla (28)", "Corolla Verso (42)", "Dyna (1)", "Hiace (4)", "Hilux (7)", "Landcruiser (18)", "Landcruiser Amazon (2)", "MR2 (4)", "Prius (24)", "RAV4 (68)", "Yaris (68)", "Yaris Verso (2)"), new Array("Any Vauxhall (6)", "Astra (5)", "Zafira (1)"), new Array("Any Volkswagen (663)", "Beetle (15)", "Bora (8)", "Caddy (17)", "California (1)", "Caravelle (4)", "Crafter (18)", "Eos (18)", "Fox (12)", "Golf (213)", "Golf Plus (42)", "Jetta (19)", "LT (3)", "Passat (78)", "Passat CC (7)", "Phaeton (4)", "Polo (67)", "Scirocco (3)", "Sharan (3)", "Tiguan (14)", "Touareg (42)", "Touran (24)", "Transporter (51)"), new Array("Any Volvo (7)", "C30 (1)", "S40 (1)", "S60 (1)", "S60 R (1)", "V70 (1)", "XC70 (1)", "XC90 (1)") ); function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } addLoadEvent(addQuickSearchScript); // Generation ended: 06/10/2008 23:37:56