document.write(""); function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i 0){ strURL = strURL.replace("_fr.html","_an.html"); } else{ if (getQueryVariable("langue") != "" && getQueryVariable("langue") != undefined) { strURL = strURL.replace("langue="+getQueryVariable("langue"),"langue=an") } else{ if (strURL.indexOf("?") > 0) { strURL = strURL.replace("#affichage",""); strURL = strURL + "&langue=an"; } else { strURL = strURL.replace("#affichage",""); strURL = strURL + "?langue=an"; } } } } if (langue == "fr"){ if(strURL.indexOf("_an.html") > 0){ strURL = strURL.replace("_an.html","_fr.html"); } else{ if (getQueryVariable("langue") != "" && getQueryVariable("langue") != undefined) { strURL = strURL.replace("langue="+getQueryVariable("langue"),"langue=fr") } else{ if (strURL.indexOf("?") > 0) { strURL = strURL.replace("#affichage",""); strURL = strURL + "&langue=fr"; } else { strURL = strURL.replace("#affichage",""); strURL = strURL + "?langue=fr"; } } } } location.href=strURL; } function ouvrir_fenetre(lien,intwidth,inthauteur){ window.open(lien,"_blank","width="+intwidth+",height="+inthauteur+",resizable=no,scrollbars=yes,top=10,left=10"); } function PoseCookie(nom, valeur) { document.cookie= nom + "=" + escape(valeur); } function SetCookie (name, value) { var argv=SetCookie.arguments; var argc=SetCookie.arguments.length; var expires=(argc > 2) ? argv[2] : null; var path=(argc > 3) ? argv[3] : null; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? argv[5] : false; document.cookie=name+"="+escape(value)+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); } function ChercheCookie(Nom) { var cherche = Nom + "=" var returnvaleur = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(cherche) if (offset != -1) { // if cookie exists offset += cherche.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvaleur=unescape(document.cookie.substring(offset, end)) } } return returnvaleur; } function valider_inscription(){ if(document.inscription.courriel.value=="" || (document.inscription.bulletins[0].checked==false && document.inscription.bulletins[1].checked==false)){ alert("Les champs suivants doivent être remplis :\n\n- Courriel\n- Bulletin voulu"); } else{ document.inscription.submit(); } } function inscription_lettre(){ if (document.getElementById("nom_input").value=="") { alert("Vous devez entrer votre nom"); return; } if (document.getElementById("courriel_input").value=="") { alert("Vous devez entrer votre courriel"); return; } else { var rep = confirm("Voulez-vous vraiment vous abonner à cette liste d'envoi?"); var url_iframe = "http://www2.d4m.com/soluss/atr/abonnement.asp?"; if (rep==true){ if (document.getElementById("nom_input").value!="") url_iframe += "nom="+document.getElementById("nom_input").value; if (document.getElementById("courriel_input").value!="") url_iframe += "&courriel="+document.getElementById("courriel_input").value; document.getElementById("iframe").src=url_iframe; } } } function valider_demande_information(){ if(document.demande.nom.value=="" || document.demande.courriel.value==""){ alert("Les champs suivants doivent être remplis :\n\n- Nom et prénom\n- Courriel"); } else{ document.demande.submit(); } } // Ouverture d'une fenetre //------------------------ function zyva(fichier,haut,larg){ Conception=window.open(fichier,'palette','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+larg+',height='+haut) } // fin de zyva() // Remise à zero function raz(form) {for (var i=0; i 0) html += headTags[0].innerHTML; } html += '\n<\/SCR'+'IPT>\n\n\n'; html += '[imprimer]

'; var printReadyElem = document.getElementById("contenu_texte"); if (printReadyElem != null) { html += printReadyElem.innerHTML; } else { alert("Aucune version imprimable de ce document..."); return; } html += '\n\n'; var printWin = window.open("","printSpecial","width=780,height=600,scrollbars=yes"); printWin.document.open(); printWin.document.write(html); printWin.document.location.reload(); printWin.document.close(); if (gAutoPrint) printWin.print(); } }