var caracteresInterdits="&";function Trim(b){try{return b.replace(/(^\s*)|(\s*$)/g,"")}catch(a){}}function AjouterGestionSaisie(a){try{if(a.attachEvent){a.attachEvent("onkeypress",ValidKeyPressIE);a.attachEvent("onblur",SupprimerCaracteresInterdits)}else{a.addEventListener("keypress",ValidKeyPressMo,true);a.addEventListener("blur",SupprimerCaracteresInterdits,true)}}catch(b){}}function BloquerSaisie(){try{var b=document.getElementsByTagName("input");if(b.length>0){for(i=0;i<b.length;i++){if(b[i].type.toLowerCase()=="text"){AjouterGestionSaisie(b[i])}}}var a=document.getElementsByTagName("textarea");if(a.length>0){for(i=0;i<a.length;i++){AjouterGestionSaisie(a[i])}}}catch(c){}}function IsDefined(a){return(typeof(a)!="undefined")}function GetEvent(){if(IsDefined(window.event)){e=window.event}return e}function StopEvent(b){try{if(typeof(b.stopPropagation)=="function"){b.stopPropagation()}if(IsDefined(b.cancelBubble)){b.cancelBubble=true}if(typeof(b.preventDefault)=="function"){b.preventDefault()}b.returnValue=false}catch(a){}}function GetKeyPressedCode(b){try{if(b.keyCode){return b.keyCode}else{if(b.charCode){return b.charCode}else{if(b.which){return b.which}else{return void 0}}}}catch(a){}}function ValidKeyPressIE(){try{e=GetEvent();var c=GetKeyPressedCode(e);var b=String.fromCharCode(c);if(new RegExp(caracteresInterdits).test(b)){StopEvent(e)}}catch(a){}}function ValidKeyPressMo(c){try{var b=String.fromCharCode(c.which).toLowerCase();if(new RegExp(caracteresInterdits).test(b)){StopEvent(c)}}catch(a){}}function SupprimerCaracteresInterdits(){try{e=GetEvent(e);this.getElementById(e.srcElement.id).value=this.getElementById(e.srcElement.id).value.replace(new RegExp(caracteresInterdits,"g"),"")}catch(a){}}BloquerSaisie();
