rem: if (subject > max) max = subject; 
add: if (Number(subject) > max) max = Number(subject); 
context: calendarManager.prototype.nextCalendar = function calMan_getNextCalendar(){    var seq = this.rootContainer.getSubNodes();    var max = -1;    var subject;    for (var count = 0; count < seq.length; count++ ) {        subject = seq[count].getSubject();        subject = subject.replace(/^.*calendar(\d+)$/, "$1");        if (subject > max) max = subject;    }    return ++max;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ceb8298289a90749dc1f7f1d510f0581380df215/calendarManager.js/clean/calendar/resources/content/calendarManager.js