startStack=function(){};registerOnLoad=function(a){var b=startStack;startStack=function(){b();a();return}};var ranOnload=false;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){if(!ranOnload){ranOnload=true;startStack()}},false)}else{if(document.all&&!window.opera){document.write("<script id='DOMReady' defer=true src=//:><\/script>");document.getElementById("DOMReady").onreadystatechange=function(){if(this.readyState=="complete"&&(!ranOnload)){ranOnload=true;startStack()}}}}var orgOnLoad=window.onload;window.onload=function(){if(typeof(orgOnLoad)=="function"){orgOnLoad()}if(!ranOnload){ranOnload=true;startStack()}};function addEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,false);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b}else{return false}}}function removeEvent(e,d,b,a){if(e.removeEventListener){e.removeEventListener(d,b,a);return true}else{if(e.detachEvent){var c=e.detachEvent("on"+d,b);return c}else{alert("Handler could not be removed")}}}function contact(c,e){var a;var b="&#64;";var g="&#46";var d="comment les mailles tombent-elles?";a=c+b+"konagora"+g+d.substring(0,3);document.write("<a href='"+d.substring(12,16)+d.substring(20,22)+":"+a+"'>"+e+"</a>")}function getViewportHeight(){if(window.innerHeight!=window.undefined){return window.innerHeight}if(document.compatMode=="CSS1Compat"){return document.documentElement.clientHeight}if(document.body){return document.body.clientHeight}return window.undefined}function getViewportWidth(){var b=17;var a=null;if(window.innerWidth!=window.undefined){return window.innerWidth}if(document.compatMode=="CSS1Compat"){return document.documentElement.clientWidth}if(document.body){return document.body.clientWidth}}function getScrollTop(){if(self.pageYOffset){return self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{if(document.body){return document.body.scrollTop}}}}function getScrollLeft(){if(self.pageXOffset){return self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft}else{if(document.body){return document.body.scrollLeft}}}}function removeChildSafe(a){while(a.childNodes.length>0){removeChildSafe(a.childNodes[a.childNodes.length-1])}a.parentNode.removeChild(a)}function removeDescendants(a){while(a.childNodes.length>0){removeChildSafe(a.childNodes[a.childNodes.length-1])}}function stringTrim(a){return(a.replace(/^\s+|\s+$/g,""))}function getElementsByClassName(k,h){if(!h){h=document.getElementsByTagName("body")[0]}var b=[];var g=new RegExp("\\b"+k+"\\b");var e=h.getElementsByTagName("*");for(var d=0,c=e.length;d<c;d++){if(g.test(e[d].className)){b.push(e[d])}}return b}function rollout(b,a){var h;if(b.nextSibling.style.display=="block"){var g="none"}else{var g="block"}var c=document.getElementById("mainnav");var e=c.getElementsByTagName("ul");for(var d=0;d<e.length;d++){if(e[d].style.display=="block"){e[d].style.display="none"}}b.nextSibling.style.display=g;while(b.parentNode.parentNode.id!="mainnav"){b=b.parentNode.parentNode;b.style.display="block"}return false}function rollup(){var b,g,l,d;if(document.getElementById&&document.createElement){var h=window.location;var k=document.getElementById("mainnav");if(k==null){return}var m=k.getElementsByTagName("ul");for(var e=0;e<m.length;e++){b=true;g=m[e].getElementsByTagName("a");for(var c=0;c<g.length;c++){if(g[c].href==h){b=false;l=g[c];strContent=l.firstChild.data;var n=document.createElement("strong");n.appendChild(document.createTextNode(strContent));l.parentNode.replaceChild(n,l);n.id="jsKeepOpen"}}if(b==true){m[e].style.display="none"}else{m[e].style.display="block"}l=m[e].parentNode;strContent=l.firstChild.data;d=document.createElement("a");d.href="#";d.onclick=function(o){return rollout(this,o)};d.onkeypress=function(o){return rollout(this,o)};d.appendChild(document.createTextNode(strContent));l.replaceChild(d,l.firstChild)}if(document.getElementById("jsKeepOpen")){var a=document.getElementById("jsKeepOpen");while(a.parentNode.id!="mainnav"){a=a.parentNode;a.style.display="block"}}}}addEvent(window,"load",rollup);function GetXmlHttpObject(){var objXMLHttp=null;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
      objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
      try {
           objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
           objXMLHttp = null;
      }
 }
