
	
function togglePrices(){
	
	var radTransacType = jQuery("input[name='transac']:checked");	
	var transacType = jQuery("input[name='transac']:checked").val();
	
	var selPriceFrom = jQuery("input[name='priceFrom']");
	var selPriceTo = jQuery("input[name='priceTo']");
	
	if(transacType == 2){
		/* rent prices */
		
		var rentPriceFrom = new Array(1),
			rentPriceTo = new Array(1);
		
		rentPriceFrom[0]="250";
		rentPriceFrom[1]="500";
		rentPriceFrom[2]="750";
		rentPriceFrom[3]="1 000";
		rentPriceFrom[4]="1 500";
		rentPriceFrom[5]="2 000";
		rentPriceFrom[6]="2 500";
		rentPriceFrom[7]="3 000";
		rentPriceFrom[8]="3 500";
		rentPriceFrom[9]="4 000";
		rentPriceFrom[10]="4 500";

		rentPriceTo[0]="250";
		rentPriceTo[1]="500";
		rentPriceTo[2]="750";
		rentPriceTo[3]="1 000";
		rentPriceTo[4]="1 500";
		rentPriceTo[5]="2 000";
		rentPriceTo[6]="2 500";
		rentPriceTo[7]="3 000";
		rentPriceTo[8]="3 500";
		rentPriceTo[9]="4 000";
		rentPriceTo[10]="4 500";
		rentPriceTo[11]="5 000 +";
		
		jQuery("select[name='priceFrom']").html('');
		jQuery("select[name='priceFrom']").append('<option value=""></option>');
		for(i=0;i<rentPriceFrom.length;i++){
			jQuery("select[name='priceFrom']").append('<option value="' + rentPriceFrom[i].replace(/ /,"") + '">' + rentPriceFrom[i] + '</option>');
		}
		
		
		jQuery("select[name='priceTo']").html('');
		jQuery("select[name='priceTo']").append('<option value=""> </option>');
		for(i=0;i<rentPriceTo.length;i++){
			jQuery("select[name='priceTo']").append('<option value="' + rentPriceTo[i].replace(/ /,"") + '">' + rentPriceTo[i] + '</option>');
		}

	}
	else {
		/* buy prices */
		
		var buyPriceFrom = new Array(1),
			buyPriceTo = new Array(1);
			
		buyPriceFrom[0]="50 000";
		buyPriceFrom[1]="75 000";
		buyPriceFrom[2]="100 000";
		buyPriceFrom[3]="125 000";
		buyPriceFrom[4]="150 000";
		buyPriceFrom[5]="175 000";
		buyPriceFrom[6]="200 000";
		buyPriceFrom[7]="250 000";
		buyPriceFrom[8]="300 000";
		buyPriceFrom[9]="350 000";
		buyPriceFrom[10]="400 000";
		buyPriceFrom[11]="450 000";
		buyPriceFrom[12]="500 000";
		buyPriceFrom[13]="550 000";
		buyPriceFrom[14]="600 000";
		buyPriceFrom[15]="650 000";
		buyPriceFrom[16]="700 000";
		buyPriceFrom[17]="750 000";
		buyPriceFrom[18]="800 000";
		buyPriceFrom[19]="850 000";
		buyPriceFrom[20]="900 000";
		buyPriceFrom[21]="950 000";

		buyPriceTo[0]="50 000";
		buyPriceTo[1]="75 000";
		buyPriceTo[2]="100 000";
		buyPriceTo[3]="125 000";
		buyPriceTo[4]="150 000";
		buyPriceTo[5]="175 000";
		buyPriceTo[6]="200 000";
		buyPriceTo[7]="250 000";
		buyPriceTo[8]="300 000";
		buyPriceTo[9]="350 000";
		buyPriceTo[10]="400 000";
		buyPriceTo[11]="450 000";
		buyPriceTo[12]="500 000";
		buyPriceTo[13]="550 000";
		buyPriceTo[14]="600 000";
		buyPriceTo[15]="650 000";
		buyPriceTo[16]="700 000";
		buyPriceTo[17]="750 000";
		buyPriceTo[18]="800 000";
		buyPriceTo[19]="850 000";
		buyPriceTo[20]="900 000";
		buyPriceTo[21]="950 000";
		buyPriceTo[22]="1 000 000 +";
		
		jQuery("select[name='priceFrom']").html('');
		jQuery("select[name='priceFrom']").append('<option value=""></option>');
		for(i=0;i<buyPriceFrom.length;i++){
			jQuery("select[name='priceFrom']").append('<option value="' + buyPriceFrom[i].replace(/ /,"") + '">' + buyPriceFrom[i] + '</option>');
		}
		
		
		jQuery("select[name='priceTo']").html('');
		jQuery("select[name='priceTo']").append('<option value=""> </option>');
		for(i=0;i<buyPriceTo.length;i++){
			jQuery("select[name='priceTo']").append('<option value="' + buyPriceTo[i].replace(/ /,"") + '">' + buyPriceTo[i] + '</option>');
		}
		
	}

}