function ShowHidePresentatie(obj){
	var _Presentaties = document.getElementById('presentaties');
	if(_Presentaties && obj!="undefined"){
		if(obj.checked==true){
			_Presentaties.style.display='block';
		}else{
			_Presentaties.style.display='none';
		}
	}		
}

function getObj(name)
{
 if (document.getElementById)
 {
	   this.obj = document.getElementById(name);
	   this.style = document.getElementById(name).style;
 }
 else if (document.all)
 {
	   this.obj = document.all[name];
	   this.style = document.all[name].style;
 }
 return this.obj;
}
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function showhidesearch(obj, searchtype) {
	var vloottype=getObj('zoektype');
	vloottype.value=searchtype;
	var zoeknaam = getObj('zoeknaam');
	zoeknaam.innerHTML = '<b>Zoek een '+searchtype+'</b>';
	var searchobj=getObj('search');
	if(searchobj.style.display=='block'){
		searchobj.style.display = 'none';
	}else{
		var x = findPosX(obj);
		var y = findPosY(obj);
		searchobj.style.left=x-155+'px';
		searchobj.style.top=y-10+'px';
		searchobj.style.display = 'block';
	}
}

function openw(url, naam){
	newwindow = window.open(url,naam,"width=700,height=500,toolbar=0,resizable=0,location=0,scrollbars=1");
	newwindow.focus();
}