function empty() {
form = document.reservation;
if (form.arrival_day.value == "" || form.arrival_month.value == "" || form.arrival_year.value == "" || form.departure_day.value == "" || form.departure_month.value == "" || form.departure_year.value == "" || form.days.value == "" || form.hotel.value == "" || form.category.value == "" || form.type.value == "" || form.food.value == "" || form.avia.value == "" || form.fio_etc.value == "" || form.email.value == "" || form.phone.value == "") {
	alert ('Все поля кроме "Дополнительных услуг" являются обязательными к заполнению.');
	return false;
}
return true;
}

var aCategoryValues = new Array("", "", "Palace Room (Standard) / Palace Room (Pyramids View) / Palace Room (Garden View) / Garden Room (Pyramids View) / Garden Room (Garden View) / Executive Suite / Deluxe Suite / Presidential Suite", "Deluxe Suite / Superior Deluxe Suite / Grand Suite / Royal Suite", "Luxury Cabin Single / Luxury Cabin Double / Luxury Suite", "Single / Double / Suite", "", "", "Deluxe Room / Premium Room / Luxury Room / Executive Suite / Special Executive Suite / Deluxe Suite / Luxury Suite / Duplex Suite / Curzon Suite / Kohinoor Suite", "Deluxe Room / Premium Room / Luxury Room / Luxury Sea View Room / Executive Suite / Deluxe Suite / Luxury Suite / Kohinoor Suite", "Deluxe Room / Premium Room / Executive Suite / Deluxe Suite / Presidential Suite", "Deluxe Room / Premium Room / Classic Suite / Deluxe Suite / Luxury Suite", "Premier Room / Premier Room with Balcony / Deluxe Suite / Luxury Suite / Kohinoor Suite (1 Bedroom) / Kohinoor Suite (2 Bedroom)", "Premier Room / Luxury Tent / Royal Tent / Luxury Villa with Private Pool / Kohinoor Villa with Private Pool", "Premier Room / Premier Lake View Room / Luxury Suite with Private Pool / Kohinoor Suite with Private Pool", "Luxury Tent", "Premier Room / Deluxe Suite / Lord Kitchener Suite", "Deluxe Room / Premium Room / Deluxe Suite / Luxury Suite", "Single / Double", "", "", "Luxury Lanai Garden View / Luxury Lanai Ocean View / Luxury Villa Garden View / Luxury Villa Ocean View / Luxury Villa with pool Garden View / Luxury Villa with pool Ocean View / Royal Villa Ocean View", "Luxury Pavilion Garden View / Luxury Pavilion Ocean View / Luxury Villa Garden View / Luxury Villa Ocean View / Luxury Villa with pool Garden View / Luxury Villa with pool Ocean View / Villa (2 bedrooms) / Royal Villa Ocean View", "", "", "Luxury Pavilion / Luxury Villa with Private Garden / Luxury Villa with Private Pool / Royal Villa", "", "", "City View / Studio Room / Mosque View / Triple Room / Deluxe Junior Suite / Executive Suite / Royal Suite / Grand Royal Suite Mosque View");

function getCategoryValuesByHotel(index){
    var sCategoryValues = aCategoryValues[index];
    return sCategoryValues.split(" / ");
}

function MkCategoryValues(index){
    var aCurrCategoryValues = getCategoryValuesByHotel(index);
    var nCurrCategoryValuesCnt = aCurrCategoryValues.length;
    var oCategoryList = document.forms["reservation"].elements["category"];
    var oCategoryListOptionsCnt = oCategoryList.options.length;
    oCategoryList.length = 0;
    for (i = 0; i < nCurrCategoryValuesCnt; i++){
        if (document.createElement){
            var newCategoryListOption = document.createElement("OPTION");
            newCategoryListOption.text = aCurrCategoryValues[i];
            newCategoryListOption.value = aCurrCategoryValues[i];
            (oCategoryList.options.add) ? oCategoryList.options.add(newCategoryListOption) : oCategoryList.add(newCategoryListOption, null);
        }else{
            oCategoryList.options[i] = new Option(aCurrCategoryValues[i], aCurrCategoryValues[i], false, false);
        }
    }
}

