function cal(month, year){
	Element.show('loading');
	Element.hide('cal');
	
	new Ajax.Updater("cal", "ajax.php", {method:'post', postBody:'ajax=cal&month='+month+'&year='+year, onComplete:function(){
		Element.hide('loading');
		Element.show('cal');	
	}});
}

function showDay(d){
	new Ajax.Updater("content_right", "ajax.php", {method:'post', postBody:'ajax=showDay&date='+d});
	new Ajax.Updater("content_left", "ajax.php", {method:'post', postBody:'ajax=showDayIMG&date='+d});
}

function showID(d, Addr){
	new Ajax.Updater("content_right", "ajax.php", {method:'post', postBody:'ajax=showID&date='+d+'&url='+Addr});
	new Ajax.Updater("content_left", "ajax.php", {method:'post', postBody:'ajax=showIDIMG&date='+d});
}

function showDetails(d, Addr){
	new Ajax.Updater("content_right", "ajax.php", {method:'post', postBody:'ajax=showDetails&date='+d+'&url='+Addr});
	new Ajax.Updater("content_left", "ajax.php", {method:'post', postBody:'ajax=showIDIMG&date='+d});	
}

function showDetailsD(d){
	new Ajax.Updater("content_right", "ajax.php", {method:'post', postBody:'ajax=showDetailsD&date='+d});	
}

function goTo(u){
	window.location.href = u;	
}