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+"&";
}
}