rem: if( Number( length ) > 1  ) 
add:  if( ( Number( length ) == 0 ) || ( Number( length ) > 1 ) ) 
context: function updateMenuPlural( lengthFieldId, menuId ){    var field = document.getElementById( lengthFieldId );    var menu = document.getElementById( menuId );       // figure out whether we should use singular or plural         var length = field.value;        var newLabelNumber;         if( Number( length ) > 1  )    {        newLabelNumber = "labelplural"    }    else    {        newLabelNumber = "labelsingular"    }        // see what we currently show and change it if required        var oldLabelNumber = menu.getAttribute( "labelnumber" );        if( newLabelNumber != oldLabelNumber )    {        // remember what we are showing now                menu.setAttribute( "labelnumber", newLabelNumber );                // update the menu items                var items = menu.getElementsByTagName( "menuitem" );                for( var i = 0; i < items.length; ++i )        {            var menuItem = items[i];            var newLabel = menuItem.getAttribute( newLabelNumber );            menuItem.label = newLabel;            menuItem.setAttribute( "label", newLabel );                    }                // force the menu selection to redraw                var saveSelectedIndex = menu.selectedIndex;        menu.selectedIndex = -1;        menu.selectedIndex = saveSelectedIndex;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e83fac781ea3f2e95dbfffb8513f48c3d509f9d7/eventDialog.js/clean/calendar/resources/content/eventDialog.js