rem: document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", "Close" ); 
add: document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", closeButtonLabel ); 
context: function onOKCommand(){   var CalendarPublishObject = new Object();   CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value;   CalendarPublishObject.username = document.getElementById( "publish-username-textbox" ).value;   CalendarPublishObject.password = document.getElementById( "publish-password-textbox" ).value;   document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "undetermined" );   // call caller's on OK function   gOnOkFunction( CalendarPublishObject );   document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", "Close" );      document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "oncommand", "closeDialog()" );      document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "determined" );   return( false );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/741c8b034c10ac569bbb987618cbd260ff4c7854/publishDialog.js/buggy/calendar/resources/content/publishDialog.js