var __confirm=function(b){var l=function(e){function h(a){if(!a)return alert("UI load error."),!1;var b=document.createElement("div");document.body.insertBefore(b,document.body.firstChild);b.innerHTML=a;return!0}var g=function(){var a=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");a.open("GET",b.ESVS.SRCPath+"unisignweb/rsrc/layout/confirm.html?version="+b.ver,!1);a.send(null);return a.responseText},c=function(){var a=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");a.open("GET",b.ESVS.SRCPath+"unisignweb/rsrc/lang/"+b.ESVS.Language+"/notice_"+b.ESVS.Language+".js?version="+b.ver,!1);a.send(null);return a.responseText},d=b.ESVS.TabIndex;return function(){var a=b.CustomEval(g),f=b.CustomEval(c,!0);h(a());a=document.getElementById("us-confirm-lbl-title");a.appendChild(document.createTextNode(f.IDS_NOTICE));a.setAttribute("tabindex",d,0);if(a=e.args.msg){var k=document.getElementById("us-confirm-lbl");k.innerHTML=a;k.setAttribute("tabindex",d+1,0)}a=document.getElementById("us-confirm-confirm-btn");a.setAttribute("value",f.IDS_CONFIRM,0);a.setAttribute("title",f.IDS_CONFIRM+f.IDS_BUTTON,0);a.setAttribute("tabindex",d+2,0);a.onclick=function(){e.onConfirm()};a=document.getElementById("us-confirm-cancel-btn");a.setAttribute("value",f.IDS_CANCEL,0);a.setAttribute("title",f.IDS_CANCEL+f.IDS_BUTTON,0);a.setAttribute("tabindex",d+3,0);a.onclick=function(){e.onCancel()};a=document.getElementById("us-confirm-cls-img-btn");a.setAttribute("title",f.IDS_NOTICE_CLOSE,0);a.setAttribute("tabindex",d+4,0);a.onclick=function(){e.onCancel()};document.getElementById("us-confirm-cls-btn-img").setAttribute("src",b.ESVS.SRCPath+"unisignweb/rsrc/img/x-btn.png",0);return document.getElementById("us-div-confirm")}()};return function(e){var h=b.uiLayerLevel,g=b.uiUtil().getOverlay(h),c=l({type:e.type,args:e.args,onConfirm:e.onConfirm,onCancel:e.onCancel});c.style.zIndex=h+1;b.ESVS.TargetObj.insertBefore(g,b.ESVS.TargetObj.firstChild);var d=window.onresize;return{show:function(){b.ActiveUI=this;draggable(c,document.getElementById("us-div-confirm-title"));g.style.display="block";b.uiUtil().offsetResize(c);window.onresize=function(){b.uiUtil().offsetResize(c);d&&d()};b.uiLayerLevel+=10;b.ESVS.TabIndex+=30;setTimeout(function(){var a=c.getElementsByTagName("p");if(0<a.length)for(var b=0;b<a.length;b++)"us-confirm-lbl-title"==a[b].id&&a[b].focus()},10)},hide:function(){g.style.display="none";c.style.display="none"},dispose:function(){window.onresize=function(){d&&d()};c.parentNode.parentNode.removeChild(c.parentNode);g.parentNode.removeChild(g);b.uiLayerLevel-=10;b.ESVS.TabIndex-=30}}}};