function ConRange(XValue) {
	objMon12 = document.getElementById("RentalMonthlyRange");
	objMon13 = document.getElementById("RentalDailyRange");
	objCM = document.getElementById("AMonthly")
	objCD = document.getElementById("ADaily")
	X1="MonthlyRange";

	//alert(XValue);
	if (XValue==X1){
	 objMon12.style.display = "block";
	 objMon13.style.display = "none";
	 objCM.style.textDecoration = "none";
	 objCD.style.textDecoration = "underline";
	}
	else{
     objMon13.style.display = "block";
	 objMon12.style.display = "none";
	 objCM.style.textDecoration = "underline";
	 objCD.style.textDecoration = "none";
	}
	
}
function ConOpeX(XValue) {
	objPropertyType = document.getElementById("PropertyType");
	objLandType = document.getElementById("LandType");
	objPropertyPrice = document.getElementById("PropertyPriceTHB");
	objRentPrice = document.getElementById("RentalMonthlyRange");
	objLandPrice = document.getElementById("LandPriceRange");
	objTbBed = document.getElementById("TBbedroom");
	if (XValue=='Property') {
	//InteriorBedrooms1.style.visibility='visible';
	objPropertyType.style.display = "block"; 
	objTbBed.style.display = "block";
	objLandType.style.display = "none";
	
	//objPropertyPrice.style.display = "block";
	//objRentPrice.style.display = "none";
	//objLandPrice.style.display = "none";
	document.frmSearch.PropertyPriceTHB.style.display = "block";
	document.frmSearch.RentalMonthlyRange.style.display = "none";
	document.frmSearch.LandPriceRange.style.display = "none";
	}
	else if(XValue=='Rent'){
	objPropertyType.style.display = "block"; 
	objTbBed.style.display = "block";
	objLandType.style.display = "none";
	
	//objPropertyPrice.style.display = "none";
	//objRentPrice.style.display = "block";
	//objLandPrice.style.display = "none";
	document.frmSearch.PropertyPriceTHB.style.display = "none";
	document.frmSearch.RentalMonthlyRange.style.display = "block";
	document.frmSearch.LandPriceRange.style.display = "none";
	}
	else{
	 //InteriorBedrooms1.style.visibility='hidden';
	objPropertyType.style.display = "none"; 
	objTbBed.style.display = "none";
	objLandType.style.display = "block";
	
	//objPropertyPrice.style.display = "none";
	///objRentPrice.style.display = "none";
	//objLandPrice.style.display = "block";
	document.frmSearch.PropertyPriceTHB.style.display = "none";
	document.frmSearch.RentalMonthlyRange.style.display = "none";
	document.frmSearch.LandPriceRange.style.display = "block";
	}	

}
function ChLocation(XValue) {
	objPhu = document.getElementById("PhuketLocation");
	objSam = document.getElementById("SamuiLocation");
	objPat = document.getElementById("PattayaLocation");
	X1="Phuket";
	X2="Samui"
	X3="Pattaya"
	//alert(XValue);
	if (XValue==X1) {
	  objPhu.style.display = "block";
	  objPhu.disabled =false;
	  objSam.style.display = "none";
	  objPat.style.display = "none";
	 
	}
	else if(XValue==X2){
	 objPhu.style.display = "none";
	 objSam.style.display = "block";
	 objPat.style.display = "none";
	 
	}
	else if(XValue==X3){
	 objPhu.style.display = "none";
	 objSam.style.display = "none";
	 objPat.style.display = "block";
	 
	}
	else{
	 objPhu.disabled =true;
	 objPhu.style.display = "block";
	 objSam.style.display = "none";
	 objPat.style.display = "none";
	 
	}
}