// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
// JavaScript Document
// ---------- //
function propertyTypeVIP(mtype, mpage) {
	//alert(type + ", " + page);
	province = document.getElementById("id_province").value;
	amphur = document.getElementById("id_amphur").value;
	type = mtype;
	want = document.getElementById("id_want_p").value;
	page = mpage;
	// alert(province + ", " + amphur + ", " + type + ", " + want + ", " + mpage);
	// ---------- //
	postDataReturnText("index/php/typeVIP.php", "province=" + province + "&amphur=" + amphur + "&type=" + type + "&want=" + want + "&search_lat1=" + search_lat1 + "&search_lng1=" + search_lng1 + "&search_lat2=" + search_lat2 + "&search_lng2=" + search_lng2, displayPropertyTypeVIP);
}
// ---------- //
function displayPropertyTypeVIP(result) {
	document.getElementById("listVipProperty").innerHTML = result;
	// ---------- //
	propertyType(province, amphur, type, want,  page);
}
// ---------- //
function propertyType(province, amphur, type, want,  page) {
	postDataReturnText("index/php/type.php", "province=" + province + "&amphur=" + amphur + "&type=" + type + "&want=" + want + "&page=" + page + "&search_lat1=" + search_lat1 + "&search_lng1=" + search_lng1 + "&search_lat2=" + search_lat2 + "&search_lng2=" + search_lng2, displayPropertyType);
}
// ---------- //
function displayPropertyType(result) {
	document.getElementById("listProperty").innerHTML = result;
	setTimeout("readHidden()", 1000);
}