document.write("<script type='text/javascript'> ");
document.write("function validateInput() { ");
document.write("  if (document.getElementById) { ");
document.write("      objCity = document.getElementById('city'); ");
document.write("      objArea = document.getElementById('area'); ");
document.write("      objHomeTypes = document.getElementById('hometypes'); ");
document.write("      objMinPrice = document.getElementById('minprice'); ");
document.write("      objMaxPrice = document.getElementById('maxprice'); ");
document.write("      if (objCity.value == '') { ");
document.write("         alert('Please select search city.'); ");
document.write("         objCity.focus(); ");
document.write("         return false; ");
document.write("      } ");

document.write("/*      if (objArea.value == '') { ");
document.write("         alert('Please select search area/neighborhoods.'); ");
document.write("         objArea.focus(); ");
document.write("         return false; ");
document.write("      }   */ ");

document.write("      if (objHomeTypes.value == '') { ");
document.write("         alert('Please select property type(s).'); ");
document.write("         objHomeTypes.focus(); ");
document.write("         return false; ");
document.write("      } ");
document.write("      if (!validPrice(objMaxPrice)) { ");
document.write("         alert('Please specify the maximum price.'); ");
document.write("         objMaxPrice.focus(); ");
document.write("         return false; ");
document.write("      } ");
document.write("      return true; ");
document.write("  } ");
document.write("} ");
document.write("function validPrice(o) { ");
document.write("  if(o.selectedIndex==-1 || o.options[o.selectedIndex].value=='') { ");
document.write("    return false; ");
document.write("  } ");
document.write("  else { return true;} ");
document.write("} ");
document.write("</script> ");

document.write("<form method='POST' name='mls_form' action='search.php' target='_top' onsubmit='if (!validateInput()) {return false;}'> ");
document.write("<h4>Property Search</h4>");
document.write("<div id='mlssearch'> ");

document.write("<div style=''>");
document.write("<label> ");
document.write("<span class='txt'>City<sup>*</sup> &nbsp;<i>(ctrl+click for multiple)</i></span> ");
document.write("<input type='hidden' name='state' id='state' value='CA' /> ");
document.write("<select name='city[]' id='city' size='4' multiple> ");
document.write("        <option value='Citrus Heights' >Citrus Heights");
document.write("        <option value='Antelope' >Antelope");
document.write("        <option value='Carmichael' >Carmichael");
document.write("        <option value='Courtland' >Courtland");
document.write("        <option value='Elk Grove' >Elk Grove");
document.write("        <option value='Elverta' >Elverta");
document.write("        <option value='Fair Oaks' >Fair Oaks");
document.write("        <option value='Folsom' >Folsom");
document.write("        <option value='Galt' >Galt");
document.write("        <option value='Gold River' >Gold River");
document.write("        <option value='Herald' >Herald");
document.write("        <option value='Isleton' >Isleton");
document.write("        <option value='Laguna' >Laguna");
document.write("        <option value='Mather' >Mather");
document.write("        <option value='North Highlands' >North Highlands");
document.write("        <option value='Orangevale' >Orangevale");
document.write("        <option value='Rancho Cordova' >Rancho Cordova");
document.write("        <option value='Rancho Murieta' >Rancho Murieta");
document.write("        <option value='Rio Linda' >Rio Linda");
document.write("        <option value='Sacramento' >Sacramento");
document.write("        <option value='Sloughhouse' >Sloughhouse");
document.write("        <option value='Walnut Grove' >Walnut Grove");
document.write("        <option value='Wilton' >Wilton");
document.write("        <option value='' >");
document.write("        <option value='El Dorado' >- El Dorado County -");
document.write("        <option value='Cameron Park' >Cameron Park");
document.write("        <option value='Camino' >Camino");
document.write("        <option value='Coloma' >Coloma");
document.write("        <option value='Cool' >Cool");
document.write("        <option value='Diamond Springs' >Diamond Springs");
document.write("        <option value='El Dorado' >El Dorado");
document.write("        <option value='El Dorado Hills' >El Dorado Hills");
document.write("        <option value='Fiddletown' >Fiddletown");
document.write("        <option value='Garden Valley' >Garden Valley");
document.write("        <option value='Georgetown' >Georgetown");
document.write("        <option value='Greenwood' >Greenwood");
document.write("        <option value='Grizzly Flats' >Grizzly Flats");
document.write("        <option value='Kelsey' >Kelsey");
document.write("        <option value='Kyburz' >Kyburz");
document.write("        <option value='Lotus' >Lotus");
document.write("        <option value='Mt Aukum' >Mt Aukum");
document.write("        <option value='Pilot Hill' >Pilot Hill");
document.write("        <option value='Placerville' >Placerville");
document.write("        <option value='Pollock Pines' >Pollock Pines");
document.write("        <option value='Rescue' >Rescue");
document.write("        <option value='Shingle Springs' >Shingle Springs");
document.write("        <option value='Somerset' >Somerset");
document.write("        <option value='South Lake Tahoe' >South Lake Tahoe");
document.write("        <option value='' >");
document.write("        <option value='' >- Placer County -");
document.write("        <option value='Alta' >Alta");
document.write("        <option value='Applegate' >Applegate");
document.write("        <option value='Auburn' >Auburn");
document.write("        <option value='Colfax' >Colfax");
document.write("        <option value='Dutch Flat' >Dutch Flat");
document.write("        <option value='Foresthill' >Foresthill");
document.write("        <option value='Granite Bay' >Granite Bay");
document.write("        <option value='Lincoln' >Lincoln");
document.write("        <option value='Lincoln Hills' >Lincoln Hills");
document.write("        <option value='Loomis' >Loomis");
document.write("        <option value='Meadow Vista' >Meadow Vista");
document.write("        <option value='Newcastle' >Newcastle");
document.write("        <option value='Penryn' >Penryn");
document.write("        <option value='Rocklin' >Rocklin");
document.write("        <option value='Roseville' >Roseville");
document.write("        <option value='Tahoe City' >Tahoe City");
document.write("        <option value='Weimar' >Weimar");
document.write("        <option value='' >");
document.write("        <option value='' >- Yolo County -");
document.write("        <option value='Brooks' >Brooks");
document.write("        <option value='Capay' >Capay");
document.write("        <option value='Clarksburg' >Clarksburg");
document.write("        <option value='Davis' >Davis");
document.write("        <option value='Dunnigan' >Dunnigan");
document.write("        <option value='El Macero' >El Macero");
document.write("        <option value='Esparto' >Esparto");
document.write("        <option value='Guinda' >Guinda");
document.write("        <option value='Knights Landing' >Knights Landing");
document.write("        <option value='West Sacramento' >West Sacramento");
document.write("        <option value='Winters' >Winters");
document.write("        <option value='Woodland' >Woodland");
document.write("        <option value='Zamora' >Zamora");
document.write("</select> ");
document.write("</label> ");
document.write("</div> ");

