
function save_state(){
	
	country_select = document.getElementById('country');	
	region_select = document.getElementById('region');
	currency_select = document.getElementById('currency');
	minPrice_select = document.getElementById('minPrice');
	maxPrice_select = document.getElementById('maxPrice');
	propertyType_select = document.getElementById('propertyType');
	bedrooms_select = document.getElementById('bedrooms');
	
	SetCookie('country',country_select.options[country_select.selectedIndex].value);
	SetCookie('region', region_select.options[region_select.selectedIndex].value);
	SetCookie('currency',currency_select.options[currency_select.selectedIndex].value);
	SetCookie('minprice',minPrice_select.options[minPrice_select.selectedIndex].value);
	SetCookie('maxprice',maxPrice_select.options[maxPrice_select.selectedIndex].value);
	SetCookie('property',propertyType_select.options[propertyType_select.selectedIndex].value);
	//SetCookie('bedrooms',bedrooms_select.options[bedrooms_select.selectedIndex].value);

	
}

function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1) endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
return null;
}

function SetCookie (name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
	((path == null) ? "" : ("; path=" + path)) +
	((domain == null) ? "" : ("; domain=" + domain)) +
	((secure == true) ? "; secure" : "");
}


function InitialiseCountries() {

var country_select = document.getElementById('country');
	country_select.options[0] = new Option("All");
	country_select.options[0].value = "All";
var region_select = document.getElementById('region');
	region_select.options[0] = new Option("All");
	region_select.options[0].value = "All";
	country_select.options[1] = new Option("America");
	country_select.options[1].value = "America";
	country_select.options[2] = new Option("Brazil");
	country_select.options[2].value = "Brazil";
	country_select.options[3] = new Option("Bulgaria");
	country_select.options[3].value = "Bulgaria";
	country_select.options[4] = new Option("Canada");
	country_select.options[4].value = "Canada";
	country_select.options[5] = new Option("Caribbean");
	country_select.options[5].value = "Caribbean";
	country_select.options[6] = new Option("Crete");
	country_select.options[6].value = "Crete";
	country_select.options[7] = new Option("Cyprus");
	country_select.options[7].value = "Cyprus";
	country_select.options[8] = new Option("Dubai");
	country_select.options[8].value = "United Arab Emirates";
	country_select.options[9] = new Option("Egypt");
	country_select.options[9].value = "Egypt";
	country_select.options[10] = new Option("Malaysia");
	country_select.options[10].value = "Malaysia";
	country_select.options[11] = new Option("Morocco");
	country_select.options[11].value = "Morocco";
	country_select.options[12] = new Option("Portugal");
	country_select.options[12].value = "Portugal";
	country_select.options[13] = new Option("Spain");
	country_select.options[13].value = "Spain";
	country_select.options[14] = new Option("Turkey");
	country_select.options[14].value = "Turkey";
	country_select.options[15] = new Option("Bahamas");
	country_select.options[15].value = "Bahamas";
	country_select.options[16] = new Option("Brazil");
	country_select.options[16].value = "Brazil";
	country_select.options[17] = new Option("Thailand");
	country_select.options[17].value = "Thailand";
	country_select.options[18] = new Option("Australia");
	country_select.options[18].value = "Australia";
	country_select.options[19] = new Option("Barbados");
	country_select.options[19].value = "Barbados";
	country_select.options[20] = new Option("Dominican Republic");
	country_select.options[20].value = "Dominican Republic";
}

//--------------------------------------- End of InitialiseCountires Function 

