
 function exibeFormPasso2(hotel, quarto){
	//alert(msg);
	//$("#textoMSG").innerHTML = msg;
	document.getElementById("hdd_hotel").value = hotel;
	document.getElementById("hdd_quarto").value = quarto;
	$("#layer_passo_2_fundo").fadeIn("slow");
	$("#layer_passo_2").fadeIn("slow");
	//setTimeout("escondeMSG()",7000)
    //$().jqm();
    //$().ready(function() {
    //    $('#layer_passo_2').jqm();
    //});
  }


 
 function fechaFormPasso2(msg){
	//alert(msg);
	//$("#textoMSG").innerHTML = msg;
	$("#layer_passo_2").fadeOut("slow");
	$("#layer_passo_2_fundo").fadeOut("slow");	
	//setTimeout("escondeMSG()",7000)

  }

function MostraLimites(adultos, criancas)
{
    alert('Este quarto suporta no maximo ' + adultos + ' adulto(s) \ne '+criancas+' crianca(s)');
}


function valorCombo(campo, valor){
	
	document.getElementById(campo).value = valor;

}

function buscaCM(){

 	
	var URL = "busca.aspx"
	
	  

	        if(document.getElementById("reserva_dt_start").value != "")
	        {

	            try
	            {
		            URL = URL + "?start-date="+ document.getElementById("reserva_dt_start").value;
                    URL = URL + "&end-date="+ document.getElementById("reserva_dt_end").value;
                   
	            }
	            catch(err)
	             {
                    URL = URL + "?start-date="+ document.getElementById("reserva_dt_start").value;
                    URL = URL + "&end-date="+ document.getElementById("reserva_dt_end").value;
                    
	             }
                  //alert('ali');  
            	 
                URL = URL + "&adultos="+ document.getElementById("speedA").value;
                   //alert('acola');

                URL = URL + "&criancas="+ document.getElementById("speedCr").value;
                  //    alert('desde que');

                URL = URL + "&codCidade="+ document.getElementById("speedC").value;//"&codCidade=SAO&codHotel=169154"//+ 
                
                //alert('agora vá');
                window.location = URL;
            }
            else
            {
                alert('Selecione a data de entrada!')
            }

        
    
}
