rem: for (i=0;i<td1.length;i++){ if (td1[i].getAttribute("id") == 'onselect') { td1[i].id = 'none'; td1[i+1].id = 'onselect'; if(document.getElementById('onselect').className.indexOf('next') > 0){ var val_month = document.getElementById('next_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar'; new ajaxMonthEngine(val_month); } break; } } 
add: widgetAttachEvent('next'); 
context: document.onkeyup = function(event){if(document.getElementById('day_nav')){		var arrowNav = document.getElementById('day_nav');	var td0 = getElementsByClassName(document, "table", "wp-calendar");	var td1 = td0[0].getElementsByTagName('td');	//reset timer	if (timerID != null) {	  window.clearTimeout(timerID);	} 		var evt = event || window.event;	var el = evt.srcElement || evt.target;	if (el.name)	return true;				//if it is right arrow key => next date		if (evt.keyCode == 39) {			arrowNav.getElementsByTagName('a')[1].id = 'ac';						for (i=0;i<td1.length;i++){				if (td1[i].getAttribute("id") == 'onselect') {					td1[i].id = 'none';					td1[i+1].id = 'onselect';					if(document.getElementById('onselect').className.indexOf('next') > 0){						var val_month = document.getElementById('next_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar';						new ajaxMonthEngine(val_month);					}					break;				}			}			timerID = window.setTimeout(_ajaxKeyNav, 500);			return false;		}				//if it is left arrow key => previous date		else if (evt.keyCode == 37) {		 			arrowNav.getElementsByTagName('a')[0].id = 'dc';							for(i=0;i<td1.length;i++){				if(td1[i].getAttribute("id") == 'onselect'){					td1[i].id = 'none';					td1[i-1].id = 'onselect';										if(document.getElementById('onselect').className.indexOf('prev') > 0 || i == 1){						var val_month = document.getElementById('prev_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar';						new ajaxMonthEngine(val_month);					}				break;					}			}			timerID = window.setTimeout(_ajaxKeyNav, 500);			return false;		}	return true;	}};
meta: 6157	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6157/3c8c70d190405a74e227ebd2c348a3dcbd74e8f9/frontend.js/buggy/templates/default/frontend.js