var strMsg = "";
function IsEmpty(strVal, strZone)
{
	if(strVal == null ||strVal.length == 0)
	{
		strMsg += strZone + "\r\n";
		return true;
	}
	return false;
}

function IsEmail(emailStr, strZone)
{
var reg = /^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,3}$/

if(emailStr == null || emailStr.length == 0) {
strMsg += strZone + " : L'adresse email est obligatoire\r\n";
return false;
}
else
if (reg.exec(emailStr) == null){
strMsg += strZone + " : L'adresse email n'est pas valide\r\n";
return false;
}

return true;
}

// eMail Obfuscator Script 2.1 by Tim Williams - freeware
function mailSecretariat(){
 	coded = "7pn5p9l5tl9@lql3l1.z5r"
	cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
	shift=coded.length
	link=""
	for (i=0; i<coded.length; i++){
		if (cipher.indexOf(coded.charAt(i))==-1){
			ltr=coded.charAt(i)
			link+=(ltr)
		}
		else {
			ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
			link+=(cipher.charAt(ltr))
		}
    }
	document.write("<a href='mailto:"+link+"'>"+link+"</a>")
}
