m_0 = ''; m_384='2883|350Z|2827|Frontier|2769|Murano|1879|Pathfinder|1881|Terrano II|2914|TIIDA|2696|X-Terra|2720|X-Trail|'; m_361='1722|A3|1723|A4|1724|A4 Avant|1725|A6|1729|A8|2573|Allroad|2832|Q7|2574|RS4|2200|S4|1730|TT|'; m_376='1827|S-Type|2842|XJ series|2782|X-Type|'; m_368='2590|Ram|'; m_391='2677|Fun|1931|Grand Vitara|2152|Swift|'; m_383='1872|L200|1865|Lancer|1870|Montero|2736|Outlander|'; m_362='2850|M6|2739|Series 1|1735|Series 3|1733|Series 5|2246|Series 6|1734|Series 7|2723|X3|2219|X5|2726|Z4|'; m_375='2049|Daily|'; m_367='1768|Mira|1758|Move|1772|Rocky|1769|Sirion|1771|Terios|'; m_390='1916|9-3|1917|9-5|'; m_474='2712|H2|2810|H3|'; m_382='1851|A-class|2815|B-Class|2433|C-Class|2757|CLK 350|2642|CLK 500|2759|CLS-Class|1853|E-Class|2097|M-Class|1854|S-Class|2179|SL-Class|1858|SLK-Class|1862|Sprinter|1861|Viano|'; m_363='1738|Astra|2752|Avalanche|1739|Blazer|2916|Captiva|1737|Corsa|2221|Corvette |2673|Meriva|1741|S-10|1744|Vectra|2577|Zafira|'; m_413='2192|Sumo|2360|Telcoline|'; m_458='2572|Musso|2727|Rexton|'; m_389='2601|25|2600|45|2602|75|'; m_381='1846|323|1849|626|1848|B-2500|2588|B-2900|1847|MPV|'; m_373='1806|Accord|1804|Civic|1805|CR-V|2674|Fit|2585|HR-V|2030|Legend|2586|Stream|'; m_364='2823|300 C|1749|Caravan|2822|Crossfire|1750|Grand Caravan|2578|PT Cruiser|'; m_388='1901|Clio|1905|Kangoo|1903|Kangoo Express|1907|Laguna|2872|Logan|1911|Master|1902|Megane|2920|Sandero|1908|Scenic|1900|Twingo|'; m_396='2870|C30|1952|S40|2635|S60|1956|S80|1953|V40|2802|V50|1955|V70|2548|XC70|236|XC90|'; m_380='1845|3200 GT|1844|Quattroporte Evoluzione|'; m_365='1752|Berlingo|2667|C3|2860|C4|2633|C5|1755|Jumper|2579|Xsara Picasso|'; m_372='1808|Accent|1807|Atos|1810|Coupe|1813|Elantra|1803|Galloper|1814|H-1|1811|H100|2382|HD|2921|i30|2597|Matrix|2575|Santa Fe|1812|Sonata|2695|Terracan|2587|Trajet|2743|Tucson|'; m_487='2755|LS430|'; m_395='2201|Beetle|2556|Bora|1945|Caddy|2772|Crossfox|2711|Fox|1950|Gol|1947|Golf|1948|Passat|2629|Polo|2373|Santana|1944|Saveiro|2539|Sharan|2816|Suran|2714|Touareg|2803|Vento|'; m_379='1840|Defender|1842|Discovery|1841|Freelander|1843|Range Rover|2828|Sport|'; m_371='1795|Courier|2664|EcoSport|1792|F-100|1798|Fiesta|2744|Fiesta Max|1793|Focus|1799|Ka|1794|Mondeo|2232|Mustang|1797|Ranger|2924|S-Max|'; m_366='1765|Damas|1757|Korando|2277|Labo|1759|Lanos|1764|Leganza|1763|Matiz|1756|Musso|1760|Nubira|2582|Tacuma|'; m_465='2694|Cooper|'; m_386='1896|911|1891|Boxster|2706|Cayenne|2884|Cayman|'; m_394='2900|Avensis|1935|Camry|1940|Corolla|1939|Hilux|2670|Hilux SW4|2918|Land Cruiser|1938|Landcruiser 100|1937|RAV4|'; m_378='2504|Carens|1838|Carnival|2780|Cerato|1837|Grand Sportage|2838|K-2700|2637|Magentis|2928|Opirus|2834|Picanto|1839|Pregio|2923|Rondo|2672|Sorento|1834|Sportage|'; m_359='2643|147|2847|159|2854|Brera|2781|GT|1715|Spider|'; m_370='1791|Ducato|1787|Fiorino|2774|Idea|1790|Marea|1782|Palio|2420|Punto|1781|Siena|2716|Stilo|1788|Strada|1779|Uno|'; m_385='1893|206|2594|307|2741|407|2231|607|2699|807|1895|Boxer|2207|Expert|1894|Partner|'; m_393='1929|Forester|1925|Impreza|2149|Legacy|1928|Outback|'; m_377='1829|Cherokee|2864|Compass|1828|Grand Cherokee|1830|Wrangler|'; m_369='1776|360|1778|456m|1775|550 Maranello|'; m_392='2885|Altea|1924|Cordoba|1921|Ibiza|2239|Leon|1922|Toledo|'; m_416='2797|Phantom|'; //var NetscapeBrowser = (! document.all); //Funciones OnChange function cmbMarcas_onchange(which) { CargaCombo( '0|(Todos)|' + eval('m_' + which.value), document.frm.id_modelo, false, 0) ; document.cookie = "id_marca=" + which.value; } function cmbModelos_onchange(which) { document.cookie = "id_modelo=" + which.value; } //Cookies function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } //Funciones de Carga function CargaCombo( lista, combo, anos, valorDefault ){ var oItem ; var vItems ; var row ; var texto var valor ; var largo ; var original ; var indice = 0 ; var seleccionado ; /*if( NetscapeBrowser ) { CargaComboNS( lista, combo, anos, valorDefault ) ; return ; }*/ combo.length = 0 vItems = lista.split( "|") ; if( !anos ) { largo = vItems.length - 2 ; } else { largo = vItems.length - 1 ; } for (row = 0 ; row <= largo ; row++ ) { valor = vItems[ row ] ; if( vItems[ row ] == '0 KM' && anos ) valor = 0 ; if( row == 0 ) { original = valor ; } if( !anos ) { row++ ; } texto = vItems[ row ] ; seleccionado = false ; if( valorDefault != null && valor == valorDefault ) { seleccionado = true ; } oItem = new Option( texto, valor,seleccionado ) ; combo.options[indice] = oItem ; indice++ ; } if ( combo.selectedIndex == -1 ) combo.selectedIndex = 0 } function getValue( combo ) { var i for( i = 0; i < combo.length ; i++ ) { if( combo.options[i].selected == true ) { return combo.options[i].value } } return '' } function getText( combo ) { var i for( i = 0; i < combo.length ; i++ ) { if( combo.options[i].selected == true ) { return combo.options[i].text } } return '' } function CargaComboNS( lista, combo, anos, valorDefault ){ var oItem ; var vItems ; var row ; var texto var valor ; var largo ; var original ; var indice = 0 ; var seleccionado ; for( row = 0; row < combo.length ; row++ ) { combo.options[row].text = ''; combo.options[row].value = ''; } vItems = lista.split( "|") ; if( !anos ) { largo = vItems.length - 2 ; } else { largo = vItems.length - 1 ; } for (row = 0 ; row <= largo ; row++ ) { valor = vItems[ row ] ; if( vItems[ row ] == '0 KM' && anos ) valor = 0 ; if( row == 0 ) { original = valor ; } if( !anos ) { row++ ; } texto = vItems[ row ] ; seleccionado = false ; if( valorDefault != null && valor == valorDefault ) { seleccionado = true ; } if( indice < combo.length ) { combo.options[indice].text = texto ; combo.options[indice].value = valor ; combo.options[indice].selected = seleccionado ; } indice++ ; } if ( combo.selectedIndex == -1 ) combo.selectedIndex = 0 } function WaitOn() { //if( !NetscapeBrowser ) document.body.style.cursor = "wait" ; } function WaitOff() { //if( !NetscapeBrowser ) document.body.style.cursor = "default" ; }