<!--
function populateCities(co_id, src_id){
  clearcombo(document.search.City);
  clearcombo(document.search.Neighborhood);
  if (co_id == '0' || co_id == ''){
    // if they click on an empty area in the imagemap
    addoptCity(0, 'Select a county to populate this menu.');
  } else {
    // a non-empty area
    popResize(window,100,100);
  	//alert("popLeft and popTop are " + popLeft + " and " + popTop + ".");
  //  window.open("<% Response.Write Application("url") %>popfetchcities.asp?co=" + 
    window.open("processors/popfetchcities.asp?co=" + 
       co_id + "&src=" + src_id, "gofetch", 
		"toolbar=no,menubar=no,location=no,directories=no," +
      	"resizeable=no,width=100,height=100,left=" + popLeft + ",top=" + popTop);
    window.focus(); // brings calling window back to foreground
  }
  addoptNeighborhood(0, 'Select a city to populate this menu.');
  document.search.City.selectedIndex = 0;
}

function addoptCity(nValue, sText){
  // this routine adds a new item to our listbox
  document.search.City.options[document.search.City.options.length] =
    new Option(sText, nValue);
   //alert(document.search.City.options.length);
}

function addNeighborhood(add_key, ci_id, co_id){
	if (add_key == -2) {
		//clearcombo(document.search.Neighborhood);
		if (ci_id == '0' || ci_id == ''){
			// if they click on an empty area in the imagemap
			addoptNeighborhood(0, 'Select a city to populate this menu.');
		} else {
			// a non-empty area
    		popResize(window,400,200);
  			//alert("popLeft and popTop are " + popLeft + " and " + popTop + ".");
		//	window.open("<% Response.Write Application("url") %>processors/addneighborhood2.asp?ci=" + ci_id + "&co=" + co_id	, "gofetch", 
			window.open("processors/addneighborhood2.asp?ci=" + ci_id + "&co=" + co_id	, "gofetch", 
				"toolbar=no,menubar=no,location=no,directories=no," +
      			"resizeable=no,width=400,height=200,left=" + popLeft + ",top=" + popTop);
			//	window.focus(); // brings calling window back to foreground
		}
	}
}


function addCity(ci_id, co_id, src_id){
    if (ci_id == '-2') {
    	popResize(window,400,200);
    //	window.open("<% Response.Write Application("url") %>popfetchneighborhoods.asp?ci=" + ci_id + "&co=" + co_id	 + "&src=" + src_id, "gofetch", 
    	window.open("processors/popfetchneighborhoods.asp?ci=" + ci_id + "&co=" + co_id	 + "&src=" + src_id, "gofetch", 
   			"toolbar=no,menubar=no,location=no,directories=no," +
   			"resizeable=no,width=400,height=200,left=" + popLeft + ",top=" + popTop);
    }
}

function populateNeighborhoods(ci_id, co_id, src_id){
  clearcombo(document.search.Neighborhood);
  if (ci_id == '0' || ci_id == '' || ci_id == 'Any'){
    // if they click on an empty area in the imagemap
    addoptNeighborhood(0, 'Select a city to populate this menu.');
  } else {
    // a non-empty area
    if (ci_id == '-2') {
    	popResize(window,400,200);
    //	window.open("<% Response.Write Application("url") %>popfetchneighborhoods.asp?ci=" + ci_id + "&co=" + co_id	 + "&src=" + src_id, "gofetch", 
    	window.open("processors/popfetchneighborhoods.asp?ci=" + ci_id + "&co=" + co_id	 + "&src=" + src_id, "gofetch", 
   			"toolbar=no,menubar=no,location=no,directories=no," +
   			"resizeable=no,width=400,height=200,left=" + popLeft + ",top=" + popTop);
    } else {
    	popResize(window,100,100);
    //	window.open("<% Response.Write Application("url") %>popfetchneighborhoods.asp?ci=" + ci_id + "&co=" + co_id	 + "&src=" + src_id, "gofetch", 
    	window.open("processors/popfetchneighborhoods.asp?ci=" + ci_id + "&co=" + co_id	 + "&src=" + src_id, "gofetch", 
    		"toolbar=no,menubar=no,location=no,directories=no," +
    		"resizeable=no,width=100,height=100,left=" + popLeft + ",top=" + popTop);
    }
    window.focus(); // brings calling window back to foreground
  }
  document.search.Neighborhood.selectedIndex = 0;
}

function addoptNeighborhood(nValue, sText){
  // this routine adds a new item to our listbox
  if ((document.search.Neighborhood != null) && (document.search.Neighborhood.options != null))
  	document.search.Neighborhood.options[document.search.Neighborhood.options.length] = new Option(sText, nValue);
}

function clearcombo_original(el){
  // this routine clears out a listbox or combo box
  for (var i = el.options.length; i >= 0; i--){
    el.options[i] = null;
  }
  el.selectedIndex = -1;
}

function clearcombo(el){
  // this routine clears out a listbox or combo box
	if (el != null) {
  		if (el.options != null)
  			el.options.length = 0;
  	}
}

function clearCity(){
  // this routine clears out the City menu
  clearcombo(document.search.City);
}

function clearNeighborhood(){
  // this routine clears out the City menu
  clearcombo(document.search.Neighborhood);
}
//-->