function goToSite(href) { if (document.transverseParameters != null && document.transverseParameters.queryString != null) { var queryString = document.transverseParameters.queryString.value; if (queryString != "") { href += "?"; href += queryString; } } document.location = href; document.body.style.cursor = "wait"; } function openGenericPopup(link) { var name = "genericPopup"; var newWidth=492; var newHeight= 500; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup1(link) { var name = "genericPopup"; var newWidth=700; var newHeight= 770; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup2(link) { var name = "genericPopup2"; var newWidth=605; var newHeight= 500; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup3(link) { var name = "genericPopup3"; var newWidth=625; var newHeight= 500; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup4(link) { var name = "genericPopup4"; var newWidth=400; var newHeight= 500; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup5(link) { var name = "genericPopup5"; var newWidth=480; var newHeight= 500; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup6(link) { var name = "genericPopup6"; var newWidth=520; var newHeight= 450; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup7(link) { var name = "genericPopup7"; var newWidth=460; var newHeight= 200; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup8(link) { var name = "genericPopup8"; var newWidth=510; var newHeight= 520; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup9(link) { var name = "genericPopup9"; var newWidth=450; var newHeight= 230; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup10(link) { var name = "genericPopup"; var newWidth=700; var newHeight= 600; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup11(link) { var name = "genericPopup"; var newWidth=700; var newHeight= 650; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup12(link) { var name = "genericPopup"; var newWidth=230; var newHeight= 170; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup13(link) { var name = "genericPopup"; var newWidth=650; var newHeight= 850; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup14(link) { var name = "genericPopup4"; var newWidth=500; var newHeight= 560; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopup15(link) { var name = "genericPopup5"; var newWidth=480; var newHeight= 350; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openGenericPopupBlank(link) { var name = "_blank"; var newWidth= 492; var newHeight= 500; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function openServices(link) { var name = "services"; var newWidth=770; var newHeight= 650; var ejs_scx = (document.body.clientWidth - newWidth)/2; var ejs_scy = (document.body.clientHeight - newHeight)/2; var params = "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+newWidth+",height="+newHeight+",left="+ejs_scx+",top="+ejs_scy+""; window.open(link, name, params); } function trimCharRight(s, c) { var len = s.length; for (var i = (len - 1); i >= 0; i--) { if (s.charAt(i) != c) { return s.substring(0, i + 1); } } } function trim(s) { return s.replace(/(^\s*)|(\s*$)/g,''); } function goTo(url) { window.location.href = url; } function displayAlert() { var formsLen = document.forms.length; var alertMessage = ""; for (var i = 0; i < formsLen; i++) { if (document.forms[i].alert && document.forms[i].alert.type == "hidden") { alertMessage = document.forms[i].alert.value; } } if (alertMessage != "") { alert(alertMessage); } } function readCookie(name) { var cookieValue = ""; var search = name + "="; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) { end = document.cookie.length; } cookieValue = unescape(document.cookie.substring(offset, end)) } } return cookieValue; } function writeCookie(name, value, days) { var expire = ""; if (days != null) { expire = new Date((new Date()).getTime() + days * 3600000 * 24); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire; } function writeCookieHome(name, value, min) { var expire = ""; if (min != "") { expire = new Date((new Date()).getTime() + min * 60000); expire = "; expires=" + expire.toGMTString(); document.cookie = name + "=" + escape(value) + ";path=/" + expire; } else{ document.cookie = name + "=" + escape(value) + ";path=/"; } } // Supprime un Cookie function delCookieHome (name) { var date = new Date(1999,0,1); var expire = ";expires="; expire += date.toGMTString(); document.cookie = name + "=" + expire; } function clearCombo(combo) { if (combo != null) { while (combo.length > 0) { combo.options[0] = null; } } } function replaceChar(a, b, theString) { var theNewString = ""; for (var i = 0; i < theString.length; i++) { if (theString.substring(i, i+1) == a) { theNewString += b; } else { theNewString += theString.substring(i, i+1); } } return theNewString; } function writeCookieConsensus(name, value, days) { var expire = ""; if (days != null) { expire = new Date((new Date()).getTime() + days * 3600000 * 24); expire = "; expires=" + expire.toGMTString(); document.cookie = name + "=" + escape(value) + ";path=/" + expire; } else{ document.cookie = name + "=" + escape(value) + ";path=/"; } } function mail() { var a=document.getElementsByTagName('html')[0].outerHTML; document.location = "mailto:?body="+document.location; }