var lists = new Array();

// Acura --
lists['Acura']    = new Array();
lists['Acura'][0] = new Array(
	'Integra','Mdx','Rl','Rdx','Rsx','Slx','Tl','Tsx' 
);
lists['Acura'][1] = new Array(
	'Integra','Mdx','Rl','Rdx','Rsx','Slx','Tl','Tsx'
);

// Daewoo --
lists['Daewoo']    = new Array();
lists['Daewoo'][0] = new Array(
	'Ace','Chairman','Cielo','Damas','Espero','Evanda','Fso','Kalos','Korando','Labo','Lacetti','Lanos','Leganza','Magnus','Matiz','Musso','Nexia','Nubira','Prince','Racer','Rezzo','Super','Tacuma','Tico'
);
lists['Daewoo'][1] = new Array(
	'Ace','Chairman','Cielo','Damas','Espero','Evanda','Fso','Kalos','Korando','Labo','Lacetti','Lanos','Leganza','Magnus','Matiz','Musso','Nexia','Nubira','Prince','Racer','Rezzo','Super','Tacuma','Tico'
);

// Daihatsu
lists['Daihatsu']    = new Array();
lists['Daihatsu'][0] = new Array(
	'Applause','Charade','Charmant','Copen','Cuore','Feroza','Gran move','Hijet','Materia','Move','Rocky','S','Sharade','Sirion','Taft','Terios','Wildcat','Yrv'
);
lists['Daihatsu'][1] = new Array(
	'Applause','Charade','Charmant','Copen','Cuore','Feroza','Gran move','Hijet','Materia','Move','Rocky','S','Sharade','Sirion','Taft','Terios','Wildcat','Yrv'
);

// Honda
lists['Honda']    = new Array();
lists['Honda'][0] = new Array(
	'Accord','Cbr','Cbx','City','Civic','Civic ballade','Concerto','Cr-v','Crx','Element','Fit','Fr-v','Hr-v','Insight','Integra','Jazz','Legend','Logo','Nsx','Odyssey','Passport','Prelude','Ridgeline','Quintet','S2000','Shuttle','Stream'
);
lists['Honda'][1] = new Array(
	'Accord','Cbr','Cbx','City','Civic','Civic ballade','Concerto','Cr-v','Crx','Element','Fit','Fr-v','Hr-v','Insight','Integra','Jazz','Legend','Logo','Nsx','Odyssey','Passport','Prelude','Ridgeline','Quintet','S2000','Shuttle','Stream'
);

// Hyundai
lists['Hyundai']    = new Array();
lists['Hyundai'][0] = new Array(
	'Accent','Atos','Coupe','Elantra','Excel','Galloper','Getz','Grace','H','I10','I20','I30','IX35','IX55','Lantra','Matrix','Pony','Porter','S','Santa fe','Santamo','Sonata','Starex','Stelar','Tb','Terracan','Trajet','Tucson','Xg'
);
lists['Hyundai'][1] = new Array(
	'Accent','Atos','Coupe','Elantra','Excel','Galloper','Getz','Grace','H','I10','I20','I30','IX35','IX55','Lantra','Matrix','Pony','Porter','S','Santa fe','Santamo','Sonata','Starex','Stelar','Tb','Terracan','Trajet','Tucson','Xg'
);

// Infiniti
lists['Infiniti']    = new Array();
lists['Infiniti'][0] = new Array(
	'Fx 35','Fx 37','Fx 45','Fx 50','G','G coupe','G sedan','I','J','M','Q','Q45','Qx','Qx4'
);
lists['Infiniti'][1] = new Array(
	'Fx 35','Fx 37','Fx 45','Fx 50','G','G coupe','G sedan','I','J','M','Q','Q45','Qx','Qx4'
);

