// Methods for AJAX Calendar
//
// @author		Andreas Kundoch <typo3@mehrwert.de>
// @version		$Id: mw_calendar.js 24 2009-10-15 12:20:18Z mh $
// @package		TYPO3
// @subpackage	tx_mwcalendar
// @license		GPL
//
var MehrwertCalendar = {

	ajaxUri: null,
	eID: null,

		// Get the month view
	getMonthView: function(elementID, ts, page_id, cPID)	{
		new Ajax.Request(this.ajaxUri, {
			method: 'get',
			parameters: { eID: this.eID, ts: ts, page_id: page_id, cPID: cPID },
			onSuccess: function(xhr) { $(elementID).innerHTML = xhr.responseText; },
			onFailure: function() { alert('An error occured. (1)'); }
		});
	}
};

