"; loadHtml += ""; loadHtml += "Loading...
"; document.getElementById( 'calendar-'+modid ).innerHTML += loadHtml ; var myFx = new Fx.Style('tableCalendar-'+modid, 'opacity').start(1,0.05); if(month<=0){ month+=12; year--; } if(month>12){ month-=12; year++; } var ajax=newAjax(); ajax.open("POST", location.href, true); ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.send('year='+year+'&month='+month+'&ajaxCalMod=1'+'&ajaxmodid='+modid); ajax.onreadystatechange=function() { if (ajax.readyState==4) { var response = ajax.responseText; var start = response.indexOf(''); var finish = response.indexOf(''); justTheCalendar= response.substring(start,finish); var myFx = new Fx.Style('tableCalendar-'+modid, 'opacity').start(0.3,1); document.getElementById( 'calendar-'+modid ).innerHTML=justTheCalendar; linkPrev= document.getElementById('prevMonth-'+modid); linkNext= document.getElementById('nextMonth-'+modid); linkPrev.onclick= function(){month--; newDate(month,year,modid);} linkNext.onclick= function(){month++; newDate(month,year,modid);} linkNext.href= linkPrev.href= 'javascript:void(0)'; } } }