@end @*/
if(!objXMLHttp&&typeof XMLHttpRequest!="undefined"){try{objXMLHttp=new XMLHttpRequest()}catch(e){objXMLHttp=null}}if(!objXMLHttp&&window.createRequest){try{objXMLHttp=window.createRequest()}catch(e){objXMLHttp=null}}return objXMLHttp}function gatherInput(b){var k=document.getElementById(b);var c="";if(k==null){alert(b+" not found")}else{var h=k.getElementsByTagName("input");var d=k.getElementsByTagName("textarea");var g=k.getElementsByTagName("select");var a="***";for(i=0;i<h.length;i++){if((h[i].type!="submit")&&(h[i].type!="button")&&(!h[i].disabled)&&h[i].name&&h[i].value&&(h[i].value.length>0)){if(!(((h[i].type=="checkbox")||(h[i].type=="radio"))&&!h[i].checked)){if(c!=""){c+="&"}if(h[i].name!=a){c+=h[i].name+"="+encodeURI(stringTrim(h[i].value))}else{c+="+"+encodeURI(stringTrim(h[i].value))}a=h[i].name}}}for(i=0;i<d.length;i++){if(d[i].name){if(c!=""){c+="&"}c+=d[i].name+"="+encodeURI(stringTrim(d[i].value))}}for(i=0;i<g.length;i++){if(!g[i].multiple&&(g[i].options.length>0)){if(g[i].name){if(c!=""){c+="&"}c+=g[i].name+"="+g[i].options[g[i].selectedIndex].value}}else{var e=true;for(j=0;j<g[i].options.length;j++){if(g[i].name){if(g[i].options[j].selected){if(e){if(c!=""){c+="&"}c+=g[i].name+"="+g[i].options[j].value;e=false}else{c+="+"+g[i].options[j].value}}}}}}}return c}function GenericPOSTRequest(d,g,h,e,c,b,k){var a=GetXmlHttpObject();if(a==null){alert(b);return}a.onreadystatechange=function(){if(a.readyState==4||a.readyState=="complete"){if(e||(a.status==200)){out=document.getElementById("AJAXMSG");if(a.responseText.substr(0,2)!="OK"){if(out){out.innerHTML='<div class="error">'+a.responseText.substr(2)+"</div>"}else{alert(a.responseText.substr(2))}}else{var l=a.responseText.substr(2);if((l==null)||(l.length==0)){l=c}if(out&&l&&(l.length>0)){out.innerHTML='<div class="success">'+l+"</div>"}else{alert(l)}if(h&&clear_all){clear_all(h)}}}else{alert(k)}}};a.open("POST",d,true);if(a.overrideMimeType){a.overrideMimeType("text/html")}a.setRequestHeader("Content-type","application/x-www-form-urlencoded");a.setRequestHeader("Content-length",g.length);a.setRequestHeader("Connection","close");a.send(g)}function GenericGETRequest(d,e,g,c,b,h){var a=GetXmlHttpObject();if(a==null){alert(b);return}a.onreadystatechange=function(){if(a.readyState==4||a.readyState=="complete"){if(e||(a.status==200)){out=document.getElementById("AJAXMSG");if(a.responseText.substr(0,2)!="OK"){if(out){out.innerHTML='<div class="error">'+a.responseText.substr(2)+"</div>"}else{alert(a.responseText.substr(2))}}else{var k=responseText.substr(2);if((k==null)||(k.length==0)){k=c}if(out&&k&&(k.length>0)){out.innerHTML='<div class="success">'+k+"</div>"}else{alert(k)}if(g&&clear_all){clear_all(g)}}}else{alert(h)}}};a.open("GET",d,true);a.send(null)}function sha1Hash(k){var o=[1518500249,1859775393,2400959708,3395469782];k+=String.fromCharCode(128);var y=Math.ceil(k.length/4)+2;var m=Math.ceil(y/16);var n=new Array(m);for(var A=0;A<m;A++){n[A]=new Array(16);for(var z=0;z<16;z++){n[A][z]=(k.charCodeAt(A*64+z*4)<<24)|(k.charCodeAt(A*64+z*4+1)<<16)|(k.charCodeAt(A*64+z*4+2)<<8)|(k.charCodeAt(A*64+z*4+3))}}n[m-1][14]=((k.length-1)*8)/Math.pow(2,32);n[m-1][14]=Math.floor(n[m-1][14]);n[m-1][15]=((k.length-1)*8)&4294967295;var v=1732584193;var u=4023233417;var r=2562383102;var q=271733878;var p=3285377520;var g=new Array(80);var F,E,D,C,B;for(var A=0;A<m;A++){for(var w=0;w<16;w++){g[w]=n[A][w]}for(var w=16;w<80;w++){g[w]=ROTL(g[w-3]^g[w-8]^g[w-14]^g[w-16],1)}F=v;E=u;D=r;C=q;B=p;for(var w=0;w<80;w++){var x=Math.floor(w/20);var h=(ROTL(F,5)+f(x,E,D,C)+B+o[x]+g[w])&4294967295;B=C;C=D;D=ROTL(E,30);E=F;F=h}v=(v+F)&4294967295;u=(u+E)&4294967295;r=(r+D)&4294967295;q=(q+C)&4294967295;p=(p+B)&4294967295}return v.toHexStr()+u.toHexStr()+r.toHexStr()+q.toHexStr()+p.toHexStr()}function f(b,a,d,c){switch(b){case 0:return(a&d)^(~a&c);case 1:return a^d^c;case 2:return(a&d)^(a&c)^(d&c);case 3:return a^d^c}}function ROTL(a,b){return(a<<b)|(a>>>(32-b))}Number.prototype.toHexStr=function(){var c="",a;for(var b=7;b>=0;b--){a=(this>>>(b*4))&15;c+=a.toString(16)}return c};function doChallengeResponse(){str=stringTrim(document.login_form.username.value.toLowerCase())+":"+sha1Hash(stringTrim(document.login_form.userpass.value))+":"+document.login_form.challenge.value;document.login_form.userpass.value=sha1Hash(stringTrim(document.login_form.userpass.value));document.login_form.challenge.value="";document.login_form.response.value=sha1Hash(str);return true}function clearPass(){document.login_form.userpass.value=""}function mytz(){var a=new Date();document.getElementById("tz").value=-1*a.getTimezoneOffset()}function echeck(g){var a="@";var b=".";var e=g.indexOf(a);var c=g.length;var d=g.indexOf(b);if(g.indexOf(a)==-1){alert("Invalid email address");return false}if(g.indexOf(a)==-1||g.indexOf(a)==0||g.indexOf(a)==c){alert("Invalid email address");return false}if(g.indexOf(b)==-1||g.indexOf(b)==0||g.indexOf(b)==c){alert("Invalid email address");return false}if(g.indexOf(a,(e+1))!=-1){alert("Invalid email address");return false}if(g.substring(e-1,e)==b||g.substring(e+1,e+2)==b){alert("Invalid email address");return false}if(g.indexOf(b,(e+2))==-1){alert("Invalid email address");return false}if(g.indexOf(" ")!=-1){alert("Invalid email address");return false}return true}function ValidateForm(){var a=document.login_form.username;var b=document.login_form.userpass;useremail=stringTrim(a.value);userpwd=stringTrim(b.value);if((useremail==null)||(useremail=="")){alert("Please enter your email address");a.focus();return false}if(echeck(useremail)==false){a.focus();return false}if((userpwd==null)||(userpwd=="")){alert("Please enter your password");b.focus();return false}return true};
