document.write("<form method='POST' name='mls_form' action='http://vista-ca-realestate.com/vista-property-search/?st=CA&display=results' target='_top' onsubmit='if (!validateInput()) {return false;}' style='margin-bottom:0px;margin-top:0px;'>");
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('types'); ");
document.write("      objMinPrice = document.getElementById('minprice'); ");
document.write("      objMaxPrice = document.getElementById('maxprice'); ");
document.write("/* ");
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.'); ");
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("*/ ");
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("<div style='width:145px; float:left; padding-left:5px;margin-top:0px;'> ");
document.write("<span class='txt'>City<sup></sup> </span><br />");
document.write("<select name='city' style='width:97%;' id='city'>");
document.write("<option VALUE='' >Please Select</option><option VALUE='Vista'>Vista</option><OPTION value=Alpine>Alpine</OPTION> <OPTION value=Bonita>Bonita</OPTION> <OPTION value=Bonsall>Bonsall</OPTION> <OPTION value='Borrego Springs'>Borrego Springs</OPTION> <OPTION value=Boulevard>Boulevard</OPTION> <OPTION value=Campo>Campo</OPTION> <OPTION value=Carlsbad>Carlsbad</OPTION> <OPTION value=Cardiff>Cardiff</OPTION> <OPTION value='Cardiff By The Sea'>Cardiff By The Sea</OPTION> <OPTION value='Carmel Valley'>Carmel Valley</OPTION> <OPTION value='Chula Vista'>Chula Vista</OPTION> <OPTION value=Coronado>Coronado</OPTION> <OPTION value=County>County</OPTION> <OPTION value='Del Mar'>Del Mar</OPTION> <OPTION value=Descanso>Descanso</OPTION> <OPTION value='El Cajon'>El Cajon</OPTION> <OPTION value=Encinitas>Encinitas</OPTION> <OPTION value=Escondido>Escondido</OPTION> <OPTION value=Fallbrook>Fallbrook</OPTION> <OPTION value='Imperial Beach'>Imperial Beach</OPTION> <OPTION value=Jacumba>Jacumba</OPTION> <OPTION value=Jamul>Jamul</OPTION> <OPTION value=Julian>Julian</OPTION> <OPTION value='La Jolla'>La Jolla</OPTION> <OPTION value='La Mesa'>La Mesa</OPTION> <OPTION value=Lakeside>Lakeside</OPTION> <OPTION value='Lemon Grove'>Lemon Grove</OPTION> <OPTION value=Murrieta>Murrieta</OPTION> <OPTION value='National City'>National City</OPTION> <OPTION value=Oceanside >Oceanside</OPTION> <OPTION value=Olivenhaim>Olivenhaim</OPTION> <OPTION value='Pacific Beach'>Pacific Beach</OPTION> <OPTION value='Palomar Mountain'>Palomar Mountain</OPTION> <OPTION value='Pauma Valley'>Pauma Valley</OPTION> <OPTION value=Poway>Poway</OPTION> <OPTION value=Ramona>Ramona</OPTION> <OPTION value='Rancho Bernardo'>Rancho Bernardo</OPTION> <OPTION value='Rancho Penasquitos'>Rancho Penasquitos</OPTION> <OPTION value='Rancho Santa Fe'>Rancho Santa Fe</OPTION> <OPTION value='San Diego'>San Diego</OPTION> <OPTION value='San Marcos'>San Marcos</OPTION> <OPTION value='San Ysidro'>San Ysidro</OPTION> <OPTION value=Santee>Santee</OPTION> <OPTION value='Salona Beach'>Salona Beach</OPTION> <OPTION value='Spring Valley'>Spring Valley</OPTION> <OPTION value=Temecula>Temecula</OPTION> <OPTION value='Valley Center'>Valley Center</OPTION> <OPTION value=Vista>Vista</OPTION> <OPTION value='Warner Springs'>Warner Springs</OPTION> ");
document.write("</select> ");
document.write("</label> ");

