var PageMethods=function() {
PageMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PageMethods.prototype={
GetCommunitiesForLocation:function(LocationId,Rental,succeededCallback, failedCallback, userContext) {
return this._invoke(PageMethods.get_path(), 'GetCommunitiesForLocation',false,{LocationId:LocationId,Rental:Rental},succeededCallback,failedCallback,userContext); },
GetPropertiesForCommunity:function(CommunityID,Rental,succeededCallback, failedCallback, userContext) {
return this._invoke(PageMethods.get_path(), 'GetPropertiesForCommunity',false,{CommunityID:CommunityID,Rental:Rental},succeededCallback,failedCallback,userContext); }}
PageMethods.registerClass('PageMethods',Sys.Net.WebServiceProxy);
PageMethods._staticInstance = new PageMethods();
PageMethods.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; PageMethods._staticInstance._path = value; }
PageMethods.get_path = function() { return PageMethods._staticInstance._path; }
PageMethods.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
PageMethods._staticInstance._timeout = value; }
PageMethods.get_timeout = function() { 
return PageMethods._staticInstance._timeout; }
PageMethods.set_defaultUserContext = function(value) { 
PageMethods._staticInstance._userContext = value; }
PageMethods.get_defaultUserContext = function() { 
return PageMethods._staticInstance._userContext; }
PageMethods.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; PageMethods._staticInstance._succeeded = value; }
PageMethods.get_defaultSucceededCallback = function() { 
return PageMethods._staticInstance._succeeded; }
PageMethods.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; PageMethods._staticInstance._failed = value; }
PageMethods.get_defaultFailedCallback = function() { 
return PageMethods._staticInstance._failed; }
PageMethods.set_path("/PageMethods.asmx");
PageMethods.GetCommunitiesForLocation= function(LocationId,Rental,onSuccess,onFailed,userContext) {PageMethods._staticInstance.GetCommunitiesForLocation(LocationId,Rental,onSuccess,onFailed,userContext); }
PageMethods.GetPropertiesForCommunity= function(CommunityID,Rental,onSuccess,onFailed,userContext) {PageMethods._staticInstance.GetPropertiesForCommunity(CommunityID,Rental,onSuccess,onFailed,userContext); }
