function updateTxt(sender) {
	if(sender.value == "andere") {
		sender.form.groep_new.disabled = false;
		sender.form.groep_new.style.visibility = "visible";
	} else {
		sender.form.groep_new.disabled = true;
		sender.form.groep_new.style.visibility = "hidden";
	}
}

function updateTxtPhotoGallery() {
	if(document.photogallery.map.value == "nieuw") {
		document.photogallery.map_new.disabled = false;
		document.photogallery.map_new.style.visibility = "visible";
	} else {
		document.photogallery.map_new.disabled = true;
		document.photogallery.map_new.style.visibility = "hidden";
	}
}

function zeker(vraag, url, id) {
		document.getElementById(id).style.backgroundColor = "#ff0000"
		if(confirm(vraag)) {
				document.location.href = url;
		}
		document.getElementById(id).style.backgroundColor = "transparent"
}

function over(sender) {
	sender.style.backgroundColor = "#323c43"
}

function uit(sender) {
	if(sender.style.backgroundColor != "#ff0000") {
		sender.style.backgroundColor = "transparent"
	}
}
function knopOver(sender) {
	sender.style.backgroundColor = "#FFFFFF"
}

function knopUit(sender) {
		sender.style.backgroundColor = "#637787"
}

function openPopup(url, width, height) {
	schermX = (window.screen.availWidth - 10 - width) / 2;
	schermY = (window.screen.availHeight - 36 - height) / 2;
	if(schermX < 0 ) {
		schermX = 0;
	}
	if(schermY < 0) {
		schermY = 0;
	}
	window.open("popup.php?url=" + url, "popup", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left=" + schermX + ",top=" + schermY + "");
}

function openMoviePlayer() {
	width = 510;
	height = 440;
	schermX = (window.screen.availWidth - 10 - width) / 2;
	schermY = (window.screen.availHeight - 36 - height) / 2;
	if(schermX < 0 ) {
		schermX = 0;
	}
	if(schermY < 0) {
		schermY = 0;
	}
	window.open("movieplayer.php", "popup", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left=" + schermX + ",top=" + schermY + "");
}