rem: var currentOnselect = document.getElementById('onselect'); var td0 = getElementsByClassName(document, "table", "wp-calendar"); var td1 = td0[0].getElementsByTagName('td'); for(i=0;i<td1.length;i++){ if(td1[i].getAttribute("id") == 'onselect'){ if(i == td1.length - 1){ var val_month = document.getElementById('next_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar'; new ajaxMonthEngine(val_month); } else{ td1[i+1].id = 'onselect'; currentOnselect.id = 'none'; 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; } } new ajaxEngine(linknext); return false;}; 
add: widgetAttachEvent('next'); new ajaxEngine(linknext); return false; }; 
context: function monthNav(){	var nav_prev1 = document.getElementById('day_nav');	var linkprev = nav_prev1.getElementsByTagName('a')[0].getAttribute("href", 2)+'?&format=hcalendar';	var linknext = nav_prev1.getElementsByTagName('a')[1].getAttribute("href", 2)+'?&format=hcalendar';			nav_prev1.getElementsByTagName('a')[0].onclick=function(){	var currentOnselect = document.getElementById('onselect');	var td0 = getElementsByClassName(document, "table", "wp-calendar");	var td1 = td0[0].getElementsByTagName('td');		for(i=0;i<td1.length;i++){								if(td1[i].getAttribute("id") == 'onselect'){					if(i == 0){						var val_month = document.getElementById('prev_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar';						new ajaxMonthEngine(val_month);						break;												}					else{						td1[i-1].id = 'onselect';						currentOnselect.id = 'none';						if(document.getElementById('onselect').className.indexOf('prev') > 0){							var val_month = document.getElementById('prev_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar';							new ajaxMonthEngine(val_month);							break;						}					}								}						}	new ajaxEngine(linkprev);		return false;};		nav_prev1.getElementsByTagName('a')[1].onclick=function(){	var currentOnselect = document.getElementById('onselect');	var td0 = getElementsByClassName(document, "table", "wp-calendar");	var td1 = td0[0].getElementsByTagName('td');		for(i=0;i<td1.length;i++){								if(td1[i].getAttribute("id") == 'onselect'){					if(i == td1.length - 1){						var val_month = document.getElementById('next_month').getAttribute("href", 2)+'?&monthwidget&format=hcalendar';						new ajaxMonthEngine(val_month);					}					else{						td1[i+1].id = 'onselect';						currentOnselect.id = 'none';						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;				}											}	new ajaxEngine(linknext);		return false;};}
meta: 6157	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6157/3c8c70d190405a74e227ebd2c348a3dcbd74e8f9/frontend.js/buggy/templates/default/frontend.js