// JavaScript Document
function validEmail(strEmail) {
	var x = strEmail;
	
	// create filter
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	
	// Test email
	if (filter.test(x))
		return true; // Email correct, return true
	else
		return false; // Email niet correct, return false
}

// check if input is empty
function isEmpty(strInput) {
	if (strInput.match(/^\s+$/) || strInput == '') {
		return true;
	} else {
		return false;
	} 
}