var __certexport=function(a){var m=function(f){function l(a,c,b){if(a&&c&&b){var d=f.args.authNum;d&&13==d.length&&(a.value=d.substring(0,4),c.value=d.substring(4,8),b.value=d.substring(8,13))}}function g(d){if(d){var c=f.args.qrCodeData;if(c){var b=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");b.open("GET",a.ESVS.SRCPath+"unisignweb/framework/qrcode.min.js?version="+a.ver,!1);b.send(null);eval(b.responseText);new QRCode(d,{text:c,width:160,height:160,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRCode.CorrectLevel.L})}}}var e=function(){var d=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");d.open("GET",a.ESVS.SRCPath+"unisignweb/rsrc/layout/certexport.html?version="+a.ver,!1);d.send(null);return d.responseText};return function(){var d=a.CustomEval(e),c=a.transferLang();a.ESVS.TargetObj.innerHTML=d();d=document.getElementById("unicrsv3-export");d.style.backgroundImage="url("+a.ESVS.SRCPath+"unisignweb/rsrc/img/main_bg.jpg)";document.getElementById("unicrsv3-title").appendChild(document.createTextNode(c.IDS_TRANS_TITLE));var b=document.getElementById("unicrsv3-log");b.setAttribute("alt",c.IDS_TRANS_LOGO,0);b.setAttribute("src",a.ESVS.SRCPath+"unisignweb/rsrc/img/main_title.jpg",0);document.getElementById("unicrsv3-code-text").appendChild(document.createTextNode(c.IDS_TRANS_CODE));b=document.getElementById("unicrsv3-auth1");b.readOnly=!0;var h=document.getElementById("unicrsv3-auth2");h.readOnly=!0;var k=document.getElementById("unicrsv3-auth3");k.readOnly=!0;l(b,h,k);0==a.ESVS.useQRCode?(b=document.getElementById("unicrsv3-qrcode"),b.style.display="none",b.style.visibility="hidden",document.getElementById("unicrsv3-export").style.height="310px"):(document.getElementById("unicrsv3-qrcode-text").appendChild(document.createTextNode(c.IDS_TRANS_EXPORT_QRCODE)),b=document.getElementById("unicrsv3-qrcode-target"),g(b));b=document.getElementById("unicrsv3-noti-title");h=document.getElementById("unicrsv3-noti-sub1");k=document.getElementById("unicrsv3-noti-sub2");a.ESVS.g2b?(b.appendChild(document.createTextNode(c.IDS_TRANS_G2B_NOTI_TITLE)),h.appendChild(document.createTextNode(c.IDS_TRANS_G2B_EXPORT_NOTI_SUB_1)),k.appendChild(document.createTextNode(c.IDS_TRANS_G2B_EXPORT_NOTI_SUB_2))):a.ESVS.toss?(b.style.display="none",h.appendChild(document.createTextNode(c.IDS_TRANS_TOSS_EXPORT)),d.style.height="250px"):(b.appendChild(document.createTextNode(c.IDS_TRANS_NOTI_TITLE)),h.appendChild(document.createTextNode(c.IDS_TRANS_NOTI_SUB_1)),k.appendChild(document.createTextNode(c.IDS_TRANS_EXPORT_NOTI_SUB_2)));(b=document.getElementById("unicrsv3-ver-text"))&&b.appendChild(document.createTextNode("Version ( UI : "+a.ver+", Server : "+a.nimVersion+" )"));b=document.getElementById("unicrsv3-cancel");b.setAttribute("value",c.IDS_TRANS_CANCEL,0);b.setAttribute("title",c.IDS_TRANS_CANCEL+c.IDS_TRANS_BUTTON,0);b.onclick=function(){f.onCancel()};return d}()};return function(f){var l=a.uiLayerLevel,g=a.uiUtil().getOverlay(l),e=m({type:f.type,args:f.args,onConfirm:f.onConfirm,onCancel:f.onCancel});e.style.zIndex=l+1;document.body.insertBefore(g,document.body.firstChild);return{show:function(){draggable(e,document.getElementById("unicrsv3-title"));g.style.display="block";e.style.top=a.uiUtil().getScrollTop()+(a.uiUtil().getViewportHeight()-a.uiUtil().getNumSize(a.uiUtil().getStyle(e,"height","height")))/3+"px";e.style.left=a.uiUtil().getScrollLeft()+(a.uiUtil().getViewportWidth()-a.uiUtil().getNumSize(a.uiUtil().getStyle(e,"width","width")))/2+"px";e.style.display="block";a.uiLayerLevel+=10;a.ESVS.TabIndex+=20;setTimeout(function(){var a=e.getElementsByTagName("input");if(0<a.length)for(var c=0;c<a.length;c++)"unicrsv3-cancel"==a[c].id&&a[c].focus()},100)},hide:function(){g.style.display="none";e.style.display="none"},dispose:function(){var d=e.parentNode;d&&d.removeChild(e);g&&g.parentNode.removeChild(g);a.uiLayerLevel-=10;a.ESVS.TabIndex-=20}}}};