// Isuzu
lists['Isuzu']    = new Array();
lists['Isuzu'][0] = new Array(
	'Amigo','D-max','Gemini','Piazza','Pickup','Rodeo','Tfs','Trooper','Vehi cross'
);
lists['Isuzu'][1] = new Array(
	'Amigo','D-max','Gemini','Piazza','Pickup','Rodeo','Tfs','Trooper','Vehi cross'
);

// Kia
lists['Kia']    = new Array();
lists['Kia'][0] = new Array(
	'2.2','3.5','Avella delta','Carens','Carnival','Ceed','Cerato','Clarus','F','Joecs','Joyce','Jumbo','Magentis','Mohave','Opirus','Picanto','Pride','Retona','Rio','Sephia','Shuma','Soul','Sorento','Sportage','Titan','Traid'
);
lists['Kia'][1] = new Array(
	'2.2','3.5','Avella delta','Carens','Carnival','Ceed','Cerato','Clarus','F','Joecs','Joyce','Jumbo','Magentis','Mohave','Opirus','Picanto','Pride','Retona','Rio','Sephia','Shuma','Soul','Sorento','Sportage','Titan','Traid'
);

// Lexus
lists['Lexus']    = new Array();
lists['Lexus'][0] = new Array(
	'Es','Gs','Gx470','Is','Ls','Lx','Rx','Rx300','Rx350','Rx400h','Rx450','Sc'
);
lists['Lexus'][1] = new Array(
	'Es','Gs','Gx470','Is','Ls','Lx','Rx','Rx300','Rx350','Rx400h','Rx450','Sc'
);

// Mazda
lists['Mazda']    = new Array();
lists['Mazda'][0] = new Array(
	'121','2','3','323','5','6','626','929','B2200','B2500','B2600','Cx-7','Cx-9','Demio','Mpv','Mx-3','Mx-5','Mx-6','Premacy','Rx-7','Rx-8','Tribute','Xedos'
);
lists['Mazda'][1] = new Array(
	'121','2','3','323','5','6','626','929','B2200','B2500','B2600','Cx-7','Cx-9','Demio','Mpv','Mx-3','Mx-5','Mx-6','Premacy','Rx-7','Rx-8','Tribute','Xedos'
);

// Mitsubishi
lists['Mitsubishi']    = new Array();
lists['Mitsubishi'][0] = new Array(
	'3000 gt','Canter','Carisma','Colt','Cordia','Canter','Eclipse','Galant','Grandis','L200','Lancer','Montero','Outlander','Pajero','Pajero pinin','Pajero sport','Sapporo','Sigma','Space gear','Space runner','Space star','Space wagon','Starion','Tredia'
);
lists['Mitsubishi'][1] = new Array(
	'3000 gt','Canter','Carisma','Colt','Cordia','Canter','Eclipse','Galant','Grandis','L200','Lancer','Montero','Outlander','Pajero','Pajero pinin','Pajero sport','Sapporo','Sigma','Space gear','Space runner','Space star','Space wagon','Starion','Tredia'
);

// Nissan
lists['Nissan']    = new Array();
lists['Nissan'][0] = new Array(
	'100 nx','200 sx','240 z','280 z','300 zx','350z','370Z','Almera','Almera tino','Altima','Armada','Bluebird','Cedric','Cherry','Frontier','GT-R','Gt-r','Laurel','Maxima','Micra','Murano','Navara','Note','NP300','Pathfinder','Patrol','Pickup','Pixo','Prairie','Primera','Qashqai','Rogue','Serena','Silvia','Skyline','Stantza','Sunny','Terrano','Titan crew cab','Titan king','Tiida','Versa','X-trail','Xterra'
);
lists['Nissan'][1] = new Array(
	'100 nx','200 sx','240 z','280 z','300 zx','350z','370Z','Almera','Almera tino','Altima','Armada','Bluebird','Cedric','Cherry','Frontier','GT-R','Gt-r','Laurel','Maxima','Micra','Murano','Navara','Note','NP300','Pathfinder','Patrol','Pickup','Pixo','Prairie','Primera','Qashqai','Rogue','Serena','Silvia','Skyline','Stantza','Sunny','Terrano','Titan crew cab','Titan king','Tiida','Versa','X-trail','Xterra'
);

