function doorsturen(url, tijd)
{
	setTimeout('doorsturenUrl("'+url+'")', tijd);			
}

function doorsturenUrl(url2)
{
	window.location = url2;
}

function bevestigen(msg)
{
	if (!confirm(msg))
	{
		return false;
	}
	return true;
}

function bevestigenForm (msg)
{
	if (document.forms['bewerken'].elements['verwijderen'].checked && !confirm(msg))
	{
		return false;
	}
	return true;
}


function toon_smilies ( form, el )
{
	document.write ( "<img class=\"hand\" src=\"../images/smilies/puh2.gif\" onclick=\"putStr(' :p ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/kwijl.gif\" onclick=\"putStr(' :9~ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/puh.gif\" onclick=\"putStr(' :> ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/devil.gif\" onclick=\"putStr(' >:) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/cry.gif\" onclick=\"putStr(' :`( ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/pukey.gif\" onclick=\"putStr(' :r ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/yummie.gif\" onclick=\"putStr(' :9 ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/loveit.gif\" onclick=\"putStr(' :7 ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/frusty.gif\" onclick=\"putStr(' |:( ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/sadley.gif\" onclick=\"putStr(' :( ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/frown.gif\" onclick=\"putStr(' :@ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/biggrin.gif\" onclick=\"putStr(' :D ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/wink.gif\" onclick=\"putStr(' ;) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/clown.gif\" onclick=\"putStr(' :+ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/smile.gif\" onclick=\"putStr(' :) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/redface.gif\" onclick=\"putStr(' :o ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/coool.gif\" onclick=\"putStr(' 8-) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/confused.gif\" onclick=\"putStr(' :? ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/michel.gif\" onclick=\"putStr(' (8> ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/shutup.gif\" onclick=\"putStr(' :x ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/vork.gif\" onclick=\"putStr(' :Y) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/sleepey.gif\" onclick=\"putStr(' :Z ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/sleephappy.gif\" onclick=\"putStr(' :z ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/shadey.gif\" onclick=\"putStr(' B-) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/shiny.gif\" onclick=\"putStr(' *) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/loveys.gif\" onclick=\"putStr(' *; ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/nosmile.gif\" onclick=\"putStr(' :{ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/marrysmile.gif\" onclick=\"putStr(' ^) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/hypocrite.gif\" onclick=\"putStr(' o-) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/yawnee.gif\" onclick=\"putStr(' :O ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/sm_eerie.gif\" onclick=\"putStr(' }:| ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/nooo.gif\" onclick=\"putStr(' :N ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/yes.gif\" onclick=\"putStr(' :Y ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/bonk.gif\" onclick=\"putStr(' 8)7 ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/bloos.gif\" onclick=\"putStr(' :$ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/thumbsup.gif\" onclick=\"putStr(' ^O^ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/worshippy.gif\" onclick=\"putStr(' _O_ ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/emo.gif\" onclick=\"putStr(' :`) ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/beer2.gif\" onclick=\"putStr(' :B ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/static.gif\" onclick=\"putStr(' *O* ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/nopompom.gif\" onclick=\"putStr(' -O- ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/schater.gif\" onclick=\"putStr(' _O-  ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/sbatje.gif\" onclick=\"putStr(' o|O ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/we.gif\" onclick=\"putStr(' :-W ', '"+form+"', '"+el+"');\"> " );
	document.write ( "<img class=\"hand\" src=\"../images/smilies/beerchug.gif\" onclick=\"putStr(' (B) ', '"+form+"', '"+el+"');\"><br />" )
}

/* De volgende functies komen (deels) van GoT, en zijn eigendom van Crisp en Tweakers.net B.V.
   Deze scripts zijn gebruikt met toestemming van de eigenaar.
   © 2004-2005 crisp
*/
function winopen(url, winname, width, height, extra)
{
	if (!extra) extra = ''; else extra = ',' + extra;
	var popup = window.open(url,winname,'toolbar=no,location=no,menubar=no,width='+width+',height='+height+',resizable=yes,status=no,scrollbars=yes'+extra);
	try { popup.focus(); } catch(e) {}
}

function quote(string, el3)
{
	if ( string == "" )
	{
		alert ( 'Je kunt dit bericht niet quoten!' );
	}
	else
	{
		putStr(string, '', el3);
	}
}

var target = null;
function initMessageBox()
{
	target = document.getElementById('bericht');
	if (target)
	{
		target.focus();
		if (typeof target.createTextRange != 'undefined')
		{
			target.onkeyup = storeCursor;
			target.onclick = storeCursor;
			target.onselect = storeCursor;
			target.onselect();
		}
		else
		{
		}
	}
}

function storeCursor()
{
	this.cursorPos = document.selection.createRange().duplicate();
}

function det_replace(type, text)
{
	var val = '';
	switch (type)
	{
		case 'plain':
			break;
	}
	return text;
}

function putStr(text)
{
	putExt('plain', text);
}

function putExt(type, text, el2)
{
	if (target == null)
	{
		target = document.getElementById( el2 );
		if (target != null)
		{
			target.focus();
			storeCursor(target);
			}
		}

	if (target != null)
	{
		if (typeof target.cursorPos != 'undefined')
		{
			var cursorPos = target.cursorPos;
			if (type != 'plain') text = cursorPos.text;
			cursorPos.text = det_replace(type, text);
		}
		else if (typeof target.selectionStart != 'undefined')
		{
			// remember scrollposition
			var scrollTop = target.scrollTop;

			var sStart = target.selectionStart;
			var sEnd = target.selectionEnd;
			if (type != 'plain') text = target.value.substring(sStart, sEnd);
			text = det_replace(type, text);
			target.value = target.value.substr(0, sStart) + text + target.value.substr(sEnd);
			var nStart = sStart == sEnd ? sStart + text.length : sStart;
			var nEnd = sStart + text.length;
			target.setSelectionRange(nStart, nEnd);

			// reset scrollposition
			target.scrollTop = scrollTop;
		}
		else
		{
			if (type != 'plain') text = '';
			target.value += det_replace(type, text);
		}
		target.focus();
		storeCursor(target);
	}
}

function storeCursor(element)
{
	if ( typeof element.createTextRange != 'undefined' )
		element.cursorPos = document.selection.createRange().duplicate();
}

function det_replace(type, text)
{
	var val = '';
	switch (type)
	{
		case 'plain':
			break;
	}
	return text;
}
/* Einde JS van Tweakers.net */
function startlist () {
		if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" over";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace(" over", "");
		   }
		   }
		  }
		 }
		 if (document.all&&document.getElementById) {
		navRoot = document.getElementById("vereniging");
		for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		node.onmouseover=function() {
		this.className+=" overSub";
		  }
		  node.onmouseout=function() {
		  this.className=this.className.replace(" overSub", "");
		   }
		   }
		  }
		 }
}

function foto(url)
{
	window.open(url,'Foto', 'width=460,height=300scrollbars=no,toolbar=no,location=no,resizable=no,status=no,directories=no');
}