Mys.popupCtrl = function(layer_id, button_id)
{
  this.el = Ext.get(layer_id);
  this.btnEl = Ext.get(button_id);
  this.init();
};
Mys.popupCtrl.prototype =
{
  init : function()
  {
    this.btnEl.on("click",function(e,el){this.el.isVisible()? this.hide() : this.show();},this);
  }

  ,show: function()
  {
    this.el.setStyle("display","");
  }

  ,hide : function()
  {
    this.el.setStyle("display","none");
  }
};
