function setbg(id1,id2,id3,newclass) {
	document.getElementById(id1).className = newclass;
	document.getElementById(id2).className = newclass;
	document.getElementById(id3).className = newclass;
}
function setbgmemo(id1,id2,id3) {
	class1="top"+document.Memo.kleur[document.Memo.kleur.selectedIndex].value;
	class2="mid"+document.Memo.kleur[document.Memo.kleur.selectedIndex].value;
	class3="bot"+document.Memo.kleur[document.Memo.kleur.selectedIndex].value;
	document.getElementById(id1).className = class1;
	document.getElementById(id2).className = class2;
	document.getElementById(id3).className = class3;
}
function KalenderJump(maand,jaar) {
	maand=document.kalender.maand[document.kalender.maand.selectedIndex].value;
	jaar=document.kalender.jaar[document.kalender.jaar.selectedIndex].value;
	location.href="index.php?maand="+maand+"&jaar="+jaar;
}
function PageJump() {
	getvar=document.pagina.nummer[document.pagina.nummer.selectedIndex].value;
	getarray=getvar.split(',');
	sortering=getarray[0];
	startwaarde=getarray[1];
	location.href="overview.php?sort="+sortering+"&start="+startwaarde;
}
function PicWin(file,wbreedte,whoogte,naam)
{
	sb = screen.width;
	sh = screen.height;
	links = (sb-wbreedte)/2;
	boven = (sh-whoogte)/2;
	PictureWin = window.open('',naam,'width=' + wbreedte + ',height=' + whoogte + ',left=' + links + ',top=' + boven + ',status=no,toolbar=no,scrollbars=no,menubar=no');
	PictureWin.document.clear();
	PictureWin.document.open();
	PictureWin.document.write('<html><head><title>Bekijk een foto</title><body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">');
	PictureWin.document.write('<a href="javascript: window.close()">');
	PictureWin.document.write('<img src="' + file + '" border="0"></a>');
	PictureWin.document.write('</html></html>');
	PictureWin.document.close();
}
function CheckJaarlijks() {
	if(document.Memo.jaarlijks) {
		if(document.Memo.jaarlijks.checked) {
			document.Memo.k_jaar.disabled=true;
		}
		else {
			document.Memo.k_jaar.disabled=false;
		}
	}
}
