function populateCitySelect( state ) {
  stateArrayName = state.replace(/ /g,'');
  if ( stateArrayName.length == 0 ) 
  {
    document.theForm.CityChoice.length = 1;
    document.theForm.CityChoice.options[0] = new Option('Choose a city');
    document.theForm.CityChoice.options[0].value = '';
    return;
  }
  
  newOptions = eval(stateArrayName+'Array');
  document.theForm.CityChoice.length = 1;
  document.theForm.CityChoice.options[0] = new Option('Choose a city');
  document.theForm.CityChoice.options[0].value = '';
  document.theForm.CityChoice.options[0].selected = true;
  var citylength = newOptions.length + 1;
  for ( i=0; i<newOptions.length; i++ ) {
    document.theForm.CityChoice.length++;
    thisEntry = newOptions[i];
    newOption = new Option( thisEntry );
    newOption.value =  thisEntry + ';' + state;
    document.theForm.CityChoice.options[i+1] = newOption;
  }
  document.theForm.CityChoice.length = citylength;
  if(newOptions.length == 1) document.theForm.CityChoice.options[1].selected = true;

}

function goSearch()
{
	city = document.theForm.CityChoice.value.replace(/[, &\/]/g, "-").toLowerCase();
	state = document.theForm.StateChoice.value.replace(/[, &\/]/g, "-").toLowerCase();

	var URL = "/usa/" + state + "/" + city + "/";
	// top.location.href=URL;
	alert(URL);
}
