/**
* Source.........: $HeadURL: http://webextra.startcms.nl/svn/smeetskring/trunk/htdocs/templates/jscripts/calendar.js $
* Created........: 2009-11-06
* Project........: Smeetskring
* Last Modified..: $LastChangedDate: 2009-11-09 21:33:18 +0100 (ma, 09 nov 2009) $
* SVN Revision...: $LastChangedRevision: 22 $
* Copyright......: 2009 Fred Liauw
*/

function init(){
	getCalendar(nYear, nMonth, nDay, true);
}

function getCalendar(year, month, day, bSelect){
	var url = '/templates/ajaxresponse/printCalendar.php';
	var options={ method: 'get'
				, parameters: 'year=' + year
							+ '&month=' + month
							+ '&day=' + day
							+ '&select=' + (bSelect ? 'y':'n')
							+ '&ts=' + new Date().getTime()
				, onComplete: function(originalRequest){
						Element.update('divCalendar', originalRequest.responseText);
					}
				};
	var myAjax = new Ajax.Request(url, options);
}

