function photosPopUp(url) {
	window.open(url, 'photosPopUp', 'width=600,height=400,resizable=no,scrollbars=no,status=no');
	return false;
}

function get_hotel_list(id) {
	if (id == 0) return;
	new Ajax.Request('index.php', {
		method: 'post',
		parameters: {
			'page':	'get_hotel_list',
			'id':	id
		},
		onSuccess: function(transport) {
			$('hotel_list').update(transport.responseText);
			$('hotel_list').disabled = false;
		}
	});
}

function show_all() {
	new Ajax.Request('index.php', {
		method: 'post',
		parameters: {
			'page':	'show_all'
		},
		onSuccess: function(transport) {
			$('result').update(transport.responseText);
			$('result').style.display = 'block';
		}
	});
	return false;
}

function get_content() {
	new Ajax.Request('index.php', {
		method: 'post',
		parameters: {
			'page':	'get_content',
			'city':	$('city').value,
			'hotel_id':	$('hotel_list').value
		},
		onSuccess: function(transport) {
			$('result').update(transport.responseText);
			$('result').style.display = 'block';
		}
	});
	return false;
}

function getPropInfo(city, id) {
	new Ajax.Request('index.php', {
		method: 'post',
		parameters: {
			'page':	'get_content',
			'city':	city,
			'hotel_id':	0
		},
		onSuccess: function(transport) {
			$('result').update(transport.responseText);
			$('result').style.display = 'block';
		}
	});
	return false;
}