var initHtml = '';

function getCitiesAjax(countryId, initH)
{
	if(initHtml == '')
		initHtml = $('filterLocationDiv').innerHTML
	var req = new Ajax.Request(
		'/server/getCities.php',
		{
			method: 'post',
			parameters: {country_id:countryId},
			onComplete: reloadCities
		}
	);
}

function reloadCities(result)
{
	var div  = $('filterLocationDiv');
	div.innerHTML = result.responseText;
	alert(sel.innerHTML);
}

function makeSearch(lng)
	{
		var zero  = 1;
		var price = document.forms.form1['filterPrice'];
		var contr = document.forms.form1['filterCountry'];
		var loc   = document.forms.form1['filterLocation'];
		var beds  = document.forms.form1['filterBedrooms'];
		var pType = document.forms.form1['filterPropType'];
		
		window.location.href = '/' + lng + '/Bulgarian_properties/' + zero + '/' + parseInt(price.value) + '/' + parseInt(loc.value) + '/' + parseInt(beds.value) + '/' + parseInt(pType.value) + '/' + parseInt(contr.value) + '/1.html' ;
	}
