var _aspxGlobalEvents = null;
ASPxClientGlobalEvents = _aspxCreateClass(null, {
 constructor: function() {
  this.ControlsInitialized = new ASPxClientEvent();
  this.BeginCallback = new ASPxClientEvent();
  this.EndCallback = new ASPxClientEvent();
  this.CallbackError = new ASPxClientEvent();
  this.ValidationCompleted = new ASPxClientEvent();
  var collection = aspxGetControlCollection();
  collection.ControlsInitialized.AddHandler(aspxGEControlsInitialized);
 },
 OnControlsInitialized: function(isCallback) {
  var args = new ASPxClientControlsInitializedEventArgs(isCallback);
  this.ControlsInitialized.FireEvent(this, args);
 },
 OnBeginCallback: function(sender, command) {
  var e = new ASPxClientBeginCallbackEventArgs(command);
  this.BeginCallback.FireEvent(sender, e);
 },
 OnEndCallback: function(sender) {
  var e = new ASPxClientEndCallbackEventArgs();
  this.EndCallback.FireEvent(sender, e);
 },
 OnCallbackError: function(sender, e) {
  this.CallbackError.FireEvent(sender, e);
  return e.handled;
 },
 OnValidationCompleted: function(container, validationGroup, invisibleControlsValidated, isValid, firstInvalidControl, firstVisibleInvalidControl) {
  var e = new ASPxClientValidationCompletedEventArgs(container, validationGroup, invisibleControlsValidated, isValid, firstInvalidControl, firstVisibleInvalidControl);
  this.ValidationCompleted.FireEvent(null, e);
  return e.isValid;
 }
});
function aspxGetGlobalEvents() {
 if(_aspxGlobalEvents == null)
  _aspxGlobalEvents = new ASPxClientGlobalEvents();
 return _aspxGlobalEvents;
}
function aspxGEControlsInitialized(s, e) {
 aspxGetGlobalEvents().OnControlsInitialized(e.isCallback);
}
ASPxClientValidationCompletedEventArgs = _aspxCreateClass(ASPxClientEventArgs, {
 constructor: function(container, validationGroup, invisibleControlsValidated, isValid, firstInvalidControl, firstVisibleInvalidControl) {
  this.constructor.prototype.constructor.call(this);
  this.container = container;
  this.validationGroup = validationGroup;
  this.invisibleControlsValidated = invisibleControlsValidated;
  this.isValid = isValid;
  this.firstInvalidControl = firstInvalidControl;
  this.firstVisibleInvalidControl = firstVisibleInvalidControl;
 }
});
