function submitFhotel()
{
var d = document.FHOTEL;
nCamere = d.combo_camere.value;
totParticipant = 0;
for (var i=1;i<=nCamere;i++){
totParticipant = totParticipant + parseInt(eval('d.combo_adulti'+i+'.value')) + parseInt(eval('d.combo_bambini'+i+'.value'));
}
if (totParticipant > 2) {
alert('Numero massimo di partecipanti superato');
return;
}
if(!dateCoerenti(document.forms['FHOTEL'].COMBO_INIZIOMM_AA.value,document.forms['FHOTEL'].combo_finemm_aa.value))
{
alert('Data Check-Out non ammessa');
return;
}
if (trim(document.forms['FHOTEL'].localityId.value) != '')
{
if(controllaEtaBambini(1))
{
document.forms['FHOTEL'].Search.style.display="none"
formsSubmit("hotelQueryGet",document.FHOTEL);toggleLink(this,"");
}
else
{
alert(":INS_ETA_BAMBINI:I:2C:");
}
}
else
{
alert("Digita la destinazione");
}
}
function initRoomCombos(maxRooms, maxPaxRoom)
{
i_c ('numero','htlprn','htlprn_title','htlprn_bmb','htlprn_bmb_title');
i_l_c("Camere","Camera","Adulti:","Bambini:","matrimoniale
(solo segnalazione)","Doppia uso singola","Et ","
Specificate l'et dei bambini al momento del viaggio. Potrebbero essere previsti sconti.");
i_v_c(1, maxRooms, 1, maxPaxRoom, 0, maxPaxRoom + 1, 1);
i_a(2);
agg();
arrSave();
}
initRoomCombos(1, 2)