var mytitle = 'Suche';
var errortext = 'Ihre Suche lieferte über 120 Treffer. Um Ihre Suche einzugrenzen, können Sie mehrere Suchbegriffe kombinieren.';
var closetext = 'Schließen';

if(SystemLang == 'en') {
  var mytitle = 'Search';
  var errortext = 'Your search returned more than 120 hits. To refine your result, you can enter more than one search term';
  var closetext = 'Close';
}

var SearchboxClass = Class.create();
SearchboxClass.prototype = {
  oModal: null,
  User: null,
  FilterAssociations: null,
	 
  initialize: function() {
    this.FilterAssociations = new Array();
    return this;
  },
		 
  Open: function(user) {
    var _this = this;
    _this.oModal = new Modal(1,675);
    _this.oModal.Show(mytitle,errortext);
    _this.oModal.AddButton(
      closetext,
      function() { _this.oModal.Close(); }
    );
    _this.oModal.RemoveCancelButton();
                                                   
    _this.oModal.DefineCloseFunction
    (
      function(oModal)
      {
        oModal.Destroy();
      }
    );
  },
}


SearchboxClass = new SearchboxClass();
