function tc2ShowMonth(curMonth, month) {
	if ( document.getElementById('tc_month_' + curMonth) ) {
		document.getElementById('tc_month_' + curMonth).style.display = 'none';
	} else {
		alert('TinyCalendar2 Error: Unable to hide the specificed month!');
	}
	
	if ( document.getElementById('tc_month_' + month) ) {
		document.getElementById('tc_month_' + month).style.display = '';
	} else {
		alert('TinyCalendar2 Error: Unable to show the specificed month!');
	}
}

function tc2ShowEvents(date) {
	if ( document.getElementById('tc_events_' + date) ) {
		document.getElementById('tc_events_' + date).style.left = cursorX + 10 + "px";
		document.getElementById('tc_events_' + date).style.top = cursorY + 10 + "px";
		document.getElementById('tc_events_' + date).style.display = '';
	} else {
		alert('TinyCalendar2 Error: Unable to show the specificed events!');
	}
}

function tc2UpdateEventPosition(date) {
	if ( document.getElementById('tc_events_' + date) ) {
		document.getElementById('tc_events_' + date).style.left = cursorX + 10 + "px";
		document.getElementById('tc_events_' + date).style.top = cursorY + 10 + "px";
	} else {
		alert('TinyCalendar2 Error: Unable to modify the specificed events!');
	}
}

function tc2HideEvents(date) {
	if ( document.getElementById('tc_events_' + date) ) {
		document.getElementById('tc_events_' + date).style.display = 'none';
	} else {
		alert('TinyCalendar2 Error: Unable to show the specificed events!');
	}
}