	//dynamiczne select menu
	function zam_model(id_marka, mo){
		id = id_marka.options[id_marka.selectedIndex].value;
		// pozycje dla mo
		var tab = [	
			["CL",
			"Integra",
			"Legend",
			"NSX",
			"RL",
			"TL",
			"Vigor"],
			["145",
			"146",
			"147",
			"155",
			"156",
			"164",
			"166",
			"2000",
			"33",
			"6",
			"75",
			"Alfasud",
			"Alfetta",
			"Arna",
			"Giulietta",
			"GTV",
			"Spider",
			"Zagato"],
			["10",
			"104",
			"24",
			"243",
			"244",
			"246",
			"328",
			"Muscel"],
			["Vanquish",
			"Vantage"],
			["100",
			"200",
			"80",
			"90",
			"A2",
			"A3",
			"A4",
			"A6",
			"A8",
			"Allroad",
			"Cabriolet",
			"Coupe",
			"RS4",
			"RS6",
			"S2",
			"S3",
			"S4",
			"S6",
			"S8",
			"TT"],
			["Maestro",
			"Metro",
			"Mini",
			"Montego"],
			["Bus"],
			["M3",
			"M5",
			"seria3",
			"seria5",
			"seria6",
			"seria7",
			"X5",
			"Z1",
			"Z3",
			"Z4",
			"Z8"],
			["Century",
			"Electra",
			"Le Sabre",
			"Park Avenue",
			"Reatta",
			"Regal",
			"Riviera",
			"Roadmaster",
			"Skyhawk",
			"Skylark"],
			["Allante",
			"Brougham",
			"Catera",
			"DeVille",
			"Eldorodo",
			"Fleetwood",
			"Seville",
			"STS"],
			["Taxi"],
			["Alero",
			"Astro",
			"Avalanche",
			"Beretta",
			"Blazer",
			"Camaro",
			"Caprice",
			"Cavalier",
			"Cheyene",
			"Corsica",
			"Corvette",
			"G20",
			"Geo",
			"Geo Metro",
			"Gladiator",
			"Impala",
			"Lumina",
			"Malibu",
			"Monza",
			"Prizma",
			"Silverado",
			"Starcraft",
			"Suburban",
			"Tahoe",
			"Tracker",
			"Trailblazer",
			"Trans-Sport",
			"V10",
			"Venture"],
			["300M",
			"Cherokee",
			"Cirrus",
			"Concorde",
			"Conquest",
			"Crossfire",
			"Grand Cherokee",
			"Grand Voyager",
			"GTS",
			"Intrepid",
			"Le Baron",
			"LHS",
			"Neon",
			"New Yorker",
			"PT Cruiser",
			"Saratoga",
			"Sebring",
			"Shelby",
			"Stratus",
			"Town & Country",
			"Vision",
			"Voyager"],
			["2CV",
			"AX",
			"Axel",
			"Berlingo",
			"BX",
			"C-15",
			"C3",
			"C5",
			"C8",
			"CX",
			"Evasion",
			"F1",
			"Jumper",
			"Jumpy",
			"Saxo",
			"Visa",
			"Xantia",
			"XM",
			"Xsara",
			"Xsara Picasso",
			"ZX"],
			["Cobra"],
			["1310",
			"1410",
			"Liberta",
			"Nova"],
			["Chairman",
			"Espero",
			"Korando",
			"Lanos",
			"Leganza",
			"Matiz",
			"Musso",
			"Nexia",
			"Nubira",
			"Polonez",
			"Tacuma",
			"Tico"],
			["Applause",
			"Bertone",
			"Charade",
			"Charmant",
			"Cuore",
			"Domino",
			"Feroza",
			"Freeclimber",
			"Grand Move",
			"Hijet",
			"Move",
			"Rocky",
			"Sirion",
			"Terios"],
			["Avenger",
			"Caravan",
			"Dakota",
			"Daytona",
			"Diplomat",
			"Durango",
			"Dynasty",
			"Grand Caravan",
			"Interpid",
			"Monaco",
			"Neon",
			"Omni",
			"Ram",
			"Shadow",
			"Spirit",
			"Stealth",
			"Stratus",
			"Viper"],
			["Premier",
			"Summit",
			"Talon",
			"Vision"],
			["F1",
			"F348",
			"F360",
			"F40"],
			["125",
			"126",
			"126 BIS",
			"128",
			"131",
			"Albea",
			"Argenta",
			"Barchetta",
			"Brava",
			"Bravo",
			"Cinquecento",
			"Coupe",
			"Croma",
			"Doblo",
			"Ducato",
			"Duna",
			"Marea",
			"Multipla",
			"Palio",
			"Panda",
			"Punto",
			"Regata",
			"Ritmo",
			"Scudo",
			"Seicento",
			"Siena",
			"Stilo",
			"Tempra",
			"Tipo",
			"Ulysse",
			"Uno"],
			["Aerostar",
			"Aspire",
			"Bronco",
			"Capri",
			"Consul",
			"Contour",
			"Cougar",
			"Courier",
			"Crown Victoria",
			"Econoline",
			"Econovan",
			"Escort",
			"Expedition",
			"Explorer",
			"F-150",
			"Festiva",
			"Fiesta",
			"Focus",
			"Fusion",
			"Galaxy",
			"Granada",
			"Ka",
			"Maverick",
			"Mercury",
			"Mondeo",
			"Mustang",
			"Orion",
			"Orion-Escort",
			"Probe",
			"Puma",
			"Ranger",
			"Scorpio",
			"Sierra",
			"Taunus",
			"Taurus",
			"Telstar",
			"Tempo",
			"Thunderbird",
			"Transit",
			"Windstar"],
			["1500",
			"Polonez"],
			["63",
			"69",
			"UAZ"],
			["Metro",
			"Prizm"],
			["Jimmy",
			"Sonoma",
			"Typhoon",
			"Yukon"],
			["Accord",
			"Civic",
			"Concerto",
			"CRV",
			"CRX",
			"HRV",
			"Integra",
			"Jazz",
			"Legend",
			"Logo",
			"NSX",
			"Odyssey",
			"Passport",
			"Prelude",
			"Quintet",
			"S2000",
			"Shuttle",
			"Stream",
			"Voyager"],
			["Accent",
			"Atos",
			"Coupe",
			"Elantra",
			"Excel",
			"Galloper",
			"Getz",
			"Grandeur",
			"Lantra",
			"Pony",
			"S-Coupe",
			"Santa Fe",
			"Sonata",
			"Starex",
			"Terracan",
			"Tiburon",
			"Trajet",
			"XG"],
			["G20",
			"I30",
			"J30",
			"M30",
			"Q45"],
			["Amigo",
			"Gemini",
			"Rodeo",
			"Stylus",
			"Trooper"],
			["S-Type",
			"Sovereign",
			"X-Type",
			"XJ",
			"XJR",
			"XK",
			"XK8",
			"XKR"],
			["Cherokee",
			"Grand Cherokee",
			"Liberty",
			"Wagoneer",
			"Wrangler"],
			["Asia Rocsta",
			"Carens",
			"Carnival",
			"Ceres",
			"Clarus",
			"Joice",
			"Magnetis",
			"Pride",
			"Retona",
			"Rio",
			"Sephia",
			"Shuma",
			"Sorento",
			"Spectra",
			"Sportage"],
			["110",
			"111",
			"112",
			"2101",
			"2103",
			"2104",
			"2105",
			"2106",
			"2107",
			"2110",
			"Forma",
			"Niva",
			"Nova",
			"Oka",
			"Samara"],
			["Beta",
			"Dedra",
			"Delta",
			"Gamma",
			"K",
			"Kappa",
			"Lybra",
			"Prisma",
			"Thema",
			"Thesis",
			"Trevi",
			"Y",
			"Zeta"],
			["Defender",
			"Discovery",
			"Freelander",
			"Range Rover"],
			["ES",
			"GS",
			"IS",
			"LS",
			"LX",
			"RX",
			"SC"],
			["Continental",
			"Mark III",
			"Mark VII",
			"Mark VIII",
			"Navigator",
			"Town Car"],
			["121",
			"323",
			"6",
        "2",
			"626",
			"929",
			"Demio",
			"Millenia",
			"MPV",
			"MX-3",
			"MX-5",
			"MX-6",
			"Premacy",
			"Protege",
			"RX-7",
			"Tribute",
			"Xedos"],
			["190(W201)",
			"200-500 (W114)",
			"200-500 (W115)",
			"200-500 (W123)",
			"200-500(W124)",
			"200-500 (W126)",
			"klasa A",
			"klasaC",
			"klasa CE",
			"klasa CL",
			"klasa CLK",
			"klasaE",
			"klasa G",
			"klasa M",
			"klasa ML",
			"klasa S",
			"klasa SE",
			"klasa SEC",
			"klasa SEL",
			"klasa SL",
			"klasa SLK",
			"klasa V",
			"Sprinter",
			"Vaneo",
			"Viano",
			"Vito"],
			["Capri",
			"Cougar",
			"Sable",
			"Topaz",
			"Tracer",
			"Villager"],
			["ZR",
			"ZS",
			"ZT"],
			["Cooper",
			"One"],
			["3000",
			"Carisma",
			"Colt",
			"Diamante",
			"Eclipse",
			"Galant",
			"L200",
			"L300",
			"Lancer",
			"Mirage",
			"Montero",
			"Pajero",
			"Pinin",
			"Santamo",
			"Sapporo",
			"Sigma",
			"Space Gear",
			"Space Runner",
			"Space Star",
			"Space Wagon",
			"Starion"],
			["Aleko"],
			["100NX",
			"200SX",
			"240SX",
			"300ZX",
			"Almera",
			"Altima",
			"Bluebird",
			"Cherry",
			"Maxima",
			"Micra",
			"Navara",
			"Pathfinder",
			"Patrol",
			"Pickup",
			"Praire",
			"Primera",
			"Sentra",
			"Serena",
			"Silvia",
			"Stanza",
			"Sunny",
			"Terrano",
			"Tino",
			"X-Trail"],
			["88",
			"98",
			"Achieva",
			"Aurora",
			"Bravada",
			"Calais",
			"Cutlass",
			"Delta",
			"Intrigue",
			"Regence",
			"Silhouette",
			"Tornado"],
			["Club"],
			["Agila",
			"Ascona",
			"Astra",
			"Calibra",
			"Campo",
			"Combo",
			"Corsa",
			"Frontera",
			"Kadett",
			"Manta",
			"Meriva",
			"Monterey",
			"Monza",
			"Movano",
			"Omega",
			"Record",
			"Senator",
			"Signum",
			"Sintra",
			"Tigra",
			"Vectra",
			"Vivaro",
			"Zafira"],
			["104",
			"106",
			"205",
			"206",
			"305",
			"306",
			"307",
			"309",
			"405",
			"406",
			"407",	
			"504",
			"505",
			"605",
			"607",
			"806",
			"807",
			"Boxer",
			"Expert",
			"Partner"],
			["Acclaim",
			"Breeze",
			"Grand Vovager",
			"Horizon",
			"Laser",
			"Neon",
			"Sundance",
			"Voyager"],
			["6000",
			"Bonneville",
			"Fiero",
			"Firebird",
			"Firefly",
			"Grand AM",
			"Grand Prix",
			"Le Mans",
			"Montana",
			"Sunbird",
			"Sunfire",
			"Trans Sport"],
			["911",
			"912",
			"924",
			"928",
			"944",
			"966",
			"968",
			"993",
			"Boxster",
			"Cayenne"],
			["300",
			"400"],
			["11",
			"17",
			"18",
			"19",
			"21",
			"25",
			"4",
			"5",
			"9",
			"Avantime",
			"Chamade",
			"Clio",
			"Espace",
			"Feugo",
			"Kangoo",
			"Laguna",
			"Master",
			"Megane",
			"Safrane",
			"Scenic",
			"Thalia",
			"Trafic",
			"Trafik",
			"Twingo",
			"Vel Satis"],
			["25",
			"45",
			"75",
			"MGF",
			"Montego",
			"seria 100",
			"seria 200",
			"seria 400",
			"seria 600",
			"seria 800"],
			["9-3",
			"9-5",
			"90",
			"900",
			"9000",
			"95",
			"99"],
			["Saturn"],
			["Alhambra",
			"Arosa",
			"Cordoba",
			"Ibiza",
			"Inca",
			"Leon",
			"Malaga",
			"Marbella",
			"Toledo"],
			["1000MB",
			"105",
			"120",
			"125",
			"130",
			"136",
			"Fabia",
			"Favorit",
			"Felicia",
			"Forman",
			"Octavia",
			"Rapid",
			"Superb"],
			["Cabrio",
			"City",
			"Roadster"],
			["Family",
			"Korando",
			"Musso"],
			["1800",
			"Forester",
			"Impreza",
			"Justy",
			"Legacy",
			"Leone",
			"Libero",
			"SVX",
			"Vivio",
			"XT"],
			["Alto",
			"Baleno",
			"Grand Vitara",
			"Ignis",
			"Jimmy",
			"Maruti",
			"Samurai",
			"Swift",
			"Vitara",
			"Wagon R+"],
			["100",
			"101",
			"102",
			"103",
			"104",
			"105"],
			["Rancho",
			"Solara"],
			["Honker"],
			["4 Runner",
			"Avalon",
			"Avensis",
			"Camry",
			"Carina",
			"Celica",
			"Corolla",
			"Crown",
			"Land Cruiser",
			"MR-2",
			"Picnic",
			"Previa",
			"RAV-4",
			"Sienna",
			"Starlet",
			"Supra",
			"Tercel",
			"Yaris"],
			["601",
			"S"],
			["469",
			"Wilk"],
			["1600",
			"1600 TL",
			"Bora",
			"Buggy",
			"Bulli",
			"Caravelle",
			"Corrado",
			"Garbus",
			"Golf",
			"Jetta",
			"LT",
			"Lupo",
			"New Beetle",
			"Passat",
			"Phaeton",
			"Polo",
			"Santana",
			"Scirocco",
			"Sharan",
			"Touareg",
			"Touran",
			"Transporter",
			"Vento"],
			["240",
			"340",
			"343",
			"360",
			"430",
			"440",
			"460",
			"480",
			"740",
			"760",
			"850",
			"940",
			"960",
			"C70",
			"S40",
			"S60",
			"S70",
			"S80",
			"S90",
			"V40",
			"V70",
			"V90",
			"XC70",
			"XC90"],
			["223",
			"M20"],
			["1.3",
			"353W",
			"535",
			"535S"],
			["Florida",
			"Koral"],
			["1100",
			"Yugo"],
			["Tavria",
			"Tavria Lux"],

		];	
		//ilość pozycji
		var poz = mo.length; 
		//kasowanie pozycji z select mo bez opisu nr 0 (kasujemy od tylu!)
		for(var i=poz-1;i>0;i--)
			mo.options [i] = null;
		//dodawanie pozycji do mo, ominięcie id 0 (opis w select)
		if(id != 0)
			for(i=0; i<tab[id-1].length; i++)
				mo.options[i+1] = new Option(tab[id-1][i], tab[id-1][i],0,0);	
	}

	//dynamiczne select menu
	function zam_dos(id_marka, mo){
		id = id_marka.options[id_marka.selectedIndex].value;
	    // pozycje dla mo
		var tab = [	
			["B-1000"],
			["Berlingo",
			"C-15",
			"C25",
			"C35",
			"Jumper",
			"Jumpy"],
			["Avia",
			"LDV",
			"Lublin 3",
			"Lublin II"],
			["200",
			"400",
			"428",
			"435",
			"B1000"],
			["Doblo",
			"Ducato",
			"Fiorinio",
			"Scudo"],
			["Courier",
			"Escort",
			"Express",
			"Transit",
			"Turneo"],
			["Lublin",
			"Żuk"],
			["Polonez Truck"],
			["Gazela"],
			["H-1",
			"H100",
			"HD",
			"Starex"],
			["MIDI",
			"NPR"],
			["Daily",
			"Turbo-Daily"],
			["Ceres",
			"K-2500",
			"K2700",
			"K3000",
			"Pregio"],
			["400",
			"Convoy"],
			["E2200"],
			["100",
			"207",
			"208",
			"210",
			"212",
			"307",
			"308",
			"310",
			"407",
			"408",
			"410",
			"508",
			"608",
			"814",
			"klasa V",
			"MB 100",
			"Sprinter",
			"Vario",
			"Vito"],
			["Canter"],
			["Cabstar",
			"Pick-up",
			"Vanette"],
			["522",
			"Polonez Truck"],
			["Combo",
			"Movano",
			"Vivaro"],
			["Boxer",
			"Expert",
			"J5",
			"Partner"],
			["Kangoo",
			"Mascot",
			"Master",
			"Messenger",
			"Rapid",
			"Trafic"],
			["Inca"],
			["Felicia Pick-up"],
			["Carry"],
			["Dyna",
			"Hiace",
			"Hilux"],
			["Caddy",
			"LT",
			"Transporter"],
			["A 075",
			"Żuk"],
		];	
		//ilosc pozycji
		var poz = mo.length; 
		//kasowanie pozycji z select mo bez opisu nr 0 (kasujemy od tylu!)
		for(var i=poz-1;i>0;i--)
			mo.options [i] = null;
		//dodawanie pozycji do mo, ominiecie id 0 (opis w select)
		if(id != 0)
			for(i=0; i<tab[id-1].length; i++)
				mo.options[i+1] = new Option(tab[id-1][i], tab[id-1][i],0,0);	
	}
	
	//dynamiczne select menu
	function zam_rok(rok_od, rok_do){
		var rok = rok_od.options[rok_od.selectedIndex].text;
		//ilo¶ć pozycji
		var poz = rok_do.length; 
		//kasowanie pozycji z select rok_do bez opisu nr 0 (kasujemy od tylu!)
		for(i=poz-1;i>0;i--)
			rok_do.options [i] = null;
		//dodawanie pozycji do rok_do, ominięcie opisu nr 0 
		for(i=2005; i>=rok; i--)
			rok_do.options[2005 - i + 1] = new Option(i,2005 - i +1,0,0);	
	}
