﻿document.write('<LINK href="XWebDesignor.css" type=text/css rel=stylesheet>');function getQueryField(f){var e=document.location.search,e=e.substr(1),c=e.split("&");for(var b=0;b<c.length;b++){var a=c[b],d=a.indexOf("="),g=a.substr(0,d);if(g==f)return unescape(a.substr(d+1))}return ""}function urlDecode(a){a=a.replace(new RegExp("\\+","g")," ");return unescape(a)}function urlEncode(a){a=escape(a);a=a.replace(new RegExp("\\+","g"),"%2B");return a.replace(new RegExp("%20","g"),"+")}function setCookie(h,g){var b=setCookie.arguments,a=setCookie.arguments.length,c=a>2?b[2]:null,e=a>3?b[3]:null,d=a>4?b[4]:null,f=a>5?b[5]:false;document.cookie=h+"="+escape(g)+(c==null?"":"; expires="+c.toGMTString())+(e==null?"":"; path="+e)+(d==null?"":"; domain="+d)+(f==true?"; secure":"")}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1)a=document.cookie.length;return unescape(document.cookie.substring(b,a))}function getCookie(f){var b=f+"=",d=b.length,e=document.cookie.length,a=0;while(a<e){var c=a+d;if(document.cookie.substring(a,c)==b)return getCookieVal(c);a=document.cookie.indexOf(" ",a)+1;if(a==0)break}return null}var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var f="",g,b,c,i,j,h,d,e=0;a=Base64._utf8_encode(a);while(e<a.length){g=a.charCodeAt(e++);b=a.charCodeAt(e++);c=a.charCodeAt(e++);i=g>>2;j=(g&3)<<4|b>>4;h=(b&15)<<2|c>>6;d=c&63;if(isNaN(b))h=d=64;else if(isNaN(c))d=64;f=f+this._keyStr.charAt(i)+this._keyStr.charAt(j)+this._keyStr.charAt(h)+this._keyStr.charAt(d)}return f},decode:function(c){var a="",h,i,j,k,e,d,f,b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){k=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));d=this._keyStr.indexOf(c.charAt(b++));f=this._keyStr.indexOf(c.charAt(b++));h=k<<2|e>>4;i=(e&15)<<4|d>>2;j=(d&3)<<6|f;a=a+String.fromCharCode(h);if(d!=64)a=a+String.fromCharCode(i);if(f!=64)a=a+String.fromCharCode(j)}a=Base64._utf8_decode(a);var g=a;a="";for(var b=0;b<g.length;b++)if(g.charCodeAt(b)!=0)a+=g.charAt(b);return a},_utf8_encode:function(c){c=c.replace(/\r\n/g,"\n");var b="";for(var d=0;d<c.length;d++){var a=c.charCodeAt(d);if(a<128)b+=String.fromCharCode(a);else if(a>127&&a<2048){b+=String.fromCharCode(a>>6|192);b+=String.fromCharCode(a&63|128)}else{b+=String.fromCharCode(a>>12|224);b+=String.fromCharCode(a>>6&63|128);b+=String.fromCharCode(a&63|128)}}return b},_utf8_decode:function(c){var d="",a=0,b=c1=c2=0;while(a<c.length){b=c.charCodeAt(a);if(b<128){d+=String.fromCharCode(b);a++}else if(b>191&&b<224){c2=c.charCodeAt(a+1);d+=String.fromCharCode((b&31)<<6|c2&63);a+=2}else{c2=c.charCodeAt(a+1);c3=c.charCodeAt(a+2);d+=String.fromCharCode((b&15)<<12|(c2&63)<<6|c3&63);a+=3}}return d}};XWD=function(){this.modalWinU=null;this.modalWin=null;this.scrollContentTimer=null};XWD.prototype.isLocalMode=function(b){var a=location.href.substr(0,4)=="file";if(a&&b)this.alert("Accsimpossibleenprvisualisation.<br>Vousdevezpubliervotresitepourutilisercettefonctionnalit.");return a};XWD.prototype.isNumeric=function(a){var c="0123456789.",b;for(i=0;i<a.length;i++){b=a.charAt(i);if(c.indexOf(b)==-1)return false}return true};XWD.prototype.isGoodValue=function(c,b,a){var d=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$/,e=false;if(c=="email"){var e=d.test(b);if(!e){if(a)this.alert("Adresse Email incorrecte","Erreur");return false}}else if(c=="numeric")if(!this.isNumeric(b)){if(a)this.alert("Valeur non numrique","Erreur");return false}return true};XWD.prototype.getURLTimeStamp=function(){var a=new Date,b=a.getHours()+"/"+a.getMinutes()+"/"+a.getSeconds();return "&time="+escape(b)};XWD.prototype.getDataFromWeb=function(b){var a=null;if(window.XMLHttpRequest)a=new XMLHttpRequest;else if(window.ActiveXObject)a=new ActiveXObject("Microsoft.XMLHTTP");else{alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");return ""}a.open("GET",b,false);try{a.send(null)}catch(c){}if(a.readyState==4)return a.responseText;else return ""};XWD.prototype.open=function(b,a,d,c){if(this.modalWinU==null)this.modalWinU=new DialogBox(true);if(typeof a=="undefined")a=b;if(typeof d!="undefined")this.modalWinU.setWidth(d);this.modalWinU.setTitle(a);if(typeof c!="undefined")this.modalWinU.setUrl(b,c);else this.modalWinU.setUrl(b);this.modalWinU.show();this.modalWinU.moveTo(-1,-1)};XWD.prototype.openForm=function(e,c){var a=document.getElementById(e);if(a==null)return;if(this.modalWinU==null)this.modalWinU=new DialogBox(true);if(typeof c=="undefined")c="Information";this.modalWinU.setTitle(c);var d=a.action+"?";for(var b=0;b<a.length;b++)d+=a.elements[b].name+"="+escape(a.elements[b].value)+"&";this.modalWinU.setUrl(d);this.modalWinU.show();this.modalWinU.moveTo(-1,-1)};XWD.prototype.show=function(b,a){if(this.modalWin==null)this.modalWin=new DialogBox(true);if(typeof a=="undefined")a="";this.modalWin.setTitle(a);this.modalWin.setContent(b);this.modalWin.show();this.modalWin.moveTo(-1,-1)};XWD.prototype.hide=function(){if(this.modalWin!=null)this.modalWin.hide(true);if(this.modalWinU!=null)this.modalWinU.hide(true)};var xwdtmp=null;XWD.prototype.alert=function(b,a){if(typeof a=="undefined")a="Information";xwdtmp=this;b+='<br><br><center><form><input id="btnClose" type="button" onclick="xwdtmp.hide()" value="  Ok  "></form></center>';this.show(b,a)};XWD.prototype.stopScrollContent=function(){clearTimeout(this.scrollContentTimer)};XWD.prototype.verticalScrollContent=function(b,a){var h=document.getElementById(a),c=document.getElementById("_"+a+"Content"),g=document.getElementById("_"+a+"Up"),f=document.getElementById("_"+a+"Down"),e=parseInt(c.style.top),d=3;if(e+d*b>0){g.style.display="none";this.stopScrollContent()}else if(e+d*b<-(c.offsetHeight-h.offsetHeight)){f.style.display="none";this.stopScrollContent()}else{g.style.display="";f.style.display="";c.style.top=e+d*b+"px"}this.scrollContentTimer=setTimeout("xwd.verticalScrollContent("+b+',"'+a+'");',30)};XWD.prototype.addVerticalScroll=function(d,i,h){var f="_"+d+"Content";if(document.getElementById(f)!=null)return;var c=document.getElementById(d),g=c.innerHTML;c.innerHTML="";var b=document.createElement("div");c.appendChild(b);b.id=f;b.style.position="absolute";b.style.top=0;b.style.width=c.offsetWidth+"px";b.innerHTML=g;if(c.offsetHeight<b.offsetHeight){c.style.overflow="hidden";var e=document.createElement("div");c.appendChild(e);e.style.height="100%";e.style.position="absolute";e.style.right=0;var a=document.createElement("img");e.appendChild(a);a.id="_"+d+"Up";a.src=i;a.style.cursor="pointer";a.style.position="absolute";a.style.right="0pt";a.style.bottom="18pt";a.style.display="none";a.onmouseover=function(){xwd.verticalScrollContent(1,d)};a.onmouseout=function(){xwd.stopScrollContent()};a=document.createElement("img");e.appendChild(a);a.id="_"+d+"Down";a.src=h;a.style.cursor="pointer";a.style.position="absolute";a.style.right="0pt";a.style.bottom="0pt";a.onmouseover=function(){xwd.verticalScrollContent(-1,d)};a.onmouseout=function(){xwd.stopScrollContent()}}};var xwd=new XWD;function writeHTMLPage(a){document.write(unescape(a))}function disableRightClick(){return false}document.oncontextmenu=disableRightClick;var accounts=[],pwds=[],autorisedUsers="";function showHTMLPage(){document.getElementById("protectionPageDiv").style.visibility="visible"}function verifyLogon(d){var a=false;if(accounts.length==0)a=true;else{autorisedUsers=d;var b=getCookie("account"),e=getCookie("pwd");s=Base64.decode(autorisedUsers);if(s=="")return;a=b!=null;if(a){if(s!="*"&&s!=""){a=false;var c=s.split("|");for(i=0;i<c.length;i++)if(c[i]==Base64.decode(b))a=true}if(a){a=false;for(i=0;i<accounts.length;i++)if(accounts[i]==b&&pwds[i]==e)a=true}}}if(!a)showLogon();else setTimeout("showHTMLPage();",100)}function logon(){setCookie("account","");setCookie("pwd","");var a=document.getElementById("account"),d=document.getElementById("pwd"),c=document.getElementById("msg");if(a.value==""){c.innerHTML="Compte obligatoire";a.focus();return}var b=false;for(i=0;i<accounts.length;i++)if(Base64.decode(accounts[i])==a.value)b=true;if(!b){c.innerHTML="Compte inconnu";a.focus();return}s=Base64.decode(autorisedUsers);if(s!="*"&&s!=""){users=s.split("|");b=false;for(i=0;i<users.length;i++)if(users[i]==a.value)b=true;if(!b){c.innerHTML="Compte non autoris dans cette page";a.focus();return}}for(i=0;i<accounts.length;i++)if(Base64.decode(accounts[i])==a.value&&Base64.decode(pwds[i])==d.value){setCookie("account",accounts[i]);setCookie("pwd",pwds[i]);location.reload();return}c.innerHTML="Mot de passe incorrect";d.focus()}function showLogon(){document.clear();document.write('<table width="100%" height="100%">');document.write('  <tr align="center" valign="center"><td>');document.write('    <form action="javascript:logon()">');document.write('      <table width="300" bgcolor="silver" style="border-style:solid">');document.write("      <tr>");document.write('        <td colspan="2" align="center"><b>Connexion</b></td>');document.write("      </tr>");document.write("      <tr >");document.write('        <td colspan="2" align="center"><b><p id="msg" style="color:red"></p></b></td>');document.write("      </tr>");document.write("      <tr>");document.write('       <td align="right">Compte : </td><td><input id="account" type="text"></td>');document.write("      </tr>");document.write("      <tr>");document.write('        <td align="right">Mot de passe : </td><td><input id="pwd" type="password"></td>');document.write("      </tr>");document.write('      <tr height="50">');document.write('        <td colspan="2" align="center"><input type="submit" value="Connecter"></td>');document.write("      </tr>");document.write("    </table>");document.write("   </form>");document.write("</td></tr>");document.write("</table>");document.close();document.getElementById("account").focus()}var Drag={obj:null,init:function(a,b,g,e,h,f,i,j,c,d){a.onmousedown=Drag.start;a.hmode=i?false:true;a.vmode=j?false:true;a.root=b&&b!=null?b:a;if(a.hmode&&isNaN(parseInt(a.root.style.left)))a.root.style.left="0px";if(a.vmode&&isNaN(parseInt(a.root.style.top)))a.root.style.top="0px";if(!a.hmode&&isNaN(parseInt(a.root.style.right)))a.root.style.right="0px";if(!a.vmode&&isNaN(parseInt(a.root.style.bottom)))a.root.style.bottom="0px";a.minX=typeof g!="undefined"?g:null;a.minY=typeof h!="undefined"?h:null;a.maxX=typeof e!="undefined"?e:null;a.maxY=typeof f!="undefined"?f:null;a.xMapper=c?c:null;a.yMapper=d?d:null;a.root.onDragStart=new Function;a.root.onDragEnd=new Function;a.root.onDrag=new Function},start:function(b){var a=Drag.obj=this;b=Drag.fixE(b);var d=parseInt(a.vmode?a.root.style.top:a.root.style.bottom),c=parseInt(a.hmode?a.root.style.left:a.root.style.right);a.root.onDragStart(c,d);a.lastMouseX=b.clientX;a.lastMouseY=b.clientY;if(a.hmode){if(a.minX!=null)a.minMouseX=b.clientX-c+a.minX;if(a.maxX!=null)a.maxMouseX=a.minMouseX+a.maxX-a.minX}else{if(a.minX!=null)a.maxMouseX=-a.minX+b.clientX+c;if(a.maxX!=null)a.minMouseX=-a.maxX+b.clientX+c}if(a.vmode){if(a.minY!=null)a.minMouseY=b.clientY-d+a.minY;if(a.maxY!=null)a.maxMouseY=a.minMouseY+a.maxY-a.minY}else{if(a.minY!=null)a.maxMouseY=-a.minY+b.clientY+d;if(a.maxY!=null)a.minMouseY=-a.maxY+b.clientY+d}document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return false},drag:function(f){f=Drag.fixE(f);var a=Drag.obj,c=f.clientY,b=f.clientX,h=parseInt(a.vmode?a.root.style.top:a.root.style.bottom),g=parseInt(a.hmode?a.root.style.left:a.root.style.right),d,e;if(a.minX!=null)b=a.hmode?Math.max(b,a.minMouseX):Math.min(b,a.maxMouseX);if(a.maxX!=null)b=a.hmode?Math.min(b,a.maxMouseX):Math.max(b,a.minMouseX);if(a.minY!=null)c=a.vmode?Math.max(c,a.minMouseY):Math.min(c,a.maxMouseY);if(a.maxY!=null)c=a.vmode?Math.min(c,a.maxMouseY):Math.max(c,a.minMouseY);d=g+(b-a.lastMouseX)*(a.hmode?1:-1);e=h+(c-a.lastMouseY)*(a.vmode?1:-1);if(a.xMapper)d=a.xMapper(h);else if(a.yMapper)e=a.yMapper(g);Drag.obj.root.style[a.hmode?"left":"right"]=d+"px";Drag.obj.root.style[a.vmode?"top":"bottom"]=e+"px";Drag.obj.lastMouseX=b;Drag.obj.lastMouseY=c;Drag.obj.root.onDrag(d,e);return false},end:function(){document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?"left":"right"]),parseInt(Drag.obj.root.style[Drag.obj.vmode?"top":"bottom"]));Drag.obj=null},fixE:function(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;if(typeof a.layerY=="undefined")a.layerY=a.offsetY;return a}},backDivLevel=0;DialogBox=function(k){if(arguments.length==0)return;this.xdiv=document.getElementById("backDiv"+backDivLevel);if(this.xdiv==null){DialogBox.createBlackDiv();this.xdiv=document.getElementById("backDiv"+backDivLevel)}backDivLevel++;this.isModal=k;this.container=document.createElement("div");this.container.className=DialogBox.className;this.container.style.zIndex=99999+backDivLevel;this.container.dialogBox=this;var e=document.createElement("table");e.setAttribute("cellSpacing","0");e.setAttribute("cellPadding","0");e.setAttribute("border","0");var i=document.createElement("tbody"),f=document.createElement("tr"),b=document.createElement("td"),a=document.createElement("table");a.setAttribute("cellSpacing","0");a.setAttribute("cellPadding","0");a.setAttribute("border","0");a.setAttribute("width","100%");var j=document.createElement("tbody"),h=document.createElement("tr"),c=document.createElement("td");c.className="tbLeft";h.appendChild(c);this.titleCell=document.createElement("td");this.titleCell.className="Title";h.appendChild(this.titleCell);c=document.createElement("td");c.className="tbRight";DialogBox.initCloseIcon();var d=document.createElement("img");d.src=DialogBox.closeIcon.src;d.alt="Fermer";d.setAttribute("border","0");d.dialogBox=this;var g=document.createElement("A");g.setAttribute("href","#");g.appendChild(d);g.onclick=DialogBox.closeBox;c.appendChild(g);h.appendChild(c);j.appendChild(h);a.appendChild(j);b.appendChild(a);f.appendChild(b);i.appendChild(f);f=document.createElement("tr");b=document.createElement("td");b.className="MainPanel";this.contentArea=document.createElement("div");this.contentArea.className="ContentArea";b.appendChild(this.contentArea);f.appendChild(b);i.appendChild(f);e.appendChild(i);this.container.appendChild(e);document.body.appendChild(this.container);Drag.init(this.titleCell,this.container,0,null,0)};DialogBox.prototype.show=function(){this.container.style.display="block";this.xdiv.style.display="block"};DialogBox.prototype.hide=function(a){this.xdiv.style.display="none";this.container.style.display="none";if(a){if(this.callOK)if(this.returnData)this.callOK(this.returnData);else this.callOK()}else if(this.callCancel)this.callCancel()};DialogBox.prototype.moveTo=function(a,b){if(a==-1)a=Math.round((document.body.clientWidth-this.container.offsetWidth)/2);if(b==-1)b=Math.round((document.body.clientHeight-this.container.offsetHeight)/2)+document.body.scrollTop;this.container.style.left=a+"px";this.container.style.top=b+"px"};DialogBox.prototype.setTitle=function(a){this.titleCell.innerHTML=a};DialogBox.prototype.setUrl=function(b,a){if(!this.iframe){this.iframe=document.createElement("IFRAME");this.iframe.setAttribute("frameBorder","no");this.iframe.style.width="100%";if(a)this.iframe.style.height=a;this.contentArea.parentNode.insertBefore(this.iframe,this.contentArea)}this.iframe.src=b;this.contentArea.style.height="0px"};DialogBox.prototype.getUrl=function(){if(this.iframe){var a=this.iframe.src;if(this.iframe.contentWindow)try{a=this.iframe.contentWindow.location.href}catch(b){}return a}};DialogBox.prototype.setContent=function(a){this.contentArea.innerHTML=a};DialogBox.prototype.setWidth=function(a){this.contentArea.style.width=a-25+"px"};DialogBox.prototype.setCallOK=function(a){this.callOK=a};DialogBox.prototype.setCallCancel=function(a){this.callCancel=a};DialogBox.prototype.getContentNode=function(){return this.contentArea};DialogBox.className="DialogBox";DialogBox.closeIcon=null;DialogBox.maxDepth=5;DialogBox.initCloseIcon=function(){if(DialogBox.closeIcon==null){DialogBox.closeIcon=new Image;DialogBox.closeIcon.src="close.gif"}};DialogBox.closeBox=function(b){if(!b)b=window.event;var a=b.target?b.target:b.srcElement,c=0;while(a!=null&&c<DialogBox.maxDepth){if(a.dialogBox){a.dialogBox.hide();return false}a=a.parentNode;c++}return false};DialogBox.createBlackDiv=function(){var a=document.createElement("div");a.id="backDiv"+backDivLevel;a.style.position="absolute";a.style.top=0;a.style.left=0;a.style.width="100%";a.style.height="100%";a.style.display="none";a.style.background="black";var b=20;a.style.MozOpacity=b/100;a.style.opacity=b/100;a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+b+")";document.body.appendChild(a);a.style.zIndex=99999+backDivLevel}
