var button=null; function scrollMe(event) { var st = event.currentTarget.scrollTop + (event.detail * 12); event.currentTarget.scrollTop = st < 0 ? 0 : st; event.preventDefault(); } function windowHeight() { if (window.innerHeight) return window.innerHeight; else if (document.body && document.body.clientHeight) return document.body.clientHeight; else return 0; } function windowWidth() { if (window.innerWidth) return window.innerWidth; else if (document.body && document.body.clientWidth) return document.body.clientWidth; else return 0; } var bInitLayerScroll=false; function windowSizeChange() { obj=document.getElementById("LayerScroll"); objMenu=document.getElementById("LayerScrollMenu"); if (obj && objMenu) { if (!bInitLayerScroll && navigator.userAgent.indexOf("Firefox")!=-1) { obj.addEventListener('DOMMouseScroll', scrollMe, false); bInitLayerScroll=true; } winWidth=windowWidth(); placeButton=0; if (button!=null) { placeButton=32; objButton=document.getElementById("LayerButton"); if (objButton) { objButton.innerHTML=""+button+"
"; } } if (winWidth<1000) { obj.style.width=560; obj.style.height=350-placeButton; objMenu.style.height=245; document.body.background ="fond800x600.jpg"; } else if (winWidth<1200) { obj.style.width=760; obj.style.height=520-placeButton; objMenu.style.height=410; document.body.background ="fond1024x768.jpg"; } else if (winWidth<1600) { obj.style.width=960; obj.style.height=650-placeButton; objMenu.style.height=676; document.body.background ="fond1280x1024.jpg"; } else { obj.style.width=1300; obj.style.height=765-placeButton; objMenu.style.height=950; document.body.background ="fond1600x1200.jpg"; } } } /*initialiser la surveillance de Netscape*/ if (window.innerWidth) window.onresize = windowSizeChange; function openWindow(url) { win=window.open(url ,"win",'screenX=0,screenY=0,left=0,top=0,width=790,height=570,scrollbars=yes'); } function quit() { // if (window.location.href.indexOf("http")==-1) window.close(); // else // window.location.href="../index.htm"; } // // Obtention de l'objet selected parmis un groupe // function getValueSelected(object) { for (var i=0; i"; button+=""; button+=strOkText; button+=" "; button+=""; button+=""; str+=""; str+=strColumnName; str+=""; strUrl=window.location.href; if (strUrl.indexOf(strField)!=-1 || strField==strSortSelect) { if (strUrl.indexOf("sortorder_c=1")!=-1 || strSortOrder=="1") str+=" " else str+=" " } str+=""; document.write(str); } /** * M�morisation des param�tres du tri actuel dans le cas ou * les param�tres ne sont pas dans l'URL mais seulement dans le corps */ function setTri(_strSortSelect,_strSortOrder,_strSortClass) { strSortSelect=_strSortSelect; strSortOrder=_strSortOrder; strSortClass=_strSortClass; } /** * Effecture le tri sur un champs */ function doTri(strField) { strLocation=_setParam(window.location.href,"sortselect_c",strField); strLocation=_xorParam(strLocation,"sortorder_c"); window.location.href=strLocation; } /** * Met un param�tre dans l'URL affich�e */ function setParam(strParam,strValue) { window.location.href=_setParam(window.location.href,strParam,strValue); } /** * Met un param�tre dans l'URL */ function _setParam(strLocation,strParam,strValue) { nPos=strLocation.indexOf(strParam); if (nPos==-1) { if (strLocation.indexOf("?")==-1) return strLocation+"?"+strParam+"="+strValue; else return strLocation+"&"+strParam+"="+strValue; } else { nLength=1; for (i=nPos+strParam.length+1; i