function getResorts(country) {
	$('#ajax-loader').show();
	$.ajax({
		type: "POST",
		url: "/ajax/getResorts.php",
		cache: false,
		data: {
			'country': country.value,
			'do_ajax_request': true
		},
		success: function(data) {
			$('#resort_cell').html(data);
			$('#ajax-loader').hide();
		},
		error: function() {
			$('#resort_cell').html("Ошибка загрузки");
			$('#ajax-loader').hide();
		},
		dataType: "html"
	});
}
function getHotels(type) {
	$('#ajax-loader').show();
	$.ajax({
		type: "POST",
		url: "/ajax/getHotels.php",
		cache: false,
		data: {
			'type': type,
			'country': $('#country').val(),
			'resort': $('#resort').val(),
			'do_ajax_request': true
		},
		success: function(data) {
			$('#hotel_cell').html(data);
			$('#ajax-loader').hide();
		},
		error: function() {
			$('#hotel_cell').html("Ошибка загрузки");
			$('#ajax-loader').hide();
		},
		dataType: "html"
	});
}
function setPeople() {
	num_of_sgl = parseInt($('#num_of_sgl').val());
	num_of_dbl = parseInt($('#num_of_dbl').val());
	num_of_tpl = parseInt($('#num_of_tpl').val());

	if (!isNaN(num_of_sgl)&&!isNaN(num_of_dbl)&&!isNaN(num_of_tpl)) {
	  $('#num_of_adults').val(1*num_of_sgl + 2*num_of_dbl + 3*num_of_tpl)
	}

}