0){
Msg2 += RoomPrice1 + ' '+'CZK (off-season price/night) x '+OType+' '+nights_num(OType)+' ';
Sum2 += RoomPrice1*OType;
}
if (SType > 0){
if (Msg2) Msg2 += ' + ';
Msg2 += RoomPrice2 + ' '+'CZK (season price/night) x '+SType+' '+nights_num(SType)+' ';
Sum2 += RoomPrice2*SType;
}
if (HType > 0){
if (Msg2) Msg2 += ' + ';
Msg2 += RoomPrice3 + ' '+'CZK (holiday price/night) x '+HType+' '+nights_num(HType)+' ('+HStr+')';
Sum2 += RoomPrice3*HType;
}
if ((OType < Nights) || (SType < Nights) || (HType < Nights)) Msg += '['+Msg2+']';
if (RoomCount > 1) Msg += ' x '+RoomCount+' '+rooms_num(RoomCount)+' ';
Msg += '= '+Sum2*RoomCount+' '+'CZK';
Sum += Sum2*RoomCount;
if (ExtraPerson && (((ExtraPerson > 0) && PPlus) || ((ExtraPerson < 0) && PMinus)) ){
Msg += '
Normal capacity of this room is '+NormalPersonCount+' '+people_num(NormalPersonCount) + ', but there will be '+(ExtraPerson>0? 'more people':'less people') + ' ('+Math.abs(ExtraPerson)+'), so we must '+(ExtraPerson>0? 'add ':'substract ');
Msg += Math.abs(ExtraPerson)+' '+people_num(Math.abs(ExtraPerson))+' x ' + Math.abs(ExtraPerson>0?PPlus:PMinus) + ' CZK/night x '+Nights+' '+nights_num(Nights)+' = '+Math.abs(ExtraPerson)*(ExtraPerson>0?PPlus:PMinus)*Nights+' '+'CZK';
Sum += Math.abs(ExtraPerson)*(ExtraPerson>0?PPlus:PMinus)*Nights;
}
}
}
SumVal = ''+Sum + ' '+'CZK ≈ '+Math.floor(Sum/cur_euro)+' €';
if (NextYear){
Msg += 'ATTENTION, the prices for next year might be subject to change. The current price was calculated using prices valid for this year. Our online operator will inform you about the exact price once you submit your reservation.
';
}
if (sale){
Msg += 'ATTENTION, because your stay at the hotel coincides with a discount or top term, the actual price can differ (it may be lower or higher). Please, refer to the top part of the reservation page for details on current discounts or top terms. Our online operator will inform you about the exact price once you submit your reservation.
';
}
ChangeInnerHTML ('SumDescription', Msg);
f.hidOrderText.value = Msg;
ChangeInnerHTML ('SumValue', SumVal);
f.hidOrderPrice.value = SumVal;
Res = true;
}
return (Res);
}
function CheckForm (F){
var Res = recalculate (true);
var Err = '';
var Missed = '';
if (Res){
// Kontrola kontaktnich udaju
if (!get_value(F.edName)) Missed += "\n\tYour name";
if (!get_value(F.edSurname)) Missed += "\n\tYour surname";
if (!get_value(F.edEmail)) Missed += "\n\tYour email";
if (!get_value(F.edCountry)) Missed += "\n\tYour country";
if (get_value(F.edEmail) && !ValidEmail(F.edEmail.value)) Missed += "\n\tThe email address you have entered is incorrect";
if (Missed){
Missed = "Please fill in the following details before submitting the form:\n" + Missed;
Err = Missed + Err;
alert (Err);
Res = false;
} else Res=true;
}
return (Res);
}