<!--
function mostraRoteiros() {
   var perf = new String(frm1.combo_perfis.value);
   var tempo = new String(frm1.combo_TiposDest.value);
   var dest = new String(frm1.combo_destinos.value);
   
   //alert("Roteiros.asp?id=" + dest + "&tipo=" + tempo + "&perfil=" + perf);
   if ((perf != "")  && (tempo != "")  && (dest != "")) {
      window.location = "/Roteiros.asp?id=" + dest + "&tipo=" + tempo + "&perfil=" + perf;
   }
}

function getTiposDestinoByPerfil() {
	var obj = createXMLHTTP();
	var perf = new String(frm1.combo_perfis.value);
	if (perf != "") {
		obj.open("post", "/scripts/getTiposDestinoByPerfil.asp", true);
		obj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		obj.onreadystatechange=function(){
			if (obj.readyState == 4) {
				document.all.divAJAXTiposDest.innerHTML = obj.responseText;
			}
		}
		obj.send("codigoperfilviajante=" + frm1.combo_perfis.value);
		frm1.combo_destinos.selectedIndex = 0;
	} else {
		frm1.combo_TiposDest.selectedIndex = 0;
		frm1.combo_destinos.selectedIndex = 0;
	}
}

function getDestinosByPerfil_TipoDestino() {
	var obj = createXMLHTTP();
	var td = new String(frm1.combo_TiposDest.value);
	if (td != "") {
		obj.open("post", "/scripts/getDestinosByPerfil_TipoDestino.asp", true);
		obj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		obj.onreadystatechange=function(){
			if (obj.readyState==4) {
				document.all.divAJAXDest.innerHTML = obj.responseText;
			}
		}
		obj.send("codigoperfilviajante=" + frm1.combo_perfis.value + "&codigotipodestino=" + frm1.combo_TiposDest.value);
	} else {
		frm1.combo_destinos.selectedIndex = 0;
	}	
}
-->