function ajaxInloggen(strEmailadres, strWachtwoord, strOnthouden){
	new AJAX.Request("/ajax/request-handler.asp"
		, {parameters:"strEmailadres=" + strEmailadres + "&strWachtwoord=" + strWachtwoord + "&strOnthouden=" + strOnthouden
		, preloader:false
		, customHandler:true
		, responseType:"text"
	});
}

AJAX.Request.prototype.customHandler = function(strResponse){
	if (strResponse == "[OK]") {
		document.inloggenfrm.submit();
	} else {
		alert(strResponse);
	}
}

// Check if window focus is lost()
function focusLost(strEl, strElValue)
{
	var oEl = document.getElementById(strEl);
	if(oEl != undefined){
		if(oEl.value == ""){
			oEl.value = strElValue;
		}
	}
}