gFilterListMsgWindow.domWindow = window; 
gFilterListMsgWindow.domWindow = window; gFilterListMsgWindow.rootDocShell.appType = Components.interfaces.nsIDocShell.APP_TYPE_MAIL; 
function onLoad(){    gFilterListMsgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance(Components.interfaces.nsIMsgWindow);    gFilterListMsgWindow.domWindow = window;         gFilterListMsgWindow.statusFeedback = gStatusFeedback;    gFilterBundle = document.getElementById("bundle_filter");    gFilterTree = document.getElementById("filterTree");    gEditButton = document.getElementById("editButton");    gDeleteButton = document.getElementById("deleteButton");    gReorderUpButton = document.getElementById("reorderUpButton");    gReorderDownButton = document.getElementById("reorderDownButton");    gRunFiltersFolderPickerLabel = document.getElementById("folderPickerPrefix");    gRunFiltersFolderPicker = document.getElementById("runFiltersFolder");    gRunFiltersButton = document.getElementById("runFiltersButton");    gStatusBar = document.getElementById("statusbar-icon");    gStatusText = document.getElementById("statusText");    updateButtons();    // get the selected server if it can have filters.    var firstItem = getSelectedServerForFilters();    // if the selected server cannot have filters, get the default server    // if the default server cannot have filters, check all accounts    // and get a server that can have filters.    if (!firstItem)        firstItem = getServerThatCanHaveFilters();    if (firstItem) {        selectServer(firstItem);    }    gFilterTree.addEventListener("click",onFilterClick,true);    window.tryToClose = onFilterClose;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/6ff991e2898ef85a2e184b23165faa229a6e4a28/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js