function updatePriceRanges(mode) { //v2.0 if(mode=='forlease'){ document.form1.forsale.checked=false; with (document.form1.price){ length=13;options[0].value=0;options[0].text="Any Price";options[1].value=1;options[1].text="Lm 120 - 350";options[2].value=18;options[2].text="Lm 350 - 600";options[3].value=19;options[3].text="Lm 600 - 700";options[4].value=20;options[4].text="Lm 700 - 950";options[5].value=22;options[5].text="Lm 950 - 1,400";options[6].value=23;options[6].text="Lm 1,400 - 1,700";options[7].value=24;options[7].text="Lm 1,700 - 1,900";options[8].value=25;options[8].text="Lm 1,900 - 2,100";options[9].value=26;options[9].text="Lm 2,100 - 2,400";options[10].value=27;options[10].text="Lm 2,400 - 5,000";options[11].value=28;options[11].text="Lm 5,000 - 7,000";options[12].value=29;options[12].text="Lm 7,000 & over";selectedIndex=0; } } else{ document.form1.forlease.checked=false; with (document.form1.price){ length=9;options[0].value=0;options[0].text="Any Price";options[1].value=4;options[1].text="Lm 10,000 - 59,000";options[2].value=8;options[2].text="Lm 59,000 - 82,000";options[3].value=9;options[3].text="Lm 82,000 - 120,000";options[4].value=10;options[4].text="Lm 120,000 - 160,000";options[5].value=14;options[5].text="Lm 160,000 - 200,000";options[6].value=15;options[6].text="Lm 200,000 - 350,000";options[7].value=16;options[7].text="Lm 350,000 - 700,000";options[8].value=17;options[8].text="Lm 700,000 & over";selectedIndex=0; } } }