var commentText;
var commentBtn;
function PostComment(eid, button, textbox) {
	commentText = $(textbox);
	commentBtn = $(button);
	commentBtn.disabled = true;
	commentText.disabled = true;
	AiN.AiC.Site.calendar._event.PostComment(eid, commentText.value, PostComment_Callback);
}

function PostComment_Callback(response) {
	document.location = document.location;
}

function ChangeDate(url, month, year, pram) {
	var monthlist = $(month), yearlist = $(year);
	document.location = url + "?m=" + monthlist.options[monthlist.selectedIndex].value + "&y=" +
		yearlist.options[yearlist.selectedIndex].value + pram;
}