<!--
var venster = false
var newwindow = window

function openHelp(Help){
	newwindow = window.open(Help, "window1","scrollbars=yes,width=419,height=400,left=112,top=100");
}

function GetSmile(Which) {
	document.form.txt.value = document.form.txt.value + Which;
}

function popup(location,name,w,h) {
	var scrw=(screen.width/6)-(w/6);
	var scrh=(screen.height/6)-(h/6);
	window.open(location,name,('toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,left='+scrw+',top='+scrh+',width='+w+',height='+h));
}

function resizeWinTo(idOfDiv)
{
  var oH = getRefToDivMod(idOfDiv); if( !oH ) { return false; }
  var oW = oH.clip ? oH.clip.width : oH.offsetWidth;
  var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }
  var x = window; x.resizeTo( oW + 200, oH + 200 );
  var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;
  if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }
  else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }
  else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }
  if( window.opera && !document.childNodes ) { myW += 16; }
  x.resizeTo( oW + ( ( oW + 200 ) - myW ), oH + ( (oH + 200 ) - myH ) );
}

function getRefToDivMod( divID, oDoc )
{
  if( !oDoc ) { oDoc = document; }
  if( document.layers ) {
    if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
      for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
        y = getRefToDivMod(divID,oDoc.layers[x].document); }
      return y; } }
  if( document.getElementById ) { return oDoc.getElementById(divID); }
  if( document.all ) { return oDoc.all[divID]; }
  return document[divID];
}

function zzpopup(location) {
	window.open(location, "",('toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,left=150,top=150,width=10,height=10'));
}

function movepic(img_name,img_src) {
	document[img_name].src=img_src;
}

function v_uploaden() {
	if (document.uploaden.foto.value==""){
		alert("foto is verplicht");
		document.uploaden.foto.focus();
		return false;
	}
	if (document.uploaden.omschrijving.value==""){
		alert("omschrijving is verplicht");
		document.uploaden.omschrijving.focus();
		return false;
	}
	return true;
}

function v_fotowijz() {
	if (document.form.omschrijving.value==""){
		alert("omschrijving is verplicht");
		document.form.omschrijving.focus();
		return false;
	}
	return true;
}

function v_addcomment() {
	if (document.form.txt.value==""){
		alert("commentaar is verplicht");
		document.form.txt.focus();
		return false;
	}
	return true;
}

function v_guestbook() {
	if (document.form.name.value==""){
		alert("naam is verplicht");
		document.form.name.focus();
		return false;
	}
	if (document.form.txt.value==""){
		alert("boodschap is verplicht");
		document.form.txt.focus();
		return false;
	}
	return true;
}

function v_links() {
	if (document.form.name.value==""){
		alert("Je ben een naam voor de site vergeten");
		document.form.name.focus();
		return false;
	}
	if (document.form.url.value==""){
		alert("url is verplicht");
		document.form.url.focus();
		return false;
	}
	if (document.form.catid.value==""){
		alert("categorie is verplicht");
		document.form.catid.focus();
		return false;
	}
	if (document.form.txt.value==""){
		alert("omschrijving is verplicht");
		document.form.txt.focus();
		return false;
	}
	return true;
}

function v_news() {
	if (document.form.title.value==""){
		alert("titel is verplicht");
		document.form.title.focus();
		return false;
	}
	if (document.form.txt.value==""){
		alert("nieuws is verplicht");
		document.form.txt.focus();
		return false;
	}
	return true;
}
function v_agenda() {
	if (document.form.titel.value==""){
		alert("titel is verplicht");
		document.form.title.focus();
		return false;
	}
	if (document.form.txt.value==""){
		alert("tekst is verplicht");
		document.form.txt.focus();
		return false;
	}
	return true;
}

function v_album() {
	if (document.form.naam.value==""){
		alert("naam is verplicht");
		document.form.naam.focus();
		return false;
	}
	if (document.form.txt.value==""){
		alert("omschrijving is verplicht");
		document.form.txt.focus();
		return false;
	}
	return true;
}

function v_cat() {
	if (document.form.name.value==""){
		alert("naam is verplicht");
		document.form.name.focus();
		return false;
	}
	return true;
}

function V_addsoftware() {
	if (document.form.name.value==""){
		alert("naam is verplicht");
		document.form.name.focus();
		return false;
	}
	if (document.form.txt.value==""){
		alert("Omscrhijving is verplicht");
		document.form.txt.focus();
		return false;
	}
	if (document.form.download.value==""){
		alert("Url naar programma is verplicht");
		document.form.download.focus();
		return false;
	}
	return true;
}

//-->
