function switchPrices(a){if(a=="1"){Lettings_Prices()}else{Sales_Prices()}}function Sales_Prices(){document.getElementById("MinPrice").options.length=0;var a;a=document.createElement("Option");a.text="No Minimum";a.value="";document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="100,000";a.value=1e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="125,000";a.value=125e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="150,000";a.value=15e4;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="175,000";a.value=175e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="200,000";a.value=2e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="225,000";a.value=225e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="250,000";a.value=25e4;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="275,000";a.value=275e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="300,000";a.value=3e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="400,000";a.value=4e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="425,000";a.value=425e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="450,000";a.value=45e4;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="475,000";a.value=475e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="500,000";a.value=5e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="525,000";a.value=525e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="550,000";a.value=55e4;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="575,000";a.value=575e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="600,000";a.value=6e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="700,000";a.value=7e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="800,000";a.value=8e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="900,000";a.value=9e5;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="1,000,000";a.value=1e6;document.getElementById("MinPrice").options.add(a);document.getElementById("MaxPrice").options.length=0;a=document.createElement("Option");a.text="No Maximum";a.value="";document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="100,000";a.value=1e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="125,000";a.value=125e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="150,000";a.value=15e4;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="175,000";a.value=175e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="200,000";a.value=2e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="225,000";a.value=225e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="250,000";a.value=25e4;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="275,000";a.value=275e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="300,000";a.value=3e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="400,000";a.value=4e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="425,000";a.value=425e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="450,000";a.value=45e4;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="475,000";a.value=475e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="500,000";a.value=5e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="525,000";a.value=525e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="550,000";a.value=55e4;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="575,000";a.value=575e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="600,000";a.value=6e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="700,000";a.value=7e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="800,000";a.value=8e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="900,000";a.value=9e5;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="1,000,000";a.value=1e6;document.getElementById("MaxPrice").options.add(a)}function Lettings_Prices(){document.getElementById("MinPrice").options.length=0;var a;a=document.createElement("Option");a.text="No Minimum";a.value="";document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="100PCM";a.value=100;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="200PCM";a.value=200;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="300PCM";a.value=300;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="400PCM";a.value=400;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="500PCM";a.value=500;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="600PCM";a.value=600;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="700PCM";a.value=700;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="800PCM";a.value=800;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="900PCM";a.value=900;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="1000PCM";a.value=1e3;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="1250PCM";a.value=1250;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="1500PCM";a.value=1500;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="1750PCM";a.value=1750;document.getElementById("MinPrice").options.add(a);a=document.createElement("Option");a.text="2000PCM";a.value=2e3;document.getElementById("MinPrice").options.add(a);document.getElementById("MaxPrice").options.length=0;a=document.createElement("Option");a.text="No Maximum";a.value="";document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="100PCM";a.value=100;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="200PCM";a.value=200;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="300PCM";a.value=300;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="400PCM";a.value=400;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="500PCM";a.value=500;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="600PCM";a.value=600;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="700PCM";a.value=700;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="800PCM";a.value=800;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="900PCM";a.value=900;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="1000PCM";a.value=1e3;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="1250PCM";a.value=1250;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="1500PCM";a.value=1500;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="1750PCM";a.value=1750;document.getElementById("MaxPrice").options.add(a);a=document.createElement("Option");a.text="2000PCM";a.value=2e3;document.getElementById("MaxPrice").options.add(a)}function Search(a,b,c,d,e){alert("Here!");alert(a);alert(b);alert(c);alert(e);document.location="http://www.turtlehomes.co.uk/?page_id=66&dep="+c+"&minprice="+a+"&maxprice="+b+"&district="+district+"&areas="+e}

function getScrollY(){var a=0;if(typeof window.pageYOffset=="number"){a=window.pageYOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop}return a}function resizeFrame(a){if(getScrollY()>140)scroll(0,140);document.getElementById("PropertiesFrame").style.height=a}
