var marqueewidth="770";
var ALERT_MSG = "";

function AwsSendSyncGetReq(zipCode, thisId, stationId) 
{
    if (isLoading == false)
    {
        refreshAd(zipCode);
    }
    else 
    {
        isLoading == false;
    }
    
    if ((thisId.indexOf("liveobs") > -1) && (thisId.indexOf("text")==-1))
    {
        document.getElementById (thisId + "div").innerHTML = buildObsHtml(zipCode);
    }
    else
    {
        if (thisId.indexOf("liveobstext") > -1)
        {
	       loadingControl(thisId + "div", 270, 200);
	       MyWeatherBugSvc.getSvcResponse(zipCode, thisId, stationId, buildObsTextHtml, errDisplay, errDisplay);
        }
        else if ((thisId.indexOf("forecast") > -1) && (thisId.indexOf("ext") == -1))
        {
	       loadingControl(thisId + "div", 270, 200);
	       MyWeatherBugSvc.getSvcResponse(zipCode, thisId, stationId, buildForecastHtml, errDisplay, errDisplay);
        }
        else if (thisId.indexOf("radar") > -1)
        {
	       loadingControl(thisId + "div", 270, 200);
	       MyWeatherBugSvc.getSvcResponse(zipCode, thisId, stationId, buildRadarHtml, errDisplay, errDisplay);
        }
        else if (thisId.indexOf("camera")>-1)
        {
	       loadingControl(thisId + "div", 270, 200);
	       MyWeatherBugSvc.getSvcResponse(zipCode, thisId, stationId, buildCamHtml, errDisplay, errDisplay);
		}
        else if (thisId.indexOf("extforecast") > -1)
        {
	       loadingControl(thisId + "div", 400, 200);
	       MyWeatherBugSvc.getSvcResponse(zipCode, thisId, stationId, buildForecastExtHtml, errDisplay, errDisplay);
        }
        else if (thisId == "alerts")
        {
	       MyWeatherBugSvc.getSvcResponse(zipCode, thisId, stationId, buildAlertsHtml, errDisplay, errDisplay);
        }
    }
}
