function onLoad() {
	return true;
}

function deleteItem(text, yeslink, nolink) {
	
	if(confirm(text)) {
		document.location=yeslink;
	} else {
		if(nolink != '') {
			document.location=nolink;
		} else {
			return false;
		}
	}
	
}

function getParentByClassName(divElement, classname)
{
	i = 0;
	gevonden = false;	
	while ( gevonden == false )
	{
		if ( divElement.className == classname ){
			gevonden = true;
			return divElement;
		}else{
			i++;
			if ( i > 30 ) // Zorgen dan we niet in een vastlopende lus terecht komen 
				gevonden = true;
		}
		divElement = divElement.parentNode;
	}
	return false;
}


function stopBubbling(e)
{
	
	if (!e) var e = window.event;
	if ( e ) {
		e.cancelBubble = true;
		if (e.stopPropagation) e.stopPropagation();
	}

}

function print_r(theObj){
  if(theObj.constructor == Array ||
	 theObj.constructor == Object){
	document.write("<ul>")
	for(var p in theObj){
	  if(theObj[p].constructor == Array||
		 theObj[p].constructor == Object){
			document.write("<li>["+p+"] => "+typeof(theObj)+"</li>");
		document.write("<ul>")
		print_r(theObj[p]);
		document.write("</ul>")
	  } else {
			document.write("<li>["+p+"] => "+theObj[p]+"</li>");
	  }
	}
	document.write("</ul>")
  }
}



function popup(url, width, height) 
{
	 var left   = (screen.width  - width)/2;
	 var top    = (screen.height - height)/2;
	 
	 var params = 'width='+width+', height='+height;
		
	// params += ', top='+top+', left='+left;
	 params += ', directories=no';
	 params += ', location=no';
	 params += ', menubar=no';
	 params += ', resizable=no';
	 params += ', scrollbars=no';
	 params += ', status=no';
	 params += ', toolbar=no';
	 newwin=window.open(url,'windowname5', params);
	 if (window.focus) {newwin.focus()}
	 return false;
}
 
