function setDivCache(pDivId, pHtmlCode){ var vDiv=document.getElementById(pDivId); vDiv.innerHTML = pHtmlCode; } document.setDivCache = setDivCache; function Soumettre(DocId, niv, type){ var nID = DocId; // universal id ou clef de sélection de vue var nNiv = niv; // niveau documentaire : 1 à 3 var nType = type; // type de présentation : vue ou doc var url=""; if (nID !=""){ switch(type){ case "vue": url = Path_js + "wVue_"+wL_js+"?OpenView&RestrictToCategory="+nID+"&start=1&count=5&L="+wL_js+"&"; break; case "doc": url = Path_js + "wPages/" + nID+"?OpenDocument&L="+wL_js+"&"; break; default: alert("Requête incompatible 1"); url = ""; break; } }else{ switch(type){ case "contacts": url= Rep_js+"Espace_Presse.nsf/wPeople/1?OpenDocument&L="+wL_js+"&"; break; default: alert("Requête incompatible 2"); url = ""; } } if (url!=""){ if (type != "contacts"){ window.location=url; }else{ window.open(url,"zone","scrollbars=yes,location=0,directories=0,width=520,height=400,top=50,left=50,screenX=37") } } } function Annexe(DocId){ var nID = DocId; // universal id ou clef de sélection de vue var urlTxt=""; var urlTxtR=""; var urlPJ=""; if (nID !=""){ document.getElementById('DivTxt').innerHTML=""; document.getElementById('DivPJ').innerHTML=""; urlTxt = Path_js + "wTxt/" + nID+"?OpenDocument&L="+wL_js+"&"; urlPJ = Path_js + "wPJ/" + nID+"?OpenDocument&L="+wL_js+"&"; setIframe('iframeTxt', urlTxt); setIframe('iframePJ', urlPJ); } } function setIframe(pIframeId, pUrl) { var vUrl = pUrl; var vIframeId = pIframeId; document.getElementById(vIframeId).src = vUrl; } document.setIframe = setIframe; function openpopup(url){ var popurl=url; if (popurl != ""){ winpops=window.open(popurl,"","width=516,height=400,top=100,left=100, menubar, scrollbars,"); } } function cvpopup(){ popurl = Rep_js + "CV.nsf/wCV?OpenForm"; winpops=window.open(popurl,"","width=580,height=600,top=0,left=100, menubar, scrollbars,"); } function fermer() { self.close(); } function Print() { window.print(); } function multisearch(){ if (document.Recherche.wRechInput.value!="") { var wCle = document.Recherche.wRechInput.value; window.location ="/webrif/wMultiSearch.nsf/wAdvancedSearch?openagent&R=1&User=Anonymous&CLE="+wCle+"&L="+wL_js+"&"; } } // ******************************************************************************** function validateForm () { var form = document._wFrmSurvey, lng = form.LNG.value, c1, c2, isOK = false; if (lng == "FR") { c1 = form.informationsFR; c2 = form.presentationsFR; } else if (lng == "UK") { c1 = form.informationsUK; c2 = form.presentationsUK; } else return false; for (var i = 0, isOK = false; i < c1.length; i++) if (c1[i].checked) isOK = true; if (!isOK) return alert (lng == "FR" ? "Merci de saisir les champs obligatoires" : "Please enter the required field"); for (var i = 0, isOK = false; i < c2.length; i++) if (c2[i].checked) isOK = true; if (!isOK) return alert (lng == "FR" ? "Merci de saisir les champs obligatoires" : "Please enter the required field"); if (!form.recevoirNB.value && (form.recevoirFR.value || form.recevoirUK.value)) return alert (lng == "FR" ? "Merci de spécifier le nombre d'exemplaires que vous désirez" : "Please specify how many reports you wish to receive") if (form.email.value) { var reg = /^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,4}$/i; if (!reg.exec (form.email.value)) return alert (lng == "FR" ? "Merci de spécifier une adresse mail valide" : "Please specify a valid email address") } top.location.href = top.location.href + '#top'; form.submit (); return true; }