// Proton
lists['Proton']    = new Array();
lists['Proton'][0] = new Array(
	'400','Persone','Satria'
);
lists['Proton'][1] = new Array(
	'400','Persone','Satria'
);

// SsangYong
lists['SsangYong']    = new Array();
lists['SsangYong'][0] = new Array(
	'Actyon','Actyon Sports','Korando','Kyron','Musso','Rexton'
);
lists['SsangYong'][1] = new Array(
	'Actyon','Actyon Sports','Korando','Kyron','Musso','Rexton'
);

// Subaru
lists['Subaru']    = new Array();
lists['Subaru'][0] = new Array(
	'1800','B9 tribeca','Baja','E12','Forester','G3x justy','Impreza','Justy','Legacy','Libero','Outback','Svx'
	
);
lists['Subaru'][1] = new Array(
	'1800','B9 tribeca','Baja','E12','Forester','G3x justy','Impreza','Justy','Legacy','Libero','Outback','Svx'
);

// Suzuki
lists['Suzuki']    = new Array();
lists['Suzuki'][0] = new Array(
	'Alto','Baleno','Carry','Grand vitara','Forenza','Ignis','Jimny','Liana','Maruti','Reno','Samurai','Santana','Sidekick','Sj','St','SX4','Sg','Swift','Vitara','Wagon r','X-90','XL-7'
);
lists['Suzuki'][1] = new Array(
	'Alto','Baleno','Carry','Grand vitara','Forenza','Ignis','Jimny','Liana','Maruti','Reno','Samurai','Santana','Sidekick','Sj','St','SX4','Sg','Swift','Vitara','Wagon r','X-90','XL-7'
);

// Toyota
lists['Toyota']    = new Array();
lists['Toyota'][0] = new Array(
	'4runner','Auris','Avalon','Avensis','Avensis verso','Aygo','Camry','Carina','Celica','Corolla','Corolla verso','Cressida','Crown','Fj cruiser','Hiace','Highlander','Hilux','IQ','Land cruiser','Liteace','Matrix','Mr2','Paseo','Picnic','Previa','Prius','Rav4','Sequoia','Scion','Starlet','Supra','Tacoma','Tercel','Tundra','Urban Cruiser','Venza','Verso','Yaris','Yaris verso'
);
lists['Toyota'][1] = new Array(
	'4runner','Auris','Avalon','Avensis','Avensis verso','Aygo','Camry','Carina','Celica','Corolla','Corolla verso','Cressida','Crown','Fj cruiser','Hiace','Highlander','Hilux','IQ','Land cruiser','Liteace','Matrix','Mr2','Paseo','Picnic','Previa','Prius','Rav4','Sequoia','Scion','Starlet','Supra','Tacoma','Tercel','Tundra','Urban Cruiser','Venza','Verso','Yaris','Yaris verso'
);

function emptyList( box ) {
	// Set each option to null thus removing it
	while ( box.options.length ) box.options[0] = null;
}

// This function assigns new drop down options to the given
// drop down box from the list of lists specified

function fillList( box, arr ) {
	// arr[0] holds the display text
	// arr[1] are the values

	for ( i = 0; i < arr[0].length; i++ ) {

		// Create a new drop down option with the
		// display text and value from arr

		option = new Option( arr[0][i], arr[1][i] );

		// Add to the end of the existing options

		box.options[box.length] = option;
	}

	// Preselect option 0

	box.selectedIndex=0;
}

// This function performs a drop down list option change by first
// emptying the existing option list and then assigning a new set

function changeList( box ) {
	// Isolate the appropriate list by using the value
	// of the currently selected option

	list = lists[box.options[box.selectedIndex].value];

	// Next empty the model list

	emptyList( box.form.model );

	// Then assign the new list values

	fillList( box.form.model, list );
}