document.write("<div style='display:none;'>");
document.write("<label> ");
document.write("<span class='txt'>AREA<sup>*</sup> &nbsp;<i>(ctrl+click for multiple)</i></span> ");
document.write("</label> ");
document.write("</div> ");

document.write("<label>");
document.write("<span class='txt'>Property Type<sup>*</sup></span>");
document.write("<select name='hometypes[]' id='hometypes' size='1'>");
document.write("<option value=''>Please select</option>");
document.write(" <option value='1'>Single Family</option>");
document.write(" <option value='2'>Condo / Townhouse</option>");
document.write(" <option value='3'>Vacant Land/Lot</option>");
document.write(" <option value='4'>Commercial / Industrial</option>");
document.write(" <option value='5'>Multi-Family</option>");
document.write(" <option value='7'>Waterfront / Vacation</option>");
document.write(" <option value='8'>Rental / Lease</option>");
document.write(" <option value='9'>Investment / Income</option>");
document.write(" <option value='10'>Mobile / Manufactured</option>");
document.write("</select>");
document.write("</label>");

document.write("<label>");
document.write("<span class='txt'>Minimum Price</span>");
document.write("<select name='minprice' id='minprice'> ");
document.write("<OPTION VALUE=''>Please Select</option>");
document.write("<OPTION VALUE='500'>$500</option>");
document.write("<OPTION VALUE='1000'>$1,000</option>");
document.write("<OPTION VALUE='5000'>$5,000</option>");
document.write("<OPTION VALUE='10000'>$10,000</option>");
document.write("<OPTION VALUE='25000'>$25,000</option>");
document.write("<OPTION VALUE='50000'>$50,000</option>");
document.write("<OPTION VALUE='100000'>$100,000</option>");
document.write("<OPTION VALUE='150000'>$150,000</option>");
document.write("<OPTION VALUE='200000'>$200,000</option>");
document.write("<OPTION VALUE='250000'>$250,000</option>");
document.write("<OPTION VALUE='300000'>$300,000</option>");
document.write("<OPTION VALUE='350000'>$350,000</option>");
document.write("<OPTION VALUE='400000'>$400,000</option>");
document.write("<OPTION VALUE='450000'>$450,000</option>");
document.write("<OPTION VALUE='500000'>$500,000</option>");
document.write("<OPTION VALUE='550000'>$550,000</option>");
document.write("<OPTION VALUE='600000'>$600,000</option>");
document.write("<OPTION VALUE='650000'>$650,000</option>");
document.write("<OPTION VALUE='700000'>$700,000</option>");
document.write("<OPTION VALUE='750000'>$750,000</option>");
document.write("<OPTION VALUE='800000'>$800,000</option>");
document.write("<OPTION VALUE='850000'>$850,000</option>");
document.write("<OPTION VALUE='900000'>$900,000</option>");
document.write("<OPTION VALUE='950000'>$950,000</option>");
document.write("<OPTION VALUE='1000000'>$1,000,000</option>");
document.write("<OPTION VALUE='1250000'>$1,250,000</option>");
document.write("<OPTION VALUE='1500000'>$1,500,000</option>");
document.write("<OPTION VALUE='1750000'>$1,750,000</option>");
document.write("<OPTION VALUE='2000000'>$2,000,000</option>");
document.write("<OPTION VALUE='2500000'>$2,500,000</option>");
document.write("<OPTION VALUE='3000000'>$3,000,000</option>");
document.write("<OPTION VALUE='3500000'>$3,500,000</option>");
document.write("<OPTION VALUE='4000000'>$4,000,000</option>");
document.write("<OPTION VALUE='4500000'>$4,500,000</option>");
document.write("<OPTION VALUE='5000000'>$5,000,000</option>");
document.write("<OPTION VALUE='7500000'>$7,500,000</option>");
document.write("<OPTION VALUE='9500000'>$9,500,000</option>");
document.write("</select>");
document.write("</label>");