document.write("<label>");
document.write("<span class='txt'>Minimum&nbsp;Price<sup>&nbsp;</sup> </span><br />");
document.write("<select name='minprice' id='minprice' size='1' style='width:97%;'> ");
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='2000'>$2,000</option>");
document.write("<OPTION VALUE='3000'>$3,000</option>");
document.write("<OPTION VALUE='4000'>$4,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='10000000'>$10,000,000</option>");
document.write("<OPTION VALUE='15000000'>$15,000,000</option>");
document.write("<OPTION VALUE='20000000'>$20,000,000</option>");
document.write("<OPTION VALUE='30000000'>$30,000,000</option>");
document.write("<OPTION VALUE='40000000'>$40,000,000</option>");
document.write("<OPTION VALUE='50000000'>$50,000,000</option>");
document.write("<OPTION VALUE='75000000'>$75,000,000</option>");
document.write("<OPTION VALUE='100000000'>$100,000,000</option>");
document.write("</select>");
document.write("</label>");

document.write("<label>");
document.write("<span class='txt' style='padding-top:3px;'>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("<label> ");
document.write("<span class='txt' style='padding-top:2px;'>Subdivision</span>  ");
document.write("<input type='text' name='subdivision' id='subdivision' style='width:95%;'/> ");
document.write("</label> ");

document.write("</div>");

document.write("<div style='width:145px; float:left; padding-left:10px;'>");

document.write("<label>");
document.write("<span class='txt'>Property Type<sup></sup></span>");
document.write("<select name='types' id='hometypes' size='1' style='width:97%;'>");
document.write("<option value=''>Please Select</option>");
document.write("<option value='DE'>Single Family</option> ");
document.write("<option value='AT'>Condo / Townhouse</option> ");
document.write("<option value='MU'>Multi Unit (2-4 Units)</option> ");
document.write("<option value='MF'>Multi Unit (5+ Units)</option> ");
document.write("<option value='MH'>Mobile Home</option> ");
//document.write("<option value='Manufactured Home'>Manufactured Home</option> ");
document.write("<option value='VL'>Vacant Land</option> ");
document.write("<option value='RN'>Residential Rental</option> ");
document.write("<option value='OI'>Office/Tech</option> ");
document.write("<option value='BU'>Business Opportunity</option> ");
//document.write("<option value='Hotel/Motel'>Hotel/Motel</option> ");
document.write("<option value='RS'>Retail</option> ");
document.write("<option value='CO'>Mixed Usage</option> ");
document.write("<option value='IN'>Industrial/Warehouse</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' size='1' style='width:97%;'> ");
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='2000'>$2,000</option>");
document.write("<OPTION VALUE='3000'>$3,000</option>");
document.write("<OPTION VALUE='4000'>$4,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='10000000'>$10,000,000</option>");
document.write("<OPTION VALUE='15000000'>$15,000,000</option>");
document.write("<OPTION VALUE='20000000'>$20,000,000</option>");
document.write("<OPTION VALUE='30000000'>$30,000,000</option>");
document.write("<OPTION VALUE='40000000'>$40,000,000</option>");
document.write("<OPTION VALUE='50000000'>$50,000,000</option>");
document.write("<OPTION VALUE='75000000'>$75,000,000</option>");
document.write("<OPTION VALUE='100000000'>$100,000,000</option>");
document.write("</select>");
document.write("</label>");

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("<input name='submit' type='image' style='margin-top:16px;margin-left:30px;' src='/images/search_btn.gif' name='Send' value='Search' />");
document.write("</div>");

document.write("<div style='width:320px; float:left; padding-left:0px;'>");
document.write("<input type='radio' name='foreclosure' value='' checked><span style='font-size:0.90em;color:#000;'>All Listings</span> ");
document.write("<br />");
document.write("<input type='radio' name='foreclosure' value='yes'><span style='font-size:0.90em;color:black;'>Foreclosure, Short Sale &amp; REO Listings</span> ");
document.write("</div>");

document.write("</form>");
