Calendar.setup({
     inputField     :    "FechaEntrada",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     button         :    "f_trigger_ini",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

Calendar.setup({
     inputField     :    "FechaSalida",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     button         :    "f_trigger_fin",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

Calendar.setup({
     inputField     :    "FechaEntradaApartamento",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     button         :    "f_trigger_iniApartamento",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

Calendar.setup({
     inputField     :    "FechaSalidaApartamento",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     button         :    "f_trigger_finApartamento",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});
	
Calendar.setup({
     inputField     :    "FechaEntrada",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     //button         :    "f_trigger_ini",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

Calendar.setup({
     inputField     :    "FechaSalida",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     //button         :    "f_trigger_fin",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

Calendar.setup({
     inputField     :    "FechaEntradaApartamento",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     //button         :    "f_trigger_iniApartamento",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

Calendar.setup({
     inputField     :    "FechaSalidaApartamento",     // id of the input field
     ifFormat       :    "%e/%m/%Y",      // format of the input field
     //button         :    "f_trigger_finApartamento",  // trigger for the calendar (button ID)
     align          :    "tl",           // alignment (defaults to "Bl")
     singleClick    :    true
});

var fecha = new Date(); 
var mes = fecha.getMonth()+1;
var diamas=fecha.getDate();
var anio=fecha.getYear();

if (anio < 1000)
  anio = anio + 1900;
var dia_de_hoy = fecha.getDate() + "/" + mes + "/" + anio;


milisegundos=parseInt(1*24*60*60*1000);
 
 fecha=new Date();
 
  
 tiempo=fecha.getTime();
 total=fecha.setTime(parseInt(tiempo+milisegundos));
 diamas=fecha.getDate();
 mes=fecha.getMonth()+1;
 anio=fecha.getYear();



if (anio < 1000)
  anio = anio + 1900;
var dia_de_mas = diamas + "/" + mes + "/" + anio;



 
document.getElementById('FechaEntrada').value=dia_de_hoy; 
document.getElementById('FechaSalida').value=dia_de_mas; 

document.getElementById('FechaEntradaApartamento').value=dia_de_hoy;
document.getElementById('FechaSalidaApartamento').value=dia_de_mas;
//-->

