rem: 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; } } } 
add: ajaxCaller.get('?&amp;y='+x.getYear () + 1900+'&amp;m='+x.getMonth () + 1+'&amp;?&monthwidget&format=hcalendar', null, function(text, headers, callingContext){ if(document.getElementById('onselect') && document.getElementById('onselect').getElementsByTagName('a')[0] != null){ var tdlink = document.getElementById('onselect').getElementsByTagName('a')[0].getAttribute("href", 2); 
context: 	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;};
meta: 7217	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7217/c10dcd7c1826c8852127ccd8f8af1e0653455836/frontend.js/clean/templates/default/frontend.js