function popup(url,width,height,name){if(width==null)width=400;if(height==null)height=425;if(name==null)name="details";var props="toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,titlebar=no,menubar=no,width="+width+",height="+height;w=window.open(url,name,props);if(w){w.focus()}}function convertpEsc2CP(textString){CPstring='';var outputString="";var compte=0;var n=0;textString=textString.replace(/^\s+/,'');if(textString.length==0){return""}textString=textString.replace(/\s+/g,' ');for(var j=0;j<textString.length;j++){if(textString.charAt(j)=='%'){outputString+=textString.slice(j,j+3);j+=2}else{outputString+='%'+dec2hex(textString.charCodeAt(j))}}textString=outputString;outputString='';var listArray=textString.split('%');for(var i=1;i<listArray.length;i++){var b=parseInt(listArray[i],16);switch(compte){case 0:if(0<=b&&b<=0x7F){outputString+=dec2hex(b)+' '}else if(0xC0<=b&&b<=0xDF){compte=1;n=b&0x1F}else if(0xE0<=b&&b<=0xEF){compte=2;n=b&0xF}else if(0xF0<=b&&b<=0xF7){compte=3;n=b&0x7}else{outputString+='!erreur '+dec2hex(b)+'! '}break;case 1:if(b<0x80||b>0xBF){outputString+='!erreur '+dec2hex(b)+'! '}compte--;outputString+=dec2hex((n<<6)|(b-0x80))+' ';n=0;break;case 2:case 3:if(b<0x80||b>0xBF){outputString+='!erreur '+dec2hex(b)+'! '}n=(n<<6)|(b-0x80);compte--;break}}CPstring=outputString.replace(/ $/,'');return convertCP2XML(CPstring)}function convertCP2XML(textString){var outputString='';textString=textString.replace(/^\s+/,'');if(textString.length==0){return""}textString=textString.replace(/\s+/g,' ');var listArray=textString.split(' ');for(var i=0;i<listArray.length;i++){var n=parseInt(listArray[i],16);if(n<=0xFFFF){switch(n){case 34:outputString+='&quot;';break;case 38:outputString+='&amp;';break;case 60:outputString+='&lt;';break;case 62:outputString+='&gt;';break;default:outputString+=String.fromCharCode(n)}}else if(n<=0x10FFFF){n-=0x10000;outputString+=String.fromCharCode(0xD800|(n>>10))+String.fromCharCode(0xDC00|(n&0x3FF))}else{outputString+='convertCP2Char error: Code point out of range: '+dec2hex(n)}}return(outputString)}function dec2hex(textString){return(textString+0).toString(16).toUpperCase()}