// load fancy windows

$(document).ready(function() {
	$("#windowpage").fancybox({
		'type'				: 'iframe',
		'onClosed'		: function() {
			    parent.location.reload(true);
		} 					
	});
	$("#windowpage2").fancybox({
		'width'				: '95%',
		'height'			: '90%',				
		'type'				: 'iframe',
		'onClosed'		: function() {
			    parent.location.reload(true);
		} 					
	});
	$("#reactie").fancybox({
		'width'				: '70%',
		'height'			: '80%',				
		'type'				: 'iframe',
		'onClosed'		: function() {
			    parent.location.reload(true);
		} 					
	});
	$("#page").fancybox({
		'width'				: '75%',
		'height'			: '75%',				
		'type'				: 'iframe'
	});
});

// check search form
function  validate()
{
	if (Trim(document.searchbox.q.value) =="")
	{
		alert("Gelieve een zoekwoord in te vullen");
		document.searchbox.q.focus();
		return false;
	}
	return true;
}
function Trim(value)
{
	return value.replace(/^\w\s*|\s*$/g, "");
}
