<!--
function check(url)
{
  var confirmation = confirm("Weet je zeker dat je dit wilt doen?");
  if(confirmation == true)
  {
    window.location = url;
  }
}

function goTo(url)
{
  window.location = url;
}

function emoticon(text) {
	var txtarea = document.post.comment;
	text = ' ' + text + ' ';
	if (txtarea.createTextRange && txtarea.caretPos) {
		var caretPos = txtarea.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
		txtarea.focus();
	} else {
		txtarea.value  += text;
		txtarea.focus();
	}
}

function addToDiv(value)
{
	var x = document.getElementById("dynform");
	x.innerHTML += value;
}

var state = 'none';

function showhide(layer) {
  if (state == 'block') {
    state = 'none';
  }
  else {
    state = 'block';
  }
  if (document.all) { //IS IE 4 or 5 (or 6 beta)
    eval( "document.all." + layer + ".style.display = state");
  }
  if (document.layers) { //IS NETSCAPE 4 or below
    document.layers[layer].display = state;
  }
  if (document.getElementById &&!document.all) {
    hza = document.getElementById(layer);
    hza.style.display = state;
  }
}

function openwindow(url)
{
  var newwin = window.open(url,'');
  newwin.focus();
}
