rem:  var cellDate = cal.cellDates[index]; var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);  if (cellDateIndex > -1) { cal.deselectCell(index); } else { cal.selectCell(index); }  
add: }  var cellDate = cal.cellDates[index]; var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);  if (cellDateIndex > -1) { cal.deselectCell(index); 
context: 	this.doSelectCell = function(e, cal) {				var cell = this;		var index = cell.index;		var d = cal.cellDates[index];		var date = new Date(d[0],d[1]-1,d[2]);				if (! cal.isDateOOM(date) && ! YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_RESTRICTED) && ! YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_OOB)) {			if (cal.Options.MULTI_SELECT) {				var link = cell.getElementsByTagName("A")[0];				link.blur();								var cellDate = cal.cellDates[index];				var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);								if (cellDateIndex > -1) {						cal.deselectCell(index);				} else {					cal.selectCell(index);				}								} else {				var link = cell.getElementsByTagName("A")[0];				link.blur()				cal.selectCell(index);			}		}	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/calendar.js/buggy/www/resources/yui/calendar/calendar.js