rem: }; 
add: }, 
context: 	this.add = function(date, field, amount) {		var d = new Date(date.getTime());		switch (field) {			case this.MONTH:				var newMonth = date.getMonth() + amount;				var years = 0;				if (newMonth < 0) {					while (newMonth < 0) {						newMonth += 12;						years -= 1;					}				} else if (newMonth > 11) {					while (newMonth > 11) {						newMonth -= 12;						years += 1;					}				}								d.setMonth(newMonth);				d.setFullYear(date.getFullYear() + years);				break;			case this.DAY:				d.setDate(date.getDate() + amount);				break;			case this.YEAR:				d.setFullYear(date.getFullYear() + amount);				break;			case this.WEEK:				d.setDate(date.getDate() + (amount * 7));				break;		}		return d;	};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/calendar.js/buggy/www/resources/yui/calendar/calendar.js