function safe_link(t,l){
	if(confirm(t))
		document.location=l;
}

function checkEmail (elt_id) {
var strng=document.getElementById(elt_id).value;
var error="";
	if (strng == "") {
	error = "Email non valide / Ongeldige e-mail / E-mail not valid";
	}

    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(strng))) { 
	error = "Email non valide / Ongeldige e-mail / E-mail not valid";
    }
    else {
//test email for illegal characters
       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
         if (strng.match(illegalChars)) {
	error = "Email non valide / Ongeldige e-mail / E-mail not valid";
       }
    }
	
	if(error==""){
			document.getElementById(elt_id).style.backgroundColor='#fff';
			return true;
	} else {
		document.getElementById(elt_id).style.backgroundColor='#ed4530';
		alert(error);
		return false;
	}
}

