//WebRTB Webontwikkeling en meer
function include(path)
{
	document.write('<script language="javascript" type="text/javascript" src="'+path+'"></script>');
}
function getCachePrevent( )
{
	return "&rand=" + escape( Math.round( Math.random( ) * 10000 ) );
}
function goTo(url)
{
	document.location.href = url;
}
function HideValue(el)
{
	if(el.V)
	{
		if (el.value == el.V) 
			el.value = '';
	}
	else 
	{
		el.V = el.value;
		el.value = '';
	}
}
function getUrlVars()
{
	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	for(var i = 0; i < hashes.length; i++)
	{
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	return vars;
}
function getMessage()
{
	var get = getUrlVars();
	if(get.length > 0)
	{
		if(get["succes"] && document.getElementById("succes"))
			document.getElementById("succes").style.display = "inherit";
		if(get["fail"] && document.getElementById("fail"))
			document.getElementById("fail").style.display = "inherit";
	}
}
function disableContextMenu()
{
	return false;
	//normally used by jquery
}
function init()
{
	document.body.oncontextmenu = disableContextMenu;
	getMessage();
	//overige initialisatie
}
window.onload = init;
