function MarketMapAjax() {this.GetObjects=function(requestNo,lat1,lon1,lat2,lon2,bRetailCenters,bAreas,bMajorRetailers,screeningID,variableID,onsuccess,onfailure) {new Ajax.Request('/MarketMapAjax.ashx',{method:'post',parameters:'method=GetObjects&param='+requestNo+'&param='+lat1+'&param='+lon1+'&param='+lat2+'&param='+lon2+'&param='+bRetailCenters+'&param='+bAreas+'&param='+bMajorRetailers+'&param='+screeningID+'&param='+variableID+'',onSuccess:function(res) {if (res.responseJSON.Exception) onfailure(res.responseJSON.Exception);else onsuccess(res.responseJSON.Result); },onFailure:onfailure});};this.GetMajorRetailerNameAddressAndURL=function(id,onsuccess,onfailure) {new Ajax.Request('/MarketMapAjax.ashx',{method:'post',parameters:'method=GetMajorRetailerNameAddressAndURL&param='+id+'',onSuccess:function(res) {if (res.responseJSON.Exception) onfailure(res.responseJSON.Exception);else onsuccess(res.responseJSON.Result); },onFailure:onfailure});};this.GetCenterNameAndURL=function(id,onsuccess,onfailure) {new Ajax.Request('/MarketMapAjax.ashx',{method:'post',parameters:'method=GetCenterNameAndURL&param='+id+'',onSuccess:function(res) {if (res.responseJSON.Exception) onfailure(res.responseJSON.Exception);else onsuccess(res.responseJSON.Result); },onFailure:onfailure});};this.GetScreeningVariableName=function(screeningID,variableID,onsuccess,onfailure) {new Ajax.Request('/MarketMapAjax.ashx',{method:'post',parameters:'method=GetScreeningVariableName&param='+screeningID+'&param='+variableID+'',onSuccess:function(res) {if (res.responseJSON.Exception) onfailure(res.responseJSON.Exception);else onsuccess(res.responseJSON.Result); },onFailure:onfailure});};this.GetScreeningVariables=function(screeningID,onsuccess,onfailure) {new Ajax.Request('/MarketMapAjax.ashx',{method:'post',parameters:'method=GetScreeningVariables&param='+screeningID+'',onSuccess:function(res) {if (res.responseJSON.Exception) onfailure(res.responseJSON.Exception);else onsuccess(res.responseJSON.Result); },onFailure:onfailure});};this.GetSelectedMajorRetailers=function(onsuccess,onfailure) {new Ajax.Request('/MarketMapAjax.ashx',{method:'post',parameters:'method=GetSelectedMajorRetailers',onSuccess:function(res) {if (res.responseJSON.Exception) onfailure(res.responseJSON.Exception);else onsuccess(res.responseJSON.Result); },onFailure:onfailure});};}
