<!--
tobuyText = new Array("Select min. price",
                  						"£ 50,000",
                  						"£ 60,000",
                  						"£ 70,000",
                  						"£ 80,000",
                  						"£ 90,000",
                  						"£ 100,000",
                  						"£ 110,000",
                  						"£ 120,000",
                  						"£ 130,000",
                  						"£ 140,000",
                  						"£ 150,000",
                  						"£ 160,000",
                  						"£ 180,000",
                  						"£ 200,000",
                  						"£ 250,000",
                  						"£ 300,000",
                  						"£ 400,000",
                  						"£ 500,000",
                  						"£ 750,000",
                  						"Not specified");
                  						
tobuyValue = new Array("0","50000","60000","70000","80000","90000","100000","110000","120000","130000","140000","150000","160000","180000","200000","250000","300000","400000","500000","750000","0");

tobuy2Text = new Array("Select max. price",
						"£ 50,000",
						"£ 60,000",
						"£ 70,000",
						"£ 80,000",
						"£ 90,000",
						"£ 100,000",
						"£ 110,000",
						"£ 120,000",
						"£ 130,000",
						"£ 140,000",
						"£ 150,000",
						"£ 160,000",
						"£ 180,000",
						"£ 200,000",
						"£ 250,000",
						"£ 300,000",
						"£ 400,000",
						"£ 500,000",
						"£ 750,000",
						"Not specified");
tobuy2Value = new Array("0","50000","60000","70000","80000","90000","100000","110000","120000","130000","140000","150000","160000","180000","200000","250000","300000","400000","500000","750000","0");

toletText = new Array("Select min. rental",
						"£ 100",
						"£ 200",
						"£ 250",
						"£ 300",
						"£ 350",
						"£ 400",
						"£ 450",
						"£ 500",
						"£ 600",
						"£ 700",
						"£ 800",
						"£ 900",
						"£ 1000",
						"£ 1100",
						"£ 1200",
						"£ 1300",
						"£ 1400",
						"£ 1500",
						"£ 1600",
						"£ 1700",
						"£ 1800",
						"£ 1900",
						"£ 2000",
						"Not specified");
toletValue = new Array("0","100","200","250","300","350","400","450","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","0");

tolet2Text = new Array("Select max. rental",
  						"£ 100",
  						"£ 200",
  						"£ 250",
  						"£ 300",
  						"£ 350",
  						"£ 400",
  						"£ 450",
  						"£ 500",
  						"£ 600",
  						"£ 700",
  						"£ 800",
  						"£ 900",
  						"£ 1000",
  						"£ 1100",
  						"£ 1200",
  						"£ 1300",
  						"£ 1400",
  						"£ 1500",
  						"£ 1600",
  						"£ 1700",
  						"£ 1800",
  						"£ 1900",
  						"£ 2000",
  						"Not specified");

tolet2Value = new Array("0","100","200","250","300","350","400","450","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","0");

function ChangeType()
{
  	document.SearchForm.minprice.length = 0;
  	document.SearchForm.maxprice.length = 0;
  		
  	var text = Array();
  	var value = Array();
  	var text2 = Array();
  	var value2 = Array();
  
  	housetype = document.SearchForm.RentalPeriod.options[document.SearchForm.RentalPeriod.selectedIndex].value;
  
  	if (housetype == "0")
  	{
    		text = tobuyText;
    		value = tobuyValue;
    		text2 = tobuy2Text;
    		value2 = tobuy2Value;
    		document.getElementById("searchsale").style.display = "inline";
    		document.getElementById("searchlet").style.display = "none";
  	}
  	else if (housetype == "4")
  	{
    		text = toletText;
    		value = toletValue;
    		text2 = tolet2Text;
    		value2 = tolet2Value;
    		document.getElementById("searchsale").style.display = "none";
    		document.getElementById("searchlet").style.display = "inline";
  	}
  	
  	for (i = 0; i < text.length; i++)
  	{
    		document.SearchForm.minprice.options[i] = new Option;
    		document.SearchForm.minprice.options[i].text = text[i];
    		document.SearchForm.minprice.options[i].value = value[i];
  	}
  	
  	for (i = 0; i < text2.length; i++)
  	{		
    		document.SearchForm.maxprice.options[i] = new Option;
    		document.SearchForm.maxprice.options[i].text = text2[i];
    		document.SearchForm.maxprice.options[i].value = value2[i];
  	}
}  
-->
