<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Untitled</title>
<style type="text/css">
<!--
input,select,textarea { font-size: 10px; }
-->
</style></head><body>
<form id="searchForm" name="searchForm" action="http://www.mlsfinder.com/nj_gsmls/elizabethdemaree/index.cfm" method="post" onsubmit="quickSearch(this); return false;">
<input name="action" value="newsearchsession" type="hidden">
<table border="0" cellpadding="0" cellspacing="3">
<tbody>
<tr>
<td>
<select name="state" style="width: 120px; " onchange="updateCounties()">
<option value="NJ">NJ</option>
<option value="NY">NY</option>
<option value="PA">PA</option>
</select>
</td>
</tr>
<tr>
<td>
<select name="county" style="width: 120px; " onchange="updateCities()">
<option value="">- County -</option>
</select>
</td>
</tr>
<tr>
<td>
<select name="citylist" style="width: 120px; " onchange="this.form.city.value=this.options[this.selectedIndex].value;">
<option value="">- City -</option>
</select>
<input name="city" value="" type="hidden">
</td>
</tr>
<input type="hidden" name="DefaultCounty" value="">
<tr>
<td>
<select name="min_price" style="width: 120px;">
<option value="">- Minimum Price -</option>
<option value="">No Minimum </option>
<option value="10000">$10,000</option>
<option value="20000">$20,000</option>
<option value="30000">$30,000</option>
<option value="40000">$40,000</option>
<option value="50000">$50,000</option>
<option value="60000">$60,000</option>
<option value="70000">$70,000</option>
<option value="75000">$75,000</option>
<option value="80000">$80,000</option>
<option value="85000">$85,000</option>
<option value="90000">$90,000</option>
<option value="95000">$95,000</option>
<option value="100000">$100,000</option>
<option value="110000">$110,000</option>
<option value="120000">$120,000</option>
<option value="125000">$125,000</option>
<option value="135000">$135,000</option>
<option value="150000">$150,000</option>
<option value="160000">$160,000</option>
<option value="175000">$175,000</option>
<option value="200000">$200,000</option>
<option value="225000">$225,000</option>
<option value="250000">$250,000</option>
<option value="275000">$275,000</option>
<option value="300000">$300,000</option>
<option value="325000">$325,000</option>
<option value="350000">$350,000</option>
<option value="400000">$400,000</option>
<option value="450000">$450,000</option>
<option value="500000">$500,000</option>
<option value="550000">$550,000</option>
<option value="600000">$600,000</option>
<option value="650000">$650,000</option>
<option value="700000">$700,000</option>
<option value="750000">$750,000</option>
<option value="800000">$800,000</option>
<option value="850000">$850,000</option>
<option value="900000">$900,000</option>
<option value="1000000">$1,000,000</option>
<option value="1500000">$1,500,000</option>
<option value="2000000">$2,000,000</option>
<option value="2500000">$2,500,000</option>
<option value="3000000">$3,000,000</option>
<option value="3500000">$3,500,000</option>
<option value="4000000">$4,000,000</option>
<option value="4500000">$4,500,000</option>
<option value="5000000">$5,000,000</option>
<option value="6000000">$6,000,000</option>
<option value="8000000">$8,000,000</option>
<option value="10000000">$10,000,000</option>
</select>
</td>
</tr>
<tr>
<td>
<select name="max_price" style="width: 120px;">
<option value="">- Maximum Price -</option>
<option value="">No Maximum </option>
<option value="10000">$10,000</option>
<option value="20000">$20,000</option>
<option value="30000">$30,000</option>
<option value="40000">$40,000</option>
<option value="50000">$50,000</option>
<option value="60000">$60,000</option>
<option value="70000">$70,000</option>
<option value="75000">$75,000</option>
<option value="80000">$80,000</option>
<option value="85000">$85,000</option>
<option value="90000">$90,000</option>
<option value="95000">$95,000</option>
<option value="100000">$100,000</option>
<option value="110000">$110,000</option>
<option value="120000">$120,000</option>
<option value="125000">$125,000</option>
<option value="135000">$135,000</option>
<option value="150000">$150,000</option>
<option value="160000">$160,000</option>
<option value="175000">$175,000</option>
<option value="200000">$200,000</option>
<option value="225000">$225,000</option>
<option value="250000">$250,000</option>
<option value="275000">$275,000</option>
<option value="300000">$300,000</option>
<option value="325000">$325,000</option>
<option value="350000">$350,000</option>
<option value="400000">$400,000</option>
<option value="450000">$450,000</option>
<option value="500000">$500,000</option>
<option value="550000">$550,000</option>
<option value="600000">$600,000</option>
<option value="650000">$650,000</option>
<option value="700000">$700,000</option>
<option value="750000">$750,000</option>
<option value="800000">$800,000</option>
<option value="850000">$850,000</option>
<option value="900000">$900,000</option>
<option value="1000000">$1,000,000</option>
<option value="1500000">$1,500,000</option>
<option value="2000000">$2,000,000</option>
<option value="2500000">$2,500,000</option>
<option value="3000000">$3,000,000</option>
<option value="3500000">$3,500,000</option>
<option value="4000000">$4,000,000</option>
<option value="4500000">$4,500,000</option>
<option value="5000000">$5,000,000</option>
<option value="6000000">$6,000,000</option>
<option value="8000000">$8,000,000</option>
<option value="10000000">$10,000,000</option>
</select>
</td>
</tr>
<tr>
<td>
<select name="min_bedrooms" style="width: 100px;">
<option value="">- Bedrooms -</option>
<option value="">no minimum</option>
<option value="1">1 or more</option>
<option value="2">2 or more</option>
<option value="3">3 or more</option>
<option value="4">4 or more</option>
<option value="5">5 or more</option>
</select>
</td>
</tr>
<tr>
<td valign="top">
<select name="min_bathrooms" style="width: 100px;">
<option value="">- Bathrooms -</option>
<option value="">no minimum</option>
<option value="1">1 or more</option>
<option value="2">2 or more</option>
<option value="3">3 or more</option>
<option value="4">4 or more</option>
</select>
</td>
</tr>
<tr><td><input name="search" value="Search" type="submit"></td></tr>
</tbody></table>
</form>
<script type="text/javascript" language="JavaScript">
function setDefaultClick(p_src, p_default) {
if (p_src.value == p_default) {
p_src.value = "";
}
}
function setDefaultBlur(p_src, p_default) {
if (p_src.value == "") {
p_src.value = p_default;
}
}
function updatePropertyType(p_obj) {
var frm = p_obj.form;
for (var i = 0; i < p_obj.options.length; i++ ) {
var field = p_obj.options[i].value;
if (field != "") frm[field].value = (i == p_obj.selectedIndex) ? "Y" : "";
}
}
function quickSearch(frm) {
if (frm.temp_address && frm.temp_address.value != "Address") frm.address.value = frm.temp_address.value;
if (frm.temp_zip_code && frm.temp_zip_code.value != "Zip") frm.zip_code.value = frm.temp_zip_code.value;
if (frm.temp_property_id && frm.temp_property_id.value != "MLS Number") frm.property_id.value = frm.temp_property_id.value;
frm.submit();
}
function quickSearch2() {
var frm = document.forms.searchForm;
if (frm.address.value == "Address") frm.address.value = "";
frm.submit();
}
</script>
<script language="JavaScript" type="text/javascript">
// this is set to yes after all the variables have been loaded
city_county_loaded = "no";
city_page_load_first_run = "Y";
county_page_load_first_run = "Y";
useall = true;
allfactor = 1;
// when all the variables have been loaded via the external js file the city_county_loaded variable will be set to yes.
// then we can move on
function checkDataLoad(){
if (city_county_loaded == "no"){
setTimeout ("checkDataLoad();", 250);
}else{
updateCounties();
updateCities();
}
}
// checks the current state (if one is defined) and populates the list of counties in the select box
function updateCounties(){
f = document.searchForm;
// blank the select box
RemoveAll(f.county);
// RemoveAll(f.chosencities);
// f.city.value = '';
// if we need to, add the 'all' option
if (useall){
AddToSelect(f.county,"- County -","");
}
// loop over the array of states, adding them to the dropdown
for (x=0; x<counties.length; x++){
// a little test to make sure only the right counties show up if a state is chosen
use_this_county = 1;
chosen_state = f.state.options[f.state.selectedIndex].value;
if(states[x] != chosen_state){
use_this_county = 0;
}
// if the state matches, or if there is no state, add it to the select
if(use_this_county == 1){
AddToSelect(f.county,counties[x],counties[x]);
//Set the Default County to selected if one is present
if (f.DefaultCounty.value.toLowerCase() == counties[x].toLowerCase())
{
SelectOption(f.county, counties[x], true);
}
}
}
// select the first one
if(f.DefaultCounty.value == "")
{
f.county.selectedIndex=0;
}
if (county_page_load_first_run == "Y"){
county_page_load_first_run = "N";
if ("" != ''){
SelectOption(f.county, "", "");
}else if ("" != ''){
SelectOption(f.county, "", "");
}
}else{
// populate the city list
//RemoveAll(f.chosencities);
updateCities();
}
}
// this function accepts a county name and returns the index of that county
// from within the js array that contains the city data
function getCountyIndex(countyname){
chosen_state = f.state.options[f.state.selectedIndex].value;
for (x=0; x<counties.length; x++){
if(counties[x] == countyname && states[x] == chosen_state){
return(x);
}
}
}
// update the city dropdown according to chosen county or 'all' for a given state
function updateCities(){
// blank the dropdown
RemoveAll(f.citylist);
f.city.value = "";
AddToSelect(f.citylist, "- City -", "");
// get the county array index
countySelectIndex = f.county.selectedIndex - allfactor;
// less than zero if they chose 'all'
if (countySelectIndex < 0){
// now we choose which index points to the chosen state
chosen_state = f.state.options[f.state.selectedIndex].value;
chosen_state_index = listfind(state_list, chosen_state, ",");
// loop over the state/city array and build the list
if(chosen_state_index > 0){
for (x=0; x<all_array[chosen_state_index].length; x++){
AddToSelect(f.citylist, all_array[chosen_state_index][x], all_array[chosen_state_index][x]);
}
}else{
// this will only happen if the admin puts a state in the list for a given market and there happen
// to be no cities in the db that match. this will be VERY rare, if ever.
alert("No Cities in this state")
}
}else{
// pull back the index for the chosen county
countyIndex = getCountyIndex(f.county.options[f.county.selectedIndex].value)
// loop over the county/city array and add to city select
for (x=0; x<cities[countyIndex].length; x++){
AddToSelect(f.citylist, cities[countyIndex][x], cities[countyIndex][x]);
}
}
}
var f;
function listfind(thelist, thevalue, delim){
if (! delim){
delim = ",";
}
l = listlen(thelist, delim);
listpos = -1;
for (var x = 1; x < l; x++){
listelement = listgetat(thelist,x,delim);
if (listelement == thevalue){
listpos = x;
break;
}
}
return listpos;
}
window.onload=checkDataLoad;
</script>
<script language="javascript" src="http://www.mlsfinder.com/nj_gsmls/elizabethdemaree/index.cfm?action=countycityjs" type="text/javascript"></script>
<script language="javascript" src="http://www.mlsfinder.com/shared/javascript/selectfunctions.js" type="text/javascript"></script>
<script language="javascript" src="http://www.mlsfinder.com/shared/javascript/javascript_list_functions.js" type="text/javascript"></script>
</body></html>