var childrenNeedRefresh; var serializedTypes; var firstSelectorClick; function cs_bolini_4csSetChildrenNeedRefresh(val) { childrenNeedRefresh=val; } function cs_bolini_4csGetChildrenNeedRefresh() { return childrenNeedRefresh; } function cs_bolini_4csRefreshKadie() { if(window.opener.cs_bolini_4csGetChildrenNeedRefresh()) { window.opener.cs_bolini_4csSetChildrenNeedRefresh(false); window.location.reload(); } } function cs_bolini_4csChangeFormAction(button,formName,eltName,message,action,openView,target,checkSubmit) { myform=document.getElementById(formName); if(button.name==document.getElementById("readySubmit").value||button.name==firstSelectorClick) { if(button.name==firstSelectorClick) { firstSelectorClick="false"; document.getElementById("readySubmit").value=button.name; } myform.action=action; if(!checkSubmit) { if(openView!="") { window.eval(openView.replace(new RegExp("##;","g"),"'")); } myform.target=target; myform.submit(); return false; } if(cs_bolini_4csIsCheckedBoxes(eltName,message)) { if(openView!="") { window.eval(openView.replace(new RegExp("##;","g"),"'")); } myform.target=target; myform.submit(); } return false; } firstSelectorClick="false"; document.getElementById("readySubmit").value=button.name; myform.action=action; return false; } function cs_bolini_4csIsCheckedBoxes(eltName,message) { if(cs_bolini_4csGetCheckedBoxes(eltName)=="") { alert(message); return false; } else { return true; } } function cs_bolini_4csGetCheckedBoxes(eltName) { var aChk=document.getElementsByName(eltName); var t; var ret=""; for(t=0;t=0) { alert("This example doesn't work in Opera") return; } if (navigator.userAgent.indexOf("MSIE")>=0) { var strName="Microsoft.XMLHTTP"; try { objXmlHttp=new ActiveXObject(strName); if (objXmlHttp) { /* on dét ce qui doit se passer quand la page réra */ objXmlHttp.onreadystatechange=function() { if (objXmlHttp.readyState == 4) /* 4 : é"complete" */ { if (objXmlHttp.status == 200) /* 200 : code HTTP pour OK */ { res=objXmlHttp.responseText; if(type=="div") { document.getElementById(id).innerHTML = res; } else if(type=="value") { document.getElementById(id).value = res; } } } } } return objXmlHttp; } catch(e) { alert("Error. Scripting for ActiveX might be disabled"); return; } } if (navigator.userAgent.indexOf("Mozilla")>=0) { objXmlHttp=new XMLHttpRequest(); if (objXmlHttp) { /* on dét ce qui doit se passer quand la page réra */ objXmlHttp.onreadystatechange=function() { if (objXmlHttp.readyState == 4) /* 4 : é"complete" */ { if (objXmlHttp.status == 200) /* 200 : code HTTP pour OK */ { res=objXmlHttp.responseText; if(type=="div") { document.getElementById(id).innerHTML = res; } else if(type=="value") { document.getElementById(id).value = res; } } } } } return objXmlHttp; } }