// JavaScript Document

function checkNlData() {
	var nlName = document.getElementById('nlName').value;
	var nlMail = document.getElementById('nlMail').value;
	var nlGTC = document.getElementById('nlGTC').checked;
	
	if (nlName == "" || !checkMailAdres(nlMail) || !nlGTC) {
		document.getElementById('nlError').innerHTML = "<span style=\"color:#FF0000;\">// </span>Some information was missing. Please check and try again.";
	}
	else {
		document.forms['nlReg'].submit();
		document.getElementById('nlError').innerHTML = "<span style=\"color:#FF0000;\">// </span>Thank you for your registration. Enjoy the CDP!";
		nlName = "";
		nlMail = "";
		nlGTC = false;
	}
}