function FillRegions() 
{
	var country_select = document.searchForm.country;
	var region_select = document.searchForm.region;
	document.searchForm.forDubai.value = "";
	if( country_select.options[country_select.selectedIndex].value == "All" ) 
	{
		region_select.length = 0;
		region_select.options[0] = new Option("All");
		region_select.options[0].value = "All";

	} 
	else 
	{
		if( country_select.options[country_select.selectedIndex].value == "America" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Orlando Florida");
			region_select.options[1].value = "Orlando Florida";
			region_select.options[2] = new Option("Daytona Florida");
			region_select.options[2].value = "Daytona Florida";
		}

		if( country_select.options[country_select.selectedIndex].value == "Brazil" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Natal");
			region_select.options[1].value = "Natal";
		}

		if( country_select.options[country_select.selectedIndex].value == "Bulgaria" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Kavarna");
			region_select.options[1].value = "Kavarna";
			region_select.options[2] = new Option("Obzor");
			region_select.options[2].value = "Obzor";
		}

		if( country_select.options[country_select.selectedIndex].value == "Canada" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Quebec");
			region_select.options[1].value = "Quebec";
		}

		if(country_select.options[country_select.selectedIndex].value == "Caribbean" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("St. Lucia");
			region_select.options[1].value = "St. Lucia";
			region_select.options[2] = new Option("Barbados");
			region_select.options[2].value = "Barbados";
		}

		if( country_select.options[country_select.selectedIndex].value == "Crete" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Rethymno");
			region_select.options[1].value = "Rethymno";
			region_select.options[2] = new Option("Chania");
			region_select.options[2].value = "Chania";
			region_select.options[3] = new Option("Kournas");
			region_select.options[3].value = "Kournas";
			region_select.options[4] = new Option("Prinos");
			region_select.options[4].value = "Prinos";
			region_select.options[5] = new Option("Selia");
			region_select.options[5].value = "Selia";
		}

		if( country_select.options[country_select.selectedIndex].value == "Cyprus" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Pafos");
			region_select.options[1].value = "Pafos";
			region_select.options[2] = new Option("Limassol");
			region_select.options[2].value = "Limassol";
			region_select.options[3] = new Option("Polis-Latchi");
			region_select.options[3].value = "Polis-Latchi";
			region_select.options[4] = new Option("Polis");
			region_select.options[4].value = "Polis";
			region_select.options[5] = new Option("Peyia");
			region_select.options[5].value = "Peyia";
			region_select.options[6] = new Option("Kato-Pafos");
			region_select.options[6].value = "Kato-Pafos";
			region_select.options[7] = new Option("Tala");
			region_select.options[7].value = "Tala";
			region_select.options[8] = new Option("Geriskipou");
			region_select.options[8].value = "Geriskipou";
			region_select.options[9] = new Option("Trimithousa");
			region_select.options[9].value = "Trimithousa";
		}

		if( country_select.options[country_select.selectedIndex].value == "United Arab Emirates" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Dubai City");
			region_select.options[1].value = "Dubai City";
			document.searchForm.forDubai.value = "United Arab Emirates";
		}

		if( country_select.options[country_select.selectedIndex].value == "Egypt" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Hurghada");
			region_select.options[1].value = "Hurghada";
		}

		if( country_select.options[country_select.selectedIndex].value == "Malaysia" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Port Dickson");
			region_select.options[1].value = "Port Dickson";
		}

		if( country_select.options[country_select.selectedIndex].value == "Morocco" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Saïdia");
			region_select.options[1].value = "Saïdia";
		}

		if( country_select.options[country_select.selectedIndex].value == "Portugal" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Castro Marim");
			region_select.options[1].value = "Castro Marim";
			region_select.options[2] = new Option("Monte Gordo");
			region_select.options[2].value = "Monte Gordo";
			region_select.options[3] = new Option("Cabanas De Tavira");
			region_select.options[3].value = "Cabanas De Tavira";
			region_select.options[4] = new Option("Altura");
			region_select.options[4].value = "Altura";
			region_select.options[5] = new Option("Vila Real");
			region_select.options[5].value = "Vila Real";
			region_select.options[6] = new Option("Manta Rota");
			region_select.options[6].value = "Manta Rota";
			region_select.options[7] = new Option("Quinta do Sobral");
			region_select.options[7].value = "Quinta do Sobral";
			region_select.options[8] = new Option("Quinta da Pegada");
			region_select.options[8].value = "Quinta da Pegada";
			region_select.options[9] = new Option("Vila das Lagoas");
			region_select.options[9].value = "Vila das Lagoas";
			region_select.options[10] = new Option("Santa Luzia");
			region_select.options[10].value = "Santa Luzia";
			region_select.options[11] = new Option("Tavira");
			region_select.options[11].value = "Tavira";
		}

		if( country_select.options[country_select.selectedIndex].value == "Spain" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Costa de la Luz");
			region_select.options[1].value = "Costa de la Luz";
			region_select.options[2] = new Option("Costa del Sol");
			region_select.options[2].value = "Costa del Sol";
			region_select.options[3] = new Option("Costa Blanca North");
			region_select.options[3].value = "Costa Blanca North";
			region_select.options[4] = new Option("Costa de Almeria");
			region_select.options[4].value = "Costa de Almeria";
		}

		if( country_select.options[country_select.selectedIndex].value == "Turkey" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			region_select.options[1] = new Option("Bodrum");
			region_select.options[1].value = "Bodrum";
			region_select.options[2] = new Option("Fethiye");
			region_select.options[2].value = "Fethiye";
			region_select.options[3] = new Option("Kalkan");
			region_select.options[3].value = "Kalkan";
			region_select.options[4] = new Option("Ovacik");
			region_select.options[4].value = "Ovacik";
			region_select.options[5] = new Option("Calis");
			region_select.options[5].value = "Calis";
			region_select.options[6] = new Option("Gocek");
			region_select.options[6].value = "Gocek";
			region_select.options[7] = new Option("Didim");
			region_select.options[7].value = "Didim";
			region_select.options[8] = new Option("Güllük");
			region_select.options[8].value = "Güllük";
			region_select.options[9] = new Option("Dalaman");
			region_select.options[9].value = "Dalaman";
			region_select.options[10] = new Option("Akbuk");
			region_select.options[10].value = "Akbuk";
		}

		if( country_select.options[country_select.selectedIndex].value == "Thailand" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			document.searchForm.forDubai.value = "Thailand";
			//document.searchForm.action="searchresults_dub.php";
		}

		if( country_select.options[country_select.selectedIndex].value == "Australia" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			document.searchForm.forDubai.value = "Australia";
//			document.searchForm.action="searchresults_dub.php";
		}

		if( country_select.options[country_select.selectedIndex].value =="Barbados" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			document.searchForm.forDubai.value = "Barbados";
//			document.searchForm.action="searchresults_dub.php";
		}

		if( country_select.options[country_select.selectedIndex].value == "Dominican Republic" ) 
		{
			region_select.length = 0;
			region_select.options[0] = new Option("All");
			region_select.options[0].value = "All";
			document.searchForm.forDubai.value = "Dominican Republic";
			//document.searchForm.action="searchresults_dub.php";
		}
	}
}

