function getCal() {
	if (ajax == false) {
		alert('Oeps, geen ajax functionaliteit beschikbaar :( ');
	}
	else {
		var url = 'if/calendar.xml';
		ajax_get(url,'showCal(ajax.responseXML)');
	}
}

function showCal(xml) {
	var html = '';

	if (xml.getElementsByTagName('club').length == 0) {
		html = '<p style="color:#F00;">Oeps, geen correcte RSS feed!</p>';
	}
	else {
		for (i=0;i<xml.getElementsByTagName('club').length;i++) {
			var currClub = xml.getElementsByTagName('club')[i];
			var currClubActivity = currClub.getElementsByTagName('activity')[0].firstChild.nodeValue;
			var currClubDate = currClub.getElementsByTagName('date')[0].firstChild.nodeValue;
			var currClubOrganisation = currClub.getElementsByTagName('organisation')[0].firstChild.nodeValue;

			html += '<ul>' + currClubActivity + '</ul>';
			html += '<li>' + '<i>Datum:</i> ' + currClubDate + '</li>';
			html += '<li>' + currClubOrganisation + '</li>';
		}
	}

	document.getElementById('calendar').innerHTML = html;
}