function setCurrentDate(newdate) {
	$.get("inc.calendar_events.php", { date: newdate}, function(data) {
		$("#events").html(data);
		showMonth(newdate);
	});
}

function showMonth(newdate) {
	$.get("inc.calendar_table.php", { date: newdate}, function(data) {
		if(data.length > 0) $("#month").html(data);
	});
}

function checkSearchForm(oForm) {
	if(oForm.keyword.value.length == 0) {
		alert("Gelieve een trefwoord in te vullen");
		return false;
	}
	return true;
}

function submitReplyForm(oForm) {
	if(oForm.name.value.length == 0) {
		alert('Gelive uw naam in te vullen.');
		return false;
	}
	if(oForm.comment.value.length == 0) {
		alert('Gelive uw reactie in te vullen.');
		return false;
	}
	return true;
}

function showFoto(src, a, i) {
	$("#imageHolderFoto").attr('src', src);
	$(".fotonav_listitem > a").attr('class', '');
	$("#" + a).attr('class', 'active');
	if(i == "0") {
		$("#fotocopyright").show();
	} else {
		$("#fotocopyright").hide();
	}
}