
var calendarEventFilter = new Ext.Window({
   layout: 'fit',
   title: 'Filter Events',
   width: 438,
   height: 357,
   closeAction:'hide',
   modal: true,
   plain: true,
   tools: [
        {
            id:'help',
            handler: function(btn){
                helppopup.loadHelpFile("Filter Calendar Events", 500, 455);
            }  
        }
    ],
   items:[
     new calendarCategoryGrid([1,2], false, 'filterCategories')
   ],   
   buttons: [ 
   {
      text: 'Close',
      handler: function(btn){
		 this.ownerCt.ownerCt.items.items[0].store.save();
         this.ownerCt.ownerCt.hide();
      }  
   }],
   listeners: {
      show: function(popup) {
         popup.items.item(0).store.load();
      }
   }
});
