function getPage(href) {
	href = href ? href : document.location.href;
    parts = href.split('?')[0].split('/');
    return parts[parts.length-1];
}


function doCalendar(href){
	var link = href.replace(getPage(href),"contentonly.jsp");
	link += "&noheader=true";
	new Ajax.Updater("agenda", link,{
		evalScripts: true
	});
}