<!--

function getEl(object_id)
{
	return document.getElementById(object_id);
}

function checkvalid() // check if all input is valid
{
	if (typeof tinyMCE != 'undefined') tinyMCE.triggerSave();

	for (var i = 0; i < arguments.length; i++)
	{
		var element = document.getElementById(arguments[i]);
		if ((element) && (element.value.length <= 0))
		{
			// error!
			window.alert("Niet alle velden zijn ingevuld. Controleer alstublieft of alle velden zijn ingevuld alvorens u het item opslaat.");
			return false;
		}
	}

	return true;
}

function ays(action, item) // are you sure you want to a b?
{
	return window.confirm("Weet u zeker dat u " + item + " wilt " + action + "?");
}

function ays_del() // SHORT CUT
{
	return ays("verwijderen", "dit item");
}

function isnum(num) // Check if num is a number
{
	return !isNaN(num); // Lol who though of a function to check if it's NOT a number >_<
}

function even(num) // Check if num is an even number
{
	return (!isNaN(num)) && ((num % 2) == 0); // % = mod
}


// -->
