function isEmpty(value) {
	if ((value==null) || (value.length==0) ) {
      return true;
	}
  else { return false; }
}

function confirmLink(tekst) {
	var agree = confirm(tekst);
	if (agree) {
		return true;
	}
	else {
		return false;
	}
}

// when the page is loaded, instantiate the autocomplete searchbox
$().ready(function() {
	$("input#zoektext").autocomplete("/?pagina=zoek");
	
	$("input#zoektext").result(function(event, data, formatted) {
		$("form#comp_search_form").submit();
	});
	
});

//
function nb_versturen(sUrl) {
	location.href = sUrl;
}

function redirect(url, msg) {
	location.href = url + '&msg=' + msg;
}