document.setDivCache = function (pDivId, pHtmlCode)
{
var vDiv=document.getElementById (pDivId);
vDiv.innerHTML = pHtmlCode;
}
function Soumettre(DocId, niv, type)
{
var nID = DocId, // universal id ou clef de sélection de vue
nNiv = niv, // niveau documentaire : 1 à 3
nType = type, // type de présentation : vue ou doc
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
{
if (type == "contacts")
{
url = Rep_js + "Espace_Presse.nsf/wPeople/1?OpenDocument&L=" + wL_js + "&";
}
else
{
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
urlTxt = "",
urlTxtR = "",
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);
}
}
document.setIframe = function (pIframeId, pUrl)
{
var vUrl = pUrl,
vIframeId = pIframeId;
document.getElementById (vIframeId).src = vUrl;
};
function openpopup (url)
{
if (url != "") {
var winpops = window.open (url, "", "width=516,height=400,top=100,left=100, menubar, scrollbars,");
}
}
function cvpopup (langue)
{
var popurl = Rep_js + "CV.nsf/wCV_" + langue + "?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=Yann Ribager&CLE="+wCle+"&L="+wL_js+"&";
}
}