function loadCal(m, y) {
	data = new Date;
	
	if(m == undefined) m = data.getMonth()+1;
	if(y == undefined) y = data.getFullYear();
	
	new Ajax.Updater('calendar', '/calHandle.php',
		{
			method: 'get',
			parameters: { month: m, year: y }
		});
}

google_ad_client = "pub-7296296448766578";
/* 728x90, utworzono 09-05-30 */
google_ad_slot = "4139880102";
google_ad_width = 728;
google_ad_height = 90;

postComment = function(source) {
    new Ajax.Request("/chandler.php", {
      method: "post",
      parameters: {
	source: source,
	author: $('author').value,
	email: $('email').value,
	content: $('ctt').value },
      onSuccess: function(transport) {
	if(transport.responseText != "0") {
	  new Effect.BlindUp('commentForm');
	  $('comments').innerHTML =  transport.responseText+$('comments').innerHTML;
	  $('ctt').value = '';
	} else {
	  alert("Your comment was marked as spam. An admin will resolve the situation soon.");
	}
      }
});
}