rem: this.varname + '.monthClick(1,' + this.month + ',' + this.year + ')">' + 
add: this.varname + '.monthClick(1,' + ((this.month+1)) + ',' + this.year + ')">' + 
context: function c_output(){	var dt = new Date();	var td = new Date();	dt.setMonth(this.month);	dt.setYear(this.year);	dt.setDate(1);		var is_week_set  = this.onWeekClick  != null;	var is_day_set   = this.onDayClick   != null;	var is_month_set = this.onMonthClick != null;	var is_year_set  = this.onYearClick  != null;		if (is_week_set) colspan = 6;	else colspan = 5;	//table difinition	var output = '<table class="cal" cellspacing="1" width="' + this.width + '" height="' + this.height + '">';		//top bar for popup	if (this.popup)	output += '<tr style="height:1px"><td colspan="' + (colspan + 2) + '" align="right"><span class="cal_close" onclick="' + this.varname +'.hide();">&times;</span></td></tr>';			//month caption	output += '<tr style="height:1px"><td class="cal_arrow" onclick="' + this.varname +		'.setMonth(\'--\')" align="left">&laquo;</td><td class="cal_month" colspan="' + colspan + '" align="center" onclick="' +		this.varname + '.monthClick(1,' + this.month + ',' + this.year + ')">' +		this.mon_names[this.month] + '</td><td class="cal_arrow" onclick="' + this.varname +		'.setMonth(\'++\')" align="right">&raquo;</td></tr>';	//year caption	output += '<tr style="height:1px"><td class="cal_arrow" onclick="' + this.varname +		'.setYear(\'--\')" align="left">&laquo;</td><td class="cal_year" colspan="' + colspan + '" align="center" onclick="' +		this.varname + '.yearClick(1,1,' + this.year + ')">' +		this.year + '</td><td class="cal_arrow" onclick="' + this.varname +		'.setYear(\'++\')" align="right">&raquo;</td></tr>';	//week days	output += '<tr style="height:1px">';	if (is_week_set) output += '<td class="cal_week">&nbsp;</td>';	var j = this.week_start;	var end_day = (this.week_start == 0)?6:this.week_start - 1;	while (j != end_day)	{		output +='<td class="cal_week_day">' + this.day_names[j].substring(0,this.day_name_length) + '</td>';		j++;		if (j == 7) j = 0;	}	output +='<td class="cal_week_day">' + this.day_names[j].substring(0,this.day_name_length) + '</td>';	output += '</tr>';	//previous month days	var day = dt.getDay();	var j = this.week_start;	output += '<tr id="' + this.varname + '_tr_0">';	if (is_week_set) output += '<td class="cal_week" onmouseout="document.getElementById(\'' + this.varname + '_tr_0\').className=\'\'" onmouseover="document.getElementById(\'' + this.varname + '_tr_0\').className=\'cal_ovr\'" onclick="' + this.varname + '.weekClick(1,' + (dt.getMonth()+1) + ',' + dt.getFullYear() + ')">&raquo;</td>';	var diff = 1 + (j - day);	if (day < j) diff = 1 + (j - day - 7);	dt.setDate(diff);	while (j != day && (diff <= 0))	{		output += '<td class="cal_empty" onmouseover="this.className=\'cal_ovr\'" onmouseout="this.className=\'cal_empty\'" onclick="' + this.varname + '.dayClick(' + dt.getDate() + ',' + (dt.getMonth()+1) + ',' + dt.getFullYear() + ')">' + dt.getDate() + '</td>';		dt.setDate(dt.getDate() + 1);		j++;		if (j == 7) j = 0;	}	//general month days	dt.setMonth(this.month);	dt.setYear(this.year);	dt.setDate(1);	j = 1;	while (dt.getMonth() == this.month)	{		if (dt.getDay() == this.week_start && day != this.week_start)		{			output += '</tr><tr id="' + this.varname + '_tr_' + j + '">';			if (is_week_set) output += '<td class="cal_week" onmouseout="document.getElementById(\'' + this.varname + '_tr_' + j +				'\').className=\'\'" onmouseover="document.getElementById(\'' + this.varname + '_tr_' + j +				'\').className=\'cal_ovr\'" onclick="' + this.varname +				'.weekClick(' + dt.getDate() + ',' + (dt.getMonth()+1) + ',' + dt.getFullYear() + ')">&raquo;</td>';			j++;			if (j == 7) j = 0;		}		if (dt.getDay() == 0 || dt.getDay() == 6) clss = "cal_hol";		else clss = "cal_day";		if (dt.getDate() == this.selday) clss += "_sel";		else if (dt.getFullYear() == td.getFullYear() && dt.getMonth() == td.getMonth() && dt.getDate() == td.getDate()) clss = "cal_today";		output += '<td onmouseover="this.className=\'cal_ovr\'" onmouseout="this.className=\'' + clss + '\'" class="' + clss + '" id="' + this.varname + '_td_' + dt.getDate() + '" onclick="' + this.varname + '.dayClick(' + dt.getDate() + ',' + (dt.getMonth()+1) + ',' + dt.getFullYear() + ')">' + dt.getDate() + '</td>';		dt.setDate(dt.getDate() + 1);		day = this.week_start + 1;	}	//next month days	dt.setDate(dt.getDate() - 1);	j = dt.getDay();	dt.setDate(dt.getDate() + 1);	var endday = (this.week_start == 0)?6:this.week_start - 1;	while (j != endday)	{		output += '<td class="cal_empty" onmouseover="this.className=\'cal_ovr\'" onmouseout="this.className=\'cal_empty\'" onclick="' + this.varname + '.dayClick(' + dt.getDate() + ',' + (dt.getMonth()+1) + ',' + dt.getFullYear() + ')">' + dt.getDate() + '</td>';		dt.setDate(dt.getDate() + 1);		j++;		if (j == 7) j = 0;	}	output += '</tr></table>';	return output;}//end c_output()
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/8fb1b62f9f2a2c71889bcf09037d13f4390a1cd0/js_calendar.js/clean/fudge/js_calendar/js_calendar.js