// 

//CHECKBOXES AND RADIOS=======================

	function chkit(objid)
		{
		if (window.document.getElementById(objid).checked != true)
			{
			window.document.getElementById(objid+'Fld').style.display = 'block';
			}
			else 
			{
			window.document.getElementById(objid+'Fld').style.display = 'none';
			}
		}

valueorder = '0';

function SFORM(){
	document.forms.searchForm.submit();
	}
	
function chk(obj){
	document.forms.searchForm.ord.value = obj.value;
	}

//LETTINGS SEARCH==============================


//RESETS GLOBAL MIN N MAX
function mnmx(){
	document.forms.PropertyByAreaSearchForm.minRentPrice.value = '';
	document.forms.PropertyByAreaSearchForm.maxRentPrice.value = '';
	}

function setFrm(prd,TheMin,TheMax){
	mnmx();
	window.document.getElementById('rad'+prd).checked = 'true';
		window.document.getElementById(prd+'Form').style.display = 'block';
		document.forms.PropertyByAreaSearchForm.rentalPeriod.value = prd;
		document.forms.PropertyByAreaSearchForm.minRentPrice.value = TheMin;
		document.forms.PropertyByAreaSearchForm.minRentPrice.value = TheMax;	
	}

function RFORM(){
	//SETS MIN RENT PRICE BY MONTH
		document.forms.PropertyByAreaSearchForm.minRentPrice.value = document.forms.PropertyByAreaSearchForm.minRentPriceMonthly.value;
		document.forms.PropertyByAreaSearchForm.maxRentPrice.value = document.forms.PropertyByAreaSearchForm.maxRentPriceMonthly.value;
	//alert(document.forms.PropertyByAreaSearchForm.maxRentPrice.value)	
	document.forms.PropertyByAreaSearchForm.submit();
	}