document.write("<label>");
document.write("<span class='txt'>Maximim Price<sup>*</sup></span>");
document.write("<select name='maxprice' id='maxprice'> ");
document.write("<OPTION VALUE=''>Please Select</option>");
document.write("<OPTION VALUE='500'>$500</option>");
document.write("<OPTION VALUE='1000'>$1,000</option>");
document.write("<OPTION VALUE='5000'>$5,000</option>");
document.write("<OPTION VALUE='10000'>$10,000</option>");
document.write("<OPTION VALUE='25000'>$25,000</option>");
document.write("<OPTION VALUE='50000'>$50,000</option>");
document.write("<OPTION VALUE='100000'>$100,000</option>");
document.write("<OPTION VALUE='150000'>$150,000</option>");
document.write("<OPTION VALUE='200000'>$200,000</option>");
document.write("<OPTION VALUE='250000'>$250,000</option>");
document.write("<OPTION VALUE='300000'>$300,000</option>");
document.write("<OPTION VALUE='350000'>$350,000</option>");
document.write("<OPTION VALUE='400000'>$400,000</option>");
document.write("<OPTION VALUE='450000'>$450,000</option>");
document.write("<OPTION VALUE='500000'>$500,000</option>");
document.write("<OPTION VALUE='550000'>$550,000</option>");
document.write("<OPTION VALUE='600000'>$600,000</option>");
document.write("<OPTION VALUE='650000'>$650,000</option>");
document.write("<OPTION VALUE='700000'>$700,000</option>");
document.write("<OPTION VALUE='750000'>$750,000</option>");
document.write("<OPTION VALUE='800000'>$800,000</option>");
document.write("<OPTION VALUE='850000'>$850,000</option>");
document.write("<OPTION VALUE='900000'>$900,000</option>");
document.write("<OPTION VALUE='950000'>$950,000</option>");
document.write("<OPTION VALUE='1000000'>$1,000,000</option>");
document.write("<OPTION VALUE='1250000'>$1,250,000</option>");
document.write("<OPTION VALUE='1500000'>$1,500,000</option>");
document.write("<OPTION VALUE='1750000'>$1,750,000</option>");
document.write("<OPTION VALUE='2000000'>$2,000,000</option>");
document.write("<OPTION VALUE='2500000'>$2,500,000</option>");
document.write("<OPTION VALUE='3000000'>$3,000,000</option>");
document.write("<OPTION VALUE='3500000'>$3,500,000</option>");
document.write("<OPTION VALUE='4000000'>$4,000,000</option>");
document.write("<OPTION VALUE='4500000'>$4,500,000</option>");
document.write("<OPTION VALUE='5000000'>$5,000,000</option>");
document.write("<OPTION VALUE='7500000'>$7,500,000</option>");
document.write("<OPTION VALUE='9500000'>$9,500,000</option>");
document.write("</select>");
document.write("</label>");

document.write("<div id='mlssearch-left'>");
document.write("<label>");
document.write("<span class='txt'>Beds</span> ");
document.write("<select name='bedrooms' size='1' style='width:97%;'>");
document.write("<option value='0'>- Any -</option>");
document.write("<option value='1'>1 or more</option>");
document.write("<option value='2'>2 or more</option>");
document.write("<option value='3'>3 or more</option>");
document.write("<option value='4'>4 or more</option>");
document.write("</select>");
document.write("</label>");
document.write("</div>");

document.write("<div id='mlssearch-right'>");

document.write("<label>");
document.write("<span class='txt'>Baths</span> ");
document.write("<select name='bathrooms' size='1' style='width:97%;'>");
document.write("<option value='0'>- Any -</option>");
document.write("<option value='1'>1 or more</option>");
document.write("<option value='1.1'>1 1/2 or more</option>");
document.write("<option value='2'>2 or more</option>");
document.write("<option value='2.1'>2 1/2 or more</option>");
document.write("<option value='3'>3 or more</option>");
document.write("</select>");
document.write("</label>");
document.write("</div>");


document.write("<label> ");
document.write("<span class='txt'>Subdivision</span>  ");
document.write("<input type='text' style='width:97%;' name='subdivision' id='subdivision' /> ");
document.write("</label> ");

document.write("<input name='submit' type='submit' style='margin-top:5px; width:75px;' name='Send' value='Search' />");
document.write("</div>");
document.write("</form>");