function openpopup(url, windowtarget, windowwidth,windowheight ) 
{
    window.open(url, 
       		    windowtarget,
        		"width=" + windowwidth + ",height=" + windowheight +
				",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");
}

function changeLang(){ 
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	if ((sPage == "index.html") || sPage=="")
		return "indexen.html";
	return (sPage.replace('fr.html','en.html'));
	}


		function doRedirect(sTargetURL)
{
    //  JavaScript 1.1 added the 'replace' function on the
    //  location object so we can change locations without
    //  adding to the browser's history.
    //
	window.location.replace( sTargetURL );
}
	

// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(1));
	}
	return r;

}
  // JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
}