var numbers = {
				1 : {id1 : 'Стандартный номер', id2 : 'Номер повышенной комфортности', id3 : 'Люкс', id4 : 'Апартаменты'},
				2 : {id1 : 'Стандартный номер', id2 : 'Номер повышенной комфортности', id3 : 'Полулюкс', id4 : 'Люкс'},
				3 : {id1 : 'Стандартный номер', id2 : 'Номер повышенной комфортности', id3 : 'Номер с мансардой', id4 : 'Люкс', id5 : 'Люкс с эркером'}
			   };

function onChangeHotel(select)
{
    var numberSelect = document.getElementById('selRooms');
    numberSelect.innerHTML = '';

    numberSelect.appendChild(createOption(null, 'Выберите тип номера', true));
    numberSelect.appendChild(createOption(null, '----------------', true));

    for (i in numbers[select.value]) {
        numberSelect.appendChild(createOption(numbers[select.value][i], numbers[select.value][i]));
    }
}

function createOption(val, text, disabled)
{
    var option = document.createElement('option');
    option.appendChild(document.createTextNode(text));

    if (typeof(disabled) != 'undefined' && disabled) {
        option.setAttribute('disabled', true);
    }

    if (typeof(val) != 'undefined' && null !== val) {
        option.setAttribute('value', val);
    }

    return option;
}
