var AWS=AWS||{};if(!AWS.AWSAJAX){AWS.AWSAJAX=function(){var f=function(){};function g(){var k=this;this.asynchrone=this.VAL_ASYNC_DEFAULT;this.invisible=this.VAL_INVISIBLE_DEFAULT;this.url=null;this.httpMethod=this.VAL_HTTP_METHOD_DEFAULT;this.xhrObj=null;this.priority=null;this.dataSend=null;this.aborded=false;this.onReadyStateChangeListener=null;this.formName=null;this.objName=null;this.evtName=null;this.timer=0;this.comp=null;this.mimeType=this.VAL_MIME_TYPE_DEFAULT;this.idReqTimeout=null;this.idReqTimer=null;this.headers=this.VAL_HEADERS_DEFAULT;this.onsuccess=null;this.oncancel=null;this.onerror=null;this.constructor.nbRequestObj++;this.id=this.PREFIX_ID+this.constructor.nbRequestObj;if(window.XMLHttpRequest){this.xhrObj=new XMLHttpRequest()}else{var h=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"],j;for(j=0;j<h.length;j++){try{this.xhrObj=new ActiveXObject(h[j]);break}catch(l){}}}if(this.xhrObj==null){throw new Error("[RequestObjCreator-init] Enable to create XMLHttpRequest object")}}g.prototype.VAL_ASYNC_DEFAULT=true;g.prototype.VAL_INVISIBLE_DEFAULT=false;g.prototype.VAL_HTTP_METHOD_DEFAULT="POST";g.prototype.VAL_MIME_TYPE_DEFAULT="text/xml";g.prototype.PREFIX_ID="AWSXHR";g.prototype.VAL_HEADERS_DEFAULT={"X-AWS-Ajax":"x"};g.nbRequestObj=0;g.prototype.clear=function(){this.resetData();this.xhrObj=null};g.prototype.resetData=function(){if(this.asynchrone&&(this.xhrObj!=null)){this.xhrObj.onreadystatechange=f}this.asynchrone=this.VAL_ASYNC_DEFAULT;this.invisible=this.VAL_INVISIBLE_DEFAULT;this.url=null;this.httpMethod=this.VAL_HTTP_METHOD_DEFAULT;this.priority=null;this.dataSend=null;this.formName=null;this.objName=null;this.evtName=null;this.timer=0;this.comp=null;this.mimeType=this.VAL_MIME_TYPE_DEFAULT;this.idReqTimeout=null;this.idReqTimer=null;this.aborded=false;this.onsuccess=null;this.oncancel=null;this.onerror=null;this.headers=this.VAL_HEADERS_DEFAULT;this.onReadyStateChangeListener=null;if(AWS.AWSGLOBALS.ie&&(this.xhrObj!=null)){this.xhrObj.abort()}};g.prototype.abortRequest=function(){this.aborded=true;this.xhrObj.abort();if(this.idReqTimeout!=null){clearTimeout(this.idReqTimeout)}if(!AWS.AWSGLOBALS.ie){this.xhrObj.onreadystatechange=f;delete this.xhrObj;if(window.XMLHttpRequest){this.xhrObj=new XMLHttpRequest()}else{var h=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"],j;for(var j=0;j<h.length;j++){try{this.xhrObj=new ActiveXObject(h[j]);break}catch(k){this.xhrObj=null;throw new Error("[RequestObjCreator-abortRequest]"+k.message)}}}}};g.prototype.sendRequest=function(k){var j=this;this.xhrObj.open(this.httpMethod,this.url,this.asynchrone);if(this.asynchrone){this.xhrObj.onreadystatechange=function(){j.onReadyStateChangeListener.onReadyStateChange(j)}}if(this.xhrObj.overrideMimeType){this.xhrObj.overrideMimeType(this.mimeType)}if(this.httpMethod=="POST"){if(this.headers!=null){for(var h in this.headers){this.xhrObj.setRequestHeader(h,this.headers[h])}}this.xhrObj.setRequestHeader("Content-Length",k.length);this.xhrObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(this.asynchrone){this.xhrObj.send(k)}else{setTimeout(function(){j.xhrObj.send(k);j.onReadyStateChangeListener.onReadyStateChange(j)},0)}}else{if(this.headers!=null){for(var h in this.headers){this.xhrObj.setRequestHeader(h,this.headers[h])}}if(this.asynchrone){this.xhrObj.send(null)}else{setTimeout(function(){j.xhrObj.send(null);j.onReadyStateChangeListener.onReadyStateChange(j)},0)}}};function c(k){var h="POOL_REQUEST_INITIAL_NUMBER";var m=5;this.tabRequestObj=null;var j;var l=this;function n(q){j=m;if(q!=null){var o=q.getString(h);if(o!=null){j=o}}l.tabRequestObj=new Array(j);for(var p=0;p<j;p++){try{l.tabRequestObj[p]=new g()}catch(r){l.tabRequestObj[p]=null}}}this.getRequestObj=function(){for(var p=0;p<j;p++){if((typeof this.tabRequestObj[p].locked=="undefined")||((typeof this.tabRequestObj[p].locked!="undefined")&&!this.tabRequestObj[p].locked)){this.tabRequestObj[p].locked=true;return this.tabRequestObj[p]}}try{var o=this.tabRequestObj[j]=new g();j++;o.locked=true;return o}catch(q){return null}};this.releaseRequestObj=function(o){o.locked=false;o.resetData()};n(k)}function b(j){var s="REQUEST_DEFAULT_PRIORITY";var n="REQUEST_MIN_PRIORITY";var r="REQUEST_MAX_PRIORITY";var h=5;var t=10;var u=0;var m;var p=new Array();var v;var l;var k;function q(x){v=h;l=t;k=u;if(x!=null){var w=x.getString(s);if(w!=null){v=w}w=x.getString(n);if(w!=null){l=w}w=x.getString(r);if(w!=null){k=w}}m=AWS.AWSGLOBALS.adel_Sign(k-l)}function o(y,x){var w=AWS.AWSGLOBALS.adel_Sign(y.priority-x.priority);if(w==0){return 0}else{if(w==m){return 1}else{return -1}}}this.getNbRequestObj=function(){return p.length};this.addRequestObj=function(w){if(w.priority==null){w.priority=v}p.adel_AddSorted(w,o,this)};this.removeRequestObj=function(y){var x,w=p.length;for(x=0;x<w;x++){if(p[x]==y){p.splice(x,1);break}}};this.getNextRequestObj=function(){if(p.length!=0){return p.pop()}return null};this.indexOfRequestObj=function(w){return p.adel_IndexOf(w)};this.existIdenticalRequest=function(y,z,A){var x,w=p.length;for(x=0;x<w;x++){if((p[x].formName==y)&&(p[x].objName==z)&&(p[x].evtName==A)){return p[x]}}return null};q(j)}function e(){var ap="MS";var k="S";var V="M";var T="H";var aa="AWSAjax";var Z="AWSAjaxLabels";var s=1;var p=2;var A="URL_ERROR_CODE_";var au="MSG_ERROR_CODE_";var Y=1;var X=2;var K=1;var I=2;var G=3;var x="SIMULTANEOUS_DIFFERENT_REQUESTS_RULE";var ar="RAISING_REQUEST_ERROR_RULE";var av="URL_ERROR_CODE_OTHERS";var aj="SIMULTANEOUS_REQUESTS_NUMBER";var D="MSG_ERROR_CODE_OTHERS";var ao="REQUEST_TIMEOUT";var B=X;var E=[1];var M=AWS.AWSGLOBALS.AWSRESOURCES_DIR_PATH+"AWSError.jsp";var F="An HTTP error occured while processing the request";var an=2;var al=5;var C=this;var Q;var at;var z;var U;var ab;var n;var u;var r;var w;var aw;var L;var af;var y;var q=new Array();this.responseMgr=null;this.ajaxCtx=false;function h(){var ay;z=B;U=E;ab=M;n=F;aw=an;y=al*60000;try{Q=new AWS.AWSGLOBALS.ResourceBundleCreator(aa)}catch(az){throw new Error("[AjaxRequestManager-pv_init]"+aa+".properties not found")}ay=Q.getString(x);if(ay!=null){z=ay}ay=Q.getString(ar);if(ay!=null){ay=ay.adel_Trim();if(ay!=""){U=ay.split(" ")}}if(U.adel_ValueExist(p)){ay=Q.getString(av);if(ay!=null){ab=ay}}ay=Q.getString(aj);if(ay!=null){aw=ay}ay=Q.getString(ao);if(ay!=null){y=ay*60000}try{at=new AWS.AWSGLOBALS.ResourceBundleCreator(Z)}catch(az){throw new Error("[AjaxRequestManager-pv_init]"+Z+".properties not found")}ay=at.getString(D);if(ay!=null){n=ay}u=new b(Q);try{r=new c(Q)}catch(az){throw new Error("[AjaxRequestManager-pv_init]Enable to create PoolRequestObjManager")}if(z==X){aw=1}L=new Array(aw);af=0;w=new a(Q,at,aw);C.responseMgr=new d();AWS.AWSGLOBALS.addEventHandler(window,"unload",function(){C.clearAWSAjaxRequest()},false)}function t(az){var ay=Q.getString(A+az);if(ay!=null){return ay}else{return ab}}function ac(az){var ay=at.getString(au+az);if(ay!=null){return ay}else{return n}}function N(aH){function aB(aJ,aK){if(aD.length!=0){aD.push("&")}aD.push(aJ);aD.push("=");aD.push(encodeURIComponent(aK))}var aF=document.getElementById(aH),aE;var aD=[],aC,ay=aF.getElementsByTagName("INPUT"),aI=ay.length,az;for(aE=0;aE<aI;aE++){aC=ay[aE];if(aC.disabled||!aC.name){continue}switch(aC.type.toLowerCase()){case"text":case"password":case"hidden":aB(aC.name,aC.value);break;case"radio":if(!aC.checked){break}if(typeof(aC.value)!="undefined"){aB(aC.name,aC.value)}else{aB(aC.name,"on")}break;case"checkbox":if(!aC.checked){aB(aC.name,"off")}else{if(typeof(aC.value)!="undefined"){aB(aC.name,aC.value)}else{aB(aC.name,"on")}}break}}ay=aF.getElementsByTagName("SELECT");aI=ay.length;for(aE=0;aE<aI;aE++){aC=ay[aE];if(aC.disabled||!aC.name){continue}if(aC.multiple){var aG=aC.options.length;for(var aA=0;aA<aG;aA++){az=aC.options[aA];if(az.selected){if(typeof(az.value)!="undefined"){aB(aC.name,az.value)}else{aB(aC.name,az.text)}}}}else{if(aC.selectedIndex!=-1){az=aC.options[aC.selectedIndex];if(typeof(az.value)!="undefined"){aB(aC.name,az.value)}else{aB(aC.name,az.text)}}}}ay=aF.getElementsByTagName("TEXTAREA");aI=ay.length;for(aE=0;aE<aI;aE++){aC=ay[aE];if(aC.disabled||!aC.name){continue}aB(aC.name,aC.value)}return aD.join("")}function ak(az,aA,aB){for(var ay=0;ay<af;ay++){if((L[ay].formName==az)&&(L[ay].objName==aA)&&(L[ay].evtName==aB)){return L[ay]}}return null}function l(ay){L[af]=ay;af++;ay.inProgress=true}function o(az){for(var ay=0;ay<af;ay++){if(L[ay]==az){L.splice(ay,1);af--;break}}}function ah(ay){if(ay.inProgress){ay.inProgress=false;o(ay)}else{u.removeRequestObj(ay)}}function am(az,ay){switch(ay.comp){case K:break;case I:if(az.inProgress){az.abortRequest()}if(az.oncancel!=null){az.oncancel.call(window,az.xhrObj)}ah(az);w.removeRequestObj(az);r.releaseRequestObj(az);P(ay);break;case G:break}}function P(ay){var az=S(ay);if(az.dataSend!=null){az.dataSend+="&"}else{az.dataSend=""}if(ay.noSubmit!=true){az.dataSend+=N(ay.formName)}if((typeof ay.zonesToRefresh!="undefined")&&(ay.zonesToRefresh.length!=0)){if(az.dataSend!=""){az.dataSend+="&"}az.dataSend+=O(ay.zonesToRefresh)}if(af<aw){l(az);w.addRequestObj(az,af);w.startRequestObj(az);W(az)}else{u.addRequestObj(az);w.addRequestObj(az,aw+u.getNbRequestObj()-u.indexOfRequestObj(az))}}function S(ay){var az=r.getRequestObj();if(az==null){throw new Error("[AjaxRequestManager-sendAWSAjaxRequest] Unable to get RequestObj from PoolRequestObjManager")}az.url=ay.url;az.formName=ay.formName;az.objName=ay.objName;az.evtName=ay.evtName;az.comp=ay.comp;if(ay.httpMethod){az.httpMethod=ay.httpMethod}if(ay.sync){az.asynchrone=(ay.sync==false)}if(ay.timer&&(ay.timer!=0)){az.timer=ay.timer;az.idReqTimer=ay.idTimer}if(typeof ay.invis!="undefined"){az.invisible=ay.invis}if(typeof ay.priority!="undefined"){az.priority=ay.priority}if(ay.mimeType){az.mimeType=ay.mimeType}if(typeof ay.onsuccess!="undefined"){az.onsuccess=ay.onsuccess}if(typeof ay.onerror!="undefined"){az.onerror=ay.onerror}if(ay.headers){az.headers=ay.headers}if(typeof ay.oncancel!="undefined"){az.oncancel=ay.oncancel}if(typeof ay.dataSend!="undefined"){az.dataSend=ay.dataSend}return az}function W(ay){ay.onReadyStateChangeListener=C;ay.sendRequest(ay.dataSend);ay.idReqTimeout=setTimeout(function(){C.onReqTimeout(ay)},y)}function ad(ay){if(ay.onerror!=null){ay.onerror.call(window,ay.xhrObj)}if(U.adel_ValueExist(s)){alert(ac(ay.xhrObj.status)+"\n"+ay.xhrObj.responseText)}if(U.adel_ValueExist(p)){window.location.href=t(ay.xhrObj.status)}}function H(az){var ay=[];ay.push(az.form);ay.push("#");ay.push(az.obj);ay.push("#");ay.push(az.evt);if((typeof az.lst!="undefined")&&(typeof az.row!="undefined")){ay.push("#");ay.push(az.lst);ay.push("#");ay.push(az.row)}return ay.join("")}function v(az){var ay=H(az);if(typeof q[ay]!="undefined"){q[ay]=null}}function ag(aA){var az,aB;var aC=aA.row;var ay=null;aA.row=-1;az=j(aA);aA.row=aC;aB=j(aA);if(aB&&aB.onsuccess){ay=aB.onsuccess}else{if(az&&az.onsuccess){ay=az.onsuccess}}return ay}function J(aA){var az,aB;var aC=aA.row;var ay=null;aA.row=-1;az=j(aA);aA.row=aC;aB=j(aA);if(aB&&aB.onerror){ay=aB.onerror}else{if(az&&az.onerror){ay=az.onerror}}return ay}function R(aA){var az,aB;var aC=aA.row;var ay=null;aA.row=-1;az=j(aA);aA.row=aC;aB=j(aA);if(aB&&aB.oncancel){ay=aB.oncancel}else{if(az&&az.oncancel){ay=az.oncancel}}return ay}function ax(aA){var az,aB;var aC=aA.row;var ay=null;aA.row=-1;az=j(aA);aA.row=aC;aB=j(aA);if(aB&&aB.onbeforesend){ay=aB.onbeforesend}else{if(az&&az.onbeforesend){ay=az.onbeforesend}}return ay}function m(aA){var az,aB;var aC=aA.row;var ay=null;aA.row=-1;az=j(aA);aA.row=aC;aB=j(aA);if(aB&&aB.zonesToRefresh){ay=aB.zonesToRefresh}else{if(az&&az.zonesToRefresh){ay=az.zonesToRefresh}}return ay}function ae(aA){var az,aB;var aC=aA.row;var ay=null;aA.row=-1;az=j(aA);aA.row=aC;aB=j(aA);if(aB&&aB.zone){ay=aB.zone}else{if(az&&az.zone){ay=az.zone}}return ay}function j(az){var ay=q[H(az)];if(typeof ay!="undefined"){return ay}else{return null}}function aq(aC){var aB=[],ay;var aA=H(aC).substring(0,aA.length-2);for(var az in q){if(az.indexOf(aA)==0){ay=q[az];if(ay!=null){aB.push(ay)}}}return aB}function ai(az){var ay=j(az);if(ay!=null){return ay}else{ay=new Object();ay.formName=az.form;ay.objName=az.obj;ay.evtName=az.evt;if((typeof az.lst!="undefined")&&(typeof az.row!="undefined")){ay.lstName=az.lst;ay.row=az.row}q[H(az)]=ay;return ay}}function O(ay){var az=ay.join("#");return"adeliaKeyZTR="+encodeURIComponent(az)}this.onReqTimeout=function(ay){ay.idReqTimeout=null;ay.abortRequest();if(ay.oncancel!=null){ay.oncancel.call(window,ay.xhrObj)}ay.inProgress=false;o(ay);w.removeRequestObj(ay);var az=u.getNextRequestObj();if(az!=null){l(az);w.startRequestObj(az);W(az)}r.releaseRequestObj(ay)};this.setAWSAjaxRequestOnSuccess=function(az){az.form=az.form.toUpperCase();az.obj=az.obj.toUpperCase();az.evt=az.evt.toUpperCase();if(az.fct!=null){var ay=ai(az);ay.onsuccess=az.fct}else{var ay=j(az);if(ay==null){return}if(typeof ay.onsuccess!="undefined"){delete ay.onsuccess}if((typeof ay.oncancel=="undefined")&&(typeof ay.onerror=="undefined")&&(typeof ay.onbeforesend=="undefined")&&(typeof ay.zonesToRefresh=="undefined")){v(az)}}};this.setAWSAjaxRequestOnCancel=function(az){az.form=az.form.toUpperCase();az.obj=az.obj.toUpperCase();az.evt=az.evt.toUpperCase();if(az.fct!=null){var ay=ai(az);ay.oncancel=az.fct}else{var ay=j(az);if(ay==null){return}if(typeof ay.oncancel!="undefined"){delete ay.oncancel}if((typeof ay.onsuccess=="undefined")&&(typeof ay.onerror=="undefined")&&(typeof ay.onbeforesend=="undefined")&&(typeof ay.zonesToRefresh=="undefined")){v(az)}}};this.setAWSAjaxRequestOnError=function(az){az.form=az.form.toUpperCase();az.obj=az.obj.toUpperCase();az.evt=az.evt.toUpperCase();if(az.fct!=null){var ay=ai(az);ay.onerror=az.fct}else{var ay=j(az);if(ay==null){return}if(typeof ay.onerror!="undefined"){delete ay.onerror}if((typeof ay.onsuccess=="undefined")&&(typeof ay.oncancel=="undefined")&&(typeof ay.onbeforesend=="undefined")&&(typeof ay.zonesToRefresh=="undefined")){v(az)}}};this.setAWSAjaxRequestOnBeforeSend=function(az){az.form=az.form.toUpperCase();az.obj=az.obj.toUpperCase();az.evt=az.evt.toUpperCase();if(az.fct!=null){var ay=ai(az);ay.onbeforesend=az.fct}else{var ay=j(az);if(ay==null){return}if(typeof ay.onbeforesend!="undefined"){delete ay.onbeforesend}if((typeof ay.onsuccess=="undefined")&&(typeof ay.oncancel=="undefined")&&(typeof ay.onerror=="undefined")&&(typeof ay.zonesToRefresh=="undefined")){v(az)}}};this.setAWSAjaxRequestRefreshZone=function(az){az.form=az.form.toUpperCase();az.obj=az.obj.toUpperCase();az.evt=az.evt.toUpperCase();var ay;if(typeof az.zone=="undefined"){ay=j(az);if(ay==null){return}if(typeof ay.zonesToRefresh!="undefined"){delete ay.zonesToRefresh}if((typeof ay.onsuccess=="undefined")&&(typeof ay.oncancel=="undefined")&&(typeof ay.onerror=="undefined")&&(typeof ay.onbeforesend=="undefined")){v(az)}}else{ay=ai(az);if(typeof ay.zonesToRefresh=="undefined"){ay.zonesToRefresh=[].concat(az.zone)}else{ay.zonesToRefresh=ay.zonesToRefresh.concat(az.zone)}}};this.stopAWSAjaxRequest=function(aB){var ay;if(aB.row&&(aB.row==-1)){var aC=aq(aB);var az=aC.length;for(var aA=0;aA<az;aA++){ay=aC[aA];if(ay.idTimer){window.clearInterval(ay.idTimer);delete ay.idTimer}}}else{ay=j(aB);if(ay==null){return}if(ay.idTimer){window.clearInterval(ay.idTimer);delete ay.idTimer}}};this.abortAWSAjaxRequest=function(ay,az,aA){};this.convertAjaxParamToString=function(ay){if(ay==null){return null}var aB=["{"];var az=1;for(var aA in ay){aB[az++]=(aA+":");if(typeof ay[aA]=="string"){aB[az++]=('"'+ay[aA]+'"')}else{aB[az++]=ay[aA]}aB[az++]=","}aB[--az]="}";return aB.join("")};this.saveAWSAjaxRequestIdTimer=function(aA,aD,aE,aC){var ay,az={};aD=aD.toUpperCase();az.form=aA;az.evt=aE;if(aD.indexOf(":LST:")==0){var aB=aD.split(":");az.obj=aB[4];az.lst=aB[3];az.row=aB[5]}else{az.obj=aD}ay=j(az);if(ay!=null){ay.idTimer=aC}};this.createAWSAjaxRequestParameter=function(aG,aD,aA,aC){var aB=document.forms[aG];var aF,aH={};aD=aD.toUpperCase();aC.formName=aH.form=aG;aC.objName=aD;aC.evtName=aH.evt=aA;if(aD.indexOf(":LST:")==0){var aE;var ay=aD.split(":");aH.obj=ay[4];aH.lst=ay[3];aH.row=ay[5];aE=ag(aH);if(aE){aC.onsuccess=aE}aE=ax(aH);if(aE){aC.onbeforesend=aE}aE=J(aH);if(aE){aC.onerror=aE}aE=R(aH);if(aE){aC.oncancel=aE}aE=m(aH);if(aE){aC.zonesToRefresh=aE}aF=j(aH)}else{aH.obj=aD;aF=j(aH);if(aF!=null){if(aF.onsuccess){aC.onsuccess=aF.onsuccess}if(aF.onerror){aC.onerror=aF.onerror}if(aF.oncancel){aC.oncancel=aF.oncancel}if(aF.onbeforesend){aC.onbeforesend=aF.onbeforesend}if(aF.zonesToRefresh){aC.zonesToRefresh=aF.zonesToRefresh}}}if((typeof aC.timer!="undefined")&&(aF==null)){ai(aH)}aC.url=aB.action;aC.httpMethod=aB.method.toUpperCase();if(typeof aC.timer=="string"){var az=parseInt(aC.timer);if(isNaN(az)||(az==0)){delete aC.timer}else{if(aC.timer.endWith(ap)){}else{if(aC.timer.endWith(k)){az*=1000}else{if(aC.timer.endWith(V)){az*=60000}else{if(aC.timer.endWith(T)){az*=3600000}}}}aC.timer=az}}return aC};this.sendAWSAjaxRequest=function(ay){var az;if((ay.onbeforesend!=null)&&(ay.onbeforesend.call(window,ay)==false)){return}if(ay.comp==K){P(ay)}else{if((az=ak(ay.formName,ay.objName,ay.evtName))==null){az=u.existIdenticalRequest(ay.formName,ay.objName,ay.evtName)}if(az!=null){am(az,ay)}else{P(ay)}}};this.clearAWSAjaxRequest=function(){var az,aA=r.tabRequestObj.length;for(var ay=0;ay<aA;ay++){az=r.tabRequestObj[ay];if((typeof az.locked!="undefined")&&az.locked){if(az.inProgress){az.abortRequest();az.inProgress=false}if(az.oncancel!=null){az.oncancel.call(window,az.xhrObj)}if(az.idReqTimer!=null){clearInterval(az.idReqTimer)}}az.clear()}};this.getProgressIndicator=function(){return w};this.onReadyStateChange=function(ay){if(ay.xhrObj.readyState!=4){return}if(ay.aborded){return}ay.inProgress=false;clearTimeout(ay.idReqTimeout);o(ay);w.removeRequestObj(ay);if((ay.xhrObj.status>=200)&&(ay.xhrObj.status<300)){this.responseMgr.processResponse(ay);if(ay.onsuccess!=null){ay.onsuccess.call(window,ay.xhrObj)}var az=u.getNextRequestObj();if(az!=null){l(az);w.startRequestObj(az);W(az)}}else{if(ay.xhrObj.status!=0){ad(ay)}}r.releaseRequestObj(ay)};this.createAWSAjaxRequestParameterForRefresh=function(aA,az){var ay={sync:false,comp:1,httpMethod:"POST",noSubmit:true,formName:"",objName:"",evtName:""};ay.dataSend="AdeliaKeyCurrentJspIncrem=0";if(typeof(az)!="undefined"){ay.dataSend+="&AdeliaKeyClientId="+az}ay.url=aA;return ay};h()}function d(){var az="0";var E="1";var C="2";var at="3";var a0="4";var L="5";var aY="6";var bc="7";var ap="8";var bg="responseAWS";var ac="obj";var a6="resubmit";var ar="forward";var av="redirect";var aF="msgpopup";var I="form";var ab="list";var aX="page";var bj="obj";var B="event";var aA="upload";var n="pgm";var y="url";var aM="popupmodal";var af="stillactive";var j="0";var k="1";var S="2";var z="3";var p="5";var P="6";var aO="7";var bn="8";var bm="9";var aw="10";var w="11";var aa="12";var M="15";var K="16";var J="17";var aB="18";var T="19";var bf="21";var aK="-55";var aN="-52";var am="5";var Y="refreshZone";var bd="startPeriodicEvt";var bk="DEMARRER_EVT_PERIODIQUE";var u="START_PERIODIC_EVT";var aR="index";var aW="form";var s="ajaxp";var G="modifLst";var aj="callPgm";var F="terminate";var H="callpgm";var aH="cmdline";var a7="pgm";var a3="pshi";var aD="AZB_";var bp="AZE_";var a1="AWS_SC_";var ay="awserrtag";var ai="(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)";var bo=null;var aJ=null;var ba=null;var a4=null;var a2=this;this.PROP_NODE_TEXT="prop";this.TYPE_MNU="20";this.NAME_VISIBLE="-51";this.NAME_ACTIVITE="-54";this.NAME_VALEUR="-6";this.NAME_OBLIGATOIRE="8";this.NAME_CLASSE="53";this.NAME_TEXTE="-56";this.NAME_LARGEUR="-58";this.NAME_METTRE_FOCUS="setFocus";this.NAME_METTRE_FOCUS_L4G_FR="METTRE_FOCUS";this.NAME_METTRE_FOCUS_L4G_EN="SET_FOCUS";this.NAME_ARRETER_EVT_PERIODIQUE="stopPeriodicEvt";this.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR="ARRETER_EVT_PERIODIQUE";this.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN="STOP_PERIODIC_EVT";this.ATTR_TYPE="type";this.ATTR_NAME="name";this.ATTR_ID="id";this.ATTR_VALUE="value";this.METHOD_NODE_TEXT="method";this.PARAM_NODE_TEXT="param";this.ORDER_NODE_TEXT="order";this.PREFIXE_ZONE="AZ_";function N(){bo=document.createElement("div");aJ=new RegExp(ai,"img");ba=new RegExp(ai,"im");a4=document.createDocumentFragment();if(typeof document.activeElement=="undefined"){AWS.AWSGLOBALS.addEventHandler(window,"focus",function(br){if(br.originalTarget){document.activeElement=br.originalTarget}else{if(br.srcElement){document.activeElement=br.srcElement}else{document.activeElement=null}}},true);AWS.AWSGLOBALS.addEventHandler(document,"blur",function(br){document.activeElement=null},false)}}function aZ(){if(AWS.AWSGLOBALS.ie&&!document.hasFocus()){return null}else{return document.activeElement}}function ak(br){if(typeof br.id!="undefined"){if((br.getAttribute("adeliactrl")!=null)&&(br.tagName=="INPUT")&&(br.type=="radio")){var bt=document.forms[document.getElementById(br.id).form.name].elements[br.id];for(var bs=0;bs<bt.length;bs++){if(bt[bs].checked){bt[bs].focus();return}}}else{try{document.getElementById(br.id).focus()}catch(bu){}}}else{}}function D(bs,br){var bt=bs.tagName;switch(bt){case"HEAD":if(typeof bo.insertAdjacentHTML!="undefined"){bo.insertAdjacentHTML("afterBegin","<br/>"+br)}else{bo.innerHTML=br}return bo;case"UL":case"OL":case"MENU":case"DL":case"DIR":case"MAP":case"TABLE":case"SELECT":bo.innerHTML="<"+bt+">"+br+"</"+bt+">";return bo.firstChild;case"TBODY":case"THEAD":case"TFOOT":case"COLGROUP":bo.innerHTML="<table><"+bt+">"+br+"</"+bt+"></table>";return bo.firstChild.firstChild;case"TR":bo.innerHTML="<table><"+bt+">"+br+"</"+bt+"></table>";return bo.firstChild.firstChild.firstChild;case"OPTGROUP":bo.innerHTML="<select><"+bt+">"+br+"</"+bt+"></select>";return bo.firstChild.firstChild;default:bo.innerHTML=br;return bo}}function x(bs){var bt,br;if(a4.hasChildNodes()){bt=a4.firstChild;while(bt!=null){br=bt.nextSibling;a4.removeChild(bt);bt=br}}if(bs.hasChildNodes()){bt=bs.firstChild;while(bt!=null){br=bt.nextSibling;a4.appendChild(bt);bt=br}}}function aQ(bu){var bw=bu.match(aJ);var bv,br;var bt=[];if(bw==null){return bt}else{br=bw.length;for(var bs=0;bs<br;bs++){bv=bw[bs].match(ba);if((bv!=null)&&(bv[1]!="")&&(bv[1].adel_Trim()!="")){if(bv[1].indexOf("<!--")!=-1){bv[1]=bv[1].replace("<!--","");bv[1]=bv[1].replace("-->","")}else{if(bv[1].indexOf("//<![CDATA[")!=-1){bv[1]=bv[1].replace("//<![CDATA[","");bv[1]=bv[1].replace("//]]>","")}}bt.push(bv[1])}}return bt}}function aT(bs){var bt=bs.getAttribute(y);if(bt!=""){var br=bs.getAttribute(n);if(bt==null){window.location=AWS.AWSGLOBALS.setURLParameter(br,"AdeliaKeyCurrentJspIncrem",0)}else{window.location=AWS.AWSGLOBALS.setURLParameter(br,"AdeliaKeyAjaxFwdPgm",bt)}}else{window.document.open();window.document.close()}}function m(bs){var br=bs.getAttribute(y);window.location=br}function al(br){alert(window["eval"]("'"+br.firstChild.nodeValue+"'"))}function aL(bt){var bs=bt.getAttribute(n);var bx=bt.getAttribute(bj);var bv=bt.getAttribute(aX);var bu=bt.getAttribute(I);var br=bt.getAttribute("toto");var by=document.forms[bu];var bw;if(br!=null){bw=by.AdeliaKeyAjaxFwdPgm;if(typeof bw=="undefined"){bw=document.createElement("input");bw.setAttribute("type","hidden");bw.setAttribute("name","AdeliaKeyAjaxFwdPgm");by.appendChild(bw)}bw.value=br}bw=by.AdeliaKeyAjaxResub;if(typeof bw=="undefined"){bw=document.createElement("input");bw.setAttribute("type","hidden");bw.setAttribute("name","AdeliaKeyAjaxResub");by.appendChild(bw)}bw.value="true";window["eval"]("window.js_callOnEvent_"+bs+"('"+bu+"','"+bv+"','"+bx+"','___', false, false, null)")}function Z(bs){var br=bs.getAttribute(a2.ATTR_TYPE);if((br==null)||(br=="")){return}switch(br){case z:case M:t(bs);break;case aO:bl(bs);break;case P:a8(bs);break;case K:AWS.AWSCALENDARAJAX.processResponse(bs);break;case j:ae(bs);break;case k:X(bs);break;case w:o(bs);break;case S:V(bs);break;case p:be(bs);break;case bm:aC(bs);break;case bn:aG(bs);break;case aw:bh(bs);break;case J:AWS.AWSUPLOADAJAX.processResponse(bs);break;case aa:bb(bs);break;case aB:a9(bs);break;case a2.TYPE_MNU:case bf:AWS.AWSMENUAJAX.processResponse(bs);break;case T:bi(bs);break;default:break}}function aC(bw){var bv=bw.getElementsByTagName(a2.PROP_NODE_TEXT);var bu,bs,bt;for(bu=0;bu<bv.length;bu++){bs=bv[bu];bt=bs.getAttribute(a2.ATTR_NAME);switch(bt){case am:l(bs);break}}var br=bw.getElementsByTagName(a2.ORDER_NODE_TEXT);for(bu=0;bu<br.length;bu++){bs=br[bu];bt=bs.getAttribute(a2.ATTR_NAME);switch(bt){case G:l(bs);break}}}function l(bu){var bs;if((bs=document.getElementById(a2.PREFIXE_ZONE+bu.parentNode.getAttribute(a2.ATTR_ID)))!=null){var bx;if(bu.firstChild==null){bx=""}else{bx=bu.firstChild.nodeValue}bs.innerHTML=a2.stripScripts(bx);a2.execScriptsInHTML(bx)}else{var bw=document.getElementById(aD+bu.parentNode.getAttribute(a2.ATTR_ID));var bv=document.getElementById(bp+bu.parentNode.getAttribute(a2.ATTR_ID));var br=bw.parentNode;if((bw==null)||(bv==null)){return}var bx;if(bu.firstChild==null){bx=""}else{bx=bu.firstChild.nodeValue}x(D(br,a2.stripScripts(bx)));var bt=bw.nextSibling;while(bt!=bv){bt=bt.nextSibling;br.removeChild(bt.previousSibling)}br.insertBefore(a4,bv);a2.execScriptsInHTML(bx)}}function bh(bw){var bv=bw.getElementsByTagName(a2.PROP_NODE_TEXT);var bu,bs,bt;for(bu=0;bu<bv.length;bu++){bs=bv[bu];bt=bs.getAttribute(a2.ATTR_NAME);switch(bt){case am:aE(bs);break}}var br=bw.getElementsByTagName(a2.ORDER_NODE_TEXT);for(bu=0;bu<br.length;bu++){bs=br[bu];bt=bs.getAttribute(a2.ATTR_NAME);switch(bt){case G:aE(bs);break}}}function aE(bt){var bw=document.getElementById(aD+bt.parentNode.getAttribute(a2.ATTR_ID));var bu=document.getElementById(bp+bt.parentNode.getAttribute(a2.ATTR_ID));if((bw==null)||(bu==null)){return}var br=bw.parentNode;var bv;if(bt.firstChild==null){bv=""}else{bv=bt.firstChild.nodeValue}x(D(br,a2.stripScripts(bv)));var bs=bw.nextSibling;while(bs!=bu){bs=bs.nextSibling;br.removeChild(bs.previousSibling)}br.insertBefore(a4,bu);a2.execScriptsInHTML(bv)}function a9(bv){var bs=bv.getElementsByTagName(a2.ORDER_NODE_TEXT);var br,bu;for(var bt=0;bt<bs.length;bt++){br=bs[bt];bu=br.getAttribute(a2.ATTR_NAME);switch(bu){case Y:a2.processRefreshZoneOrder(br);break}}}function bb(bv){var bu=bv.getElementsByTagName(a2.PROP_NODE_TEXT);var br,bt;for(var bs=0;bs<bu.length;bs++){br=bu[bs];bt=br.getAttribute(a2.ATTR_NAME);switch(bt){case a2.NAME_TEXTE:ah(br);break}}}function ah(bw){var bz=bw.parentNode;var bB=bz.getAttribute(a2.ATTR_ID);var bx=bw.firstChild.nodeValue;var bs=bz.getAttribute(ab);var by;var bv;if(bs!=null){bB=":lst:"+bz.getAttribute(aX)+":"+bz.getAttribute(ab)+":"+bB+":"+bz.getAttribute(aR)}var bt=document.getElementsByTagName("span");var br=bt.length;var bA;for(var bu=0;bu<br;bu++){bA=bt[bu];by=bA.getAttribute("name");bv=bA.getAttribute(ay);if((bv!=null)&&(by!=null)&&(by==bB)){bA.innerHTML=bx;break}}}function aG(bz){var bu=bz.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,by,bA;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(bz.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bA=bu.length;for(bv=0;bv<bA;bv++){br=bu[bv];by=br.getAttribute(a2.ATTR_NAME);switch(by){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_ACTIVITE:a2.processObjPropActivite(br);break;case a2.NAME_CLASSE:a2.processObjPropClasse(br);break;case a2.NAME_VALEUR:ao(br);break}}}}var bt=bz.getElementsByTagName(a2.METHOD_NODE_TEXT);bA=bt.length;for(bv=0;bv<bA;bv++){br=bt[bv];by=br.getAttribute(a2.ATTR_NAME);switch(by){case a2.NAME_METTRE_FOCUS:case a2.NAME_METTRE_FOCUS_L4G_FR:case a2.NAME_METTRE_FOCUS_L4G_EN:a2.processMethodSetFocus(br);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}var bx=bz.getElementsByTagName(a2.ORDER_NODE_TEXT);for(bv=0;bv<bx.length;bv++){br=bx[bv];by=br.getAttribute(a2.ATTR_NAME);switch(by){case G:aq(br);break}}}function aq(bs){var br=document.getElementById(a2.PREFIXE_ZONE+bs.parentNode.getAttribute(a2.ATTR_ID));if(br==null){return}var bt;if(bs.firstChild==null){bt=""}else{bt=bs.firstChild.nodeValue}br.innerHTML=a2.stripScripts(bt);a2.execScriptsInHTML(bt)}function ao(bv){var bu=bv.getAttribute(a2.ATTR_VALUE);var br,bt=a2.getDOMNode(bv.parentNode);if(bt==null){return}br=bt.length;for(var bs=0;bs<br;bs++){if(bt.options[bs].value==bu){bt.options[bs].selected=true;break}}}function bi(bw){var bv,bt,bu,bs;var br=bw.getElementsByTagName(a2.METHOD_NODE_TEXT);bs=br.length;for(bv=0;bv<bs;bv++){bt=br[bv];bu=bt.getAttribute(a2.ATTR_NAME);switch(bu){case bd:case bk:case u:aI(bt);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(bt);break}}}function aI(by){var bw=by.parentNode;var bx;var bz,bs,bv,bt,br,bu;bx=by.getElementsByTagName(a2.PARAM_NODE_TEXT);switch(bx.length){case 4:bz=bx[3].getAttribute(a2.ATTR_VALUE);bt=bx[2].getAttribute(a2.ATTR_VALUE);br=bx[1].getAttribute(a2.ATTR_VALUE);bu="document.forms[0].name";break;case 5:bz=bx[4].getAttribute(a2.ATTR_VALUE);bt=bx[3].getAttribute(a2.ATTR_VALUE);br=bx[2].getAttribute(a2.ATTR_VALUE);bu="'"+bx[1].getAttribute(a2.ATTR_VALUE)+"'";break;default:return}bs=parseInt(bz,10)!=3;bv=AWS.AWSGLOBALS.awsCreateAjaxParamObj(bz);window["eval"]("window.js_callOnEvent_"+bt+"("+bu+",'"+br+"','"+bw.getAttribute(a2.ATTR_ID)+"','EVT', "+bs+", false, "+bv+")")}function be(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_ACTIVITE:a2.processObjPropActivite(br);break;case a2.NAME_CLASSE:a2.processObjPropClasse(br);break;case a2.NAME_VALEUR:R(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);for(bv=0;bv<bt.length;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function R(by){var bA;if((bA=document.getElementById(a2.PREFIXE_ZONE+by.parentNode.getAttribute(a2.ATTR_ID)))!=null){var bs;if(by.firstChild!=null){bs=by.firstChild.nodeValue}else{bs=""}var bu=a2.getDOMNode(by.parentNode);if(bu==null){bA.innerHTML=a2.stripScripts(bs);a2.execScriptsInHTML(bs)}else{if(bs==""){bA.innerHTML=""}else{var bC=bu.src;if(bC.indexOf("&TS=")==-1){bu.src=bC+"&TS="+new Date().getTime()}else{var bB=bC.split("&");var bz=bB.length;for(var bv=0;bv<bz;bv++){if(bB[bv].indexOf("TS=")==0){bB[bv]="TS="+new Date().getTime();break}}bu.src=bB.join("&")}}}}else{var bx=document.getElementById(aD+by.parentNode.getAttribute(a2.ATTR_ID));var bt=document.getElementById(bp+by.parentNode.getAttribute(a2.ATTR_ID));var bw=bx.parentNode;if((bx==null)||(bt==null)){return}var bs;if(by.firstChild==null){bs=""}else{bs=by.firstChild.nodeValue}var bu=a2.getDOMNode(by.parentNode);if(bu==null){x(D(bw,a2.stripScripts(bs)));var br=bx.nextSibling;while(br!=bt){br=br.nextSibling;bw.removeChild(br.previousSibling)}bw.insertBefore(a4,bt);a2.execScriptsInHTML(bs)}else{if(bs==""){var br=bx.nextSibling;while(br!=bt){br=br.nextSibling;bw.removeChild(br.previousSibling)}}else{var bC=bu.src;if(bC.indexOf("&TS=")==-1){bu.src=bC+"&TS="+new Date().getTime()}else{var bB=bC.split("&");var bz=bB.length;for(var bv=0;bv<bz;bv++){if(bB[bv].indexOf("TS=")==0){bB[bv]="TS="+new Date().getTime();break}}bu.src=bB.join("")}}}}}function V(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_CLASSE:a2.processObjPropClasse(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);bz=bt.length;for(bv=0;bv<bz;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_METTRE_FOCUS:case a2.NAME_METTRE_FOCUS_L4G_FR:case a2.NAME_METTRE_FOCUS_L4G_EN:a2.processMethodSetFocus(br);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function X(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_CLASSE:a2.processObjPropClasse(br);break;case a2.NAME_VALEUR:an(br);break;case aN:a5(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);for(bv=0;bv<bt.length;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function a5(bu){var bt=bu.parentNode;var bs=bu.getAttribute(a2.ATTR_VALUE);var br=a2.getDOMNode(bt);if(br==null){return}br.style.color=bs}function an(bu){var bt=bu.parentNode;var bs=bu.getAttribute(a2.ATTR_VALUE);var br=a2.getDOMNode(bt);if(br==null){return}br.innerHTML=bs}function ae(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_ACTIVITE:W(br);break;case a2.NAME_CLASSE:a2.processObjPropClasse(br);break;case a2.NAME_VALEUR:r(br);break;case aK:U(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);bz=bt.length;for(bv=0;bv<bz;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_METTRE_FOCUS:case a2.NAME_METTRE_FOCUS_L4G_FR:case a2.NAME_METTRE_FOCUS_L4G_EN:a2.processMethodSetFocus(br);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function W(bs){var br;a2.processObjPropActivite(bs);br=document.getElementById(bs.parentNode.getAttribute(a2.ATTR_ID)+"GUIDE");if(br){br.disabled=!(bs.getAttribute(a2.ATTR_VALUE)=="true")}}function U(bu){var bt=bu.parentNode;var bs=bu.getAttribute(a2.ATTR_VALUE);var br=a2.getDOMNode(bt);if(br==null){return}br.readOnly=(bs=="true")}function r(bu){var bt=bu.parentNode;var bs=bu.getAttribute(a2.ATTR_VALUE);var br=a2.getDOMNode(bt);if(br==null){return}br.value=bs}function bl(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_ACTIVITE:a2.processObjPropActivite(br);break;case a2.NAME_CLASSE:v(br);break;case a2.NAME_VALEUR:ag(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);for(bv=0;bv<bt.length;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_METTRE_FOCUS:case a2.NAME_METTRE_FOCUS_L4G_FR:case a2.NAME_METTRE_FOCUS_L4G_EN:a2.processMethodSetFocus(br);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function ag(bu){var bt=bu.parentNode;var bs=bu.getAttribute(a2.ATTR_VALUE);var br=a2.getDOMNode(bt);if(br==null){return}br.checked=(bs=="checked")}function v(bv){var bu=bv.parentNode;var br;var bt=bv.getAttribute(a2.ATTR_VALUE);var bs=a2.getDOMNode(bu);if(bs==null){return}br=document.getElementById(a1+bu.getAttribute(a2.ATTR_ID));if(br!=null){br.className=bt}bs.className=bt}function o(bs){var br=bs.firstChild;ad(br)}function ad(bx){var by=document.getElementById(a2.PREFIXE_ZONE+bx.parentNode.getAttribute(a2.ATTR_ID));if(bx.getAttribute(a2.ATTR_VALUE)=="false"){if(by!=null){if(!AWS.AWSGLOBALS.ie){var bz=by.childNodes.length;for(var bu=0;bu<bz;bu++){try{by.childNodes[bu].style.display="none"}catch(bA){}}setTimeout("document.getElementById('"+a2.PREFIXE_ZONE+bx.parentNode.getAttribute(a2.ATTR_ID)+"').innerHTML = ''",50)}else{by.innerHTML=""}}else{var bv=document.getElementById(aD+bx.parentNode.getAttribute(a2.ATTR_ID));var bt=document.getElementById(bp+bx.parentNode.getAttribute(a2.ATTR_ID));if((bv==null)||(bt==null)){return}var bw=bv.parentNode;var br=bv.nextSibling;while(br!=bt){br=br.nextSibling;bw.removeChild(br.previousSibling)}}}else{if(by!=null){var bs=bx.firstChild.nodeValue;by.innerHTML=a2.stripScripts(bs);a2.execScriptsInHTML(bs)}else{var bv=document.getElementById(aD+bx.parentNode.getAttribute(a2.ATTR_ID));var bt=document.getElementById(bp+bx.parentNode.getAttribute(a2.ATTR_ID));if((bv==null)||(bt==null)){return}var bw=bv.parentNode;var bs=bx.firstChild.nodeValue;x(D(bw,a2.stripScripts(bs)));var br=bv.nextSibling;while(br!=bt){br=br.nextSibling;bw.removeChild(br.previousSibling)}bw.insertBefore(a4,bt);a2.execScriptsInHTML(bs)}}}function a8(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){aP(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){ax(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:aP(br);break;case a2.NAME_ACTIVITE:Q(br);break;case a2.NAME_CLASSE:aV(br);break;case a2.NAME_VALEUR:bq(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);for(bv=0;bv<bt.length;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_METTRE_FOCUS:case a2.NAME_METTRE_FOCUS_L4G_FR:case a2.NAME_METTRE_FOCUS_L4G_EN:a2.processMethodSetFocus(br);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function au(bw){var bs;var bu=bw.getAttribute(a2.ATTR_ID);var bt=bw.getAttribute(I);if(document.all){bs=window["eval"]('document.forms["'+bt+'"]["'+bu+'"]');if(!bs){return new Array()}}else{var bv=document.getElementsByName(bu);var br=document.forms[bt];bs=new Array();for(i=0;i<bv.length;i++){if((bv[i].type=="radio")&&(bv[i].form==br)){bs.push(bv[i])}}}return bs}function ax(bx){var bz,by;var bC=document.getElementById(a2.PREFIXE_ZONE+bx.getAttribute(a2.ATTR_ID));var bB;if(bC!=null){if(AWS.AWSGLOBALS.ie){bz=document.getElementsByName(a2.PREFIXE_ZONE+bx.parentNode.getAttribute(a2.ATTR_ID))}else{var bt=a2.PREFIXE_ZONE+bx.parentNode.getAttribute(a2.ATTR_ID);var bu=document.getElementsByTagName(document.getElementById(bt).tagName);bz=new Array();for(by=0;by<bu.length;by++){if(bu[by].id==bt){bz.push(bu[by])}}}bB=bx.childNodes.length==0;for(by=0;by<bz.length;by++){var bw=bB?"":bx.childNodes[by].nodeValue;bz[by].innerHTML=a2.stripScripts(bw);a2.execScriptsInHTML(bw)}}else{var bv,bs;if(AWS.AWSGLOBALS.ie){bv=document.getElementsByName(aD+bx.parentNode.getAttribute(a2.ATTR_ID));bs=document.getElementsByName(bp+bx.parentNode.getAttribute(a2.ATTR_ID))}else{var bt=aD+bx.parentNode.getAttribute(a2.ATTR_ID);var bu=document.getElementsByTagName(document.getElementById(bt).tagName);bv=new Array();for(by=0;by<bu.length;by++){if(bu[by].id==bt){bv.push(bu[by])}}bt=bp+bx.parentNode.getAttribute(a2.ATTR_ID);bu=document.getElementsByTagName(document.getElementById(bt).tagName);bs=new Array();for(by=0;by<bu.length;by++){if(bu[by].id==bt){bs.push(bu[by])}}}var bA;var bw;var br;bB=bx.childNodes.length==0;for(by=0;by<bv.length;by++){bA=bv[by].parentNode;bw=bB?"":bx.childNodes[by].nodeValue;x(D(bA,a2.stripScripts(bw)));br=bv[by].nextSibling;while(br!=bs[by]){br=br.nextSibling;bA.removeChild(br.previousSibling)}bA.insertBefore(a4,bs[by]);a2.execScriptsInHTML(bw)}}}function aP(bw){var bs,br;if(AWS.AWSGLOBALS.ie){br=document.getElementsByName(a2.PREFIXE_ZONE+bw.parentNode.getAttribute(a2.ATTR_ID))}else{var bv=a2.PREFIXE_ZONE+bw.parentNode.getAttribute(a2.ATTR_ID);var bt=document.getElementsByTagName(document.getElementById(bv).tagName);br=new Array();for(bs=0;bs<bt.length;bs++){if(bt[bs].id==bv){br.push(bt[bs])}}}if(bw.getAttribute(a2.ATTR_VALUE)=="false"){for(bs=0;bs<br.length;bs++){br[bs].innerHTML=""}}else{for(bs=0;bs<br.length;bs++){var bu=bw.childNodes[bs].nodeValue;br[bs].innerHTML=a2.stripScripts(bu);a2.execScriptsInHTML(bu)}}}function aV(bx){var bz=bx.parentNode;var bv=document.forms[bz.getAttribute(I)];var bu;var by=bx.getAttribute(a2.ATTR_VALUE);var bw=a1+bz.getAttribute(a2.ATTR_ID);var bt=document.getElementsByTagName("span");var bs=bt.length;var bA;for(bu=0;bu<bs;bu++){bA=bt[bu];if((bA.getAttribute("name")==bw)&&AWS.AWSGLOBALS.adel_HasAncestor(bA,bv)){bA.className=by}}var br=au(bz);for(bu=0;bu<br.length;bu++){br[bu].className=by}}function bq(bv){var bu=bv.parentNode;var bt=au(bu);var bs=bv.getAttribute(a2.ATTR_VALUE);for(var br=0;br<bt.length;br++){if(bt[br].value==bs){bt[br].checked=true;break}}}function Q(bv){var bu=bv.parentNode;var bt=au(bu);var br;if(bt.length==0){return}if(bv.getAttribute(a2.ATTR_VALUE)=="true"){br=false}else{br=true}for(var bs=0;bs<bt.length;bs++){bt[bs].disabled=br}}function t(by){var bu=by.getElementsByTagName(a2.PROP_NODE_TEXT);var bw=a2.existPropNodeVisibility(bu);var bs;var bv,br,bx,bz;if(bw!=null){a2.processObjPropVisible(bw)}else{if((bs=a2.existOrderNodeRefresh(by.getElementsByTagName(a2.ORDER_NODE_TEXT)))!=null){a2.processRefreshZoneOrder(bs)}else{bz=bu.length;for(bv=0;bv<bz;bv++){br=bu[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_VISIBLE:a2.processObjPropVisible(br);break;case a2.NAME_ACTIVITE:a2.processObjPropActivite(br);break;case a2.NAME_CLASSE:a2.processObjPropClasse(br);break;case a2.NAME_TEXTE:aS(br);break}}}}var bt=by.getElementsByTagName(a2.METHOD_NODE_TEXT);for(bv=0;bv<bt.length;bv++){br=bt[bv];bx=br.getAttribute(a2.ATTR_NAME);switch(bx){case a2.NAME_METTRE_FOCUS:case a2.NAME_METTRE_FOCUS_L4G_FR:case a2.NAME_METTRE_FOCUS_L4G_EN:a2.processMethodSetFocus(br);break;case a2.NAME_ARRETER_EVT_PERIODIQUE:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_FR:case a2.NAME_ARRETER_EVT_PERIODIQUE_L4G_EN:a2.processMethodStopPeriodicEvt(br);break}}}function aS(bt){var bs=bt.parentNode;var br=a2.getDOMNode(bs);if(br==null){return}br.value=bt.getAttribute(a2.ATTR_VALUE)}function aU(){var bs=document.getElementsByTagName("span");var bu=bs.length,br,bt;for(br=0;br<bu;br++){bt=bs[br];if(bt.getAttribute(ay)!=null){bt.innerHTML=""}}}function h(br){switch(br.getAttribute(a2.ATTR_NAME)){case aj:switch(br.getAttribute(a2.ATTR_TYPE)){case"0":O(br);break;case"1":q(br);break}break;case F:A(br);break}}function A(bv){var bw,bu,bx,by;switch(bv.getAttribute(a2.ATTR_TYPE)){case"0":self.close();break;case"1":by=bv.firstChild;while(by!=null){switch(by.getAttribute(a2.ATTR_NAME)){case H:bw=by.getAttribute(a2.ATTR_VALUE);break;case a3:bu=by.getAttribute(a2.ATTR_VALUE);break}by=by.nextSibling}bx=AWS.AWSGLOBALS.setURLParameter(bw,"AdeliaKeyCurrentJspIncrem","0");if(typeof(bu)!="undefined"){bx+="&AdeliaKeyClientId="+bu}self.opener.location.href=bx;if(AWS.AWSGLOBALS.ie){self.close()}else{setTimeout("self.close()",0)}break;case"2":by=bv.firstChild;var bt;while(by!=null){switch(by.getAttribute(a2.ATTR_NAME)){case H:bw=by.getAttribute(a2.ATTR_VALUE);break;case a7:bt=by.getAttribute(a2.ATTR_VALUE);break;case a3:bu=by.getAttribute(a2.ATTR_VALUE);break}by=by.nextSibling}bx=bt+"?AdeliaKeyAjaxFwdPgm="+encodeURIComponent(bw);if(typeof(bu)!="undefined"){bx+="&AdeliaKeyClientId="+bu}window.location=bx;break;case"3":var bs;while(by!=null){switch(by.getAttribute(a2.ATTR_NAME)){case H:bs=by.getAttribute(a2.ATTR_VALUE);break;case a3:bu=by.getAttribute(a2.ATTR_VALUE);break}by=by.nextSibling}var br=AWS.AWSAJAX.AjaxRequestManager.createAWSAjaxRequestParameterForRefresh(bs,bu);self.opener.AWS.AWSAJAX.AjaxRequestManager.sendAWSAjaxRequest(br);self.close();break}}function O(bu){var bv,bs,bt,br;var bx=bu.firstChild;while(bx!=null){switch(bx.getAttribute(a2.ATTR_NAME)){case H:bv=bx.getAttribute(a2.ATTR_VALUE);break;case aH:bt=bx.getAttribute(a2.ATTR_VALUE);break;case a7:bs=bx.getAttribute(a2.ATTR_VALUE);break;case a3:br=bx.getAttribute(a2.ATTR_VALUE);break}bx=bx.nextSibling}if(bu.getAttribute(aM)=="true"){AWS.AWSCTRLSCRIPT.showModalWindow(bv,bt,br)}else{var bw=setIsPopupCall(bv,bs,br);AWS.AWSCTRLSCRIPT.showModlessWindow(bw,bt)}}function q(bs){var bt,br,bu;var bv=bs.firstChild;while(bv!=null){switch(bv.getAttribute(a2.ATTR_NAME)){case H:bt=bv.getAttribute(a2.ATTR_VALUE);break;case a3:br=bv.getAttribute(a2.ATTR_VALUE);break}bv=bv.nextSibling}bu=bt+"?AdeliaKeyCurrentJspIncrem=0";if(typeof(br)!="undefined"){bu+="&AdeliaKeyClientId="+br}self.opener.location.href=bu;if(bs.getAttribute(af)!="true"){self.close()}}this.processResponse=function(bs){var bt=bs.xhrObj.responseXML;var br=bt.getElementsByTagName(bg)[0];var bu=br.firstChild;aU();while(bu!=null){if(bu.nodeType==1){switch(bu.nodeName){case ac:Z(bu);break;case a6:aL(bu);break;case ar:aT(bu);break;case av:m(bu);break;case aF:al(bu);break;case this.ORDER_NODE_TEXT:h(bu);break}}bu=bu.nextSibling}};this.existPropNodeVisibility=function(bs){var bu,br=bs.length,bv;for(var bt=0;bt<br;bt++){bv=bs[bt];bu=bv.getAttribute(this.ATTR_NAME);if((bu!=null)&&(bu==this.NAME_VISIBLE)&&(bv.getAttribute(this.ATTR_VALUE)=="true")){return bv}}return null};this.stripScripts=function(br){return br.replace(aJ,function(bs){if(bs.indexOf(aD)!=-1||bs.indexOf(bp)!=-1){return bs}else{return""}})};this.execScriptsInHTML=function(bs){var br=aQ(bs);if(br.length!=0){setTimeout(function(){a2.evalScripts(br)},10)}};this.processObjPropVisible=function(bx){var bs;if((bs=document.getElementById(this.PREFIXE_ZONE+bx.parentNode.getAttribute(this.ATTR_ID)))!=null){if(bs==null){return}if(bx.getAttribute(this.ATTR_VALUE)=="false"){bs.innerHTML=""}else{var bw=bx.firstChild.nodeValue;bs.innerHTML=this.stripScripts(bw);this.execScriptsInHTML(bw)}}else{var bv=document.getElementById(aD+bx.parentNode.getAttribute(this.ATTR_ID));var bu=document.getElementById(bp+bx.parentNode.getAttribute(this.ATTR_ID));var br,bt;if((bv==null)||(bu==null)){return}br=bv.parentNode;if(bx.getAttribute(this.ATTR_VALUE)=="false"){bt=bv.nextSibling;while(bt!=bu){bt=bt.nextSibling;br.removeChild(bt.previousSibling)}}else{var bw;if(bx.firstChild==null){bw=""}else{bw=bx.firstChild.nodeValue}x(D(br,this.stripScripts(bw)));bt=bv.nextSibling;while(bt!=bu){bt=bt.nextSibling;br.removeChild(bt.previousSibling)}br.insertBefore(a4,bu);this.execScriptsInHTML(bw)}}};this.processObjPropActivite=function(bt){var bs=bt.parentNode;var br=this.getDOMNode(bs);if(br==null){return}if(bt.getAttribute(this.ATTR_VALUE)=="true"){br.disabled=false}else{br.disabled=true}};this.processObjPropClasse=function(bt){var bs=bt.parentNode;var br=this.getDOMNode(bs);if(br==null){return}br.className=bt.getAttribute(this.ATTR_VALUE)};this.processMethodSetFocus=function(bt){var bv=bt.parentNode;var bu;if(bv.getAttribute(ab)!=null){var br=":lst:"+bv.getAttribute(aX)+":"+bv.getAttribute(ab)+":"+bv.getAttribute(this.ATTR_ID)+":";bu=bt.getElementsByTagName(this.PARAM_NODE_TEXT);br+=(bu[0].getAttribute(this.ATTR_VALUE)-1);switch(bu.length){case 1:AWS.AWSCTRLSCRIPT.focusObject("",br,"");break;case 2:AWS.AWSCTRLSCRIPT.focusObject(bu[1].getAttribute(this.ATTR_VALUE),br,"");break}}else{var bs;bu=bt.getElementsByTagName(this.PARAM_NODE_TEXT);switch(bu.length){case 0:AWS.AWSCTRLSCRIPT.focusObject("",bv.getAttribute(this.ATTR_ID),"");break;case 1:bs=bu[0].getAttribute(this.ATTR_NAME);switch(bs){case az:AWS.AWSCTRLSCRIPT.focusObject("",bv.getAttribute(this.ATTR_ID),bu[0].getAttribute(this.ATTR_VALUE));break;case C:AWS.AWSCTRLSCRIPT.focusObject(bu[0].getAttribute(this.ATTR_VALUE),bv.getAttribute(this.ATTR_ID),"");break}break;case 2:AWS.AWSCTRLSCRIPT.focusObject(bu[1].getAttribute(this.ATTR_VALUE),bv.getAttribute(this.ATTR_ID),bu[0].getAttribute(this.ATTR_VALUE));break}}};this.processMethodStopPeriodicEvt=function(bs){var bu=bs.parentNode;var bt;if(bu.getAttribute(ab)!=null){bt=bs.getElementsByTagName(this.PARAM_NODE_TEXT);var br=bt[1].getAttribute(this.ATTR_VALUE);if(br==-1){br=0}switch(bt.length){case 2:AWS.AWSAJAX.AjaxRequestManager.stopAWSAjaxRequest({form:document.forms[0].name,obj:bu.getAttribute(this.ATTR_ID),evt:bt[0].getAttribute(this.ATTR_VALUE).toUpperCase(),lst:bu.getAttribute(ab),row:br-1});break;case 3:AWS.AWSAJAX.AjaxRequestManager.stopAWSAjaxRequest({form:bt[2].getAttribute(this.ATTR_VALUE).toUpperCase(),obj:bu.getAttribute(this.ATTR_ID),evt:bt[0].getAttribute(this.ATTR_VALUE).toUpperCase(),lst:bu.getAttribute(ab),row:br-1});break}}else{bt=bs.getElementsByTagName(this.PARAM_NODE_TEXT);switch(bt.length){case 1:AWS.AWSAJAX.AjaxRequestManager.stopAWSAjaxRequest({form:document.forms[0].name,obj:bu.getAttribute(this.ATTR_ID),evt:bt[0].getAttribute(this.ATTR_VALUE).toUpperCase()});break;case 2:AWS.AWSAJAX.AjaxRequestManager.stopAWSAjaxRequest({form:bt[1].getAttribute(this.ATTR_VALUE).toUpperCase(),obj:bu.getAttribute(this.ATTR_ID),evt:bt[0].getAttribute(this.ATTR_VALUE).toUpperCase()});break}}};this.evalScripts=function(bu){var br=bu.length,bt;for(var bs=0;bs<br;bs++){bt="AWS.AWSAJAX.AjaxRequestManager.ajaxCtx = true;"+bu[bs]+"AWS.AWSAJAX.AjaxRequestManager.ajaxCtx = false;";if(window.execScript){window.execScript(bt)}else{window["eval"](bt)}}};this.getDOMNode=function(bv){var bu=bv.getAttribute(this.ATTR_ID);var bs,br,bt;if(bu==null){return null}bs=document.getElementById(bu);if(bs==null){return null}br=AWS.AWSGLOBALS.adel_GetFormObj(bs);bt=bv.getAttribute(I);if(br!=null){if(bt==br.name){return bs}else{return document.forms[bt].elements[bu]}}else{if(bt==""){return bs}else{return null}}};this.existOrderNodeRefresh=function(bs){var bu;var br=bs.length;for(var bt=0;bt<br;bt++){bu=bs[bt].getAttribute(this.ATTR_NAME);if((bu!=null)&&(bu==Y)){return bs[bt]}}return null};this.processRefreshZoneOrder=function(bu){var bz=bu.parentNode;var bA=document.getElementById(this.PREFIXE_ZONE+bz.getAttribute(this.ATTR_ID));var by;if(bA!=null){by=aZ();if((by==null)||!AWS.AWSGLOBALS.adel_HasAncestor(by,bA)){by=null}var bs=bu.firstChild?bu.firstChild.nodeValue:"";bA.innerHTML=this.stripScripts(bs);this.execScriptsInHTML(bs);if(by!=null){ak(by)}}else{var bw=document.getElementById(aD+bz.getAttribute(this.ATTR_ID));var bt=document.getElementById(bp+bz.getAttribute(this.ATTR_ID));if((bw==null)||(bt==null)){return}var bx=bw.parentNode;var br;by=aZ();if(by!=null){var bv=childOfAncestor=by.parentNode;while((bv!=bx)&&(bv!=null)){childOfAncestor=bv;bv=bv.parentNode}if(bv==bx){br=bw.nextSibling;while(br!=bt){if(br==childOfAncestor){break}br=br.nextSibling}if(br==bt){by=null}}else{by=null}}var bs=bu.firstChild?bu.firstChild.nodeValue:"";x(D(bx,this.stripScripts(bs)));br=bw.nextSibling;while(br!=bt){br=br.nextSibling;bx.removeChild(br.previousSibling)}bx.insertBefore(a4,bt);this.execScriptsInHTML(bs);if(by!=null){ak(by)}}};N()}function a(U,G,Q){var ad=0;var v=1;var n=2;var h=3;var L=4;var F=5;var C=6;var T=7;var M=8;var X="PROGRESS_INDICATOR_CLASS";var P="PROGRESS_INDICATOR_POSITION";var S="PROGRESS_INDICATOR_WAIT_IMG";var ac="PROGRESS_INDICATOR_LOADING_IMG";var k="PROGRESS_INDICATOR_TITLE";var s="PROGRESS_INDICATOR_SHOW_ALL_STARTED_REQUEST";var l=F;var u="/AWSResources/AWSAjaxWait.gif";var H="/AWSResources/AWSAjaxLoading.gif";var o="Loading...";var z="N";var D=this;var J=null;var x="ProgressAWSIFrame";var V="AWSProgressTable";var r=new Image();var B=new Image();var I;var W;var y;var ab=null;var R=0;var Y,m;var E;var N=Q;function A(){if(J.iframe.style.visibility=="hidden"){return}t()}function aa(){if(J.iframe.style.visibility=="hidden"){return}if(!AWS.AWSGLOBALS.ie){t()}else{if(ab!=null){clearTimeout(ab)}ab=setTimeout(Z,50)}}function Z(){ab=null;if(J.iframe.style.visibility=="hidden"){return}t()}function q(){if(J==null){var ae='<iframe id="'+x+'" name="'+x+'" style="visibility:hidden;position:absolute;top:0px;left:0px;width:100px;height:100px" class="AWSAjaxProgressIndicator'+(I!=""?" "+I:"")+'" src="'+AWS.AWSGLOBALS.AWSRESOURCES_DIR_PATH+'AWSAjaxProgress.html" frameborder="0" allowTransparency="true"';ae+=' onload="AWS.AWSAJAX.AjaxRequestManager.getProgressIndicator().setTitle()"';ae+="></iframe>";document.write(ae);J=new Object();J.iframe=document.getElementById(x);AWS.AWSGLOBALS.addEventHandler(window,"resize",aa,false);if(AWS.AWSGLOBALS.ie){if((AWS.AWSGLOBALS.BrowserDetect.version>=7)&&(document.compatMode!="BackCompat")){J.iframe.style.position="fixed"}else{J.iframe.style.position="absolute";AWS.AWSGLOBALS.addEventHandler(window,"scroll",A,false)}}else{J.iframe.style.position="fixed"}}}function O(){var af=J.table.tBodies[0].rows;for(var ae=0;ae<N;ae++){if(af[ae].getAttribute("invis")=="false"){return false}}return true}function p(ag,aj){var ai;var ah=J.table.tBodies[0].rows.length;if((ah>0)&&(aj<=ah)){ai=J.table.tBodies[0].rows[0].cloneNode(true);ai.id=ag.id;ai.setAttribute("invis",""+ag.invisible);ai.firstChild.firstChild.src=Y;J.table.tBodies[0].insertBefore(ai,J.table.tBodies[0].rows[aj-1])}else{ai=J.table.tBodies[0].insertRow(-1);ai.id=ag.id;ai.setAttribute("invis",""+ag.invisible);var ae=ai.insertCell(-1);ae.setAttribute("align","center");var af='<img src="'+Y+'" />';ae.innerHTML=af}if(!E&&(R+1>N)){ai.style.display="none"}K();t();R++}function w(af){var ag=J.docIFrame.getElementById(af.id);var ah=ag.style.display;var ae=ag.sectionRowIndex;J.table.tBodies[0].deleteRow(ae);if(!E&&(ah=="")&&(R>1)){while(ae<J.table.tBodies[0].rows.length){if(J.table.tBodies[0].rows[ae].style.display=="none"){J.table.tBodies[0].rows[ae].style.display="";break}ae++}}R--;if(R>0){K();t()}}function K(){J.iframe.style.width=J.table.offsetWidth+"px";J.iframe.style.height=J.table.offsetHeight+"px"}function t(){switch(W){case ad:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left=Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top="0px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left=Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top="0px"}else{J.iframe.style.left=document.documentElement.scrollLeft+Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.documentElement.scrollTop+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+Math.floor((document.body.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.body.scrollTop+"px"}}}break;case v:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left=Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left=Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}else{J.iframe.style.left=document.documentElement.scrollLeft+Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.documentElement.scrollTop+document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+Math.floor((document.body.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.body.scrollTop+document.body.clientHeight-J.iframe.offsetHeight+"px"}}}break;case n:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left=document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left=document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}else{J.iframe.style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.documentElement.scrollTop+Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+document.body.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.body.scrollTop+Math.floor((document.body.clientHeight-J.iframe.offsetHeight)/2)+"px"}}}break;case h:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left="0px";J.iframe.style.top=Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left="0px";J.iframe.style.top=Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}else{J.iframe.style.left=document.documentElement.scrollLeft+"px";J.iframe.style.top=document.documentElement.scrollTop+Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+"px";J.iframe.style.top=document.body.scrollTop+Math.floor((document.body.clientHeight-J.iframe.offsetHeight)/2)+"px"}}}break;case L:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left=Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left=Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}else{J.iframe.style.left=document.documentElement.scrollLeft+Math.floor((document.documentElement.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.documentElement.scrollTop+Math.floor((document.documentElement.clientHeight-J.iframe.offsetHeight)/2)+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+Math.floor((document.body.clientWidth-J.iframe.offsetWidth)/2)+"px";J.iframe.style.top=document.body.scrollTop+Math.floor((document.body.clientHeight-J.iframe.offsetHeight)/2)+"px"}}}break;case F:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left=document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top="0px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left=document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top="0px"}else{J.iframe.style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.documentElement.scrollTop+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+document.body.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.body.scrollTop+"px"}}}break;case C:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left="0px";J.iframe.style.top="0px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left="0px";J.iframe.style.top="0px"}else{J.iframe.style.left=document.documentElement.scrollLeft+"px";J.iframe.style.top=document.documentElement.scrollTop+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+"px";J.iframe.style.top=document.body.scrollTop+"px"}}}break;case T:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left=document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left=document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}else{J.iframe.style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.documentElement.scrollTop+document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+document.body.clientWidth-J.iframe.offsetWidth+"px";J.iframe.style.top=document.body.scrollTop+document.body.clientHeight-J.iframe.offsetHeight+"px"}}}break;case M:if(!AWS.AWSGLOBALS.ie){J.iframe.style.left="0px";J.iframe.style.top=document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){if(J.iframe.style.position=="fixed"){J.iframe.style.left="0px";J.iframe.style.top=document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}else{J.iframe.style.left=document.documentElement.scrollLeft+"px";J.iframe.style.top=document.documentElement.scrollTop+document.documentElement.clientHeight-J.iframe.offsetHeight+"px"}}else{if(document.body){J.iframe.style.left=document.body.scrollLeft+"px";J.iframe.style.top=document.body.scrollTop+document.body.clientHeight-J.iframe.offsetHeight+"px"}}}break}}function j(ag,af){var ae;if(!AWS.AWSGLOBALS.BodyStartLoading.isExecuted){AWS.AWSGLOBALS.BodyStartLoading.addExec(q,D)}else{AWS.AWSGLOBALS.BodyLoaded.addExec(q,D)}I="";W=l;Y=AWS.AWSGLOBALS.AWSCONTEXT_PATH+u;m=AWS.AWSGLOBALS.AWSCONTEXT_PATH+H;y=o;E=(z=="Y"?true:false);if(ag!=null){ae=ag.getString(X);if((ae!=null)&&(ae!="")){I=ae}ae=ag.getString(P);if(ae!=null){ae=parseInt(ae,10);if(!isNaN(ae)){W=ae}}ae=ag.getString(S);if(ae!=null){Y=AWS.AWSGLOBALS.AWSCONTEXT_PATH+(ae.charAt(0)=="/"?ae:"/"+ae)}ae=ag.getString(ac);if(ae!=null){m=AWS.AWSGLOBALS.AWSCONTEXT_PATH+(ae.charAt(0)=="/"?ae:"/"+ae)}ae=ag.getString(s);if((ae!=null)&&(ae!="")){E=(ae=="Y"?true:false)}}if(af!=null){ae=af.getString(k);if(ae!=null){y=ae}}B.onerror=function(){throw new Error("[ProgressIndicatorCreator-pv_init]Error on load "+B.src+" image file")};B.src=Y;r.onerror=function(){throw new Error("[ProgressIndicatorCreator-pv_init]Error on load "+B.src+" image file")};r.src=m}this.addRequestObj=function(ae,af){p(ae,af);if(!E){if(!ae.invisible&&(R<=N)){if(J.iframe.style.visibility=="hidden"){J.iframe.style.visibility="visible"}}}else{if(J.iframe.style.visibility=="hidden"){J.iframe.style.visibility="visible"}}};this.removeRequestObj=function(ae){w(ae);if(R==0){J.iframe.style.visibility="hidden"}};this.startRequestObj=function(ae){var af=J.docIFrame.getElementById(ae.id);if(!E){if(!ae.invisible){if(J.iframe.style.visibility=="hidden"){J.iframe.style.visibility="visible"}}else{if(J.iframe.style.visibility=="visible"){if(N==1){J.iframe.style.visibility="hidden"}else{if(O()){J.iframe.style.visibility="hidden"}}}}}af.cells[0].firstChild.src=m};this.setTitle=function(){if(document.all){J.docIFrame=J.iframe.contentWindow.document}else{J.docIFrame=J.iframe.contentWindow.document}J.table=J.docIFrame.getElementById(V);J.table.tHead.rows[0].cells[0].innerHTML=y};j(U,G)}return{AjaxRequestManager:new e()}}()};
