function handleWGSeasonData(e){
		dojo.xhrPost({
			url: "show_wg_season_data.cfml?season=" + e.currentTarget.options[e.currentTarget.selectedIndex].value,
			load: handleWGSeasonDataCallback,
			preventCache: true,
			error: dataError
		});
    e.preventDefault();
}

function handleWGSeasonDataCallback(response, ioArgs) {
	if(response.length > 0) {
	    dojo.byId("SeasonData").innerHTML=response;	
	}
}


function initWateringGroupResults() {
  if ( dojo.byId("WGSeason") ) 
    dojo.connect(dojo.byId("WGSeason"), "onchange", handleWGSeasonData );
	
  if ( dojo.byId("WGCookieForm") ) 
    dojo.byId("WGCookieForm").submit();
	
}
dojo.addOnLoad(initWateringGroupResults);
