function loadModels(){

	el = document.forms.carPriceForm.newBrand;
	el2 = document.forms.carPriceForm.newModel;

	$.getJSON("/js/getData.php", { request: 'getModelsPrices', company: $(el).val()}, function(json){

		$(el2).children().remove();
		el2.options[0] =  new Option('- Wybierz -', 0);

		for(j=0; j<json.length; j++){
			var opt = new Option(json[j].model, json[j].model);
			el2.options[el2.options.length] = opt;
		}

		if(idModel.length>0) $('#newModel').val(idModel);
	});

}

