function impression(doc) { var w = window.open(doc,'Impression',"width=750,height=540, menubar=yes, resizable=yes,scrollbars=yes,status=yes,left=1,top=1"); w.window.focus(); } function Popup(doc) { var w = window.open(doc,'',"width=800,height=600,toolbar=1, addressbar=1, location=1, menubar=1, resizable=1,scrollbars=1,status=1,left=1,top=1"); w.window.focus(); } function Dossier(lien) { var url = "/mot.nsf/Dossiers/" + lien; window.location=url; } function DossierPopup(lien) { var url = "/mot.nsf/Dossiers/" + lien; var w = window.open(url,'',"width=800,height=600,toolbar=1, addressbar=1, location=1, menubar=1, resizable=1,scrollbars=1,status=1,left=1,top=1"); w.window.focus(); } function Document(lien) { var url = "/reftext.nsf/Documents/" + lien; window.location=url; } function DocumentPopup(lien) { var url = "/reftext.nsf/Documents/" + lien; var w = window.open(url,'',"width=800,height=600,toolbar=1, addressbar=1, location=1, menubar=1, resizable=1,scrollbars=1,status=1,left=1,top=1"); w.window.focus(); } function Images(doc, l,h) { var doc1 = "/encyclopedie/references/images.nsf/Images/" + doc; var w = window.open(doc1,'Image',"width=500,height=640,toolbar=no, location=no, menubar=no, resizable=yes,scrollbars=yes,status=no,left=1,top=1"); w.window.focus(); } function Dossiers(doc) { var doc1 = "/mot.nsf/Dossiers/" + doc; var w = window.open(doc1,'',"width=800,height=600,toolbar=yes, location=yes,menubar=yes, resizable=yes,scrollbars=yes,status=yes,left=1,top=1"); w.window.focus(); } function Documents(doc) { var doc1 = "/reftext.nsf/Documents/" + doc; var w = window.open(doc1,'',"width=800,height=600,toolbar=yes, location=yes,menubar=yes, resizable=yes,scrollbars=yes,status=yes,left=1,top=1"); w.window.focus(); } function References(doc) { var urldoc = "/encyclopedie/references.nsf/vue/" + doc; var w = window.open(urldoc,'Reference',"width=320,height=400,toolbar=no, location=no, menubar=no, resizable=yes,scrollbars=yes,status=no,left=1,top=1"); w.window.focus(); } function Recommander(iddoc, u, t){ var url = location.pathname; windowVar = window.open("http://agora.qc.ca/public/messages.nsf/Memo?OpenForm&iddoc=" + iddoc + "&url=" + u + "&type=" + t, "Recommander", 'height=640,width=550,scrollbars=0,toolbar=0,directories=no,menubar=0,resizable=yes,left=1,top=1'); windowVar.focus(); } function Recherche(u) { u = changerAccents(u) url = '/encyclopedie/recherche.nsf/resultatsRG?OpenForm&Query=' + u; location.replace(url); } function changerAccents(c) { while(c.indexOf(" ") != -1) c = c.replace(" ","+"); while(c.indexOf("\u00E0") != -1) c = c.replace("\u00E0","%a1;"); while(c.indexOf("\u00E2") != -1) c = c.replace("\u00E2","%a2"); while(c.indexOf("\u00E4") != -1) c = c.replace("\u00E4","%a3"); while(c.indexOf("\u00C0") != -1) c = c.replace("\u00C0","%A11"); while(c.indexOf("\u00C2") != -1) c = c.replace("\u00C2","%A12"); while(c.indexOf("\u00C4") != -1) c = c.replace("\u00C4","%A13"); while(c.indexOf("\u00E7") != -1) c = c.replace("\u00E7","%c1"); while(c.indexOf("\u00C7") != -1) c = c.replace("\u00C7","%C11"); while(c.indexOf("\u00E9") != -1) c = c.replace("\u00E9","%e1"); while(c.indexOf("\u00E8") != -1) c = c.replace("\u00E8","%e2"); while(c.indexOf("\u00EA") != -1) c = c.replace("\u00EA","%e3"); while(c.indexOf("\u00EB") != -1) c = c.replace("\u00EB","%e4"); while(c.indexOf("\u00C9") != -1) c = c.replace("\u00C9","%E11"); while(c.indexOf("\u00CA") != -1) c = c.replace("\u00CA","%E12"); while(c.indexOf("\u00CB") != -1) c = c.replace("\u00CB","%E13"); while(c.indexOf("\u00C8") != -1) c = c.replace("\u00C8","%E14"); while(c.indexOf("\u00EE") != -1) c = c.replace("\u00EE","%i1"); while(c.indexOf("\u00EF") != -1) c = c.replace("\u00EF","%i2"); while(c.indexOf("\u00CE") != -1) c = c.replace("\u00CE","%I11"); while(c.indexOf("\u00CF") != -1) c = c.replace("\u00CF","%I12"); while(c.indexOf("\u00F4") != -1) c = c.replace("\u00F4","%o1"); while(c.indexOf("\u00F6") != -1) c = c.replace("\u00F6","%o2"); while(c.indexOf("\u00D4") != -1) c = c.replace("\u00D4","%O11"); while(c.indexOf("\u00D6") != -1) c = c.replace("\u00D6","%O12"); while(c.indexOf("\u00F9") != -1) c = c.replace("\u00F9","%u1"); while(c.indexOf("\u00FC") != -1) c = c.replace("\u00FC","%u2"); while(c.indexOf("\u00FB") != -1) c = c.replace("\u00FB","%u3"); while(c.indexOf("\u00D9") != -1) c = c.replace("\u00D9","%U11"); while(c.indexOf("\u00DC") != -1) c = c.replace("\u00DC","%U12"); while(c.indexOf("\u00DB") != -1) c = c.replace("\u00DB","%U13"); return c; }