rem: window.open( UrlToGoTo, "calendar-opened-window" ); 
add: var navWindow;   try { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); navWindow = wm.getMostRecentWindow("navigator:browser"); } catch (ex) { }  if (navWindow) { if ("delayedOpenTab" in navWindow) navWindow.delayedOpenTab(UrlToGoTo); else if ("loadURI" in navWindow) navWindow.loadURI(UrlToGoTo); else navWindow._content.location.href = UrlToGoTo; }  else { var ass = Components.classes["@mozilla.org/appshell/appShellService;1"].getService(Components.interfaces.nsIAppShellService); w = ass.hiddenDOMWindow;  w.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", UrlToGoTo ); }   
context: function launchBrowser(){   if( launch == false ) //stops them from clicking on it twice      return;   launch = false;   //get the URL from the text box   var UrlToGoTo = document.getElementById( "uri-field" ).value;      if( UrlToGoTo.length < 4 ) //it has to be > 4, since it needs at least 1 letter, a . and a two letter domain name.      return;   //check if it has a : in it   if( UrlToGoTo.indexOf( ":" ) == -1 )      UrlToGoTo = "http://"+UrlToGoTo;   //launch the browser to that URL   window.open( UrlToGoTo, "calendar-opened-window" );   launch = true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ad333820dfa9808dfdff71456327a917948d218e/toDoDialog.js/clean/calendar/resources/content/toDoDialog.js