<!--
function popupWindow(url, sName, sInstellingen)
{
	newwindow = window.open(url,sName,sInstellingen);
	if (window.focus) {newwindow.focus()}
	return false;
}

function CheckMail() {
	var isFormCorrect;
	isFormCorrect = 1;
	var email_name;
	email_name = Trim(document.forms.form_contact.name.value);
	var email_email;
	email_email = Trim(document.forms.form_contact.email.value);
	var email_subject;
	email_subject = Trim(document.forms.form_contact.subject.value);
	var email_message;
	email_message = Trim(document.forms.form_contact.message.value);
	
	if (email_name == "") {
		isFormCorrect = 0;
	}
	if (email_email == "") {
		isFormCorrect = 0;
	}
	if (email_subject == "") {
		isFormCorrect = 0;
	}
	if (email_message == "") {
		isFormCorrect = 0;
	}

	if ( isFormCorrect == 1 ) {
		if ( checkMailAddress(email_email) == 0 ) {
			alert ('E-mail adres is incorrect.');
			return false;
		} else {
			return true;
		}
	} else {
		alert ('Niet alle velden zijn ingevuld.');
		return false;
	}
}

function Trim(str) {
	return str.replace(/^\s*|\s*$/g,"");
}

function checkMailAddress(emailaddress) {
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(emailaddress)) {
		return 1;
	} else {
		return 0;
	}
}
-->
