SCDialog = _aspxCreateClass(ASPxDialog, {
 constructor: function(name, spellChecker) {
  this.constructor.prototype.constructor.call(this, name);
  this.initExecuting = false;
  this.spellChecker = spellChecker;
  this.ownerControl = spellChecker;
 },
 ShowLoadingPanelInDialogPopup: function() {
 },
 Show: function(popupElement) {
  ASPxDialog.PushDialogToCollection(this.ownerControl, this);
  this.InitializePopupEvents();
  this.GetDialogPopup().SetHeaderText(this.GetDialogCaptionText());
  this.GetDialogPopup().ShowAtElement(popupElement);
 },
 InitializePopupEvents: function() {
  func = _aspxCreateEventHandlerFunction("aspxOnSCDialogClose", this.spellChecker, false);
  this.GetDialogPopup().CloseUp.AddHandler(func);
 },
 SetDialogContent: function(dialogContent) {
  var popupControl = this.GetDialogPopup();
  popupControl.SetContentHtml(dialogContent);
  this.AddDialogContentToHash(this.name, dialogContent);
  this.GetDialogPopup().UpdatePosition();
 },
 HideDialog: function() {
  aspxSCDialogComplete(false);
 }, 
 GetDialogPopup: function() {
  return this.spellChecker.GetDialogPopupControl(this.name); 
 },
 IsVisible: function(){
  return this.GetDialogPopup().IsVisible();
 }
});
SpellCheckForm = _aspxCreateClass(SCDialog , {
 DoCustomAction: function(result) {
 },
 GetDialogCaptionText: function() {
  return this.spellChecker.spellCheckFormCaption;
 },
 SendCallbackForDialogContent: function() {
 },
 SetFocusInField: function() {
  _aspxSetFocusToTextEditWithDelay(_dxeSCTxtChangeTo.name);
 },
 HideLoadingPanelOverDialogPopup: function() {
  SCDialog.prototype.HideLoadingPanelOverDialogPopup.call(this);
  if (this.spellChecker.formHandler.GetSCFormChangeButton())
  _dxeSCBtnChange.SetEnabled(true);
 },
 ShowLoadingPanelOverDialogPopup: function() {
  SCDialog.prototype.ShowLoadingPanelOverDialogPopup.call(this);
  _dxeSCBtnChange.SetEnabled(false);
 }
});
SpellCheckOptionsForm = _aspxCreateClass(SCDialog , { 
 DoCustomAction: function(result, params) {
 },   
 GetDialogCaptionText: function() {
  return this.spellChecker.optionsFormCaption;
 },
 SetFocusInField: function() {
 }
});
function aspxSCDialogComplete(result) {
 if(_aspxIsExists(__aspxActiveSpellChecker))
  __aspxActiveSpellChecker.HideDialog(result);
}
function aspxOnSCDialogClose(spellChecker) {
 aspxSCDialogComplete(false);
}
