{
	<!-- statusbalk goed zetten, geen zichtbare links -->
	window.status = 'XRAY XBS';
	window.defaultstatus = window.status; 
	document.onMouseOver = window.status;
	document.OnMouseOut = window.status;
}

<!-- handgemaakte OnLoad, wordt gebruikt in CalculatieDetails.html om meldingsteksten te tonen bij Refresh -->
var func_onload = null;
function bodyonload()
{
  	if (func_onload != null) 
  		func_onload();
}

	function PadDigits(n, totalDigits) 
	{ 
        n = n.toString(); 
        var pd = ''; 
        if (totalDigits > n.length) 
        { 
            for (i=0; i < (totalDigits-n.length); i++) 
            { 
                pd += '0'; 
            } 
        } 
        return pd + n.toString(); 
	}

function Strip(str)
{
	var i = 0;
	var res = '';

	for(;i < str.length;i++)
		if (str.charAt(i) >= '0' && str.charAt(i) <= '9')
			res = res + str.charAt(i);			
	return res;
}

function isDigit(str)
{
	var i = 0;
	for(;i < str.length;i++)
		if (str.charAt(i) < '0' || str.charAt(i) > '9')
			return false;
	return true;
}

function isKenteken(str)
{
	var i = 0;
	var streepje = 0;
	var res = true;

	if (str.length != 6 && str.length != 8)
		res = false;
	else
		for(;i < str.length;i++)
			if ((str.charAt(i) >= '0' && str.charAt(i) <= '9') || (str.charAt(i) >= 'a' && str.charAt(i) <= 'z') || (str.charAt(i) >= 'A' && str.charAt(i) <= 'Z'))
				;
			else if (str.charAt(i) == '-') 
				streepje = streepje + 1;
			else
				res = false;

		if (res == true)
			if (streepje != 2 && streepje != 0)
				res = false;
	return res;			
}

function Round50(bod)
{
	var res = Number(bod);
	var honderdtal;
	var tiental;

	honderdtal = Math.floor(res / 100) * 100;
	tiental = res - honderdtal;
	if (tiental >= 0 && tiental < 25)
		res = honderdtal;	
	else if (tiental >= 25 && tiental < 75)
		res = honderdtal + 50;
	else 
		res = honderdtal + 100;
//	if (Math.round(res / 100) == Math.floor(res / 100))
//		res = Math.round(res / 100) * 100 + 50;
//	else
//		res = Math.round(res / 100) * 100;
	res = Math.max(res, 50);
	return res;
}

function printWindow()
{
   	versie = parseInt(navigator.appVersion);
   	if (versie >= 4) 
   		window.print();
}

function KeyPress(evt)
{
	var charCode;

	if (navigator.appName == "Netscape")
		charCode = evt.which 
	else 
		charCode = evt.keyCode;
	if (charCode == 13) 
	{
		return false;
	}
	else
		return true;
}

