
function weather_reload() {
  var select_box = document.getElementById('city_id');
  var selIndex = select_box.selectedIndex;

  var opt = {
    method: 'post',
    postBody: 'city_id='+select_box.options[selIndex].value+'&tabs=0',
    onSuccess: function(t) {
      my_div = document.getElementById('ajax_weather_call');
      my_div.innerHTML = t.responseText;
    },
    on404: function(t) {
      alert('Error 404: location "' + t.statusText + '" was not found.');
    },
    onFailure: function(t) {
      alert('Error ' + t.status + ' -- ' + t.statusText);
    }
  }

  new Ajax.Request('/gaweather/jquery', opt);


  var opt = {
    method: 'post',
    postBody: 'city_id='+select_box.options[selIndex].value+'&tabs=1',
    onSuccess: function(t) {
      my_div = document.getElementById('ajax_weather_tabs_call');
      my_div.innerHTML = t.responseText;
    },
    on404: function(t) {
      alert('Error 404: location "' + t.statusText + '" was not found.');
    },
    onFailure: function(t) {
      alert('Error ' + t.status + ' -- ' + t.statusText);
    }
  }

  new Ajax.Request('/gaweather/jquery', opt);
}
