<!--
	// listagem de marcas
	function getMarcas(tipo, site){ //este retorna uma struct para efeito de Deptoção
		DWREngine.setVerb("POST");
		DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'getMarcas', tipo, site, getMarcasRes);
	}
	
	function getMarcasRes(sMarcas){		
		if (sMarcas.registros > 0){
			var getNome = function(thisRow){return thisRow.nm_veiculomarca;}	
			var getValor = function(thisRow){return thisRow.id_veiculomarca;}		
			DWRUtil.removeAllOptions("ID_Marca");
			document.getElementById("ID_Marca").options[0] = new Option('( Selecione )', '0');
			DWRUtil.addOptions("ID_Marca", sMarcas.query, [getValor, getNome], null);
			document.getElementById("ID_Marca").options[0].selected = true;
			return true;
		}
	}	

	// listagem de modelos
	function getModelos(marca, site){ //este retorna uma struct para efeito de Deptoção
		DWREngine.setVerb("POST");
		DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'getModelos', marca, site, getModelosRes);
	}
	
	function getModelosRes(sModelos){		
		if (sModelos.registros > 0){
			var getNome = function(thisRow){return thisRow.nm_veiculomodelo;}	
			var getValor = function(thisRow){return thisRow.id_veiculomodelo;}		
			DWRUtil.removeAllOptions("ID_Modelo");		
			document.getElementById("ID_Modelo").options[0] = new Option('( Selecione )', '0');
			DWRUtil.addOptions("ID_Modelo", sModelos.query, [getValor, getNome], null);
			document.getElementById("ID_Modelo").options[0].selected = true;
			return true;
		}
	}	
//-->
