function dateChanged(calendar) {
	if (calendar.dateClicked) {
		var y = calendar.date.getFullYear();
		var m = calendar.date.getMonth(); // integer, 0..11
		var d = calendar.date.getDate(); // integer, 1..31
	
		tm = parseInt(m) + 1;
		str_day = y+"|"+m+"|"+d;
		window.location = "index.php?p=events&y=" + y + "&m=" + tm + "&d=" + d;
	}
}
function ourDateStatusFunc() {
	return "special";
}
Calendar.setup(
	{
		flat         : "calendar-container", // ID of the parent element
		flatCallback : dateChanged,          // our callback function
		dateStatusFunc : ourDateStatusFunc
	}
);
