function ubb_uitleg() {	
	
	// popup resolution
	var popWidth = 700;
	var popHeight = 700;
	
	// get screenresolution of user
	var scrWidth = screen.width;
	var scrHeight = screen.height;
	
	// make sure the popup always pops up
	var name = new Date().getTime(); 
	
	// options 
	options = "width="+popWidth+",height="+popHeight+",left="+(scrWidth-popWidth)/2+",top="+(scrHeight-popHeight)/2+",resizable=yes";
	
	// do it
	newwindow=window.open('../ubb/index.html',name,options);
	if (window.focus) {newwindow.focus()}
	return false;	
	
}

function areyousure(str) {
	
	return confirm(str+' verwijderen?') == true;
	
}	

// Toon foto in popup en resize
function showPicture(img, imgWidth, imgHeight, txt) {
	
	// haal de schermresolutie van de gebruiker op
	var scrWidth = screen.width;
	var scrHeight = screen.height;
	
	imgWidth = (imgWidth < scrWidth) ? imgWidth : scrWidth;
	imgHeight = (imgHeight < scrHeight) ? imgHeight : scrHeight;
	
	// opties die moeten worden meegegeven aan het venster
	options = "width="+imgWidth+",height="+(imgHeight+40)+",left="+(scrWidth-imgWidth)/2+",top="+(scrHeight-(imgHeight+40))/2+"";
	
	// open het venster
	win = window.open("","Waterdragers", options);

	// schrijf de xhtml in het document
	win.document.clear();
	win.document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
	win.document.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\" lang=\"nl\">");
	win.document.writeln("\t<head>");
	win.document.writeln("\t\t<title>Waterdragers.nl foto</title>");
	win.document.writeln("\t</head>");
	win.document.writeln("\t<body style=\"margin: 0px; padding: 0px;\" background: #000; onBlur=\"window.close();\" >");
	win.document.writeln("\t\t<img src=\""+img+"\" width=\""+imgWidth+"\" height=\""+imgHeight+"\" border=\"0\" alt=\"waterdragers.nl foto\" onclick=\"javascript:window.close()\" />");
	win.document.writeln("\t\t<div style=\"background: #000; text-align: center; color: #fff; font-family: Verdana, Tahoma, sans-serif; font-size: 16px;\">"+txt+"</div>");
	win.document.writeln("\t</body>");
	win.document.writeln("</html>");
	
	// sluit het document
	win.document.close();

	// titel werkt niet, na een refresh wel :S
	win.location.reload();
	
	// als browser focus herkent, uitvoeren dan
	if(win.document.focus){
		win.document.focus();		
	}
}

