function url(){
	return location.protocol+"//"+location.host+"/";	
}

function pastEvents(cat){
	new Ajax.Updater('eventPane', url()+'functions/events/event-view-control.php', { method: 'get', parameters: {cat: cat, mode: 'past'} });
}

function futureEvents(cat){
	new Ajax.Updater('eventPane', url()+'functions/events/event-view-control.php', { method: 'get', parameters: {cat: cat, mode: 'future'} });
}