function changePriceRange()
{	
	var x=23;
	var y=28;
	var priceArray = new Array(x);
	var rentArray = new Array(y);
	var i;

			priceArray[0]=1000;
			priceArray[1]=10000; 
			priceArray[2]=20000;
			priceArray[3]=30000;
			priceArray[4]=40000;
			priceArray[5]=50000;
			priceArray[6]=55000;
			priceArray[7]=60000;
			priceArray[8]=65000;
			priceArray[9]=70000;
			priceArray[10]=75000;
			priceArray[11]=80000;
			priceArray[12]=85000;
			priceArray[13]=90000;
			priceArray[14]=100000;
			priceArray[15]=150000;
			priceArray[16]=250000;
			priceArray[17]=300000;
			priceArray[18]=400000;
			priceArray[19]=500000;
			priceArray[20]=1000000;
			priceArray[21]=2000000;
			priceArray[22]=10000000;

			rentArray[0]=50;
			rentArray[1]=75;
			rentArray[2]=100;
			rentArray[3]=125;
			rentArray[4]=150;
			rentArray[5]=175;
			rentArray[6]=200;
			rentArray[7]=250;
			rentArray[8]=300;
			rentArray[9]=350;
			rentArray[10]=400;
			rentArray[11]=450;
			rentArray[12]=500;
			rentArray[13]=600;
			rentArray[14]=700;
			rentArray[15]=800;
			rentArray[16]=900;
			rentArray[17]=1000;
			rentArray[18]=1100;
			rentArray[19]=1200;
			rentArray[20]=1300;
			rentArray[21]=1400;
			rentArray[22]=1500;
			rentArray[23]=1600;
			rentArray[24]=1700;
			rentArray[25]=1800;
			rentArray[26]=2000;
			rentArray[27]=2500;
			
		var rent=document.getElementById("proptype").selectedIndex
		var minID=document.getElementById("minSelect");
		var maxID=document.getElementById("maxSelect");
		if(rent==0)
		{
			document.getElementById("rentalarea").style.display="none";
			document.getElementById("salearea").style.display="inline";
			minID.options.length=x;
			maxID.options.length=x;
			minID.options[0].value=0;
			minID.options[0].text="Not Specified";
			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="Not Specified";
			maxID.options[0].value="99999999";
			minID.selectedIndex = 0;
			maxID.selectedIndex = 0;
			
		}
		else 
		{
			document.getElementById("rentalarea").style.display="inline";
			document.getElementById("salearea").style.display="none";
			minID.options.length=y;
			maxID.options.length=y;
			minID.options[0].value="0";
			minID.options[0].text="Not Specified";
			maxID.options[0].text="Not Specified";
			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;
			
		}
	}