//--------------------------------------- End of InitialiseRegion Function 

function InitialiseMinMaxPrices() 
{
	var currency_select = document.getElementById('currency');
	var minPrice_select = document.getElementById('minPrice');
	var maxPrice_select = document.getElementById('maxPrice');
	if( currency_select.options[currency_select.selectedIndex].value == "0" ) {
	minPrice_select.length = 0;
	minPrice_select.options[0] = new Option("No minimum");
	minPrice_select.options[0].value = 0;
	maxPrice_select.length = 0;
	maxPrice_select.options[0] = new Option("No maximum");
	maxPrice_select.options[0].value = 0;
}	
	currency_select.options[0] = new Option("GBP United Kingdom Pounds");
	currency_select.options[0].value = 1;
	currency_select.options[1] = new Option("USD United States Dollars");
	currency_select.options[1].value = 2;
	currency_select.options[2] = new Option("EUR Euros");
	currency_select.options[2].value = 3;
	currency_select.options[3] = new Option("CYP Cyprus Pounds");
	currency_select.options[3].value = 4;
	currency_select.options[4] = new Option("TRY Turkey New Lira");
	currency_select.options[4].value = 5;
	currency_select.options[5] = new Option("MAD Morocco Dirhams");
	currency_select.options[5].value = 6;
	currency_select.options[6] = new Option("ZAR South Africa Rand");
	currency_select.options[6].value = 1456;
	currency_select.options[7] = new Option("PLN Poland Zlotych");
	currency_select.options[7].value = 1224;
	currency_select.options[8] = new Option("EGP Egypt Pounds");
	currency_select.options[8].value = 1152;
	currency_select.options[9] = new Option("CAD Canada Dollars");
	currency_select.options[9].value = 1134;

	minPrice_select.options[1] = new Option("20,000");
	minPrice_select.options[1].value = 20000;
	minPrice_select.options[2] = new Option("25,000");
	minPrice_select.options[2].value = 25000;
	minPrice_select.options[3] = new Option("30,000");
	minPrice_select.options[3].value = 30000;
	minPrice_select.options[4] = new Option("35,000");
	minPrice_select.options[4].value = 35000;
	minPrice_select.options[5] = new Option("40,000");
	minPrice_select.options[5].value = 40000;
	minPrice_select.options[6] = new Option("45,000");
	minPrice_select.options[6].value = 45000;
	minPrice_select.options[7] = new Option("50,000");
	minPrice_select.options[7].value = 50000;
	minPrice_select.options[8] = new Option("60,000");
	minPrice_select.options[8].value = 60000;
	minPrice_select.options[9] = new Option("70,000");
	minPrice_select.options[9].value = 70000;
	minPrice_select.options[10] = new Option("80,000");
	minPrice_select.options[10].value = 80000;
	minPrice_select.options[11] = new Option("90,000");
	minPrice_select.options[11].value = 90000;
	minPrice_select.options[12] = new Option("100,000");
	minPrice_select.options[12].value = 100000;
	minPrice_select.options[13] = new Option("110,000");
	minPrice_select.options[13].value = 110000;
	minPrice_select.options[14] = new Option("120,000");
	minPrice_select.options[14].value = 120000;
	minPrice_select.options[15] = new Option("130,000");
	minPrice_select.options[15].value = 130000;
	minPrice_select.options[16] = new Option("140,000");
	minPrice_select.options[16].value = 140000;
	minPrice_select.options[17] = new Option("150,000");
	minPrice_select.options[17].value = 150000;
	minPrice_select.options[18] = new Option("160,000");
	minPrice_select.options[18].value = 160000;
	minPrice_select.options[19] = new Option("170,000");
	minPrice_select.options[19].value = 170000;
	minPrice_select.options[20] = new Option("180,000");
	minPrice_select.options[20].value = 180000;
	minPrice_select.options[21] = new Option("190,000");
	minPrice_select.options[21].value = 190000;
	minPrice_select.options[22] = new Option("200,000");
	minPrice_select.options[22].value = 200000;
	minPrice_select.options[23] = new Option("225,000");
	minPrice_select.options[23].value = 225000;
	minPrice_select.options[24] = new Option("250,000");
	minPrice_select.options[24].value = 250000;
	minPrice_select.options[25] = new Option("275,000");
	minPrice_select.options[25].value = 275000;
	minPrice_select.options[26] = new Option("300,000");
	minPrice_select.options[26].value = 300000;
	minPrice_select.options[27] = new Option("325,000");
	minPrice_select.options[27].value = 325000;
	minPrice_select.options[28] = new Option("350,000");
	minPrice_select.options[28].value = 350000;
	minPrice_select.options[29] = new Option("375,000");
	minPrice_select.options[29].value = 375000;
	minPrice_select.options[30] = new Option("400,000");
	minPrice_select.options[30].value = 400000;
	minPrice_select.options[31] = new Option("425,000");
	minPrice_select.options[31].value = 425000;
	minPrice_select.options[32] = new Option("450,000");
	minPrice_select.options[32].value = 450000;
	minPrice_select.options[33] = new Option("475,000");
	minPrice_select.options[33].value = 475000;
	minPrice_select.options[34] = new Option("500,000");
	minPrice_select.options[34].value = 500000;
	minPrice_select.options[35] = new Option("550,000");
	minPrice_select.options[35].value = 550000;
	minPrice_select.options[36] = new Option("600,000");
	minPrice_select.options[36].value = 600000;
	minPrice_select.options[37] = new Option("650,000");
	minPrice_select.options[37].value = 650000;
	minPrice_select.options[38] = new Option("700,000");
	minPrice_select.options[38].value = 700000;
	minPrice_select.options[39] = new Option("800,000");
	minPrice_select.options[39].value = 800000;
	minPrice_select.options[40] = new Option("900,000");
	minPrice_select.options[40].value = 900000;
	minPrice_select.options[41] = new Option("1,000,000");
	minPrice_select.options[41].value = 1000000;
	minPrice_select.options[42] = new Option("1,500,000");
	minPrice_select.options[42].value = 1500000;
	minPrice_select.options[43] = new Option("2,000,000");
	minPrice_select.options[43].value = 2000000;
	minPrice_select.options[44] = new Option("2,500,000");
	minPrice_select.options[44].value = 2500000;
	minPrice_select.options[45] = new Option("3,000,000");
	minPrice_select.options[45].value = 3000000;
	minPrice_select.options[46] = new Option("3,500,000");
	minPrice_select.options[46].value = 3500000;
	minPrice_select.options[47] = new Option("4,000,000");
	minPrice_select.options[47].value = 4000000;
	minPrice_select.options[48] = new Option("5,000,000");
	minPrice_select.options[48].value = 5000000;
	minPrice_select.options[49] = new Option("6,000,000");
	minPrice_select.options[49].value = 6000000;

	maxPrice_select.options[1] = new Option("20,000");
	maxPrice_select.options[1].value = 20000;
	maxPrice_select.options[2] = new Option("25,000");
	maxPrice_select.options[2].value = 25000;
	maxPrice_select.options[3] = new Option("30,000");
	maxPrice_select.options[3].value = 30000;
	maxPrice_select.options[4] = new Option("35,000");
	maxPrice_select.options[4].value = 35000;
	maxPrice_select.options[5] = new Option("40,000");
	maxPrice_select.options[5].value = 40000;
	maxPrice_select.options[6] = new Option("45,000");
	maxPrice_select.options[6].value = 45000;
	maxPrice_select.options[7] = new Option("50,000");
	maxPrice_select.options[7].value = 50000;
	maxPrice_select.options[8] = new Option("60,000");
	maxPrice_select.options[8].value = 60000;
	maxPrice_select.options[9] = new Option("70,000");
	maxPrice_select.options[9].value = 70000;
	maxPrice_select.options[10] = new Option("80,000");
	maxPrice_select.options[10].value = 80000;
	maxPrice_select.options[11] = new Option("90,000");
	maxPrice_select.options[11].value = 90000;
	maxPrice_select.options[12] = new Option("100,000");
	maxPrice_select.options[12].value = 100000;
	maxPrice_select.options[13] = new Option("110,000");
	maxPrice_select.options[13].value = 110000;
	maxPrice_select.options[14] = new Option("120,000");
	maxPrice_select.options[14].value = 120000;
	maxPrice_select.options[15] = new Option("130,000");
	maxPrice_select.options[15].value = 130000;
	maxPrice_select.options[16] = new Option("140,000");
	maxPrice_select.options[16].value = 140000;
	maxPrice_select.options[17] = new Option("150,000");
	maxPrice_select.options[17].value = 150000;
	maxPrice_select.options[18] = new Option("160,000");
	maxPrice_select.options[18].value = 160000;
	maxPrice_select.options[19] = new Option("170,000");
	maxPrice_select.options[19].value = 170000;
	maxPrice_select.options[20] = new Option("180,000");
	maxPrice_select.options[20].value = 180000;
	maxPrice_select.options[21] = new Option("190,000");
	maxPrice_select.options[21].value = 190000;
	maxPrice_select.options[22] = new Option("200,000");
	maxPrice_select.options[22].value = 200000;
	maxPrice_select.options[23] = new Option("225,000");
	maxPrice_select.options[23].value = 225000;
	maxPrice_select.options[24] = new Option("250,000");
	maxPrice_select.options[24].value = 250000;
	maxPrice_select.options[25] = new Option("275,000");
	maxPrice_select.options[25].value = 275000;
	maxPrice_select.options[26] = new Option("300,000");
	maxPrice_select.options[26].value = 300000;
	maxPrice_select.options[27] = new Option("325,000");
	maxPrice_select.options[27].value = 325000;
	maxPrice_select.options[28] = new Option("350,000");
	maxPrice_select.options[28].value = 350000;
	maxPrice_select.options[29] = new Option("375,000");
	maxPrice_select.options[29].value = 375000;
	maxPrice_select.options[30] = new Option("400,000");
	maxPrice_select.options[30].value = 400000;
	maxPrice_select.options[31] = new Option("425,000");
	maxPrice_select.options[31].value = 425000;
	maxPrice_select.options[32] = new Option("450,000");
	maxPrice_select.options[32].value = 450000;
	maxPrice_select.options[33] = new Option("475,000");
	maxPrice_select.options[33].value = 475000;
	maxPrice_select.options[34] = new Option("500,000");
	maxPrice_select.options[34].value = 500000;
	maxPrice_select.options[35] = new Option("550,000");
	maxPrice_select.options[35].value = 550000;
	maxPrice_select.options[36] = new Option("600,000");
	maxPrice_select.options[36].value = 600000;
	maxPrice_select.options[37] = new Option("650,000");
	maxPrice_select.options[37].value = 650000;
	maxPrice_select.options[38] = new Option("700,000");
	maxPrice_select.options[38].value = 700000;
	maxPrice_select.options[39] = new Option("800,000");
	maxPrice_select.options[39].value = 800000;
	maxPrice_select.options[40] = new Option("900,000");
	maxPrice_select.options[40].value = 900000;
	maxPrice_select.options[41] = new Option("1,000,000");
	maxPrice_select.options[41].value = 1000000;
	maxPrice_select.options[42] = new Option("1,500,000");
	maxPrice_select.options[42].value = 1500000;
	maxPrice_select.options[43] = new Option("2,000,000");
	maxPrice_select.options[43].value = 2000000;
	maxPrice_select.options[44] = new Option("2,500,000");
	maxPrice_select.options[44].value = 2500000;
	maxPrice_select.options[45] = new Option("3,000,000");
	maxPrice_select.options[45].value = 3000000;
	maxPrice_select.options[46] = new Option("3,500,000");
	maxPrice_select.options[46].value = 3500000;
	maxPrice_select.options[47] = new Option("4,000,000");
	maxPrice_select.options[47].value = 4000000;
	maxPrice_select.options[48] = new Option("5,000,000");
	maxPrice_select.options[48].value = 5000000;
	maxPrice_select.options[49] = new Option("6,000,000");
	maxPrice_select.options[49].value = 6000000;
}
function propertyInitialise()
{
	var property_select = document.getElementById('propertyType');
	property_select.options[1] = new Option("Town Home");
	property_select.options[1].value = "Town Home";
	property_select.options[2] = new Option("Semi-Detached Villa");
	property_select.options[2].value = "Semi-Detached Villa";
	property_select.options[3] = new Option("End Town Home");
	property_select.options[3].value = "End Town Home";
	property_select.options[4] = new Option("Detached Villa");
	property_select.options[4].value = "Detached Villa";
	property_select.options[5] = new Option("Apartment/Condo");
	property_select.options[5].value = "Apartment/Condo";
	property_select.options[6] = new Option("Bungalow");
	property_select.options[6].value = "Bungalow";
	property_select.options[7] = new Option("Duplex");
	property_select.options[7].value = "Duplex";
	property_select.options[8] = new Option("Finca");
	property_select.options[8].value = "Finca";
	property_select.options[9] = new Option("Penthouse");
	property_select.options[9].value = "Penthouse";
	property_select.options[10] = new Option("Plot");
	property_select.options[10].value = "Plot";
}

function intiCur()
{
	var currency_select = document.getElementById('currency');
	currency_select.options[0] = new Option("GBP United Kingdom Pounds");
	currency_select.options[0].value = 1;
	currency_select.options[1] = new Option("USD United States Dollars");
	currency_select.options[1].value = 2;
	currency_select.options[2] = new Option("EUR Euros");
	currency_select.options[2].value = 3;
	currency_select.options[3] = new Option("CYP Cyprus Pounds");
	currency_select.options[3].value = 4;
	currency_select.options[4] = new Option("TRY Turkey New Lira");
	currency_select.options[4].value = 5;
	currency_select.options[5] = new Option("MAD Morocco Dirhams");
	currency_select.options[5].value = 6;
	currency_select.options[6] = new Option("ZAR South Africa Rand");
	currency_select.options[6].value = 1456;
	currency_select.options[7] = new Option("PLN Poland Zlotych");
	currency_select.options[7].value = 1224;
	currency_select.options[8] = new Option("EGP Egypt Pounds");
	currency_select.options[8].value = 1152;
	currency_select.options[9] = new Option("CAD Canada Dollars");
	currency_select.options[9].value = 1134;
}

var status = "ok";
