rem:  var firstFocus = document.getElementById( "publish-url-textbox" ); 
add: document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", "Publish" ); var firstFocus = document.getElementById( "publish-remotePath-textbox" ); 
context: function loadCalendarPublishDialog(){   // Get arguments, see description at top of file      var args = window.arguments[0];      gOnOkFunction = args.onOk;      if( args.publishObject )   {      document.getElementById( "publish-url-textbox" ).value = args.publishObject.url;      document.getElementById( "publish-remotefilename-textbox" ).value = args.publishObject.filename;      document.getElementById( "publish-username-textbox" ).value = args.publishObject.username;      document.getElementById( "publish-password-textbox" ).value = args.publishObject.password;   }   else   {      //get default values from the prefs      document.getElementById( "publish-url-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.path", "" );      document.getElementById( "publish-remotefilename-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.filename", "" );      document.getElementById( "publish-username-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.username", "" );      document.getElementById( "publish-password-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.password", "" );   }         var firstFocus = document.getElementById( "publish-url-textbox" );   firstFocus.focus();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/28021833a662c997c70f62d25202d23d7ce4c495/publishDialog.js/buggy/calendar/resources/content/publishDialog.js