var cookie	= document.cookie;
var zoek	= "cookiecheck=";
var start	= cookie.indexOf(zoek, 0);
if(start == -1) {
	 window.location="cookie.html";
}

function ubb(code, id) {
	var element = getElementById(id);
	element.value += code;
	element.focus();
}

var teller;
function startScroll(naam,stap,richting) {
	if (teller) {
		clearTimeout(teller);
	}
	if (window.frames[naam]) {
		if (richting=="verticaal") {
			window.frames[naam].scrollBy(0,stap);
		} else {
			window.frames[naam].scrollBy(stap,0);
		}
	teller=setTimeout("startScroll('"+naam+"',"+stap+",'"+richting+"')", 20);
	}
}
function stopScroll() {
	if (teller) {
		clearTimeout(teller);
	}
}

function popup(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=200,left = 465,top = 412');");
}

function toegang(type) {
	var over		= document.getElementById('over');
	var over_over	= document.getElementById('over_over');
	var geb_dag	= document.getElementById('geb_dag');
	var geb_maand	= document.getElementById('geb_maand');
	var geb_jaar	= document.getElementById('geb_jaar');

	if (type == 'ja') {
		over.style.display		= 'none';
		over_over.style.display	= 'none';
		geb_dag.style.display	= 'inline';
		geb_maand.style.display	= 'inline';
		geb_jaar.style.display	= 'inline';
	}else {
		window.location = 'http://www.google.nl';
	}
}