rem: NewTip(); 
add: window.xmltform1Index.userLevel = 1; window.xmltform1Option.userLevel = "intermediate";  window.xmltform1Index.showIcons = 0; window.xmltform1Option.showIcons = "off";  window.xmltform1Index.windowsMode = 0; window.xmltform1Option.windowsMode = "off"; 
context: function LoadHandler() {  //dump("xmlterm: LoadHandler ... "+window.xmlterm+"\n");  // Ugly workaround for accessing rules in stylesheet until bug 53448 is fixed  var sheet = document.styleSheets[0];  //dump("sheet.cssRules.length="+sheet.cssRules.length+"\n");  var styleElement = (document.getElementsByTagName("style"))[0];  var styleText = styleElement.firstChild.data;  gStyleRuleNames = styleText.match(/\b[\w-.]+(?=\s*\{)/g);  //dump("gStyleRuleNames.length="+gStyleRuleNames.length+"\n");  // Update settings  UpdateSettings('level');  UpdateSettings('icons');  UpdateSettings('windows');  NewTip();  return false;  // The following code fragment is skipped because the chrome takes care of  // XMLterm initialization. This should eventually be deleted  if (window.xmlterm) {     // XMLTerm already initialized     return false;  }  //dump("LoadHandler: WINDOW.ARGUMENTS="+window.arguments+"\n");  dump("Trying to make an XMLTerm Shell through the component manager...\n");  var xmltshell = Components.classes["@mozilla.org/xmlterm/xmltermshell;1"].createInstance();  xmltshell = xmltshell.QueryInterface(Components.interfaces.mozIXMLTermShell);  //dump("Interface xmltshell2 = " + xmltshell + "\n");  if (!xmltshell) {    dump("Failed to create XMLTerm shell\n");    window.close();    return;  }  // Store the XMLTerm shell in the window  window.xmlterm = xmltshell;  // Content window same as current window  var contentWindow = window;  // Initialize XMLTerm shell in content window with argvals  window.xmlterm.Init(contentWindow, "", "");  //dump("LoadHandler:"+document.cookie+"\n");  //dump("contentWindow="+contentWindow+"\n");  //dump("document="+document+"\n");  //dump("documentElement="+document.documentElement+"\n");  // Handle resize events  //contentWindow.addEventListener("onresize", Resize);  contentWindow.onresize = Resize;  // Set focus to appropriate frame  contentWindow.focus();  //contentWindow.xmlterm = xmlterm;  //dump(contentWindow.xmlterm);  // The following code is for testing IFRAMEs only  //dump("[Main] "+window+"\n");  //dump(window.screenX+", "+window.screenY+"\n");  //dump(window.scrollX+", "+window.scrollY+"\n");  //dump(window.pageXOffset+", "+window.pageYOffset+"\n");  //dump("IFRAME checks\n");  var iframe = document.getElementById('iframe1');  //dump("iframe="+iframe+"\n");  frames=document.frames;  //dump("frames="+frames+"\n");  //dump("frames.length="+frames.length+"\n");  framewin = frames[0];  //dump("framewin="+framewin+"\n");  //dump("framewin.document="+framewin.document+"\n");  //dump(framewin.screenX+", "+framewin.screenY+"\n");  //dump(framewin.scrollX+", "+framewin.scrollY+"\n");  //dump(framewin.pageXOffset+", "+framewin.pageYOffset+"\n");  var body = framewin.document.getElementsByTagName("BODY")[0];  //dump("body="+body+"\n");  var height= body.scrollHeight;  //dump("height="+height+"\n");//        iframe.height = 800;//        iframe.width = 700;//        framewin.sizeToContent();  framewin.xmltshell = xmltshell;  //dump(framewin.xmltshell+"\n");  //dump("xmlterm: LoadHandler completed\n");  return (false);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4e293587bfcb435f924c2e4929f3f5b0da299e76/XMLTermCommands.js/buggy/extensions/xmlterm/ui/content/XMLTermCommands.js