
function checkformulier(field){
	var status = 'okee';
	// GA KIJKEN WELKE VELDEN VERPLICHT ZIJN.
	// DEZE BEGINNEN MET check_
	var frm = document.forms[0];
	for (var e = 0; e < frm.length; e++) {
		var name = frm.elements[e].name;
	    if(name.substr(0,6) == 'check_'){
			var naamzondercheck = name.substr(6,28)
			if(frm.elements[e].value==''){
			 	alert('U heeft geen '+ naamzondercheck + ' ingevoerd');
				status = 'niet okee';
			}
		}
    }
	if(status=='okee'){
		frm.submit();
	}
}

function bugreport(currentPage,referer,naam) {
	open("/content/reportbug.php?currentPage="+escape("http://"+currentPage)+"&referer="+escape(referer)+"&naam="+naam,"bugReport","width=500,height=380,scrollbars=no,resizable=no,toolbar=no,statusbar=yes");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function menuHoverOver(blockname,itemnaam){
	document.getElementById('pagina'+blockname).style.display='block';
	document.getElementById('space'+blockname).innerHTML = '<div style="background-color:#000000; height:7px;margin: 0px 0px 0px 0px;"></div><div class="spaceblack3"><span>&nbsp;</span></div><div class="spaceblack2"><span>&nbsp;</span></div><div class="spaceblack1"><span>&nbsp;</span></div><div class="spaceblack1"><span>&nbsp;</span></div>';
	
	document.getElementById('box'+blockname).style.backgroundColor='#000000';
	document.getElementById('top1_'+blockname).style.backgroundColor='#000000';
	document.getElementById('top2_'+blockname).style.backgroundColor='#000000';
	document.getElementById('top3_'+blockname).style.backgroundColor='#000000';
	document.getElementById('top4_'+blockname).style.backgroundColor='#000000';
	document.getElementById('bottom1_'+blockname).style.backgroundColor='#000000';
	document.getElementById('bottom2_'+blockname).style.backgroundColor='#000000';
	document.getElementById('bottom3_'+blockname).style.backgroundColor='#000000';
	document.getElementById('bottom4_'+blockname).style.backgroundColor='#000000';
	document.getElementById('bottom1_'+blockname).style.margin='0px 0px 0px 0px';
	document.getElementById('bottom2_'+blockname).style.margin='0px 0px 0px 0px';
	document.getElementById('bottom3_'+blockname).style.margin='0px 0px 0px 0px';
	document.getElementById('bottom4_'+blockname).style.margin='0px 0px 0px 0px';
	document.getElementById('img_'+blockname).src='/images/menuitem.php?itemnaam='+itemnaam+'&backColor=000000';
}
function menuHoverOut(blockname,itemnaam){
	document.getElementById('pagina'+blockname).style.display='none';
	document.getElementById('space'+blockname).innerHTML = '&nbsp;';
	
	document.getElementById('box'+blockname).style.backgroundColor='#313612';
	document.getElementById('top1_'+blockname).style.backgroundColor='#313612';
	document.getElementById('top2_'+blockname).style.backgroundColor='#313612';
	document.getElementById('top3_'+blockname).style.backgroundColor='#313612';
	document.getElementById('top4_'+blockname).style.backgroundColor='#313612';
	document.getElementById('bottom1_'+blockname).style.backgroundColor='#313612';
	document.getElementById('bottom2_'+blockname).style.backgroundColor='#313612';
	document.getElementById('bottom3_'+blockname).style.backgroundColor='#313612';
	document.getElementById('bottom4_'+blockname).style.backgroundColor='#313612';
	document.getElementById('bottom1_'+blockname).style.margin='0px 1px 0px 1px';
	document.getElementById('bottom2_'+blockname).style.margin='0px 1px 0px 1px';
	document.getElementById('bottom3_'+blockname).style.margin='0px 2px 0px 2px';
	document.getElementById('bottom4_'+blockname).style.margin='0px 4px 0px 4px';
	document.getElementById('img_'+blockname).src='/images/menuitem.php?itemnaam='+itemnaam+'&backColor=313612';
}

function activateLeftBlock(blockId){
	document.getElementById('historie').style.display = 'none';
	document.getElementById('nieuwsbrief').style.display = 'none';
	document.getElementById('route').style.display = 'none';
	document.getElementById(blockId).style.display = 'block';
}

function activateRightBlock(blockId){
	document.getElementById('agendaMaand').style.display = 'none';
	document.getElementById('agendaAlles').style.display = 'none';
	document.getElementById(blockId).style.display = 'block';
}

var curScrollDiv;
var curScrollSpace;
var scrollTimer;
function startScrollDiv(e,s) {
	curScrollDiv = e;
	curScrollSpace = s;
	scrollTimer = setInterval("scrollDiv()",10);
}

function scrollDiv() {
	d = document.getElementById(curScrollDiv);
	d.scrollTop += curScrollSpace;
}

function endScroll() { 
	clearTimeout(scrollTimer);
	
}

function enlarge(src) {
if (isNaN(src)) { src = "img="+src; 
} else { src = "Upload_id="+src; }
window.open("/enlarge.php?root=./&"+src,"_enlarge","width=100,height=100,resizeble=no,scrollbars=auto,menubar=no,statusbar=yes,toolbar=no");
}


