function show_full(img){document.getElementById('main_content').style.display = 'none';
document.getElementById('full_image').style.display = 'block';

fimage = readCookie("fimage");

document.getElementById('full_src').src = fimage;

}

function hide_full(){
document.getElementById('main_content').style.display = 'block';
document.getElementById('full_image').style.display = 'none';
}



function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

		function show_menu(s) {
		document.getElementById('prodavcy').style.display = 'none';
		document.getElementById('new_tech').style.display = 'none';
		document.getElementById('old_tech').style.display = 'none';
		document.getElementById('add_message').style.display = 'none';
		document.getElementById('for_users').style.display = 'none';
		document.getElementById('about').style.display = 'none';

			ss = document.getElementById(s).style;
			ss.display = 'block';


			createCookie("menu",s,1);


			return false;
		}

		function changeCategory(t,cat2) {
				cat = document.getElementById(cat2);


				if (cat.value == 'buses'){


				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}


				typeSel.options.length=0;


				typeSel.options[typeSel.options.length] = new Option("микроавтобус пассажирский", "van_bus");
				typeSel.options[typeSel.options.length] = new Option("микроавтобус грузовой", "van_cargo");
				typeSel.options[typeSel.options.length] = new Option("автобус туристический", "tourist_bus");
				typeSel.options[typeSel.options.length] = new Option("автобус городской", "city_bus");
				typeSel.options[typeSel.options.length] = new Option("автобус пригородный", "suburb_bus");




				objSel.options.length=0;
                objSel.options[objSel.options.length] = new Option("Bova", "Bova");
				objSel.options[objSel.options.length] = new Option("Citroen", "Citroen");
				objSel.options[objSel.options.length] = new Option("CCJ", "CCJ");
				objSel.options[objSel.options.length] = new Option("DAF", "DAF");
				objSel.options[objSel.options.length] = new Option("Daewoo", "Daewoo");
				objSel.options[objSel.options.length] = new Option("Drogmoller", "Drogmoller");
				objSel.options[objSel.options.length] = new Option("Fiat", "Fiat");
				objSel.options[objSel.options.length] = new Option("Ford", "Ford");
				objSel.options[objSel.options.length] = new Option("Freightliner", "Freightliner");
				objSel.options[objSel.options.length] = new Option("Golden Dragon", "Golden Dragon");
				objSel.options[objSel.options.length] = new Option("HIGER", "HIGER");
				objSel.options[objSel.options.length] = new Option("Hyundai", "Hyundai");
				objSel.options[objSel.options.length] = new Option("Icarus", "Icarus");
				objSel.options[objSel.options.length] = new Option("Isuzu", "Isuzu");
				objSel.options[objSel.options.length] = new Option("Iveco", "Iveco");
				objSel.options[objSel.options.length] = new Option("Kia", "Kia");
				objSel.options[objSel.options.length] = new Option("MAN", "MAN");
				objSel.options[objSel.options.length] = new Option("Marcopolo", "Marcopolo");
				objSel.options[objSel.options.length] = new Option("Mercedes-Benz", "Mercedes-Benz");
				objSel.options[objSel.options.length] = new Option("Mitsubishi", "Mitsubishi");
				objSel.options[objSel.options.length] = new Option("Mudan", "Mudan");
				objSel.options[objSel.options.length] = new Option("Navistar", "Navistar");
				objSel.options[objSel.options.length] = new Option("Neoplan", "Neoplan");
				objSel.options[objSel.options.length] = new Option("Nissan", "Nissan");
				objSel.options[objSel.options.length] = new Option("Pegas", "Pegas");
				objSel.options[objSel.options.length] = new Option("Peugeot", "Peugeot");
				objSel.options[objSel.options.length] = new Option("Renault", "Renault");
				objSel.options[objSel.options.length] = new Option("Scania", "Scania");
				objSel.options[objSel.options.length] = new Option("Setra", "Setra");
				objSel.options[objSel.options.length] = new Option("Shuchi", "Shuchi");
				objSel.options[objSel.options.length] = new Option("Ssang Yong", "Ssang Yong");
				objSel.options[objSel.options.length] = new Option("Temsa", "Temsa");
				objSel.options[objSel.options.length] = new Option("Volkswagen", "Volkswagen");
				objSel.options[objSel.options.length] = new Option("Van Hool", "Van Hool");
				objSel.options[objSel.options.length] = new Option("Volvo", "Volvo");
				objSel.options[objSel.options.length] = new Option("", "--------------");
				objSel.options[objSel.options.length] = new Option("Волжанин", "Volzhanin");
				objSel.options[objSel.options.length] = new Option("ГАЗ", "Gaz");
				objSel.options[objSel.options.length] = new Option("ЗиЛ", "Zil");
				objSel.options[objSel.options.length] = new Option("ЛАЗ", "Laz");
				objSel.options[objSel.options.length] = new Option("ЛиАЗ", "Liaz");
				objSel.options[objSel.options.length] = new Option("МАЗ", "Maz");
				objSel.options[objSel.options.length] = new Option("ПАЗ", "Paz");
				objSel.options[objSel.options.length] = new Option("УаЗ", "Uaz");
				objSel.options[objSel.options.length] = new Option("прочее", "other");
				}

				if (cat.value == 'pricepy'){

				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}


				typeSel.options.length=0;


				typeSel.options[typeSel.options.length] = new Option("<---ПОЛУПРИЦЕПЫ--->", "");
				typeSel.options[typeSel.options.length] = new Option("п/п автовоз", "car_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п бензовоз", "petrol_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п бортовой открытый", "tilt_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п газовоз", "gas_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п жесткостенный", "hardbox_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п изотермический", "isobox_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п тентованный", "softbox_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п контейнеровоз", "container_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п рефрижераторный", "refrigirated_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п тяжеловоз", "heavy_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п самосвальный", "tipper_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п скотовоз", "animal_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п цементовоз", "conrete_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("п/п цистерна", "barrel_semitrailer");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("<---ПРИЦЕПЫ--->", "");
				typeSel.options[typeSel.options.length] = new Option("прицеп бортовой", "tilt_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп жесткостенный", "hardbox_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп изотермический", "isobox_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп цистерна", "barrel_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп тентованный", "softbox_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп контейнеровоз", "container_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп рефрижераторный", "refrigirated_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп самосвальный", "tipper_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп автовоз", "car_trailer");
				typeSel.options[typeSel.options.length] = new Option("прицеп BDF", "bdf_trailer");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("прочее", "value");




				objSel.options.length=0;
				objSel.options[objSel.options.length] = new Option("Aсkermann", "Aсkermann");
				objSel.options[objSel.options.length] = new Option("Berger", "Berger");
				objSel.options[objSel.options.length] = new Option("Bizien", "Bizien");
				objSel.options[objSel.options.length] = new Option("Blumhardt", "Blumhardt");
				objSel.options[objSel.options.length] = new Option("Briab", "Briab");
				objSel.options[objSel.options.length] = new Option("Bulthuis", "Bulthuis");
				objSel.options[objSel.options.length] = new Option("Burg", "Burg");
				objSel.options[objSel.options.length] = new Option("Cardi", "Cardi");
				objSel.options[objSel.options.length] = new Option("Chereau", "Chereau");
				objSel.options[objSel.options.length] = new Option("Choice", "Choice");
				objSel.options[objSel.options.length] = new Option("Craven Tacker", "Craven Tacker");
				objSel.options[objSel.options.length] = new Option("Dapa", "Dapa");
				objSel.options[objSel.options.length] = new Option("Desot", "Desot");
				objSel.options[objSel.options.length] = new Option("Dijkstra", "Dijkstra");
				objSel.options[objSel.options.length] = new Option("DORSEY", "DORSEY");
				objSel.options[objSel.options.length] = new Option("EKW", "EKW");
				objSel.options[objSel.options.length] = new Option("Ellinghaus", "Ellinghaus");
				objSel.options[objSel.options.length] = new Option("ERF", "ERF");
				objSel.options[objSel.options.length] = new Option("ETA", "ETA");
				objSel.options[objSel.options.length] = new Option("Feldbinder", "Feldbinder");
				objSel.options[objSel.options.length] = new Option("Fliegl", "Fliegl");
				objSel.options[objSel.options.length] = new Option("Frappa", "Frappa");
				objSel.options[objSel.options.length] = new Option("Fruehauf", "Fruehauf");
				objSel.options[objSel.options.length] = new Option("Gofa", "Gofa");
				objSel.options[objSel.options.length] = new Option("Gray&amp;Adams", "Gray&amp;Adams");
				objSel.options[objSel.options.length] = new Option("Great Dane", "Great Dane");
				objSel.options[objSel.options.length] = new Option("Groenewegen", "Groenewegen");
				objSel.options[objSel.options.length] = new Option("GT", "GT");
				objSel.options[objSel.options.length] = new Option("Hendricks", "Hendricks");
				objSel.options[objSel.options.length] = new Option("HFR", "HFR");
				objSel.options[objSel.options.length] = new Option("Jumbo", "Jumbo");
				objSel.options[objSel.options.length] = new Option("Kaessbohrer", "Kaessbohrer");
				objSel.options[objSel.options.length] = new Option("Kaufman", "Kaufman");
				objSel.options[objSel.options.length] = new Option("Kel-berg", "Kel-berg");
				objSel.options[objSel.options.length] = new Option("Kilafors", "Kilafors");
				objSel.options[objSel.options.length] = new Option("Koegel", "Koegel");
				objSel.options[objSel.options.length] = new Option("Krone", "Krone");
				objSel.options[objSel.options.length] = new Option("LAG", "LAG");
				objSel.options[objSel.options.length] = new Option("Lamberet", "Lamberet");
				objSel.options[objSel.options.length] = new Option("Lenaerts", "Lenaerts");
				objSel.options[objSel.options.length] = new Option("Latre", "Latre");
				objSel.options[objSel.options.length] = new Option("Lohr", "Lohr");
				objSel.options[objSel.options.length] = new Option("Maisonneuv", "Maisonneuv");
				objSel.options[objSel.options.length] = new Option("Medved", "Medved");
				objSel.options[objSel.options.length] = new Option("Menci", "Menci");
				objSel.options[objSel.options.length] = new Option("Metaco", "Metaco");
				objSel.options[objSel.options.length] = new Option("Meusburger", "Meusburger");
				objSel.options[objSel.options.length] = new Option("Montracon", "Montracon");
				objSel.options[objSel.options.length] = new Option("Narco", "Narco");
				objSel.options[objSel.options.length] = new Option("Nopa", "Nopa");
				objSel.options[objSel.options.length] = new Option("Norfrig", "Norfrig");
				objSel.options[objSel.options.length] = new Option("Pacton", "Pacton");
				objSel.options[objSel.options.length] = new Option("Panissars", "Panissars");
				objSel.options[objSel.options.length] = new Option("Piacenza", "Piacenza");
				objSel.options[objSel.options.length] = new Option("PNO", "PNO");
				objSel.options[objSel.options.length] = new Option("Renders", "Renders");
				objSel.options[objSel.options.length] = new Option("Rohr", "Rohr");
				objSel.options[objSel.options.length] = new Option("Samro", "Samro");
				objSel.options[objSel.options.length] = new Option("Sawo", "Sawo");
				objSel.options[objSel.options.length] = new Option("Schmitz", "Schmitz");
				objSel.options[objSel.options.length] = new Option("Schwarzmueller", "Schwarzmueller");
				objSel.options[objSel.options.length] = new Option("Sommer", "Sommer");
				objSel.options[objSel.options.length] = new Option("Tacker", "Tacker");
				objSel.options[objSel.options.length] = new Option("Treilor", "Treilor");
				objSel.options[objSel.options.length] = new Option("Trouillet", "Trouillet");
				objSel.options[objSel.options.length] = new Option("Turbos Hoet", "Turbo's Hoet");
				objSel.options[objSel.options.length] = new Option("Utility", "Utility");
				objSel.options[objSel.options.length] = new Option("Wabash", "Wabash");
				objSel.options[objSel.options.length] = new Option("Witzco", "Witzco");
				objSel.options[objSel.options.length] = new Option("Van Hool", "Van Hool");
				objSel.options[objSel.options.length] = new Option("York", "York");
				objSel.options[objSel.options.length] = new Option("Zorzi", "Zorzi");
				objSel.options[objSel.options.length] = new Option("---------------------", "0");
				objSel.options[objSel.options.length] = new Option("МАЗ", "Maz");
				objSel.options[objSel.options.length] = new Option("МЗКТ", "MZKT");
				objSel.options[objSel.options.length] = new Option("НЕФАЗ", "NEFAZ");
				objSel.options[objSel.options.length] = new Option("УРАЛ", "Ural");

				}

				if(cat.value == 'selhoz'){


				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}




				typeSel.options.length=0;


				typeSel.options[typeSel.options.length] = new Option("трактор колесный", "wheel_tractor");
				typeSel.options[typeSel.options.length] = new Option("трактор гусеничный", "track_tractor");
				typeSel.options[typeSel.options.length] = new Option("минитрактор", "mini_tractor");
				typeSel.options[typeSel.options.length] = new Option("зерноуборочный комбайн", "grain_combine");
				typeSel.options[typeSel.options.length] = new Option("кормоуборочный комбайн", "multi_combine");
				typeSel.options[typeSel.options.length] = new Option("свеклоуборочный комбайн", "beet_combine");
				typeSel.options[typeSel.options.length] = new Option("сеялка", "seeder");
				typeSel.options[typeSel.options.length] = new Option("косилка", "mowing");
				typeSel.options[typeSel.options.length] = new Option("культиватор", "cultivator");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("прочее", "other");



				objSel.options.length=0;
				objSel.options[objSel.options.length] = new Option("Agrifac", "Agrifac");
				objSel.options[objSel.options.length] = new Option("Allis", "Allis");
				objSel.options[objSel.options.length] = new Option("Amac", "Amac");
				objSel.options[objSel.options.length] = new Option("Arcus", "Arcus");
				objSel.options[objSel.options.length] = new Option("Armer Salmon", "Armer Salmon");
				objSel.options[objSel.options.length] = new Option("Asa-Lift", "Asa-Lift");
				objSel.options[objSel.options.length] = new Option("Avant", "Avant");
				objSel.options[objSel.options.length] = new Option("Bizon", "Bizon");
				objSel.options[objSel.options.length] = new Option("Bulldog", "Bulldog");
				objSel.options[objSel.options.length] = new Option("Carraro", "Carraro");
				objSel.options[objSel.options.length] = new Option("Caterpillar", "Caterpillar");
				objSel.options[objSel.options.length] = new Option("Challenger", "Challenger");
				objSel.options[objSel.options.length] = new Option("Case", "Case");
				objSel.options[objSel.options.length] = new Option("Clayson", "Clayson");
				objSel.options[objSel.options.length] = new Option("Claas", "Claas");
				objSel.options[objSel.options.length] = new Option("David Brown", "David Brown");
				objSel.options[objSel.options.length] = new Option("Deutz", "Deutz");
				objSel.options[objSel.options.length] = new Option("Deutz-Fahr", "Deutz-Fahr");
				objSel.options[objSel.options.length] = new Option("Dronningborg", "Dronningborg");
				objSel.options[objSel.options.length] = new Option("Fendt", "Fendt");
				objSel.options[objSel.options.length] = new Option("Fiat", "Fiat");
				objSel.options[objSel.options.length] = new Option("Ford", "Ford");
				objSel.options[objSel.options.length] = new Option("Fordson", "Fordson");
				objSel.options[objSel.options.length] = new Option("Edenhall", "Edenhall");
				objSel.options[objSel.options.length] = new Option("Elho", "Elho");
				objSel.options[objSel.options.length] = new Option("Fendt", "Fendt");
				objSel.options[objSel.options.length] = new Option("Fiat", "Fiat");
				objSel.options[objSel.options.length] = new Option("Fortschritt", "Fortschritt");
				objSel.options[objSel.options.length] = new Option("Franquet", "Franquet");
				objSel.options[objSel.options.length] = new Option("Garford", "Garford");
				objSel.options[objSel.options.length] = new Option("Grimme", "Grimme");
				objSel.options[objSel.options.length] = new Option("Heriau", "Heriau");
				objSel.options[objSel.options.length] = new Option("Holmer", "Holmer");
				objSel.options[objSel.options.length] = new Option("IMT", "IMT");
				objSel.options[objSel.options.length] = new Option("International", "International");
				objSel.options[objSel.options.length] = new Option("Iseki", "Iseki");
				objSel.options[objSel.options.length] = new Option("JCB", "JCB");
				objSel.options[objSel.options.length] = new Option("JF", "JF");
				objSel.options[objSel.options.length] = new Option("John Deere", "John Deere");
				objSel.options[objSel.options.length] = new Option("Juko", "Juko");
				objSel.options[objSel.options.length] = new Option("Junkkari", "Junkkari");
				objSel.options[objSel.options.length] = new Option("Kleine", "Kleine");
				objSel.options[objSel.options.length] = new Option("Kverneland", "Kverneland");
				objSel.options[objSel.options.length] = new Option("Kubota", "Kubota");
				objSel.options[objSel.options.length] = new Option("Lamborghini", "Lamborghini");
				objSel.options[objSel.options.length] = new Option("Landini", "Landini");
				objSel.options[objSel.options.length] = new Option("Laverda", "Laverda");
				objSel.options[objSel.options.length] = new Option("Leyland", "Leyland");
				objSel.options[objSel.options.length] = new Option("Marshall", "Marshall");
				objSel.options[objSel.options.length] = new Option("M-B", "M-B");
				objSel.options[objSel.options.length] = new Option("McCormick", "McCormick");
				objSel.options[objSel.options.length] = new Option("MDW", "MDW");
				objSel.options[objSel.options.length] = new Option("Mengele", "Mengele");
				objSel.options[objSel.options.length] = new Option("M-F", "M-F");
				objSel.options[objSel.options.length] = new Option("Mitsubishi", "Mitsubishi");
				objSel.options[objSel.options.length] = new Option("Moreau", "Moreau");
				objSel.options[objSel.options.length] = new Option("Netagco", "Netagco");
				objSel.options[objSel.options.length] = new Option("New Holland", "New Holland");
				objSel.options[objSel.options.length] = new Option("Nuffield", "Nuffield");
				objSel.options[objSel.options.length] = new Option("Parca", "Parca");
				objSel.options[objSel.options.length] = new Option("Porsche", "Porsche");
				objSel.options[objSel.options.length] = new Option("Pottinger", "Pottinger");
				objSel.options[objSel.options.length] = new Option("Reekie", "Reekie");
				objSel.options[objSel.options.length] = new Option("Renault", "Renault");
				objSel.options[objSel.options.length] = new Option("Richard Pearson", "Richard Pearson");
				objSel.options[objSel.options.length] = new Option("Riecam", "Riecam");
				objSel.options[objSel.options.length] = new Option("Ropa", "Ropa");
				objSel.options[objSel.options.length] = new Option("Same", "Same");
				objSel.options[objSel.options.length] = new Option("Sampo-Rosenlew", "Sampo-Rosenlew");
				objSel.options[objSel.options.length] = new Option("Snorre", "Snorre");
				objSel.options[objSel.options.length] = new Option("Standan", "Standan");
				objSel.options[objSel.options.length] = new Option("Steiger", "Steiger");
				objSel.options[objSel.options.length] = new Option("Steyr", "Steyr");
				objSel.options[objSel.options.length] = new Option("Stoll", "Stoll");
				objSel.options[objSel.options.length] = new Option("Thyregod", "Thyregod");
				objSel.options[objSel.options.length] = new Option("Tim", "Tim");
				objSel.options[objSel.options.length] = new Option("Taarup", "Taarup");
				objSel.options[objSel.options.length] = new Option("Unia Grudziadz", "Unia Grudziadz");
				objSel.options[objSel.options.length] = new Option("Ursus", "Ursus");
				objSel.options[objSel.options.length] = new Option("UTB", "UTB");
				objSel.options[objSel.options.length] = new Option("Valmet", "Valmet");
				objSel.options[objSel.options.length] = new Option("Valtra", "Valtra");
				objSel.options[objSel.options.length] = new Option("Vervaet", "Vervaet");
				objSel.options[objSel.options.length] = new Option("Vicon", "Vicon");
				objSel.options[objSel.options.length] = new Option("Volvo", "Volvo");
				objSel.options[objSel.options.length] = new Option("Volvo BM", "Volvo BM");
				objSel.options[objSel.options.length] = new Option("VTZ", "VTZ");
				objSel.options[objSel.options.length] = new Option("Wuhlmaus", "Wuhlmaus");
				objSel.options[objSel.options.length] = new Option("Zetor", "Zetor");
				objSel.options[objSel.options.length] = new Option("-----------------", "0");
				objSel.options[objSel.options.length] = new Option("Беларус", "Belarus");
				objSel.options[objSel.options.length] = new Option("Волга", "Volga");
				objSel.options[objSel.options.length] = new Option("КМЗ", "KMZ");
				objSel.options[objSel.options.length] = new Option("МЗКТ", "MZKT");
				objSel.options[objSel.options.length] = new Option("МоАЗ", "Moaz");
				objSel.options[objSel.options.length] = new Option("МТЗ", "MTZ");
				}

				if(cat.value == 'komunal'){

			    if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}


				typeSel.options.length=0;

				typeSel.options[typeSel.options.length] = new Option("трактор", "tractor");
				typeSel.options[typeSel.options.length] = new Option("коммунальная универсальная", "multi_utility");
				typeSel.options[typeSel.options.length] = new Option("мусоровоз", "garbage_truck");
				typeSel.options[typeSel.options.length] = new Option("подметально-уборочная машина", "street_washer");
				typeSel.options[typeSel.options.length] = new Option("пожарная машина", "fire_truck");
				typeSel.options[typeSel.options.length] = new Option("снегоуборочная машина", "snow_remover");
				typeSel.options[typeSel.options.length] = new Option("поливомоечная машина", "flusher");
				typeSel.options[typeSel.options.length] = new Option("вакуумная машина", "vacuum");
				typeSel.options[typeSel.options.length] = new Option("илососная машина", "sludge");
				typeSel.options[typeSel.options.length] = new Option("косильная машина", "mower");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("прочее", "other");




				objSel.options.length=0;

				objSel.options[objSel.options.length] = new Option("ABG", "ABG");
				objSel.options[objSel.options.length] = new Option("Ahlmann", "Ahlmann");
				objSel.options[objSel.options.length] = new Option("Ammann", "Ammann");
				objSel.options[objSel.options.length] = new Option("Atlas", "Atlas");
				objSel.options[objSel.options.length] = new Option("ATEK", "ATEK");
				objSel.options[objSel.options.length] = new Option("Bell", "Bell");
				objSel.options[objSel.options.length] = new Option("Bemab", "Bemab");
				objSel.options[objSel.options.length] = new Option("Benfords", "Benfords");
				objSel.options[objSel.options.length] = new Option("Bergmann", "Bergmann");
				objSel.options[objSel.options.length] = new Option("Bobcat", "Bobcat");
				objSel.options[objSel.options.length] = new Option("Bomag", "Bomag");
				objSel.options[objSel.options.length] = new Option("Broddway", "Broddway");
				objSel.options[objSel.options.length] = new Option("Brokk", "Brokk");
				objSel.options[objSel.options.length] = new Option("Broshuis", "Broshuis");
				objSel.options[objSel.options.length] = new Option("Case", "Case");
				objSel.options[objSel.options.length] = new Option("Cat", "Cat");
				objSel.options[objSel.options.length] = new Option("Champion", "Champion");
				objSel.options[objSel.options.length] = new Option("Cometto", "Cometto");
				objSel.options[objSel.options.length] = new Option("Daewoo", "Daewoo");
				objSel.options[objSel.options.length] = new Option("DAF", "DAF");
				objSel.options[objSel.options.length] = new Option("Demag", "Demag");
				objSel.options[objSel.options.length] = new Option("Digger", "Digger");
				objSel.options[objSel.options.length] = new Option("Dressta", "Dressta");
				objSel.options[objSel.options.length] = new Option("Dynapac", "Dynapac");
				objSel.options[objSel.options.length] = new Option("Faun", "Faun");
				objSel.options[objSel.options.length] = new Option("Fiat", "Fiat");
				objSel.options[objSel.options.length] = new Option("Fiat-Hitachi", "Fiat-Hitachi");
				objSel.options[objSel.options.length] = new Option("Fiat Kobelco", "Fiat Kobelco");
				objSel.options[objSel.options.length] = new Option("Fuchs", "Fuchs");
				objSel.options[objSel.options.length] = new Option("Furukawa", "Furukawa");
				objSel.options[objSel.options.length] = new Option("Goldhofer", "Goldhofer");
				objSel.options[objSel.options.length] = new Option("Grove", "Grove");
				objSel.options[objSel.options.length] = new Option("Hamm", "Hamm");
				objSel.options[objSel.options.length] = new Option("Hanix", "Hanix");
				objSel.options[objSel.options.length] = new Option("Hanomag", "Hanomag");
				objSel.options[objSel.options.length] = new Option("HBM-Nobas", "HBM-Nobas");
				objSel.options[objSel.options.length] = new Option("Hitachi", "Hitachi");
				objSel.options[objSel.options.length] = new Option("Honda", "Honda");
				objSel.options[objSel.options.length] = new Option("Hydrema", "Hydrema");
				objSel.options[objSel.options.length] = new Option("Hyundai", "Hyundai");
				objSel.options[objSel.options.length] = new Option("Iveco", "Iveco");
				objSel.options[objSel.options.length] = new Option("JCB", "JCB");
				objSel.options[objSel.options.length] = new Option("John Deere", "John Deere");
				objSel.options[objSel.options.length] = new Option("Kalmar", "Kalmar");
				objSel.options[objSel.options.length] = new Option("Kamag", "Kamag");
				objSel.options[objSel.options.length] = new Option("Kato", "Kato");
				objSel.options[objSel.options.length] = new Option("Kawasaki", "Kawasaki");
				objSel.options[objSel.options.length] = new Option("Kobelco", "Kobelco");
				objSel.options[objSel.options.length] = new Option("Komatsu", "Komatsu");
				objSel.options[objSel.options.length] = new Option("Kramer", "Kramer");
				objSel.options[objSel.options.length] = new Option("Kress", "Kress");
				objSel.options[objSel.options.length] = new Option("Krupp", "Krupp");
				objSel.options[objSel.options.length] = new Option("Kubota", "Kubota");
				objSel.options[objSel.options.length] = new Option("Langendorf", "Langendorf");
				objSel.options[objSel.options.length] = new Option("Lee boy", "Leeboy");
				objSel.options[objSel.options.length] = new Option("Lema", "Lema");
				objSel.options[objSel.options.length] = new Option("Liebherr", "Liebherr");
				objSel.options[objSel.options.length] = new Option("Locust", "Locust");
				objSel.options[objSel.options.length] = new Option("Luna", "Luna");
				objSel.options[objSel.options.length] = new Option("MAN", "MAN");
				objSel.options[objSel.options.length] = new Option("Mercedes-Benz", "Mercedes-Benz");
				objSel.options[objSel.options.length] = new Option("Michigan", "Michigan");
				objSel.options[objSel.options.length] = new Option("Mitsubishi", "Mitsubishi");
				objSel.options[objSel.options.length] = new Option("Mol", "Mol");
				objSel.options[objSel.options.length] = new Option("Moxy", "Moxy");
				objSel.options[objSel.options.length] = new Option("Multicar", "Multicar");
				objSel.options[objSel.options.length] = new Option("Neuson", "Neuson");
				objSel.options[objSel.options.length] = new Option("New-Holland", "New-Holland");
				objSel.options[objSel.options.length] = new Option("Nissan", "Nissan");
				objSel.options[objSel.options.length] = new Option("Nordverk", "Nordverk");
				objSel.options[objSel.options.length] = new Option("O&amp;K", "OK");
				objSel.options[objSel.options.length] = new Option("OMG", "OMG");
				objSel.options[objSel.options.length] = new Option("Otto Kurtbach", "Otto");
				objSel.options[objSel.options.length] = new Option("Orthaus", "Orthaus");
				objSel.options[objSel.options.length] = new Option("Palfinger", "Palfinger");
				objSel.options[objSel.options.length] = new Option("Payloader", "Payloader");
				objSel.options[objSel.options.length] = new Option("Pel-Job", "Pel-Job");
				objSel.options[objSel.options.length] = new Option("Pfaff", "Pfaff");
				objSel.options[objSel.options.length] = new Option("Pramac", "Pramac");
				objSel.options[objSel.options.length] = new Option("Putzmeister", "Putzmeister");
				objSel.options[objSel.options.length] = new Option("Renault", "Renault");
				objSel.options[objSel.options.length] = new Option("Samsung", "Samsung");
				objSel.options[objSel.options.length] = new Option("Scania", "Scania");
				objSel.options[objSel.options.length] = new Option("Schaeff", "Schaeff");
				objSel.options[objSel.options.length] = new Option("Schmidt", "Schmidt");
				objSel.options[objSel.options.length] = new Option("Siemens", "Siemens");
				objSel.options[objSel.options.length] = new Option("Sisu", "Sisu");
				objSel.options[objSel.options.length] = new Option("Tadano Faun", "Tadano Faun");
				objSel.options[objSel.options.length] = new Option("Takeuchi", "Takeuchi");
				objSel.options[objSel.options.length] = new Option("Tatra", "Tatra");
				objSel.options[objSel.options.length] = new Option("Teleporter", "Teleporter");
				objSel.options[objSel.options.length] = new Option("Terberg", "Terberg");
				objSel.options[objSel.options.length] = new Option("Terex", "Terex");
				objSel.options[objSel.options.length] = new Option("Titan", "Titan");
				objSel.options[objSel.options.length] = new Option("Toyota", "Toyota");
				objSel.options[objSel.options.length] = new Option("UDS", "UDS");
				objSel.options[objSel.options.length] = new Option("Unilift", "Unilift");
				objSel.options[objSel.options.length] = new Option("Unimog", "Unimog");
				objSel.options[objSel.options.length] = new Option("Vibromax", "Vibromax");
				objSel.options[objSel.options.length] = new Option("Vogele", "Vogele");
				objSel.options[objSel.options.length] = new Option("Volvo", "Volvo");
				objSel.options[objSel.options.length] = new Option("Wacker", "Wacker");
				objSel.options[objSel.options.length] = new Option("Weber", "Weber");
				objSel.options[objSel.options.length] = new Option("Wirtgen", "Wirtgen");
				objSel.options[objSel.options.length] = new Option("Yanmar", "Yanmar");
				objSel.options[objSel.options.length] = new Option("Zeppelin", "Zeppelin");
				objSel.options[objSel.options.length] = new Option("Zettelmeyer", "Zettelmeyer");
				objSel.options[objSel.options.length] = new Option("-----------------", "0");
				objSel.options[objSel.options.length] = new Option("Амкодор", "Amkodor");
				objSel.options[objSel.options.length] = new Option("АСФК", "ASFK");
				objSel.options[objSel.options.length] = new Option("БелАЗ", "Belaz");
				objSel.options[objSel.options.length] = new Option("Беларус", "Belarus");
				objSel.options[objSel.options.length] = new Option("ГАЗ", "Gaz");
				objSel.options[objSel.options.length] = new Option("ДЗ", "DZ");
				objSel.options[objSel.options.length] = new Option("ДУ", "DU");
				objSel.options[objSel.options.length] = new Option("ЕК", "EK");
				objSel.options[objSel.options.length] = new Option("ЕТ", "ET");
				objSel.options[objSel.options.length] = new Option("Ивановец", "Ivanovetz");
				objSel.options[objSel.options.length] = new Option("СААЗ АМО ЗИЛ (МДК)", "Zil");
				objSel.options[objSel.options.length] = new Option("КамАЗ", "Kamaz");
				objSel.options[objSel.options.length] = new Option("Кировец", "Kirovetz");
				objSel.options[objSel.options.length] = new Option("КрАЗ", "Kraz");
				objSel.options[objSel.options.length] = new Option("ЛТЗ", "LTZ");
				objSel.options[objSel.options.length] = new Option("МАЗ", "Maz");
				objSel.options[objSel.options.length] = new Option("МЗКТ", "MZKT");
				objSel.options[objSel.options.length] = new Option("МоАЗ", "Moaz");
				objSel.options[objSel.options.length] = new Option("МТЗ", "MTZ");
				objSel.options[objSel.options.length] = new Option("ПК", "PK");
				objSel.options[objSel.options.length] = new Option("ПТЗ", "PTZ");
				objSel.options[objSel.options.length] = new Option("ТВЭКС", "TWEKS");
				objSel.options[objSel.options.length] = new Option("ТО", "TO");
				objSel.options[objSel.options.length] = new Option("УРАЛ", "Ural");
				objSel.options[objSel.options.length] = new Option("ЧСДМ", "CSDM");
				objSel.options[objSel.options.length] = new Option("ЭО", "EO");
				}

				if(cat.value == 'trucks'){

				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}



				typeSel.options.length=0;

				typeSel.options[typeSel.options.length] = new Option("<---ГРУЗОВИКИ И ТЯГАЧИ--->", "");
				typeSel.options[typeSel.options.length] = new Option("автовоз", "car_truck");
				typeSel.options[typeSel.options.length] = new Option("автобетоносмеситель", "mixer_truck");
				typeSel.options[typeSel.options.length] = new Option("бензовоз", "fuel_truck");
				typeSel.options[typeSel.options.length] = new Option("грузовик бортовой", "tilt_truck");
				typeSel.options[typeSel.options.length] = new Option("грузовик с краном", "crane_truck");
				typeSel.options[typeSel.options.length] = new Option("контейнеровоз", "container_truck");
				typeSel.options[typeSel.options.length] = new Option("фургон жесткостенный", "hardbox_truck");
				typeSel.options[typeSel.options.length] = new Option("фургон тентованный", "softbox_truck");
				typeSel.options[typeSel.options.length] = new Option("фургон изотермический", "isobox_truck");
				typeSel.options[typeSel.options.length] = new Option("фургон рефрижераторный", "fridge_truck");
				typeSel.options[typeSel.options.length] = new Option("самосвал", "tipper_truck");
				typeSel.options[typeSel.options.length] = new Option("седельный тягач", "pusher_truck");
				typeSel.options[typeSel.options.length] = new Option("седельный тягач с краном", "pusher_crane");
				typeSel.options[typeSel.options.length] = new Option("шасси", "chassis_truck");
				typeSel.options[typeSel.options.length] = new Option("шасси BDF", "chassis_bdf_truck");
				typeSel.options[typeSel.options.length] = new Option("эвакуатор", "escape_truck");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("<---АВТОПОЕЗДА--->", "");
				typeSel.options[typeSel.options.length] = new Option("автопоезд (фургон + прицеп)", "autotrain");
				typeSel.options[typeSel.options.length] = new Option("сцепка (тягач + п/п)", "combi");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("прочее", "other");





				objSel.options.length=0;

				objSel.options[objSel.options.length] = new Option("BAW", "BAW");
				objSel.options[objSel.options.length] = new Option("CAMC", "CAMC");
				objSel.options[objSel.options.length] = new Option("DAF", "DAF");
				objSel.options[objSel.options.length] = new Option("DongFeng", "DongFeng");
				objSel.options[objSel.options.length] = new Option("FAW", "FAW");
				objSel.options[objSel.options.length] = new Option("FORD", "FORD");
				objSel.options[objSel.options.length] = new Option("Foton", "Foton");
				objSel.options[objSel.options.length] = new Option("Freightliner", "Freightliner");
				objSel.options[objSel.options.length] = new Option("Hino", "Hino");
				objSel.options[objSel.options.length] = new Option("HOWO", "HOWO");
				objSel.options[objSel.options.length] = new Option("Hyundai", "Hyundai");
				objSel.options[objSel.options.length] = new Option("JAC", "JAC");
				objSel.options[objSel.options.length] = new Option("JUEJIN", "JUEJIN");
				objSel.options[objSel.options.length] = new Option("International", "International");
				objSel.options[objSel.options.length] = new Option("Isuzu", "Isuzu");
				objSel.options[objSel.options.length] = new Option("Iveco", "Iveco");
				objSel.options[objSel.options.length] = new Option("Kenworth", "Kenworth");
				objSel.options[objSel.options.length] = new Option("Mack", "Mack");
				objSel.options[objSel.options.length] = new Option("MAN", "MAN");
				objSel.options[objSel.options.length] = new Option("Mercedes-Benz", "Mercedes-Benz");
				objSel.options[objSel.options.length] = new Option("Mitsubishi", "Mitsubishi");
				objSel.options[objSel.options.length] = new Option("Nissan", "Nissan");
				objSel.options[objSel.options.length] = new Option("Peterbilt", "Peterbilt");
				objSel.options[objSel.options.length] = new Option("Renault", "Renault");
				objSel.options[objSel.options.length] = new Option("Scania", "Scania");
				objSel.options[objSel.options.length] = new Option("Sisu", "Sisu");
				objSel.options[objSel.options.length] = new Option("SHAANXI", "SHAANXI");
				objSel.options[objSel.options.length] = new Option("TATA", "TATA");
				objSel.options[objSel.options.length] = new Option("Tatra", "Tatra");
				objSel.options[objSel.options.length] = new Option("Volkswagen", "Volkswagen");
				objSel.options[objSel.options.length] = new Option("Volvo", "Volvo");
				objSel.options[objSel.options.length] = new Option("------------", "0");
				objSel.options[objSel.options.length] = new Option("БелАЗ", "Belaz");
				objSel.options[objSel.options.length] = new Option("ГАЗ", "Gaz");
				objSel.options[objSel.options.length] = new Option("ЗиЛ", "Zil");
				objSel.options[objSel.options.length] = new Option("КамАЗ", "Kamaz");
				objSel.options[objSel.options.length] = new Option("КрАЗ", "Kraz");
				objSel.options[objSel.options.length] = new Option("МАЗ", "Maz");
				objSel.options[objSel.options.length] = new Option("МЗКТ", "MZKT");
				objSel.options[objSel.options.length] = new Option("УаЗ", "Uaz");
				objSel.options[objSel.options.length] = new Option("УРАЛ", "Ural");

			    }

				if(cat.value == 'stroitel'){

				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}


				typeSel.options.length=0;

				typeSel.options[typeSel.options.length] = new Option("автобетононасос", "concrete_pump");
				typeSel.options[typeSel.options.length] = new Option("автобетоносмеситель", "mixer");
				typeSel.options[typeSel.options.length] = new Option("автогрейдер", "graider");
				typeSel.options[typeSel.options.length] = new Option("автокран", "wheel_crane");
				typeSel.options[typeSel.options.length] = new Option("гусеничный кран", "track_crane");
				typeSel.options[typeSel.options.length] = new Option("асфальтоукладчик", "black_top_spreader");
				typeSel.options[typeSel.options.length] = new Option("бульдозер", "dozer");
				typeSel.options[typeSel.options.length] = new Option("буровая установка", "drilling_unit");
				typeSel.options[typeSel.options.length] = new Option("дробильная машина", "crusher");
				typeSel.options[typeSel.options.length] = new Option("каток", "roller");
				typeSel.options[typeSel.options.length] = new Option("погрузчик колесный", "wheel_loader");
				typeSel.options[typeSel.options.length] = new Option("погрузчик гусеничный", "track_loader");
				typeSel.options[typeSel.options.length] = new Option("подъемник", "lift_truck");
				typeSel.options[typeSel.options.length] = new Option("самосвал", "tipper");
				typeSel.options[typeSel.options.length] = new Option("строительный кран", "crane");
				typeSel.options[typeSel.options.length] = new Option("трал", "heavy_duty_trailer");
				typeSel.options[typeSel.options.length] = new Option("трубоукладчик", "pipelayer");
				typeSel.options[typeSel.options.length] = new Option("фреза дорожная", "cutter");
				typeSel.options[typeSel.options.length] = new Option("экскаватор гусеничный", "track_digger");
				typeSel.options[typeSel.options.length] = new Option("экскаватор колесный", "wheel_digger");
				typeSel.options[typeSel.options.length] = new Option("мини-экскаватор", "mini_digger");
				typeSel.options[typeSel.options.length] = new Option("экскаватор-погрузчик", "loader_digger");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("другой", "other");




				objSel.options.length=0;

				objSel.options[objSel.options.length] = new Option("Ahlmann", "Ahlmann");
				objSel.options[objSel.options.length] = new Option("Ammann", "Ammann");
				objSel.options[objSel.options.length] = new Option("Atlas", "Atlas");
				objSel.options[objSel.options.length] = new Option("ATEK", "ATEK");
				objSel.options[objSel.options.length] = new Option("Bell", "Bell");
				objSel.options[objSel.options.length] = new Option("Benfords", "Benfords");
				objSel.options[objSel.options.length] = new Option("Bergmann", "Bergmann");
				objSel.options[objSel.options.length] = new Option("Bobcat", "Bobcat");
				objSel.options[objSel.options.length] = new Option("Bomag", "Bomag");
				objSel.options[objSel.options.length] = new Option("Brokk", "Brokk");
				objSel.options[objSel.options.length] = new Option("Broshuis", "Broshuis");
				objSel.options[objSel.options.length] = new Option("CAMC", "CAMC");
				objSel.options[objSel.options.length] = new Option("Case", "Case");
				objSel.options[objSel.options.length] = new Option("Cat", "Cat");
				objSel.options[objSel.options.length] = new Option("Champion", "Champion");
				objSel.options[objSel.options.length] = new Option("ChengGong", "ChengGong");
				objSel.options[objSel.options.length] = new Option("Choice", "Choice");
				objSel.options[objSel.options.length] = new Option("Cometto", "Cometto");
				objSel.options[objSel.options.length] = new Option("Daewoo", "Daewoo");
				objSel.options[objSel.options.length] = new Option("DAF", "DAF");
				objSel.options[objSel.options.length] = new Option("Demag", "Demag");
				objSel.options[objSel.options.length] = new Option("Digger", "Digger");
				objSel.options[objSel.options.length] = new Option("DongFeng", "DongFeng");
				objSel.options[objSel.options.length] = new Option("Dressta", "Dressta");
				objSel.options[objSel.options.length] = new Option("Dynapac", "Dynapac");
				objSel.options[objSel.options.length] = new Option("EKW", "EKW");
				objSel.options[objSel.options.length] = new Option("Faun", "Faun");
				objSel.options[objSel.options.length] = new Option("Fiat", "Fiat");
				objSel.options[objSel.options.length] = new Option("Fiat-Hitachi", "Fiat-Hitachi");
				objSel.options[objSel.options.length] = new Option("Fiat Kobelco", "Fiat Kobelco");
				objSel.options[objSel.options.length] = new Option("Fuchs", "Fuchs");
				objSel.options[objSel.options.length] = new Option("Furukawa", "Furukawa");
				objSel.options[objSel.options.length] = new Option("Goldhofer", "Goldhofer");
				objSel.options[objSel.options.length] = new Option("Grove", "Grove");
				objSel.options[objSel.options.length] = new Option("Hamm", "Hamm");
				objSel.options[objSel.options.length] = new Option("Hanix", "Hanix");
				objSel.options[objSel.options.length] = new Option("Hanomag", "Hanomag");
				objSel.options[objSel.options.length] = new Option("Hanwoo", "Hanwoo");
				objSel.options[objSel.options.length] = new Option("HBM-Nobas", "HBM-Nobas");
				objSel.options[objSel.options.length] = new Option("Hidromek", "Hidromek");
				objSel.options[objSel.options.length] = new Option("Hitachi", "Hitachi");
				objSel.options[objSel.options.length] = new Option("Honda", "Honda");
				objSel.options[objSel.options.length] = new Option("HOWO", "HOWO");
				objSel.options[objSel.options.length] = new Option("Hydrema", "Hydrema");
				objSel.options[objSel.options.length] = new Option("Hyundai", "Hyundai");
				objSel.options[objSel.options.length] = new Option("Iveco", "Iveco");
				objSel.options[objSel.options.length] = new Option("JCB", "JCB");
				objSel.options[objSel.options.length] = new Option("John Deere", "John Deere");
				objSel.options[objSel.options.length] = new Option("Kalmar", "Kalmar");
				objSel.options[objSel.options.length] = new Option("Kamag", "Kamag");
				objSel.options[objSel.options.length] = new Option("Kato", "Kato");
				objSel.options[objSel.options.length] = new Option("Kawasaki", "Kawasaki");
				objSel.options[objSel.options.length] = new Option("Kobelco", "Kobelco");
				objSel.options[objSel.options.length] = new Option("Komatsu", "Komatsu");
				objSel.options[objSel.options.length] = new Option("Kramer", "Kramer");
				objSel.options[objSel.options.length] = new Option("Kress", "Kress");
				objSel.options[objSel.options.length] = new Option("Krupp", "Krupp");
				objSel.options[objSel.options.length] = new Option("Kubota", "Kubota");
				objSel.options[objSel.options.length] = new Option("Langendorf", "Langendorf");
				objSel.options[objSel.options.length] = new Option("Lee boy", "Leeboy");
				objSel.options[objSel.options.length] = new Option("Lema", "Lema");
				objSel.options[objSel.options.length] = new Option("Liebherr", "Liebherr");
				objSel.options[objSel.options.length] = new Option("Locust", "Locust");
				objSel.options[objSel.options.length] = new Option("Luna", "Luna");
				objSel.options[objSel.options.length] = new Option("MAN", "MAN");
				objSel.options[objSel.options.length] = new Option("Manitou", "Manitou");
				objSel.options[objSel.options.length] = new Option("Mazal", "Mazal");
				objSel.options[objSel.options.length] = new Option("Mercedes-Benz", "Mercedes-Benz");
				objSel.options[objSel.options.length] = new Option("Michigan", "Michigan");
				objSel.options[objSel.options.length] = new Option("Mitsubishi", "Mitsubishi");
				objSel.options[objSel.options.length] = new Option("Mol", "Mol");
				objSel.options[objSel.options.length] = new Option("Moxy", "Moxy");
				objSel.options[objSel.options.length] = new Option("Multicar", "Multicar");
				objSel.options[objSel.options.length] = new Option("Neuson", "Neuson");
				objSel.options[objSel.options.length] = new Option("New-Holland", "New-Holland");
				objSel.options[objSel.options.length] = new Option("Nissan", "Nissan");
				objSel.options[objSel.options.length] = new Option("Nordverk", "Nordverk");
				objSel.options[objSel.options.length] = new Option("O&amp;K", "OK");
				objSel.options[objSel.options.length] = new Option("OMG", "OMG");
				objSel.options[objSel.options.length] = new Option("Otto Kurtbach", "Otto");
				objSel.options[objSel.options.length] = new Option("Orthaus", "Orthaus");
				objSel.options[objSel.options.length] = new Option("Palfinger", "Palfinger");
				objSel.options[objSel.options.length] = new Option("Parma", "Parma");
				objSel.options[objSel.options.length] = new Option("Payloader", "Payloader");
				objSel.options[objSel.options.length] = new Option("PFAFF Silberblau", "Pfaff");
				objSel.options[objSel.options.length] = new Option("PowerCat", "PowerCat");
				objSel.options[objSel.options.length] = new Option("Pramac", "Pramac");
				objSel.options[objSel.options.length] = new Option("Putzmeister", "Putzmeister");
				objSel.options[objSel.options.length] = new Option("Renault", "Renault");
				objSel.options[objSel.options.length] = new Option("Samsung", "Samsung");
				objSel.options[objSel.options.length] = new Option("Scania", "Scania");
				objSel.options[objSel.options.length] = new Option("Schaeff", "Schaeff");
				objSel.options[objSel.options.length] = new Option("SDLG", "SDLG");
				objSel.options[objSel.options.length] = new Option("Siemens", "Siemens");
				objSel.options[objSel.options.length] = new Option("Sisu", "Sisu");
				objSel.options[objSel.options.length] = new Option("Shantui", "Shantui");
				objSel.options[objSel.options.length] = new Option("Tadano Faun", "Tadano-Faun");
				objSel.options[objSel.options.length] = new Option("Takeuchi", "Takeuchi");
				objSel.options[objSel.options.length] = new Option("Tatra", "Tatra");
				objSel.options[objSel.options.length] = new Option("Teleporter", "Teleporter");
				objSel.options[objSel.options.length] = new Option("Terberg", "Terberg");
				objSel.options[objSel.options.length] = new Option("Terex", "Terex");
				objSel.options[objSel.options.length] = new Option("Titan", "Titan");
				objSel.options[objSel.options.length] = new Option("Toyota", "Toyota");
				objSel.options[objSel.options.length] = new Option("UDS", "UDS");
				objSel.options[objSel.options.length] = new Option("Unilift", "Unilift");
				objSel.options[objSel.options.length] = new Option("Unimog", "Unimog");
				objSel.options[objSel.options.length] = new Option("Vibromax", "Vibromax");
				objSel.options[objSel.options.length] = new Option("Vogele", "Vogele");
				objSel.options[objSel.options.length] = new Option("Volvo", "Volvo");
				objSel.options[objSel.options.length] = new Option("Wacker", "Wacker");
				objSel.options[objSel.options.length] = new Option("Weber", "Weber");
				objSel.options[objSel.options.length] = new Option("Wirtgen", "Wirtgen");
				objSel.options[objSel.options.length] = new Option("Witzco", "Witzco");
				objSel.options[objSel.options.length] = new Option("XCMG", "XCMG");
				objSel.options[objSel.options.length] = new Option("Yanmar", "Yanmar");
				objSel.options[objSel.options.length] = new Option("Zeppelin", "Zeppelin");
				objSel.options[objSel.options.length] = new Option("Zettelmeyer", "Zettelmeyer");
				objSel.options[objSel.options.length] = new Option("--------------", "");
				objSel.options[objSel.options.length] = new Option("Амкодор", "Amkodor");
				objSel.options[objSel.options.length] = new Option("АСФК", "ASFK");
				objSel.options[objSel.options.length] = new Option("БелАЗ", "Belaz");
				objSel.options[objSel.options.length] = new Option("Беларус", "Belarus");
				objSel.options[objSel.options.length] = new Option("ГАЗ", "Gaz");
				objSel.options[objSel.options.length] = new Option("ДЗ", "DZ");
				objSel.options[objSel.options.length] = new Option("ДУ", "DU");
				objSel.options[objSel.options.length] = new Option("ЕК", "EK");
				objSel.options[objSel.options.length] = new Option("ЕТ", "ET");
				objSel.options[objSel.options.length] = new Option("Ивановец", "Ivanovetz");
				objSel.options[objSel.options.length] = new Option("СААЗ АМО ЗИЛ (МДК)", "Zil");
				objSel.options[objSel.options.length] = new Option("КамАЗ", "Kamaz");
				objSel.options[objSel.options.length] = new Option("Кировец", "Kirovetz");
				objSel.options[objSel.options.length] = new Option("КрАЗ", "Kraz");
				objSel.options[objSel.options.length] = new Option("ЛТЗ", "LTZ");
				objSel.options[objSel.options.length] = new Option("МАЗ", "Maz");
				objSel.options[objSel.options.length] = new Option("МЗКТ", "MZKT");
				objSel.options[objSel.options.length] = new Option("МоАЗ", "Moaz");
				objSel.options[objSel.options.length] = new Option("МТЗ", "MTZ");
				objSel.options[objSel.options.length] = new Option("ПК", "PK");
				objSel.options[objSel.options.length] = new Option("ПТЗ", "PTZ");
				objSel.options[objSel.options.length] = new Option("ТВЭКС", "TWEKS");
				objSel.options[objSel.options.length] = new Option("ТО", "TO");
				objSel.options[objSel.options.length] = new Option("УРАЛ", "Ural");
				objSel.options[objSel.options.length] = new Option("ЧСДМ", "CSDM");
				objSel.options[objSel.options.length] = new Option("ЭО", "EO");
				}


				if(cat.value == 'lesotech'){

				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}


				typeSel.options.length=0;

				typeSel.options[typeSel.options.length] = new Option("валочно-пакетирующая машина", "feller_buncher");
				typeSel.options[typeSel.options.length] = new Option("харвестер", "harvester");
				typeSel.options[typeSel.options.length] = new Option("лесовоз", "log_truck");
				typeSel.options[typeSel.options.length] = new Option("форвардер (транспортер)", "forwarder");
				typeSel.options[typeSel.options.length] = new Option("скиддер", "skidder");
				typeSel.options[typeSel.options.length] = new Option("погрузчик", "loader");
				typeSel.options[typeSel.options.length] = new Option("", "");
				typeSel.options[typeSel.options.length] = new Option("прочее", "other");




				objSel.options.length=0;

				objSel.options[objSel.options.length] = new Option("Aktiv Skotte", "Aktiv Skotte");
				objSel.options[objSel.options.length] = new Option("Allied", "Allied");
				objSel.options[objSel.options.length] = new Option("Atlas", "Atlas");
				objSel.options[objSel.options.length] = new Option("Assa", "Assa");
				objSel.options[objSel.options.length] = new Option("Bruun", "Bruun");
				objSel.options[objSel.options.length] = new Option("Caterpillar", "Caterpillar");
				objSel.options[objSel.options.length] = new Option("Ckantex", "Ckantex");
				objSel.options[objSel.options.length] = new Option("Eco Log", "Eco Log");
				objSel.options[objSel.options.length] = new Option("Fabtek", "Fabtek");
				objSel.options[objSel.options.length] = new Option("Farmi-Trac", "Farmi-Trac");
				objSel.options[objSel.options.length] = new Option("Fendt", "Fendt");
				objSel.options[objSel.options.length] = new Option("Finn Trac", "Finn Trac");
				objSel.options[objSel.options.length] = new Option("FMG", "FMG");
				objSel.options[objSel.options.length] = new Option("Franklin", "Franklin");
				objSel.options[objSel.options.length] = new Option("Gremo", "Gremo");
				objSel.options[objSel.options.length] = new Option("Hemek", "Hemek");
				objSel.options[objSel.options.length] = new Option("Hudik", "Hudik");
				objSel.options[objSel.options.length] = new Option("John Deere", "JohnDeere");
				objSel.options[objSel.options.length] = new Option("Kockums", "Kockums");
				objSel.options[objSel.options.length] = new Option("Komatsu", "Komatsu");
				objSel.options[objSel.options.length] = new Option("Logman", "Logman");
				objSel.options[objSel.options.length] = new Option("Logset", "Logset");
				objSel.options[objSel.options.length] = new Option("Lokomo", "Lokomo");
				objSel.options[objSel.options.length] = new Option("Lannen", "Lannen");
				objSel.options[objSel.options.length] = new Option("MAN", "MAN");
				objSel.options[objSel.options.length] = new Option("Mercedes-Benz", "Mercedes-Benz");
				objSel.options[objSel.options.length] = new Option("Mini Bruunett", "value");
				objSel.options[objSel.options.length] = new Option("Mini Bruunett", "Mini Bruunett");
				objSel.options[objSel.options.length] = new Option("Neuson", "Neuson");
				objSel.options[objSel.options.length] = new Option("Nokka", "Nokka");
				objSel.options[objSel.options.length] = new Option("Norcar", "Norcar");
				objSel.options[objSel.options.length] = new Option("Osa", "Osa");
				objSel.options[objSel.options.length] = new Option("Pika", "Pika");
				objSel.options[objSel.options.length] = new Option("Ponsse", "Ponsse");
				objSel.options[objSel.options.length] = new Option("ProSilva", "ProSilva");
				objSel.options[objSel.options.length] = new Option("Rottne", "Rottne");
				objSel.options[objSel.options.length] = new Option("Sampo-Rosenlew", "Sampo-Rosenlew");
				objSel.options[objSel.options.length] = new Option("Scania", "Scania");
				objSel.options[objSel.options.length] = new Option("Scorpion", "Scorpion");
				objSel.options[objSel.options.length] = new Option("Sifor", "Sifor");
				objSel.options[objSel.options.length] = new Option("Silvatec", "Silvatec");
				objSel.options[objSel.options.length] = new Option("Skogsjan", "Skogsjan");
				objSel.options[objSel.options.length] = new Option("Snorre", "Snorre");
				objSel.options[objSel.options.length] = new Option("Steber", "Steber");
				objSel.options[objSel.options.length] = new Option("Terri", "Terri");
				objSel.options[objSel.options.length] = new Option("Tigercat", "Tigercat");
				objSel.options[objSel.options.length] = new Option("Timbco", "Timbco");
				objSel.options[objSel.options.length] = new Option("Timberjack", "Timberjack");
				objSel.options[objSel.options.length] = new Option("TimberPro", "TimberPro");
				objSel.options[objSel.options.length] = new Option("Trans-Gesco", "Trans-Gesco");
				objSel.options[objSel.options.length] = new Option("Valmet", "Valmet");
				objSel.options[objSel.options.length] = new Option("Vimek", "Vimek");
				objSel.options[objSel.options.length] = new Option("Volvo", "Volvo");
				objSel.options[objSel.options.length] = new Option("Volvo BM", "Volvo BM");
				objSel.options[objSel.options.length] = new Option("----------------", "");
				objSel.options[objSel.options.length] = new Option("Беларус", "Belarus");
				objSel.options[objSel.options.length] = new Option("ГАЗ", "Gaz");
				objSel.options[objSel.options.length] = new Option("Кировец", "Kirovetz");
				objSel.options[objSel.options.length] = new Option("КрАЗ", "Kraz");
				objSel.options[objSel.options.length] = new Option("МАЗ", "Maz");
				objSel.options[objSel.options.length] = new Option("МЗКТ", "MZKT");
				objSel.options[objSel.options.length] = new Option("МоАЗ", "Moaz");
				objSel.options[objSel.options.length] = new Option("МТЗ", "MTZ");
				objSel.options[objSel.options.length] = new Option("УРАЛ", "Ural");
				objSel.options[objSel.options.length] = new Option("ЧСДМ", "CSDM");
				}

				if(cat.value == 'skladtech'){


				if (t == 'old'){
				var typeSel = document.getElementById("typeold");
				var objSel = document.getElementById("proizvoditelold");
				}

				if (t == 'new'){
				var typeSel = document.getElementById("type");
				var objSel = document.getElementById("proizvoditel");
				}


				typeSel.options.length=0;

				typeSel.options[typeSel.options.length] = new Option("штабелер", "piler");
				typeSel.options[typeSel.options.length] = new Option("рич-трак", "reach_truck");
				typeSel.options[typeSel.options.length] = new Option("сборщик заказов", "collector");
				typeSel.options[typeSel.options.length] = new Option("погрузчик вилочный", "fork_loader");
				typeSel.options[typeSel.options.length] = new Option("погрузчик телескопический", "telescop_loader");
				typeSel.options[typeSel.options.length] = new Option("тележка", "cart");
				typeSel.options[typeSel.options.length] = new Option("стол подъемный", "lift");
				typeSel.options[typeSel.options.length] = new Option("", "");

				typeSel.options[typeSel.options.length] = new Option("прочее", "others");



				objSel.options.length=0;

				objSel.options[objSel.options.length] = new Option("Armanni", "Armanni");
				objSel.options[objSel.options.length] = new Option("Atlet", "Atlet");
				objSel.options[objSel.options.length] = new Option("Balkancar", "Balkancar");
				objSel.options[objSel.options.length] = new Option("Bensler", "Bensler");
				objSel.options[objSel.options.length] = new Option("BT", "BT");
				objSel.options[objSel.options.length] = new Option("Cat", "Cat");
				objSel.options[objSel.options.length] = new Option("Clark", "Clark");
				objSel.options[objSel.options.length] = new Option("Crown", "Crown");
				objSel.options[objSel.options.length] = new Option("Daewoo", "Daewoo");
				objSel.options[objSel.options.length] = new Option("Dimex", "Dimex");
				objSel.options[objSel.options.length] = new Option("Edmolift", "Edmolift");
				objSel.options[objSel.options.length] = new Option("Hubtex", "Hubtex");
				objSel.options[objSel.options.length] = new Option("Hyster", "Hyster");
				objSel.options[objSel.options.length] = new Option("Hyundai", "Hyundai");
				objSel.options[objSel.options.length] = new Option("JCB", "JCB");
				objSel.options[objSel.options.length] = new Option("Jungheinrich", "Jungheinrich");
				objSel.options[objSel.options.length] = new Option("Kalmar", "Kalmar");
				objSel.options[objSel.options.length] = new Option("Komatsu", "Komatsu");
				objSel.options[objSel.options.length] = new Option("Lansing", "Lansing");
				objSel.options[objSel.options.length] = new Option("Lifter", "Lifter");
				objSel.options[objSel.options.length] = new Option("Linde", "Linde");
				objSel.options[objSel.options.length] = new Option("LOC", "LOC");
				objSel.options[objSel.options.length] = new Option("Manitou", "Manitou");
				objSel.options[objSel.options.length] = new Option("Michigan", "Michigan");
				objSel.options[objSel.options.length] = new Option("Mitsubishi", "Mitsubishi");
				objSel.options[objSel.options.length] = new Option("МЗиК", "MZiK");
				objSel.options[objSel.options.length] = new Option("Nissan", "Nissan");
				objSel.options[objSel.options.length] = new Option("Nichiyu", "Nichiyu");
				objSel.options[objSel.options.length] = new Option("Otto Kurtbach", "OK");
				objSel.options[objSel.options.length] = new Option("OMG", "OMG");
				objSel.options[objSel.options.length] = new Option("PFAFF Silberblau", "PFAFF");
				objSel.options[objSel.options.length] = new Option("Powerlifter", "Powerlifter");
				objSel.options[objSel.options.length] = new Option("Rocla", "Rocla");
				objSel.options[objSel.options.length] = new Option("Roltex", "Roltex");
				objSel.options[objSel.options.length] = new Option("Pramac", "Pramac");
				objSel.options[objSel.options.length] = new Option("Samag", "Samag");
				objSel.options[objSel.options.length] = new Option("Steinbock", "Steinbock");
				objSel.options[objSel.options.length] = new Option("Stockin", "Stockin");
				objSel.options[objSel.options.length] = new Option("Still", "Still");
				objSel.options[objSel.options.length] = new Option("TCM", "TCM");
				objSel.options[objSel.options.length] = new Option("Veni", "Veni");
				objSel.options[objSel.options.length] = new Option("Toyota", "Toyota");
				objSel.options[objSel.options.length] = new Option("Unilift", "Unilift");
				objSel.options[objSel.options.length] = new Option("Unimog", "Unimog");
				objSel.options[objSel.options.length] = new Option("Yale", "Yale");
				objSel.options[objSel.options.length] = new Option("Zauber", "Zauber");

				}


}



