	function Clear(campo){
		campo.value='';
	}

	function CheckOrigem(form){
	form = document.frm_combo_duplo;
		retorno = true;
		if (form.intIdOrigem.value == '0'){
			alert('Selecione uma Origem');
			retorno = false;
		} else if ((form.strDestino.value == '') || (form.strDestino.value == "Digite o DESTINO")){
			if (form.intIdOrigem.value == '0') {
				alert('Insira uma Cidade de Destino');
				retorno = false;
			} else {
				form.strDestino.value = '';
			}
		}
		if (retorno == true){
			form.submit();
			return true;
		} else
		{
			return false;
		}
	}

	function CheckEmpresas(form){
	form = document.frm_combo_duplo;
		retorno = true;
		if (form.intIdOrigem.value == '0'){
			alert('Selecione uma Origem');
			retorno = false;
		} else if ((form.strNome_Empresa.value == '') || (form.strNome_Empresa.value == "Digite o Nome da EMPRESA")){
			if (form.intIdOrigem.value == '0') {
				alert('Insira uma Empresa');
				retorno = false;
			} else {
				form.strNome_Empresa.value = '';
			}
		}		
		if (retorno == true){
			form.submit();
			return true;
		} else
		{
			return false;
		}
	}

	function CheckProdutos(form){
	form = document.frm_combo_duplo;
		retorno = true;
		if (form.intIdCategoria.value == '0'){
			alert('Selecione uma Categoria');
			retorno = false;
		} else if ((form.strNome_Empresa.value == '') || (form.strNome_Empresa.value == "Digite o Nome da EMPRESA")){
			if (form.intIdCategoria.value == '0') {
				alert('Insira uma Empresa');
				retorno = false;
			} else {
				form.strNome_Empresa.value = '';
			}
		}		
		if (retorno == true){
			form.submit();
			return true;
		} else
		{
			return false;
		}
	}

	function CheckDistancia(form){
	form = document.frm_combo_duplo;
		retorno = true;
		if (form.intIdEstado.value == '0'){
			alert('Selecione um Estado');
			retorno = false;
		} else if ((form.strDestino.value == '') || (form.strDestino.value == "Digite o DESTINO")){
			if (form.intIdEstado.value == '0') {
				alert('Insira um Estado');
				retorno = false;
			} else {
				form.strDestino.value = '';
			}
		}		
		if (retorno == true){
			form.submit();
			return true;
		} else
		{
			return false;
		}
	}

	function CheckTransportes(form){
	form = document.frm_combo_duplo;
		retorno = true;
		if (form.intIdCategoria.value == '0'){
			alert('Selecione uma Categoria');
			retorno = false;
		} else if ((form.strNome_Empresa.value == '') || (form.strNome_Empresa.value == "Digite o Nome da EMPRESA")){
			if (form.intIdCategoria.value == '0') {
				alert('Insira uma Categoria');
				retorno = false;
			} else {
				form.strNome_Empresa.value = '';
			}
		}		
		if (retorno == true){
			form.submit();
			return true;
		} else
		{
			return false;
		}
	}

	function envia(form){
		document.form.submit;
	}

	function NoAction(){
		//FUNÇÃO QUE NÃO RETORNA NENHUMA AÇÃO!
	}
