function changePriceRange()
{	
	var x=13;
	var y=15;
	var priceArray = new Array(x);
	var rentArray = new Array(y);
	var i;

			priceArray[0]=25000;
			priceArray[1]=50000; 
			priceArray[2]=75000;
			priceArray[3]=100000;
			priceArray[4]=150000;
			priceArray[5]=200000;
			priceArray[6]=250000;
			priceArray[7]=300000;
			priceArray[8]=400000;
			priceArray[9]=500000;
			priceArray[10]=600000;
			priceArray[11]=700000;
			priceArray[12]=10000000;

			rentArray[0]=120;
			rentArray[1]=240;
			rentArray[2]=300;
			rentArray[3]=400;
			rentArray[4]=500;
			rentArray[5]=600;
			rentArray[6]=700;
			rentArray[7]=800;
			rentArray[8]=1000;
			rentArray[9]=1200;
			rentArray[10]=1400;
			rentArray[11]=1600;
			rentArray[12]=1800;
			rentArray[13]=2000;
			rentArray[14]=20000;
			
		var rent=document.getElementById("proptype").selectedIndex
		var minID=document.getElementById("minSelect");
		var maxID=document.getElementById("maxSelect");
		if(rent==0)
		{

			minID.options.length=x;
			maxID.options.length=x;
			minID.options[0].value=0;
			minID.options[0].text="Select a price                 ";
			maxID.options[0].value="10000000";
			for(i=1; i<x; i++)
			{
				minID.options[i].value=priceArray[i];
				minID.options[i].text="£" + priceArray[i]; 
				maxID.options[i].value=priceArray[i];
				maxID.options[i].text="£" + priceArray[i];
			}
			maxID.options[0].text="Select a price                 ";
			maxID.options[0].value="99999999";
			minID.selectedIndex = 0;
			maxID.selectedIndex = 0;
			
		}
		else 
		{
			minID.options.length=y;
			maxID.options.length=y;
			minID.options[0].value="0";
			minID.options[0].text="Select a price                 ";
			maxID.options[0].text="Select a price                 ";
			maxID.options[0].value="200000";
			for(i=1; i<y; i++)
			{
				minID.options[i].value=rentArray[i];
				minID.options[i].text="£" + rentArray[i]; 
				maxID.options[i].value=rentArray[i];
				maxID.options[i].text="£" + rentArray[i];
			}
			minID.selectedIndex = 0;
			maxID.selectedIndex = 0;
			
		}
	}