function goToFindProperty(theform,thePageId) {
  var theCountry = theform.criteria_country.value;
	var theLocation = theform.criteria_location.value;
  var theCategory = theform.criteria_category.value;
  var theStatus = theform.status.value;
  var theMinPrice = theform.criteria_minprice.value;
  var theMaxPrice = theform.criteria_maxprice.value;
	var theSpecialOffer = theform.special_offer.checked;
	var theRentalPrice = theform.rental_price.value;
	
  lochref = 'index.php?pageid='+thePageId+'&filter=Search&criteria=set';

	if (theCountry != '') {	lochref += '&country=' + theCountry; }
	if (theLocation != '') {	lochref += '&location=' + theLocation; }
	if (theCategory != '') {	lochref += '&category=' + theCategory; }
	if (theStatus != '') {	lochref += '&status=' + theStatus; }
	if (theMinPrice != '') {	lochref += '&minprice=' + theMinPrice; }
	if (theMaxPrice != '') {	lochref += '&maxprice=' + theMaxPrice; }
	if (theSpecialOffer == true) {	lochref += '&offers=Y'; }
	if (theRentalPrice != '') {	lochref += '&rentprice=' + theRentalPrice; }

	location = lochref;
}
function statusChange(theform) {
	var theStatus = theform.status.value;
	if (theStatus == 'FR') {
		theform.criteria_minprice.disabled = true;
		theform.criteria_maxprice.disabled = true;
		theform.rental_price.disabled = false;

		theform.criteria_minprice.value = "";
		theform.criteria_maxprice.value = "";
	} else {
		theform.criteria_minprice.disabled = false;
		theform.criteria_maxprice.disabled = false;
		theform.rental_price.disabled = true;

		theform.rental_price.value = "";
	}

}