function ha(){return function(){}}function la(a){return function(){return a}}var M="dspf",ma="dspfDesigner0",na="OFF";var oa=0,xa=-20,Ba=[],Da=[];M=="genie"&&window.history.forward(1);window.pui={};var Ea=navigator.userAgent.toLowerCase();pui.is_ie=false;pui.is_opera=Ea.indexOf("opera")!=-1||Ea.indexOf("opr/")!=-1;pui.is_chrome=Ea.indexOf("chrome")!=-1;pui.is_safari=!pui.is_chrome&&Ea.indexOf("safari")!=-1;pui.is_firefox=Ea.indexOf("firefox")!=-1;pui.is_android=Ea.indexOf("android")!=-1;pui.is_quirksmode=document.compatMode=="BackCompat";var Fa,Ga,Ha,Ka;Fa=/trident\/([0-9]{1,}[.0-9]{0,})/;Ka=Fa.exec(Ea);
if(Ka!=null)Ga=parseFloat(Ka[1]);if(!pui.is_opera){Fa=/msie ([0-9]{1,}[.0-9]{0,})/;Ka=Fa.exec(Ea);if(Ka!=null)Ha=parseFloat(Ka[1])}if(Ga||Ha){pui.is_ie=true;pui.ie_mode=Ha||Ga+4;if(pui.ie_mode<11)pui.is_old_ie=true;pui.ie_version=Ga?Ga+4:Ha}pui.secLevel=0;pui.rb=null;pui.ig=null;pui.jg=null;pui.defaultDateFormat="MM/DD/YY";pui.is_touch="ontouchstart"in window;pui.touchDevice=pui.is_touch;pui.is_mouse_capable=false;pui.designer={};pui.designer["initial keywords"]=[];pui.designer.oq={};pui.ide={};
pui.cnv={};pui.cnv.Kq={};pui.toolbox={};pui.toolbox.add=ha();pui["field exit key"]=107;pui["no connection status"]=false;pui["client side timeout"]=true;pui.Aj={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*MDY":5,"*DMY":6,"*YMD":7,"*JUL":8,"*JOB":10};pui.Bj={"/":1,"-":2,".":3,",":4," ":5,"*BLANK":5,"*JOB":7};pui.Cj={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*HMS":9};pui.Dj={".":3,",":4," ":5,"*BLANK":5,":":6,"*JOB":7};pui.N=false;pui.wq=null;pui["function key pattern"]="^(F|CA|CF|CK|CMD)([0-9]{1,2})([=:-])(.*)$";window.pui||(window.pui={});window.pui.version="5.3.2";function La(a){var b;if(!a)a=window.event;if(a.touches!=null&&a.touches.length==1)return a.touches[0].target;if(a.target)b=a.target;else if(a.srcElement)b=a.srcElement;if(b.nodeType==3)b=b.parentNode;return b}function Ma(a){if(!a)a=window.event;if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(a.preventDefault){a.cancelBubble=true;a.preventDefault()}}
function Na(a){if(pui.is_old_ie&&pui.ie_mode>=5){a.cancelBubble=true;a.returnValue=false;a.preventDefault&&a.preventDefault();a.stopPropagation&&a.stopPropagation()}else{a.preventDefault();a.stopPropagation()}}function Oa(a){for(var b=Array(256),c=0;c<=255;c++)b[c]=c;if(!a)a=window.event;Pa(b,a)}
function Qa(a){var b;if(typeof a=="string")a=Ra(a);if(a==null)return-1;if(a.tagName!="INPUT"||!pui.Oe(a))return-1;if(document.selection!=null){if(a==null)a=document.activeElement;b=document.selection.createRange()}var c=0;if(a!=null&&b!=null&&a.createTextRange!=null)try{var d=a.createTextRange();if(d){for(;b.compareEndPoints("StartToStart",d)>0;){d.moveStart("character",1);c++}return c}}catch(f){return-1}else if(a!=null)try{if(a.selectionStart!=null)return a.selectionStart}catch(g){}return-1}
function Sa(){if(Ta==null)return false;if(Ta.designer==null)return false;return true}function Ua(a,b){var c,d="",f="",g,k=false;if(a.hd()!=200){c="HTTP "+a.hd();d=a.zk()+"."}else{k=a.$b().indexOf("<?xml")!=-1;if(k==false)try{g=eval("("+a.$b()+")");if(g.success!=true){c=g.errorId;d=g.errorText;f=g.errorText2}}catch(l){c="CPF9897";d="The server response is missing or invalid."}}if(c!=null){Da.push({Do:b,id:c,text:d,Vp:f});return false}else return k==true?a.$b():g.response}
function Va(a,b){var c=document.createElement("div");c.style.position="absolute";c.style.borderStyle="none";c.style.backgroundColor="transparent";c.innerHTML='<label for="'+a.id+'">'+b+"</label>";c.style.zIndex=a.currentStyle?a.currentStyle.zIndex:window.getComputedStyle?document.defaultView.getComputedStyle(a,null).getPropertyValue("z-index"):20;var d,f,g=a.offsetWidth;if(g<20)g=20;a.be=null;if(pui.Cb(a.style.top)||pui.Cb(a.style.left)||pui.Cb(a.style.bottom)||pui.Cb(a.style.right)){f=a.offsetTop;
d=a.offsetLeft;if(a.parentNode.getAttribute("container")=="true")a.be=function(){c.style.left=a.offsetLeft+g+"px";c.style.top=a.offsetTop+"px"}}else{d=parseInt(a.style.left);if(isNaN(d))d=0;f=parseInt(a.style.top);if(isNaN(f))f=0}c.style.left=d+g+"px";c.style.top=f+"px";c.style.zIndex=a.style.zIndex;c.style.visibility=a.style.visibility;c.style.color=a.style.color;c.style.fontFamily=a.style.fontFamily;c.style.fontSize=a.style.fontSize;c.style.fontStyle=a.style.fontStyle;c.style.fontWeight=a.style.fontWeight;
c.style.backgroundColor=a.style.backgroundColor;c.style.cursor=a.style.cursor?a.style.cursor:"pointer";c.Rq=true;a.Nc=c;a.Yb=[];a.Yb.push(c);a.parentNode.appendChild(c)}pui.Th=function(a,b){var c=a[b];if(c==null){var d=b.split(" "),f=Number(d[d.length-1]);if(!isNaN(f)&&f>0){d.pop();d=a[d.join(" ")];if(d!=null){c={};for(var g in d){f=d[g];if(g=="name")c.name=b;else if(typeof f=="object"&&f.length!=null){c[g]=[];for(var k=0;k<f.length;k++)c[g].push(f[k])}else c[g]=d[g]}}}}return c};
pui.xc=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1};pui.fq=function(a,b){for(var c=0;c<a.length;c++)b(a[c])};pui.qd=function(a,b){if(b==null)b=0;var c=parseInt(a,10);if(isNaN(c))c=b;return c};
pui.Mc=function(){var a={9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Esc",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",3:"Enter",63234:"Left",63235:"Right",63232:"Up",63233:"Down",63276:"Page Up",63277:"Page Down",63272:"Delete",63273:"Home",63275:"End"},b={8:"Backspace",9:"Tab",13:"Enter",27:"Esc",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",46:"Delete"},c=!/webkit/.test(navigator.userAgent.toLowerCase())&&
/gecko/.test(navigator.userAgent.toLowerCase());if(pui.is_ie)c=false;return function(d,f){var g=String.fromCharCode(d.charCode||d.keyCode);d.ctrlKey||c&&b[d.keyCode]||!c&&a[d.keyCode]&&!g||f.test(g)||Ma(d)}}();
function Pa(a,b){if(M=="genie"&&pui.K.Dq(b)!="")return true;if(M=="dspf"){var c;a:{c=b.keyCode;for(var d=0;d<a.length;d++)if(a[d]==c)if(!(b.Qc&&Event.wf)){c=true;break a}Na(b);c=false}return c}var f,g;c=b.keyCode;d=b.target||b.srcElement;var k=pui.Oe(d);if(pui.K.Ab){if(pui.K.config.uq){if(b.Qc)f=b.Qc&&Event.wf;if(!b.Qc)f=b.shiftKey;f?keyAhead.record("shift"+c):keyAhead.record(c)}Na(b);return false}lastActiveElement=d;if(c==9){if(b.Qc)f=b.Qc&&Event.wf;if(!b.Qc)f=b.shiftKey;if(f=f?goPrev(d,0,true):
goNext(d,true)){Na(b);return false}}if(c==35&&k)if(d.value!=Wa(d.value))d.value=Wa(d.value);if(c==37)if(k){g=Qa(d);if(g==0){goPrev(d);Na(b);return false}}else if(d.tagName!="TEXTAREA"){goPrev(d);Na(b);return false}if(c==38&&d.tagName!="SELECT"&&d.tagName!="TEXTAREA")if(d.Ub==null||d.Ub.gi()==false)if(!pui.K.config.dn){goUp(d);Na(b);return false}if(c==39)if(k){maxLength=Number(d.getAttribute("maxLength"));g=Qa(d);f=d.value.length;if(g>=f){goNext(d);Na(b);return false}}else if(d.tagName!="TEXTAREA"){goNext(d);
Na(b);return false}if(c==40&&d.tagName!="SELECT"&&d.tagName!="TEXTAREA")if(d.Ub==null||d.Ub.gi()==false)if(!pui.K.config.dn){goDown(d);Na(b);return false}if(k&&pui.oo(b)){pui.Pg(d);Xa(d);Na(b);return false}if(c==109&&k){pui.Pg(d);if(Xa(d,true)){Na(b);return false}}if(b.ctrlKey==true&&(c==67||c==86))return true;for(d=0;d<a.length;d++)if(a[d]==c)if(!(b.Qc&&Event.wf))return true;Na(b);return false}
function Xa(a,b){if(a.readOnly==true)return false;var c,d=false,f=a.getAttribute("signedNumeric");if(b&&(f==null||f!="Y"))return false;c=a.vh;if(pui.is_touch&&!pui.is_mouse_capable)c=Qa(a);if(c==null)return false;if(c<0)return false;if(c>=0){a.value=a.value.substr(0,c);c=a.getAttribute("blankFill");if(f!=null&&f=="Y")c="Y";if(c!=null&&c=="Y"){d=true;fill="                                                                                "}c=a.getAttribute("zeroFill");if(c!=null&&c=="Y"){d=true;fill=
"00000000000000000000000000000000000000000000000000000000000000000000000000000000"}c=a.getAttribute("maxLength");if(d&&c!=null){d=fill+Ya(a.value);d=d.substr(d.length-c);if(f!=null&&f=="Y")if(d.substr(d.length-1)!="-"){d+=b?"-":" ";d=d.substr(1)}a.value=d}}goNext(a);return true}
pui.Qj=function(a){if(!(pui.is_touch&&!pui.is_mouse_capable||pui.Z))if(pui.Ue==null)if(pui.confirmOnClose&&!pui.skipConfirm)if(!(M=="genie"&&pui.Sq())){for(var b=window;b!=null&&b!=b.parent;){b=b.parent;if(pui.Dd(b))return;try{if(typeof b.pui!="undefined")return}catch(c){}}if(M=="genie"||!Sa()||recordFormats.isDirty()){b=pui.$j?pui.closeMessage:pui.getLanguageText("runtimeMsg","closeMessage");if(M=="genie"&&pui.K.config.closeMessage!=null&&pui.K.config.closeMessage!="")b=pui.K.config.closeMessage;
return a.returnValue=b}}};pui.unload=function(){if(pui.shutdownOnClose&&pui.Ue==null){pui.Sk();var a;a=pui.K==null?Za("PUI0001200.pgm"):Za("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")a+="/"+pui.psid;navigator!=null&&typeof navigator.sendBeacon=="function"?navigator.sendBeacon(a,"shutdown=1"):$a({url:a,method:"post",Sp:true,params:{shutdown:"1"}});pui.shutdownOnClose=false}};
pui.Nj=function(){if(window.attachEvent){window.attachEvent("onbeforeunload",pui.Qj);window.attachEvent("onunload",pui.unload)}else if(window.addEventListener){window.addEventListener("beforeunload",pui.Qj,false);window.addEventListener("unload",pui.unload,false)}};
pui.pk=function(a,b,c){var d=document.createElement("form");d.action=Za("PUI0009106.pgm")+"?contentType="+a+"&fileName="+b;d.method="post";a=ab("input","data");a.type="hidden";a.value=c;d.appendChild(a);document.body.appendChild(d);pui.skipConfirm=true;d.submit();setTimeout(function(){d.parentNode.removeChild(d);pui.skipConfirm=false},0)};
pui.Y=function(a,b){var c=a.className;if(c==null)c="";c=c.split(" ");for(var d=[],f=0;f<c.length;f++){if(c[f]==b)return;c[f]!=""&&d.push(c[f])}d.push(b);a.className=d.join(" ")};pui.Q=function(a,b){var c=a.className;if(c!=null)if(c!=""){c=c.split(" ");for(var d=[],f=0;f<c.length;f++)c[f]!=""&&c[f]!=b&&d.push(c[f]);a.className=d.join(" ")}};
pui.vp=function(a,b){if(!(a.readOnly||a.disabled))if(!(b==null||b==null)){var c=a;if(c.comboBoxWidget!=null)c=c.comboBoxWidget.getBox();c.emptyText=b;pui.Cc(c);N(c,"focus",function(d){d=La(d);if(d.value==d.emptyText){d.value="";pui.Q(d,"empty-text")}});N(c,"blur",function(d){pui.Cc(La(d))})}};pui.Cc=function(a){if(!(a.readOnly||a.disabled))if(!(a.emptyText==null||a.emptyText==null)){if(a.value=="")a.value=a.emptyText;a.value==a.emptyText?pui.Y(a,"empty-text"):pui.Q(a,"empty-text")}};
pui.Ym=function(){function a(){pui["client side timeout"]==true&&pui.Ia.xd.reset();pui.onuseractivity!=null&&pui.onuseractivity()}if(!pui.Co)if(!(pui.onuseractivity==null&&pui["client side timeout"]!=true)){N(document.body,"keydown",a);N(document.body,"mousemove",a);N(document.body,"click",a);N(document.body,"touchstart",a);N(document.body,"touchmove",a);pui.Co=true}};pui.da={};pui.da.Vk=(new Date).getTime();pui.da.sf=false;pui.da.timeout=600;pui.da.Kk=null;
pui.da.Ip=function(){if(pui.da.sf)pui.da.reset();else if(pui["keep alive interval"]!=null){pui.da.timeout=pui["keep alive interval"];pui.da.start()}};pui.da.start=function(){if(!pui.da.sf){var a=pui.da.timeout*1E3;a/=4;if(a>3E3)a=3E3;pui.da.Kk=setInterval(pui.da.check,a);pui.da.reset();pui.da.sf=true}};pui.da.stop=function(){if(pui.da.sf){clearInterval(pui.da.Kk);pui.da.sf=false}};pui.da.reset=function(){pui.da.Vk=(new Date).getTime()};
pui.da.check=function(){if((new Date).getTime()-pui.da.Vk>=pui.da.timeout*1E3){pui.keepAlive();pui.da.reset()}};pui.Lc=function(a){if(!a)a=window.event;if(a.which!=null)if(a.which>1)return true;if(a.button!=null)if(a.button>1)return true;return false};
pui.Od=function(a){for(var b=0,c=0;a!=null;){b+=a.offsetLeft;c+=a.offsetTop;if(a.tagName!=="BODY"){b-=a.scrollLeft;c-=a.scrollTop}if(a.className=="scroller"){var d=a.style.transform;if(d==null)d=a.style.webkitTransform;if(d!=null&&typeof d=="string"&&d.substr(0,10)=="translate("){d=d.substr(10);d=d.split(")")[0];var f=d.split(",");d=f[0];f=f[1];if(d!=null&&f!=null){d=parseInt(bb(d));f=parseInt(bb(f));if(!isNaN(d)&&!isNaN(f)){b+=d;c+=f}}}}a=a.offsetParent}return[b,c]};
pui.zm=function(){this.Nm=function(b){if(typeof b.length=="undefined")b=Array(b);for(var c,d=0;d<b.length;d++){c={};for(var f in b[d])c[f.toUpperCase()]=b[d][f];a.push(c)}};this.send=function(b,c){var d="",f,g,k;k=false;for(var l;!k;){f="ProfoundUIMIMEBoundary"+Math.ceil(1E9*Math.random());l=false;for(var h=0;h<a.length;h++){g=a[h].VALUE;if(g.indexOf(f)!=-1){l=true;break}}l||(k=true)}k=f;for(l=0;l<a.length;l++){f=a[l];if(!(typeof f.NAME!="string"||typeof f.VALUE!="string")){d+="--"+k+"\r\n";d+='Content-Disposition: form-data; name="'+
f.NAME+'"';if(typeof f.FILENAME=="string"){g="application/octet-stream";if(typeof f.CONTENTTYPE=="string")g=f.CONTENTTYPE;d+='; filename="'+f.FILENAME+'"\r\n';d+="Content-Type: "+g}if(f.TRANSFERENCODING!=null)d+="\r\nContent-Transfer-Encoding: "+f.TRANSFERENCODING;d+="\r\n\r\n";d+=f.VALUE;d+="\r\n"}}d+="--"+k+"--";f=new pui.Ajax(b);f.suppressAlert=true;f.async=true;f.method="POST";f.sendAsBinary=false;f.setRequestHeader("Content-Type","multipart/form-data; boundary="+k);f.postData=d;f.onready=c;f.send()};
var a=[]};pui.ij=function(a){pui.Pg(La(a))};pui.Pg=function(a){a.vh=Qa(a)};pui.Md=function(a){for(var b=[],c="",d="",f=0,g=false,k=0;k<a.length;k++){c=a.charAt(k);if(g){if(c=="'")g=false}else{if(c=="(")f+=1;else if(c==")")f-=1;if(f<1)f=0;if(c=="'")g=true}if(c==","&&f==0&&!g){b.push(bb(d));d=""}else d+=c}b.push(bb(d));return b};
pui.Op={"database file":null,"database fields":null,"selection criteria":null,"order by":null,"custom sql":null,"name field":null,"value field":null,"summary option":null,"choices database file":null,"choice options field":null,"choice values field":null,"choices selection criteria":null};pui.ro=function(a){return typeof pui.Op[a]!="undefined"};
pui.gd=function(a){var b=M+".",c=a.id;if(M=="genie"&&a.parentNode!=pui.runtimeContainer)if(c.lastIndexOf("_W")!=-1)c=c.substr(0,c.lastIndexOf("_W")+2);b+=typeof a.parentNode.parentNode.grid=="undefined"||a.Xh?c:c.substr(0,c.lastIndexOf(".")+1)+"*";return b};
pui.fd=function(a,b){var c=a["field type"]=="textbox",d=1,f="",g="";do{f="choices parameter value";var k="parameter value";if(d>1){f+=" "+d;k+=" "+d}f=cb(a[f]);if(f=="")f=cb(a[k]);if(f!=""){k=d;if(c)k+=1;if(g!="")g+="&";g+="p"+k+"="+encodeURIComponent(f);if(b!=null)b["p"+k]=f}d++}while(f!="");if(g!="")g+="&";c=pui.Vn();d=pui.Wn();g+="datfmt="+encodeURIComponent(c.Oh);g+="&datsep="+encodeURIComponent(c.Ui);g+="&timfmt="+encodeURIComponent(d.Oh);g+="&timsep="+encodeURIComponent(d.Ui);return g};
pui.Cb=function(a){if(a==null)return false;if(typeof a!="string")return false;if(a=="")return false;if(a.substr(a.length-1,1)=="%")return true;return false};pui.Me=function(a){if(a==null)return false;if(typeof a!="string")return false;var b=Number(a);if(isNaN(b))return false;if(String(b)===a)return true;return false};pui.xk=function(a,b){if(a=="top"||a=="left"||a=="height"||a=="width")if(pui.Me(b))return b+"px";return b};
pui.Ck=function(){var a=0;if(typeof window.pageYOffset=="number")a=window.pageYOffset;else if(document.body&&document.body.scrollTop)a=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)a=document.documentElement.scrollTop;return a};pui.Ie=function(a){var b=pui.getLanguageText("runtimeMsg","no connection message");if(pui["no connection status"]==true)b+="\n"+a.Vf();return b};
pui.Vn=function(){var a=null,b=null;if(typeof pui["sql date format"]=="string")a=pui.Aj[pui["sql date format"].toUpperCase()];if(a==null)a=pui.Aj["*ISO"];if(typeof pui["sql date separator"]=="string")b=pui.Bj[pui["sql date separator"].toUpperCase()];if(b==null)b=pui.Bj["/"];return{Oh:a,Ui:b}};
pui.Wn=function(){var a=null,b=null;if(typeof pui["sql time format"]=="string")a=pui.Cj[pui["sql time format"].toUpperCase()];if(a==null)a=pui.Cj["*ISO"];if(typeof pui["sql time separator"]=="string")b=pui.Dj[pui["sql time separator"].toUpperCase()];if(b==null)b=pui.Dj[":"];return{Oh:a,Ui:b}};pui.tk=function(){var a=location.href.split("://"),b="",c="";if(a.length>1){b=a[0]+"://";a.splice(0,1);c=a.join("://")}else c=location.href;return c=b+c.split("/")[0]};
pui.Sh=function(a){var b=document.getElementsByTagName("head")[0];if(b==null)return null;var c=pui.tk();b=b.getElementsByTagName("link");for(var d=0;d<b.length;d++){var f=b[d];if(f.href==a)return f;if(f.href==c+a)return f}return null};pui.Xn=function(a){var b=document.getElementsByTagName("head")[0];if(b==null)return null;var c=pui.tk();b=b.getElementsByTagName("script");for(var d=0;d<b.length;d++){var f=b[d];if(f.src==a)return f;if(f.src==c+a)return f}return null};
pui.ha=function(a){if(typeof a!="string")return a instanceof Array?a:[];if(a=="")return[];var b;if(a.substr(0,1)=="["&&a.substr(a.length-1,1)=="]")try{b=eval(a)}catch(c){}if(b==null)b=a.split(",");return b};pui.eg=function(a){switch(a){case "number":case "date":case "datetime":case "time":case "email":case "url":case "month":case "tel":case "url":case "color":case "datetime-local":case "search":case "week":return true;default:return false}};
pui.Oe=function(a){if(a.tagName=="INPUT")if(a.type==null||a.type==""||a.type=="text"||pui.eg(a.type)||a.type=="password")return true;return false};pui.oo=function(a){a=a||window.event;var b=pui["field exit key"];return a.keyCode==b&&(!a.shiftKey||b==16)&&(!a.ctrlKey||b==17)?true:false};pui.Fk=function(a){a=a.parentNode;return a!=null&&(!pui.is_old_ie||a.nodeName!="#document-fragment")};
pui.se=function(a){if(!Sa()&&typeof a=="string"&&a.search("AUTH=")==-1){a+=a.search(/\?/)==-1?"?":"&";a+="AUTH="+encodeURIComponent(pui.appJob.auth)}return a};pui.Ug=function(a){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)};pui.p=function(a){return a!=null&&typeof a=="object"&&typeof a.fieldName=="string"};
pui.mb=function(a){return a!=null&&typeof a=="object"&&typeof a.translations=="object"&&a.translations!=null&&typeof a.translations.length=="number"};pui.Tp=function(a,b,c){if(!(!pui.is_touch||!a||!a.addEventListener))if(typeof b=="function"){if(typeof c!="number")c=750;var d;a.addEventListener("touchstart",function(f){d=setTimeout(function(){d=null;b(f)},c)},false);a.addEventListener("touchend",function(){clearTimeout(d);d=null},false)}};
pui.Nh=function(a){a.checked?a.setAttribute("checked","checked"):a.removeAttribute("checked")};pui.nm=function(a){a=""+a;a=a.replace(/&/g,"&amp;");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");return a=a.replace(/"/g,"&quot;")};pui.Dd=function(a){var b=false;try{b=typeof a.Atrium!="undefined"&&typeof a.Atrium.api!="undefined"}catch(c){}return b};pui.nd=function(){try{return localStorage!=null&&typeof window.localStorage!="undefined"?true:false}catch(a){return false}};
pui.gl=function(a){if(a.substr(0,1)=="#")a=a.toUpperCase();if(a.substr(0,4)=="rgb("&&a.substr(a.length-1,1)==")"){a=a.substr(4,a.length-5);a=a.replace(/ /g,"");var b=a.split(",");a="#";for(var c=0;c<b.length;c++){var d=Number(b[c]).toString(16).toUpperCase();if(d.length==1)d="0"+d;a+=d}}return a};pui.Xk=function(a,b){var c;if(a.stack){c=a.toString();var d=a.stack.split("\n");if(d.length>=1)c+=c.indexOf(bb(d[0]))!=0||d.length<2?" "+bb(d[0]):" "+bb(d[1])}else{if(typeof b=="string")c=b;c+=" "+a.toString()}console.log(c)};
pui.Mo=function(a){if(pui.is_chrome&&pui.Oe(a)){var b=a.value;a.value="";a.value=b}};
pui.ai=function(a,b){if(!(a===undefined||!a))if(!(a.tagName=="SPAN"&&a.className=="pui-highlight")){if(a.hasChildNodes())for(var c=0;c<a.childNodes.length;c++)pui.ai(a.childNodes[c],b);if(a.nodeType==3){var d=a.nodeValue;if(d!=null&&typeof d=="string"){for(c=d.toLowerCase();c.indexOf(String.fromCharCode(160))!=-1;)c=c.replace(String.fromCharCode(160)," ");c=c.indexOf(b.toLowerCase());if(c>=0){var f=d.substr(c,b.length);d=document.createElement("span");d.appendChild(document.createTextNode(f));d.className=
"pui-highlight";c=a.splitText(c);c.nodeValue=c.nodeValue.substring(b.length);a.parentNode.insertBefore(d,c)}}}}};pui.xn=function(a){for(a=a.getElementsByTagName("span");a.length&&(span=a[0]);){var b=span.parentNode;b.replaceChild(span.firstChild,span);b.normalize()}};
pui.Qp=function(){if(!pui.is_mouse_capable)if(pui.nd()&&localStorage["pui-is-mouse-capable"]=="true")pui.is_mouse_capable=true;else{var a=document.documentElement;if(a!=null){var b=function(){d=false},c=function(){if(d){pui.is_mouse_capable=true;pui.nd()&&localStorage.setItem("pui-is-mouse-capable","true");if(pui.ta!=null&&pui.ta.length>0)for(var f=0;f<pui.ta.length;f++){var g=pui.ta[f];if(g!=null&&typeof g.setScrollBar=="function"){if(g.d!=null){g.d.destroy=="function"&&g.d.destroy();g.d=null}g.setScrollBar()}}eb(a,
"mousedown",b);eb(a,"mousemove",c)}d=true},d=false;N(a,"mousedown",b);N(a,"mousemove",c)}}};pui.Sk=function(){if(pui.is_chrome)for(var a=document.getElementsByTagName("iframe"),b=0;b<a.length;b++){var c=a[b],d=null;try{d=c.contentWindow.pui}catch(f){}if(d!=null&&typeof d.unload==="function")d.unload();else c.src=""}};
pui.haltFrames=function(){for(var a=document.getElementsByTagName("iframe"),b=0;b<a.length;b++){var c=a[b],d=null;try{d=c.contentWindow.pui}catch(f){}d!=null&&typeof d.haltFrames==="function"&&d.haltFrames();c.src=""}};
pui.breakMessagesInit=function(){if(!(Sa()||pui["brkmsg enable"]!==true))if(!(!pui.nd()||typeof JSON!=="object"))if(!(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")){pui["brkmsg poll interval"]=Number(pui["brkmsg poll interval"]);if(isNaN(pui["brkmsg poll interval"]))pui["brkmsg poll interval"]=30;else if(pui["brkmsg poll interval"]<1)pui["brkmsg poll interval"]=1;pui["brkmsg max errors"]=Number(pui["brkmsg max errors"]);if(isNaN(pui["brkmsg max errors"]))pui["brkmsg max errors"]=
3;pui["brkmsg max messages"]=Number(pui["brkmsg max messages"]);if(isNaN(pui["brkmsg max messages"]))pui["brkmsg max messages"]=10;pui["brkmsg user timeout"]=Number(pui["brkmsg user timeout"]);if(isNaN(pui["brkmsg user timeout"]))pui["brkmsg user timeout"]=300;else if(pui["brkmsg user timeout"]<=pui["brkmsg poll interval"])pui["brkmsg user timeout"]=pui["brkmsg poll interval"]+10;pui.Af=0;pui.Rj();var a;try{a=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user))}catch(b){localStorage.setItem("brkmsgMessages_"+
pui.appJob.user,"[]")}if(window.parent==window||!pui.Dd(window.parent)){var c=document.createElement("div");c.id="pui-break-messages";c.style.zIndex=pui.Yc++;pui.runtimeContainer.appendChild(c);if(pui.nd()){eb(window,"storage",pui.ph);N(window,"storage",pui.ph);a&&pui.we(a)}}else{eb(window.parent,"storage",window.parent.Atrium.api.breakMessagesOnStorage);N(window.parent,"storage",window.parent.Atrium.api.breakMessagesOnStorage);a&&window.parent.Atrium.api.breakMessagesShow(a,pui.appJob.user)}pui.cn()}};
pui.Rj=function(){if(!pui||!pui.appJob||pui.appJob.auth.length<=0||pui.appJob.user.length<=0)return false;var a=localStorage.getItem("brkmsgActivePoller_"+pui.appJob.user),b=Number(localStorage.getItem("brkmsgLastPoll_"+pui.appJob.user));if(isNaN(b))b=0;var c=Date.now();b=c-b;var d=pui["brkmsg poll interval"]*1E3+1E4;if(a===null||b>=d&&a!==pui.appJob.auth){a=pui.appJob.auth;localStorage.setItem("brkmsgActivePoller_"+pui.appJob.user,a);localStorage.setItem("brkmsgLastPoll_"+pui.appJob.user,c)}var f;
c=false;try{f=JSON.parse(localStorage.getItem("brkmsgUserIds"))}catch(g){c=true}if(f==null||typeof f.pop!=="function"){f=[];c=true}d=[];if(pui.xc(f,pui.appJob.user)<0){d.push(pui.appJob.user);c=true}for(var k=0;k<f.length;k++)if(f[k]!==pui.appJob.user){b=Number(localStorage.getItem("brkmsgLastPoll_"+f[k]));if(isNaN(b))b=0;if(Date.now()-b>=pui["brkmsg user timeout"]*1E3){localStorage.removeItem("brkmsgLastPoll_"+f[k]);localStorage.removeItem("brkmsgActivePoller_"+f[k]);localStorage.removeItem("brkmsgMessages_"+
f[k]);c=true}else d.push(f[k])}c&&localStorage.setItem("brkmsgUserIds",JSON.stringify(d));return a===pui.appJob.auth};
pui.cn=function(){if(!(Sa()||pui["brkmsg enable"]!==true)){typeof pui.oh==="number"&&clearInterval(pui.oh);pui.oh=setInterval(function(){if(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1"||pui["brkmsg enable"]!==true)pui.qh();else{if(pui.Rj()){fb({url:"PUI0009116.PGM",method:"post",async:true,suppressAlert:true,params:{AUTH:pui.appJob.auth},onfail:function(){pui.Af++;if(pui.Af>=pui["brkmsg max errors"]){pui.qh();console.log("Stopped break-message polling; too many errors.")}},
handler:function(c){if(c==null||typeof c!=="object"||c.error){pui.Af++;pui.Af>=pui["brkmsg max errors"]&&pui.qh()}else if(c.success&&c.messages!=null&&typeof c.messages.pop==="function"&&c.messages.length>0){var d;try{d=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user))}catch(f){console.log(f)}if(d==null||typeof d.pop!=="function")d=[];d=d.concat(c.messages);if(pui["brkmsg max messages"]>0&&d.length>pui["brkmsg max messages"])d=d.slice(d.length-pui["brkmsg max messages"],d.length);
window!=window.parent&&pui.Dd(window.parent)?window.parent.Atrium.api.breakMessagesShow(d,pui.appJob.user):pui.we(d);localStorage.setItem("brkmsgMessages_"+pui.appJob.user,JSON.stringify(d))}}});localStorage.setItem("brkmsgLastPoll_"+pui.appJob.user,Date.now())}if(pui.nd()&&typeof window.addEventListener==="undefined"&&typeof JSON==="object")try{var a=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user));window!=window.parent&&pui.Dd(window.parent)?window.parent.Atrium.api.breakMessagesShow(a,
pui.appJob.user):pui.we(a)}catch(b){console.log(b)}}},pui["brkmsg poll interval"]*1E3)}};pui.qh=function(){clearInterval(pui.oh);eb(window,"storage",pui.ph)};
pui.bn=function(a){if(!(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")){a=La(a).msgIdx;var b;try{b=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user));if(b!==null&&typeof b.splice==="function")b.splice(a,1);else b=[]}catch(c){console.log(c);b=[]}localStorage.setItem("brkmsgMessages_"+pui.appJob.user,JSON.stringify(b));pui.we(b)}};
pui.we=function(a){if(!(a==null||typeof a.pop!=="function")){var b=document.getElementById("pui-break-messages");if(b){b.innerHTML="";if(a.length==0)pui.unmaskScreen();else{pui.maskScreen();pui.Yc+=2;b.style.zIndex=pui.Yc;for(var c=10,d=10,f=0;f<a.length;f++){var g=a[f];g.to=pui.appJob.user;var k=document.createElement("div");k.style.top=c+"px";k.style.left=d+"px";k.className="msg-wrap";var l=document.createElement("div");l.className="msg-titlewrap";k.appendChild(l);var h=document.createElement("div");
h.className="title";l.appendChild(h);var o=document.createElement("div");o.className="closeImg";o.msgIdx=f;l.appendChild(o);N(o,"click",pui.bn);l=document.createElement("div");l.className="msg-body";if(typeof pui.breakMessageFormat==="function"){o={title:"",body:""};pui.breakMessageFormat(g,o);h.innerHTML=o.title;l.innerHTML=o.body}else try{h.innerHTML=g.date+" "+g.time+"<br>"+g.jobNum+"/"+g.jobUserName+"/"+g.jobName;l.innerHTML=g.to+":<br>"+g.msg}catch(p){console.log(p)}k.appendChild(l);b.appendChild(k);
c+=1;d+=10}}}}};pui.ph=function(a){if(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")return false;if(a.key!=="brkmsgMessages_"+pui.appJob.user)return false;try{var b=JSON.parse(a.newValue);pui.we(b)}catch(c){console.log(c)}return false};pui.Tq=function(a){switch(a){case "subfile next changed":return true;case "subfile message key":return true;case "subfile program message queue":return true;case "selection field":return true;case "subfile changed":return true;case "row font color":return true;case "row background":return true;default:return false}};
pui.Zp=function(a){if(a!==null){var b=[];b[128]="20";b[129]="21";b[130]="22";b[131]="23";b[132]="24";b[10]="25";b[23]="26";b[27]="27";b[136]="28";b[137]="29";b[138]="2A";b[139]="2B";b[140]="2C";b[5]="2D";b[6]="2E";b[7]="2F";b[144]="30";b[145]="31";b[22]="32";b[147]="33";b[148]="34";b[149]="35";b[150]="36";b[4]="37";b[152]="38";b[153]="39";b[154]="3A";b[155]="3B";b[20]="3C";b[21]="3D";b[158]="3E";b[26]="3F";b[181]="A0";b[126]="A1";b[115]="A2";b[116]="A3";b[117]="A4";b[118]="A5";b[119]="A6";b[120]=
"A7";b[121]="A8";b[122]="A9";b[161]="AA";b[191]="AB";b[208]="AC";b[221]="AD";b[222]="AE";b[174]="AF";b[94]="B0";b[163]="B1";b[165]="B2";b[183]="B3";b[169]="B4";b[167]="B5";b[182]="B6";b[188]="B7";b[189]="B8";b[190]="B9";b[91]="BA";b[93]="BB";b[175]="BC";b[168]="BD";b[180]="BE";b[215]="BF";return b[a]}};
pui.ho=function(a){if(a==null||typeof a!="string")return[];var b=[];b["20"]=["GRN"];b["21"]=["GRN","RI"];b["22"]=["WHT"];b["23"]=["WHT","RI"];b["24"]=["GRN","UL"];b["25"]=["GRN","UL","RI"];b["26"]=["WHT","UL"];b["27"]=["ND"];b["28"]=["RED"];b["29"]=["RED","RI"];b["2A"]=["RED","HI"];b["2B"]=["RED","HI","RI"];b["2C"]=["RED","UL"];b["2D"]=["RED","UL","RI"];b["2E"]=["RED","UL","BL"];b["2F"]=["ND"];b["30"]=["TRQ","CS"];b["31"]=["TRQ","CS","RI"];b["32"]=["YLW","CS"];b["33"]=["WHT","RI","CS"];b["34"]=["TRQ",
"UL","CS"];b["35"]=["TRQ","UL","RI","CS"];b["36"]=["YLW","UL","CS"];b["37"]=["ND"];b["38"]=["PNK"];b["39"]=["PNK","RI"];b["3A"]=["BLU"];b["3B"]=["BLU","RI"];b["3C"]=["PNK","UL"];b["3D"]=["PNK","UL","RI"];b["3E"]=["BLU","UL"];b["3F"]=["ND"];b.A0=["GRN","PR"];b.A1=["GRN","RI","PR"];b.A2=["WHT","PR"];b.A3=["WHT","RI","PR"];b.A4=["GRN","UL","PR"];b.A5=["GRN","UL","RI","PR"];b.A6=["WHT","UL","PR"];b.A7=["ND","PR"];b.A8=["RED","PR"];b.A9=["RED","RI","PR"];b.AA=["RED","HI","PR"];b.AB=["RED","HI","RI","PR"];
b.AC=["RED","UL","PR"];b.AD=["RED","UL","RI","PR"];b.AE=["RED","UL","BL","PR"];b.AF=["ND","PR"];b.B0=["TRQ","CS","PR"];b.B1=["TRQ","CS","RI","PR"];b.B2=["YLW","CS","PR"];b.B3=["WHT","RI","CS","PR"];b.B4=["TRQ","UL","CS","PR"];b.B5=["TRQ","UL","RI","CS","PR"];b.B6=["YLW","UL","CS","PR"];b.B7=["ND","PR"];b.B8=["PNK","PR"];b.B9=["PNK","RI","PR"];b.BA=["BLU","PR"];b.BB=["BLU","RI","PR"];b.BC=["PNK","UL","PR"];b.BD=["PNK","UL","RI","PR"];b.BE=["BLU","UL","PR"];b.BF=["ND","PR"];return b[a]};
pui.Oj=function(a){if(a==null||typeof a!="string"||a.length<1)return[];a=pui.Zp(a.charCodeAt(0));return pui.ho(a)};pui.Jo=function(a){a=a.split("(");if(a.length!=2)return null;var b=a[0],c=a[1];if(c.substr(c.length-1,1)!=")")return null;c=c.substr(0,c.length-1);a=b.split("/");if(a.length!=2)return null;var d=a[0];b=a[1];d=bb(d).toUpperCase();if(d=="")return null;b=bb(b).toUpperCase();if(b=="")return null;c=bb(c).toUpperCase();if(c=="")return null;return{library:d,file:b,member:c}};
pui.Wm=function(a,b){var c=pui.Oc;if(!(M!="dspf"||c==null)){if(pui.P[c]!=null)for(var d in pui.P[c])for(var f=pui.P[c][d],g=0;g<f.length;g++)if(f[g]==b){f.splice(g,1);break}b.Rb=a;if(!(a==null||a=="")){if(pui.P[c]==null)pui.P[c]={};if(pui.P[c][a]==null)pui.P[c][a]=[];pui.P[c][a].push(b);if(b.onclick==null||b.T==null)pui.Zc(b)}}};pui.Rn=function(a){var b;for(a=a.parentNode;a!=null&&a!=pui.runtimeContainer;){if(a.Bb==true){b=a;break}a=a.parentNode}return b};var Ta=null,gb={},hb=null,ib=null,jb=null;pui.kj=false;
function kb(){if(hb!=null)return hb;if(pui.$j)return hb=[{name:"Identification",category:true},{name:"bound field",help:"Use this property to specify the bound field name and data type.",readOnly:true,xa:false},{name:"description",help:"Use this property to provide a text description (or comment) for the field.",bind:false},{name:"Misc",category:true},{name:"encoding",choices:["none","html","json","xml","csv"],help:"Sets the encoding type for the field. If not set, the encoding will default based on the <i>document type</i> property setting.",bind:false},
{name:"visibility",format:"1 / 0",readOnly:true,i:true,j:["indicator","expression"],help:"Determines whether the field is output or not."}];var a=["none","dotted","dashed","solid","double","groove","ridge","inset","outset"],b=["thin","medium","thick","0px","1px","2px","3px","4px","5px","Other..."],c=["auto","0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","Other..."];return hb=[{name:"Identification",category:true},{name:"id",J:"id",maxLength:75,help:"Specifies the ID of the current element.  ID's are used to access the element using CSS and JavaScript code.",
bind:false,xa:false},{name:"parent window",J:"parentWindow",help:"Sets the window that this field belongs to.",c:"genie"},{name:"screen identifier",choices:["true","false"],$c:false,help:"If set to true, this element will be used to detect the screen.  The identifier element should be a static output field that is unique to this screen.  For example, if the screen has a unique heading, it can be used as the identifier.  At least one element on the screen must be marked as an identifier before you can save the screen.  When appropriate, you can use a combination of several elements to uniquely identify the screen.",
c:"genie"},{name:"field type",choices:pui.widgets.Bk(false),$c:false,help:"Determines the type of control that is used to render the element.",bind:false,xa:false},{name:"description",help:"Use this property to provide a text description (or comment) for the element.",bind:false},{name:"button style",choices:pui.widgets.kc,help:"Identifies the look and feel of the button.",controls:["styled button"]},{name:"panel style",choices:pui.widgets.Je,help:"Identifies the look and feel of the panel.",controls:["panel"]},
{name:"value",help:"Sets the initialization value for the current element.",translate:true},{name:"response",format:"1 / 0",readOnly:true,i:true,j:["indicator","char","zoned"],help:"Specifies a response indicator that is returned to your program when the element is clicked.",controls:["button","styled button","graphic button","hyperlink","image","css button"],c:"dspf"},{name:"menu response",readOnly:true,i:true,help:"Specifies a response field to be populated with the selected menu option.",controls:["menu"],
c:"dspf"},{name:"tab response",readOnly:true,format:"number",i:true,j:["zoned"],help:"Specifies a numeric response field to be populated when a tab is selected.  Each tab within a Tab Panel is identified by a sequential index, starting with 0 for the first tab, 1 for the second tab, and so on.",controls:["tab panel"],c:"dspf"},{name:"upload response",readOnly:true,i:true,j:["char"],help:"Specifies a data structure response field to be populated when files are uploaded.",controls:["file upload","file upload dnd"],
c:"dspf"},{name:"radio button group",readOnly:true,help:"This property allows you to associate multiple radio buttons together by specifying a unique field name.",controls:["radio button"],c:"dspf"},{name:"chart response",readOnly:true,i:true,j:["char"],help:"Specifies a response field to be populated with the name of the data point selected by the user.",controls:["chart"],c:"dspf"},{name:"Alternate Destination",category:true,controls:["button","styled button","graphic button","hyperlink","image",
"css button"],c:"dspf",viewdesigner:true},{name:"destination url",i:true,j:["char"],help:'Specifies an alternate destination URL for the control. The screen will either be submitted to this URL or the browser will navigate to it, depending on the "redirect to destination" property value.',controls:["button","styled button","graphic button","hyperlink","image","css button"],c:"dspf",viewdesigner:true},{name:"destination parameters",type:"destinationparams",readOnly:true,bind:false,help:'Identifies parameter names and the corresponding bound fields for use with "destination url".',
Bl:["destination parameter name","destination parameter value"],xa:false,controls:["button","styled button","graphic button","hyperlink","image","css button"],c:"dspf",viewdesigner:true},{name:"destination parameter name",label:"Parameter Name",fa:true,hide:true,bind:false,help:"",controls:["button","styled button","graphic button","hyperlink","image","css button"],c:"dspf",viewdesigner:true},{name:"destination parameter value",label:"Parameter Value",fa:true,hide:true,help:"",controls:["button",
"styled button","graphic button","hyperlink","image","css button"],c:"dspf",viewdesigner:true},{name:"bookmarkable",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:'By default, "destination parameters" are added to the URL to facilitate bookmarking. If this property is set to "false", then the parameters will only appear in the POST data.',controls:["button","styled button","graphic button","hyperlink","image","css button"],c:"dspf",viewdesigner:true},{name:"redirect to destination",
choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:'If set to "true" the browser will navigate to the "destination url", passing the "destination parameters". Otherwise, the screen will submit by Ajax call. The default value is "false".',controls:["button","styled button","graphic button","hyperlink","image","css button"],c:"dspf",viewdesigner:true},{name:"Font and Text",category:true},{name:"color",m:"color",type:"color",help:"Defines the color of the text inside the given element.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>).",
La:true},{name:"font family",m:"fontFamily",choices:["Arial","Consolas","Courier New","Georgia","Monospace","Tahoma","Times New Roman","Sans-Serif","Serif","Trebuchet MS","Verdana","Other..."],help:"The font face for the text of the current element.<br>Ex: <span style='font-family:arial;'>Arial</span>, <span style='font-family:times new roman;'>Times New Roman</span>, <span style='font-family:verdana;'>Verdana</span>, etc.",La:true},{name:"font size",m:"fontSize",format:"px",choices:["8px","9px",
"10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","26px","27px","28px","29px","30px","0.75em","1.00em","1.25em","1.50em","1.75em","2.00em","Other..."],help:"The size of the text for the current element.<br>Ex: <span style='font-size:12px;'>12px</span> <span style='font-size:14px;'>14px</span> <span style='font-size:16px;'>16px</span>",La:true},{name:"font style",m:"fontStyle",format:"italic / normal",choices:["normal","italic","oblique"],
help:"The style of the font: Normal, <span style='font-style:italic;'>Italic</span>, or <span style='font-style:oblique;'>Oblique</span> (oblique and italic are the same for most fonts).",La:true},{name:"font variant",m:"fontVariant",choices:["normal","small-caps"],help:"Normal or <span style='font-variant:small-caps;'>small caps</span>. Small caps shows the text with all caps but same height as a lower case letter.",La:true},{name:"font weight",m:"fontWeight",format:"bold / normal",choices:["normal",
"bolder","bold","lighter","100","200","300","400","500","600","700","800","900"],help:"Font's weight. Most common used are <span style='font-weight:bold;'>bold</span> and <span style='font-weight:lighter;'>lighter</span>.",La:true},{name:"letter spacing",m:"letterSpacing",format:"px",choices:["normal","-3px","-2px","-1px","0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","Other..."],help:"Spacing between each letter of a word. <span style='letter-spacing:5px;'>Positive(5px)</span> increases space between each letter, <span style='letter-spacing:-1px;'>negative(-1px)</span> decreases it.",
La:true},{name:"text align",m:"textAlign",choices:["left","right","center","justify"],help:"Alignment of the text in the current element.(Left, Right, Center, Justify).<br><table cellpadding='0' cellspacing='2'><tr><td><div style='text-align:left;width:125px;border:1px solid black;'>Left</div></td></tr><tr><td><div style='text-align:right;width:125px;border:1px solid black;'>Right</div></td></tr><tr><td><div style='text-align:center;width:125px;border:1px solid black;'>Center</div></td></tr><tr><td><div style='text-align:justify;width:125px;border:1px solid black;'>Justify</div></td></tr></table>",
La:true},{name:"text decoration",m:"textDecoration",format:"underline / none",choices:["none","underline","overline","line-through"],help:"Decoration on the text of the current element. <br><br>None, <span style='text-decoration:underline;'>Underline</span>, <span style='text-decoration:overline;'>Overline</span>, <span style='text-decoration:line-through;'>Line-through</span>. ",La:true},{name:"text transform",m:"textTransform",choices:["capitalize","uppercase","lowercase","none"],help:"Transforms the default formatting of the text. <br><br>Capitalize(first character only),UPPERCASE(all), lowercase(all)."},
{name:"white space",m:"whiteSpace",choices:["normal","pre","nowrap"],help:"Determines how white space inside an element is handled.  The default is no-wrap.",controls:["html container","hyperlink"]},{name:"word spacing",m:"wordSpacing",format:"px",choices:["normal","-3px","-2px","-1px","0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","Other..."],help:"Spacing between each word in the current element. <span style='word-spacing:-2px;'>Negative decreases spacing</span>, <span style='word-spacing:2px;'>positive increases spacing</span>.",
La:true},{name:"Field Settings",category:true},{name:"ajax url",type:"long",help:"Specifies the content url for an ajax container.",controls:["ajax container"]},{name:"results template",type:"long",zf:true,controls:["textbox"],help:"HTML template for auto-complete results panel. If omitted, a default template will be used."},{name:"iframe url",type:"long",help:"Specifies the content url for an IFrame (inline frame) element.",controls:["iframe"]},{name:"frame border",choices:["true","false"],$c:false,
help:"Determines whether the IFrame (inline frame) element will have a border.",controls:["iframe"]},{name:"theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],help:"Specifies the jQuery Mobile theme to use for the button.  The theme is associated with a set of cascading style sheet rules.",controls:["css button"]},{name:"has header",choices:["true","false"],help:"Determines whether the panel has a header.",controls:["css panel","layout"]},
{name:"header height",format:"number",help:"Specifies the height of the panel header.",controls:["css panel","layout"]},{name:"header theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],help:"Specifies the jQuery Mobile theme to use for the panel header.  The theme is associated with a set of cascading style sheet rules.",controls:["css panel","layout"]},{name:"body theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow",
"F - Green","G - Red","Other..."],help:"Specifies the jQuery Mobile theme to use for the panel body.  The theme is associated with a set of cascading style sheet rules.",controls:["css panel","layout"]},{name:"icon position",choices:["left","right"],help:"Specifies the position of the icon.  If a position is not provided, no icon is displayed.",controls:["css button"]},{name:"icon",choices:["left arrow","right arrow","up arrow","down arrow","delete","plus","minus","check","gear","refresh","forward",
"back","grid","star","alert","info","home","search"],help:'Identifies the icon to display in the position specified by the "icon position" property.',controls:["css button"]},{name:"small button",choices:["true","false"],help:"This property uses CSS to provide a smaller, more compact version of the button that is useful in toolbars and tight spaces.",controls:["css button"]},{name:"straight edge",choices:["all","left","right","top","bottom"],help:"Determines which parts of the element will have a straight edge instead of rounded corners.",
controls:["css button","css panel","layout"]},{name:"hyperlink reference",help:"This property specifies an href attribute for the hyperlink.  It is used as an alternative to the response property or the onclick event property.",controls:["hyperlink","css button"]},{name:"target",help:"This property specifies where to open the hyperlink reference.",choices:["_parent","_blank","_top","_self"],controls:["hyperlink","css button"]},{name:"checked value",help:"For a checkbox field, specifies the value to send to the application when the checkbox is checked.",
controls:["checkbox"],bind:false},{name:"unchecked value",help:"For a checkbox field, specifies the value to send to the application when the checkbox is not checked.",controls:["checkbox"],bind:false},{name:"on value",help:"Specifies the value to send to the application when the on/off switch is on.",controls:["on off switch"],bind:false},{name:"off value",help:"Specifies the value to send to the application when the on/off switch is off.",controls:["on off switch"],bind:false},{name:"on text",help:'Specifies the text to to display for the "on" state of an on/off switch.  The default text is ON.',
controls:["on off switch"],translate:true},{name:"off text",help:'Specifies the text to to display for the "off" state of an on/off switch.  The default text is OFF.',controls:["on off switch"],translate:true},{name:"wide handle",choices:["true","false"],type:"boolean",help:"Specifies whether the on/off switch should display a wide handle for switching state.  The default is true.  If false is selected, a narrow handle will be used.",i:true,j:["indicator","expression"],controls:["on off switch"]},
{name:"date format",choices:["MM/DD/YY","MM/DD/YYYY","DD/MM/YY","DD/MM/YYYY","DD.MM.YY","DD.MM.YYYY","MMDDYY","MMDDYYYY","DDMMYY","DDMMYYYY","YYMMDD","YY/MM/DD","YYYYMMDD","YYYY-MM-DD","YYYY/MM/DD"],help:"Defines the date format that is returned from the pop-up calendar.",controls:["date field"],c:"genie"},{name:"default value",help:"Specifies a default value for a field.  The specified value is displayed on the first output operation.  On subsequent output operations, the program value appears.",
controls:["combo box","date field","output field","password field","select box","spinner","text area","textbox"],bind:false,c:"dspf",viewdesigner:false},{name:"default value condition",j:["indicator","expression"],i:true,readOnly:true,format:"true / false",type:"boolean",help:"Determines if the default value is applied.",controls:["combo box","date field","output field","password field","select box","spinner","text area","textbox"],c:"dspf",viewdesigner:false},{name:"blank value",fa:true,help:"Use this property to map blank field data to a different value during input and output operations.  This property is typically used with elements whose value is bound to a date, time, or timestamp field.  To specify multiple blank values, right-click the property and select Add Another Blank Value.",
controls:["combo box","date field","output field","password field","spinner","text area","textbox"],bind:false,c:"dspf"},{name:"override data",choices:["true","false"],type:"boolean",help:'Use this property to together with the "put override" property to override existing data contents already on the display.  It represents the OVRDTA keyword.',i:true,j:["indicator","expression"],controls:["combo box","date field","output field","password field","select box","spinner","text area","textbox"],c:"dspf",
viewdesigner:false},{name:"override attribute",choices:["true","false"],type:"boolean",help:'Use this property to together with the "put override" property to override existing attributes already on the display.  It represents the OVRATR keyword.',i:true,j:["indicator","expression"],controls:["combo box","date field","output field","password field","select box","spinner","text area","textbox"],c:"dspf",viewdesigner:false},{name:"put retain",choices:["true","false"],type:"boolean",help:'You use this property with the "overlay" property to prevent the handler from deleting data that is already on the display when the application displays the record again. It represents the PUTRETAIN keyword.',
i:true,j:["indicator","expression"],controls:["combo box","date field","output field","password field","select box","spinner","text area","textbox"],c:"dspf",viewdesigner:false},{name:"disabled",J:"disabled",choices:["true","false"],type:"boolean",help:"Determines whether the element is disabled or not. The user cannot use a disabled field in any way."+(M=="genie"?" A disabled field is not submitted to the server application.":""),i:true,j:["indicator","expression"]},{name:"html",type:"long",zf:true,
help:"Used to define custom html in an html container.",controls:["html container"],translate:true},{name:"image source",type:"image",J:"src",help:"Specifies the path to an image for an image or a graphic button.",controls:["graphic button","image"]},{name:"hover image source",type:"image",help:"Specifies the path to an image that will be displayed when the user hovers the mouse cursor over the image element.",controls:["image"]},{name:"click image source",type:"image",help:"Specifies the path to an image that will be displayed when the user presses down the mouse on the image element.",
controls:["image"]},{name:"alternate text",J:"alt",help:"Specifies the alternate text for an image.  The alternate text appears when the image cannot be rendered.",controls:["image"],translate:true},{name:"label",help:"Specifies the caption text associated with a checkbox or a radio button.",controls:["checkbox","radio button"],translate:true},{name:"orientation",choices:["horizontal","vertical"],help:"Specifies the orientation of a slider or a menu element.",controls:["menu","slider"]},{name:"min value",
format:"number",help:"Defines the minimum value for a spinner or slider element.",controls:["slider","spinner"]},{name:"max value",format:"number",help:"Defines the maximum value for a spinner or slider element.",controls:["slider","spinner"]},{name:"increment value",format:"number",help:"Specifies how much the value in a spinner or slider element increases or decreases.  The default value is 1.",controls:["slider","spinner"]},{name:"read only",J:"readOnly",choices:["true","false"],type:"boolean",
help:"Defines whether the current element is read only or not.  A read only element prevents the user from changing its value; however, the user can still interact with the element.",controls:["checkbox","combo box","date field","on off switch","password field","radio button","signature pad","spinner","text area","textbox"],i:true,j:["indicator","expression"]},{name:"input only",choices:["true","false"],bind:false,type:"boolean",help:"Defines whether the current element is input only or not.  An input only element is always initialized when the screen appears.",
controls:["checkbox","combo box","date field","password field","select box","spinner","text area","textbox"],c:"dspf",viewdesigner:false},{name:"empty text",controls:["combo box","date field","spinner","text area","textbox"],help:'Specifies the default text to place into an empty field.  When the field receives focus, the text is removed.  This property is similar to the "placeholder" property, but provides support for older browser that may not yet support the placeholder HTML5 attribute.',translate:true},
{name:"placeholder",J:"placeholder",controls:["combo box","date field","spinner","text area","textbox","password field"],help:"Uses the HTML5 placeholder attribute to specify a short hint that describes the expected value of an input field.  Older browsers may not support this feature.",translate:true},{name:"input type",choices:["date","datetime","email","time","month","number","tel","url"],controls:["combo box","date field","textbox"],help:"Specifies an HTML5 input type.  Some types may not yet be supported by the user's browser or mobile device.  If a type is not specified or if the selected type is not supported, a standard textbox element will be used."},
{name:"related field",help:"This property allows you to create a radio button group by associating multiple radio buttons with a field from the original application.  Specify the id of the field to associate the radio button with.  Additionally, this property can associate a text area with a group of textboxes by specify a comma separated list of textbox id's.",controls:["radio button","text area"],c:"genie"},{name:"select box height",format:"number",J:"size",choices:["1","2","3","4","5","6","7",
"8","9","Other..."],help:"If specified, the select box appears as a list box; if omitted, the select box appears as a dropdown.",controls:["select box"]},{name:"multiple",J:"multiple",choices:["true","false"],type:"boolean",help:"Specifies that multiple options can be selected at once in a List Box.  The options are returned as a comma separated list.",controls:["select box"],c:"dspf",i:true,j:["indicator","expression"]},{name:"set focus",choices:["true","false"],type:"boolean",help:"This property determines if the focus will be set to this field when the screen loads.",
controls:["checkbox","combo box","date field","password field","radio button","select box","spinner","text area","textbox"],c:"dspf",i:true,j:["indicator","expression"]},{name:"auto advance",choices:["true","false"],type:"boolean",help:"Use this property to indicate that the user does not need to press Enter or otherwise manually submit the screen.  Whenever the user keys a character (including a blank) into the last position of the field, the screen contents are submitted to the server as if the Enter key had been pressed.",
controls:["combo box","date field","password field","spinner","textbox"],c:"dspf",i:true,j:["indicator","expression"]},{name:"allow field exit",choices:["true","false"],type:"boolean",help:"This property determines whether the field exit key (Numeric Pad Plus Sign by default) can be used to progress to the next input element.",controls:["combo box","date field","select box","spinner","textbox"],c:"dspf",i:true,j:["indicator","expression"],viewdesigner:false},{name:"allow dup key",choices:["true",
"false"],type:"boolean",help:"This property determines whether the Dup key (Shift-Insert by default) can be used on this element.  It represents the DUP DDS keyword.",controls:["textbox"],c:"dspf",i:true,j:["indicator","expression"],viewdesigner:false},{name:"dup key response",format:"1 / 0",readOnly:true,i:true,j:["indicator"],help:"Specifies a response indicator that is returned to your program when the Dup key is used on this element.",controls:["textbox"],c:"dspf",viewdesigner:false},{name:"prevent auto tab",
choices:["true","false"],type:"boolean",help:'This proprty prevents automatic tabbing on this element even when the pui["auto tab"] flag is set to true.',controls:["combo box","date field","password field","spinner","textbox"],c:"dspf",i:true,j:["indicator","expression"]},{name:"shortcut key",choices:["Enter","Escape","PageUp","PageDown","PrtScn","Pause/Break","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","Alt-F1",
"Alt-F2","Alt-F3","Alt-F4","Alt-F5","Alt-F6","Alt-F7","Alt-F8","Alt-F9","Alt-F10","Alt-F11","Alt-F12","Alt-F13","Alt-F14","Alt-F15","Alt-F16","Alt-F17","Alt-F18","Alt-F19","Alt-F20","Alt-F21","Alt-F22","Alt-F23","Alt-F24","Ctrl-F1","Ctrl-F2","Ctrl-F3","Ctrl-F4","Ctrl-F5","Ctrl-F6","Ctrl-F7","Ctrl-F8","Ctrl-F9","Ctrl-F10","Ctrl-F11","Ctrl-F12","Ctrl-F13","Ctrl-F14","Ctrl-F15","Ctrl-F16","Ctrl-F17","Ctrl-F18","Ctrl-F19","Ctrl-F20","Ctrl-F21","Ctrl-F22","Ctrl-F23","Ctrl-F24"],help:"Specifies a keyboard shortcut that can be used to trigger this element.",
controls:["button","styled button","graphic button","hyperlink","image","menu","css button"],c:"dspf"},{name:"response AID",choices:["AutoEnter","Clear","Enter","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","Help","PageDown","PageUp","Print","RecordBackspace"],help:'When screen is submitted for "tab response" property, the AID code corresponding to the key specified here will be used. If not specified, the AID code for the Enter key will be used.',
controls:["tab panel"],c:"dspf"},{name:"cursor row",format:"number",help:"Identifies the cursor row number associated with this widget.",controls:["combo box","date field","html container","output field","password field","select box","spinner","text area","textbox"],c:"dspf",viewdesigner:false},{name:"cursor column",format:"number",help:"Identifies the cursor column number associated with this widget.",controls:["combo box","date field","html container","output field","password field","select box",
"spinner","text area","textbox"],c:"dspf",viewdesigner:false},{name:"changed",format:"1 / 0",readOnly:true,i:true,j:["indicator"],help:"Specifies a response indicator that is set on if the data within the input element is modified.",controls:["checkbox","combo box","date field","password field","select box","spinner","text area","textbox"],c:"dspf"},{name:"is blank",format:"1 / 0",readOnly:true,i:true,j:["indicator"],help:"Specifies a response indicator that is set on if the data within the input element is blank.  The property allows you to distinguish between a blank and a zero within a numeric field.",
controls:["date field","password field","spinner","text area","textbox"],c:"dspf"},{name:"allow spellcheck",J:"spellcheck",choices:["true","false"],help:"Set to false to disable the browser's built-in spellcheck for this widget.",i:true,j:["indicator","expression"],controls:["textbox","text area"]},{name:"messages",type:"messages",readOnly:true,bind:false,help:"Identifies messages used to populate this element.",Bl:["clear message","message id prefix","message id","message file","message library",
"message condition"],c:"dspf",controls:["button","output field","styled button","text area","textbox","css button"],xa:false},{name:"clear message",label:"Clear Message",nn:true,bind:false,fa:true,hide:true,help:"",c:"dspf",controls:["button","output field","styled button","text area","textbox","css button"]},{name:"message id prefix",label:"Message Id Prefix",uppercase:true,maxLength:3,fa:true,hide:true,help:"",c:"dspf",controls:["button","output field","styled button","text area","textbox","css button"]},
{name:"message id",label:"Message Id",uppercase:true,maxLength:7,fa:true,hide:true,help:"",c:"dspf",controls:["button","output field","styled button","text area","textbox","css button"]},{name:"message file",label:"Message File",uppercase:true,maxLength:10,fa:true,hide:true,help:"",c:"dspf",controls:["button","output field","styled button","text area","textbox","css button"]},{name:"message library",label:"Library",uppercase:true,maxLength:10,fa:true,hide:true,help:"",c:"dspf",controls:["button",
"output field","styled button","text area","textbox","css button"]},{name:"message condition",label:"Condition",j:["indicator","expression"],i:true,readOnly:true,fa:true,hide:true,readOnly:true,format:"1 / 0",type:"boolean",help:"",c:"dspf",c:"dspf",controls:["button","output field","styled button","text area","textbox","css button"]},{name:"Validation",category:true,c:"dspf"},{name:"error message location",choices:["left","right","top","bottom","alert"],j:["char","indicator","expression"],help:'Controls the position and orientation of validation and error tool tips. When "alert" is selected, an alert box will be used instead of a tool tip. If not set, the default value "right" is used.',
c:"dspf"},{name:"error message css class",help:'Specifies a css class name to apply to the top-level error tip element. This allows error tips to be styled individually. If not specified, css class "pui-tip-error" is used, which gives error message styling. Try "pui-tip-info" for an informational message.',c:"dspf"},{name:"mandatory entry",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:"When set to true, the user must modify the field by typing at least one character into the input box.  A blank is a valid character.",
controls:["combo box","date field","password field","spinner","text area","textbox"],c:"dspf"},{name:"mandatory fill",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:"When set to true, the user must type characters in all positions of the input box.",controls:["combo box","date field","password field","spinner","textbox"],c:"dspf"},{name:"required",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:"When set to true, the element cannot be empty.",
controls:["combo box","date field","file upload","password field","select box","spinner","text area","textbox","file upload dnd"],c:"dspf"},{name:"valid values",type:"list",controls:["combo box","date field","password field","spinner","text area","textbox"],help:"Specifies a list of values that are valid for the user to type into the input box.  The values should be comma separated.",c:"dspf"},{name:"comparison operator",choices:["Equal","Not Equal","Greater Than","Greater Than or Equal","Less Than",
"Less Than or Equal"],controls:["combo box","date field","password field","spinner","text area","textbox"],help:"Identifies the relational operator used to compare data in the input box with the specified comparison value.",c:"dspf"},{name:"comparison value",controls:["combo box","date field","password field","spinner","text area","textbox"],help:"Specifies the value used for comparing against data in the input box.  This property is used in combination with the comparison operator property.",c:"dspf"},
{name:"range low",controls:["combo box","date field","password field","spinner","text area","textbox"],help:"Specifies the minimum value for range validity checking.  The data in the input box must be greater than or equal to this value.",c:"dspf"},{name:"range high",controls:["combo box","date field","password field","spinner","text area","textbox"],help:"Specifies the maximum value for range validity checking.  The data in the input box must be less than or equal to this value.",c:"dspf"},{name:"validate name",
choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:"Use this property to specify that the data typed into the field must be a valid simple name. The first character must be $, #, @, or A through Z. The remaining characters must be alphanumeric ($, #, @, A through Z, 0 through 9, or underscore (_), and must not contain embedded blanks.",controls:["combo box","textbox"],c:"dspf"},{name:"validate email",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],
help:"Use this property to specify that the data typed into the field must be in the format of an email address.",controls:["combo box","textbox"],c:"dspf"},{name:"allow blanks",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:"When set to true, blank input will satisfy validity checking should any other associated validity check fail.",controls:["combo box","date field","password field","spinner","text area","textbox"],c:"dspf"},{name:"error messages",type:"errmessages",
readOnly:true,bind:false,help:"Identifies error messages to be displayed in association with this element.",Bl:["error message","error message id","error message file","error message library","replacement data","error condition","error response","error enhanced mode"],c:"dspf",xa:false},{name:"error message",label:"Message Text",fa:true,hide:true,help:"",c:"dspf"},{name:"error message id",label:"Message Id",uppercase:true,maxLength:7,fa:true,hide:true,help:"",c:"dspf",viewdesigner:false},{name:"error message file",
label:"Message File",maxLength:10,uppercase:true,fa:true,hide:true,help:"",c:"dspf",viewdesigner:false},{name:"error message library",label:"Library",maxLength:10,uppercase:true,fa:true,hide:true,help:"",c:"dspf",viewdesigner:false},{name:"replacement data",label:"Replacement Data",j:["char"],i:true,readOnly:true,fa:true,hide:true,help:"",c:"dspf",viewdesigner:false},{name:"error condition",label:"Error Condition",j:["indicator","expression"],i:true,readOnly:true,fa:true,hide:true,readOnly:true,format:"1 / 0",
type:"boolean",help:"",c:"dspf"},{name:"error response",label:"Error Response",j:["indicator"],i:true,readOnly:true,fa:true,hide:true,readOnly:true,format:"1 / 0",type:"boolean",help:"",c:"dspf",viewdesigner:false},{name:"error enhanced mode",label:"Enhanced Mode",nn:true,bind:false,fa:true,hide:true,help:"If checked, allows error messages to display without ERRMSG/ERRMSGID-type restrictions. Errors can display regardless of whether format is already on the screen, and output data is also sent.",
c:"dspf",viewdesigner:false},{name:"set as modified",choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:"Marks an input field as modified when it is first displayed.",controls:["check box","combo box","date field","password field","radio button","select box","slider","spinner","text area","textbox"],c:"dspf"},{name:"bypass validation",choices:["true","false","send data"],type:"boolean",controls:["button","styled button","graphic button","hyperlink","image","menu","tab panel",
"chart","css button"],help:'This property, typically used on Cancel or Undo buttons, specifies that the element will not trigger client-side validation and will automatically discard all data modified by the user on the screen.  It represents the CAxx set of DDS keywords.  You can select "send data" to bypass all client-side validation except for field data type validation and still send all data modified by the user.',i:true,j:["char","indicator","expression"],c:"dspf"},{name:"Auto-Complete Choices",
category:true,controls:["textbox"]},{name:"Selection Choices",category:true,controls:["combo box","select box"]},{name:"Menu Options",category:true,controls:["menu"]},{name:"choices",type:"list",help:"Specifies the options for a select box (dropdown or list box), text field with autocomplete, combo box, or menu.  The options should be comma separated.  To specify submenus for a menu, indent the choices using a dash or a series of dashes.",controls:["combo box","menu","select box","textbox"],translate:true},
{name:"choice values",type:"list",help:"Specifies alternate option values to send to the application for a select box (dropdown or list box), text field with auto complete, combo box, or menu. The values should be comma separated.",controls:["combo box","menu","select box","textbox"]},{name:"hover background color",type:"color",help:"Defines the background color of a menu option when the user hovers the mouse over it.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>).",
controls:["menu"]},{name:"hover text color",type:"color",help:"Defines the text color of a menu option when the user hovers the mouse over it.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>).",
controls:["menu"]},{name:"animate",choices:["true","false"],$c:false,help:"Determines if hovering over menu options is animated.",controls:["menu"]},{name:"border color",type:"color",help:"The color of the border used for menu options.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>).",
controls:["menu"]},{name:"menu option padding",choices:c,format:"px",help:"Sets the distance between the edge of the menu option and the menu option text. Specify in pixels. <br>Ex: 12px",controls:["menu"]},{name:"menu option indent",choices:c,format:"px",help:"Sets the distance between the left edge of the menu option and the menu option text. Specify in pixels. <br>Ex: 12px",controls:["menu"]},{name:"option image",type:"image",help:"Defines the background image displayed under each menu option. You can specify one image or a comma separated list of images corresponding to each menu option.",
controls:["menu"]},{name:"option hover image",type:"image",help:"Defines the background image displayed when the user hovers over a menu option.",controls:["menu"]},{name:"onoptionclick",type:"js",help:'Initiates a client-side script when a menu option is clicked.  The choice value is passed to the event as a parameter named "value".  The choice text is passed to the event as a parameter named "text".',controls:["menu"]},{name:"Database-Driven Auto-Complete",category:true,controls:["textbox"]},{name:"Database-Driven Selection",
category:true,controls:["combo box","select box"]},{name:"Database-Driven Chart",category:true,controls:["chart"]},{name:"database file",type:"file",uppercase:true,help:"Database file to use for the chart's data source. Specify it in the format 'database file' or 'library/database file'.",controls:["chart"]},{name:"name field",type:"field",uppercase:true,help:"Database field that determines the names by which records would be represented in the chart.",controls:["chart"]},{name:"value field",type:"field",
uppercase:true,help:"Database field that determines the numerical values from which the chart is to be built.",controls:["chart"]},{name:"summary option",choices:["none","average","count","sum","maximum","minimum"],help:"Determines how values are used when creating the chart.",controls:["chart"]},{name:"selection criteria",type:"long",help:"Optional expression identifying which records should be retrieved from the database file.",controls:["chart"]},{name:"parameter value",bind:true,type:"long",Nl:1,
fa:true,help:'Value for parameter marker in "selection criteria" property. Parameter markers are specified using a question mark. Profound UI will accept values from the client for any parameter marker values which are not bound to program fields. Parameter markers are numbered in order of occurence, from left to right. To specify multiple parameter marker values, right-click the property and select Add Another Parameter Value.',controls:["chart"]},{name:"record limit",format:"number",help:"Sets a limit on how many records are to be used in the chart.",
controls:["chart"]},{name:"choices database file",type:"file",uppercase:true,help:"Database file to be used for a dynamic database-driven dropdown box, list box, or text field with autocomplete. Specify it in the format 'database file' or 'library/database file'.",controls:["combo box","select box","textbox"]},{name:"choice options field",type:"field",multiple:true,uppercase:true,help:"Database field name used to retrieve the options for a dynamic dropdown box, list box, combo box, or text field with auto complete. Multiple fields can be specifed for a text field with auto complete. In this case, the field names should be comma separated.",
controls:["combo box","select box","textbox"]},{name:"choice values field",type:"field",uppercase:true,help:"Database field name used to retrieve the values sent back to the application.  If omitted, the choice options field is used. In the case of a text field with autocomplete that has multiple option fields, the first option field is used.",controls:["combo box","select box","textbox"]},{name:"choices selection criteria",type:"long",help:"Optional expression identifying which records should be retrieved from the choices database file.",
controls:["combo box","select box","textbox"]},{name:"choices parameter value",bind:true,type:"long",Nl:1,fa:true,help:'Value for parameter marker in "choices selection criteria" property. Parameter markers are specified using a question mark. Profound UI will accept values from the client for any parameter marker values which are not bound to program fields. Parameter markers are numbered in order of occurence, from left to right. To specify multiple parameter marker values, right-click the property and select Add Another Choices Parameter Value.',
controls:["combo box","select box","textbox"]},{name:"blank option",choices:["true","false"],help:"When set to true, a database-driven dropdown box will display a blank option before the options from the database file are displayed.",controls:["combo box","select box"]},{name:"blank option label",help:"By default, the blank option contains no text.  Use this property to specify alternate text to be displayed in the blank option.  The value sent to the server will still be blank.",controls:["combo box",
"select box"],translate:true},{name:"order by",type:"field",multiple:true,uppercase:true,help:'Optional expression identifying which fields determine the order of the items. For a database-driven chart, this property is ignored when "summary option" is used. In this case the items will sort on the "name field".',controls:["combo box","select box","chart"]},{name:"max choices",format:"number",help:"Optional maximum number of choices to provide for a dynamic dropdown box, list box, or text field with auto complete. If blank: defaults to 500 for dropdown, 10 for auto complete.",
controls:["combo box","select box","textbox"]},{name:"contains match",choices:["true","false"],help:"When set to true, the auto-complete query finds records that contain the search text.  When set to false, the auto-complete query finds records that start with the search text.  The default value is false.",controls:["textbox"]},{name:"Dynamic Auto-Complete",category:true,controls:["textbox"]},{name:"Dynamic Selection",category:true,controls:["combo box","select box"]},{name:"choices url",type:"long",
help:"Sets the url to a Web service that returns the choice options and values in JSON format. If a choices url is used, the database file, choice options field, choice value field, and max choices properties are ignored.",controls:["combo box","select box","textbox"]},{name:"Chart Settings",category:true,controls:["chart"]},{name:"chart type",choices:pui.widgets.Jn,help:"Identifies the type of chart to display.  The chart type maps to a .swf flash file in the proddata/charts folder on the IFS.  If Flash is not available, HTML5 is used to render the chart.",
controls:["chart"]},{name:"map type",help:'Identifies the type of map to display. The available map names are given here: <br /><br /> <a target="_blank" href="http://www.fusioncharts.com/dev/usage-guide/setup/list-of-maps.html">List of FusionMaps files</a><br /><br />Specifiy the "JavaScript alias" name, with or without the "maps/" prefix. If this property is specified, the "chart type" property is ignored.',controls:["chart"]},{name:"chart options",help:'Specifies chart options as a set of XML attributes that are to be attached to the FusionCharts &lt;chart&gt; tag.  The format of the attributes is described on the FusionCharts documentation site <a href="http://docs.fusioncharts.com/charts" target="_blank">http://docs.fusioncharts.com/charts</a>.',
controls:["chart"]},{name:"chart overlay",choices:["true","false"],help:"When set to true, the Chart panel will overlay any other content on the screen, regardless of z-index settings. When set to false, the Chart panel will behave according to normal layering rules, based on z-index. The default value is false.",controls:["chart"]},{name:"onchartclick",type:"js",help:'Initiates a client-side script when a chart section is clicked.  The name of the chart section is passed to the event as a parameter named "name".',
controls:["chart"]},{name:"Chart Data"+(M=="genie"?" from Screen":""),category:true,controls:["chart"]},{name:"names",type:"list",help:"Specifies a list of names representing the data points on the chart or a list of screen element id's from which the names could be retrieved.  The list should be comma separated.",controls:["chart"],translate:true},{name:"values",type:"list",help:"Specifies a list of numerical values used to build the chart or a list of screen element id's from which the values could be retrieved. The list should be comma separated.",
controls:["chart"]},{name:"Dynamic Chart",category:true,controls:["chart"]},{name:"chart url",type:"long",help:'Sets the url to a web service that returns the chart definition and data in XML format as specified in the FusionCharts Data Formats section of the FusionCharts documentation site <a href="http://docs.fusioncharts.com/charts" target="_blank">http://docs.fusioncharts.com/charts</a>.',controls:["chart"]},{name:"chart xml",type:"long",zf:true,help:'Sets the XML data for the chart as specified in the FusionCharts Data Formats section of the FusionCharts documentation site <a href="http://docs.fusioncharts.com/charts" target="_blank">http://docs.fusioncharts.com/charts</a>.',
controls:["chart"]},{name:"chart json",type:"long",zf:true,help:'Sets the JSON data for the chart as specified in the FusionCharts Data Formats section of the FusionCharts documentation site <a href="http://docs.fusioncharts.com/charts" target="_blank">http://docs.fusioncharts.com/charts</a>.  The data can be provided as a string or as a JavaScript object through the use of property scripting.',controls:["chart"]},{name:"Background",category:true},{name:"background color",m:"backgroundColor",type:"color",
help:"Defines the background color of the given element.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>).",
La:true},{name:"background image",type:"image",m:"backgroundImage",help:"Defines the background image of the current element.",La:true},{name:"background position",m:"backgroundPosition",choices:["top","center","bottom","left"],help:"Position of the background within the current element.",La:true},{name:"background repeat",m:"backgroundRepeat",choices:["repeat-x","repeat-y","no-repeat","repeat"],help:"Defines how to repeat the background, repeat-x: repeats horizontally, repeat-y: repeats vertically, no-repeat: doesn't repeat at all, repeat: repeats horizontally and vertically.",
La:true},{name:"Position",category:true},{name:"left",m:"left",format:"px",help:"Represents the x-coordinate of the current element. Specify in pixels"+(M=="genie"?".":" or as a percentage.")},{name:"top",m:"top",format:"px",help:"Represents the y-coordinate of the current element. Specify in pixels"+(M=="genie"?".":" or as a percentage.")},{name:"right",m:"right",format:"px",help:"Position of the element from the right of the screen"+(M=="genie"?".":" or layout container.")+" Specify in pixels"+
(M=="genie"?".":" or as a percentage.")},{name:"bottom",m:"bottom",format:"px",help:"Position of the element from the bottom of the screen"+(M=="genie"?".":" or layout container.")+" Specify in pixels"+(M=="genie"?".":" or as a percentage.")},{name:"height",m:"height",format:"px",help:"Height of the current element. Specify in pixels"+(M=="genie"?".":" or as a percentage.")},{name:"width",m:"width",format:"px",help:"Width of the current element. Specify in pixels"+(M=="genie"?".":" or as a percentage.")},
{name:"min height",m:"minHeight",format:"px",help:"Minimum height of the current element. Specify in pixels. <br>Ex: 12px"},{name:"min width",m:"minWidth",format:"px",help:"Minimum width of the current element. Specify in pixels. <br>Ex: 12px"},{name:"max height",m:"maxHeight",format:"px",help:"Maximum height of the current element. Specify in pixels. <br>Ex: 12px"},{name:"max width",m:"maxWidth",format:"px",help:"Maximum width of the current element. Specify in pixels. <br>Ex: 12px"},{name:"z index",
m:"zIndex",format:"number",help:"The stacking order of the current element, expressed as an integer value. The element with the higher z index will overlay lesser elements."},{name:"auto arrange",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"This property is used to automatically position action buttons or links in order to accommodate for converted overlay screens.",controls:["button","styled button","graphic button","hyperlink","css button"],c:"dspf"},{name:"locked in place",
choices:["true","false"],help:"If set to true, the element cannot be moved or sized.",bind:false},{name:"Drag and Drop",category:true,controls:["html container","output field","image"],c:"dspf"},{name:"allow drag",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"This property determines if the element can be drag and dropped.",controls:["html container","output field","image"],c:"dspf"},{name:"use proxy",choices:["true","false"],type:"boolean",j:["indicator","expression"],
i:true,type:"boolean",help:"This property determines if a drag and drop proxy is created.  If set to true, instead of dragging the element around, a proxy element is created and moved instead.",controls:["html container","output field","image"],c:"dspf"},{name:"ondragstart",type:"js",help:"Initiates a client-side script when the user first starts to drag the element.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",controls:["html container","output field",
"image"],c:"dspf"},{name:"drop targets",type:"list",help:"Specifies a list of target element id's, which indentify where this element can be dropped.",controls:["html container","output field","image"],c:"dspf"},{name:"ondragenter",type:"js",help:"Initiates a client-side script when the user drags an element over a valid drop target.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",controls:["html container","output field","image"],c:"dspf"},{name:"ondragleave",
type:"js",help:"Initiates a client-side script when the user moves an element out of a valid drop target during a drag operation.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",controls:["html container","output field","image"],c:"dspf"},{name:"ondrop",type:"js",help:"Initiates a client-side script when the mouse is released during a drag and drop operation.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",
controls:["html container","output field","image"],c:"dspf"},{name:"Tabs",category:true},{name:"tab panel style",choices:pui.widgets.Zn,help:"Identifies the look and feel of the tab panel.",controls:["tab panel"]},{name:"tab names",type:"list",help:"This property identifies a comma separated list of tab names for a Tab Panel.",controls:["tab panel"],translate:true},{name:"active tab",format:"number",i:true,j:["zoned"],help:"This property specifies the initial active tab on a Tab Panel. Each tab within a Tab Panel is identified by a sequential index, starting with 0 for the first tab, 1 for the second tab, and so on.  The default value for the active tab index is 0.",
controls:["tab panel"]},{name:"ontabclick",type:"js",help:'Initiates a client-side script when a tab is clicked.  The tab index is passed to the event as a parameter named "tab".  If the client-side script evaluates to false, the tab will not be switched.',controls:["tab panel"]},{name:"tab keys",type:"list",help:"This property identifies a comma separated list of function keys assigned to each tab within a Tab Panel.  The function keys in the list are automatically pressed when the appropriate tab is selected, allowing users to navigate the original application through a tab interface.",
controls:["tab panel"],c:"genie"},{name:"parent tab panel",help:"This property specifies the id of the Tab Panel to which this element belongs.  The property is set automatically when you drag and drop the element onto a Tab Panel.",bind:false},{name:"parent tab",help:"This property specifies the tab index of the specific tab to which this element belongs.  Each tab within a Tab Panel is identified by a sequential index, starting with 0 for the first tab, 1 for the second tab, and so on.  The property is set automatically when you drag and drop the element onto a Tab Panel.",
bind:false},{name:"parent field set",help:"This property specifies the id of the Field Set Panel to which this element belongs.  The property is set automatically when you drag and drop the element onto a Field Set Panel.",bind:false},{name:"File Upload",category:true,controls:["file upload","file upload dnd"]},{name:"selection mode",controls:["file upload"],bind:false,choices:["standard","enhanced"],help:'When set to "enhanced" the file upload control will allow for selection of multiple files at once from the browser\'s file selector. This is accomplished by SHIFT+Click or CNTRL+Click or CNTRL+A. When "standard" mode is used, the user must select each file for upload one by one. The default mode is "standard".<br /><br /><strong>Note: </strong>Not all browsers support "enhanced" mode. For example, Internet Explorer does not. In such browsers, the control will work in "standard" mode regardless of this setting.'},
{name:"auto submit",controls:["file upload dnd"],choices:["true","false"],type:"boolean",i:true,c:"dspf",j:["indicator","expression"],help:'After dropping a file should a page submit happen automatically. The default setting is "false". Upload happens during submit.'},{name:"auto upload",controls:["file upload dnd"],choices:["true","false"],type:"boolean",i:true,c:"genie",j:["indicator","expression"],help:'After dropping a file should upload happen automatically. The default setting is "false".'},
{name:"number of files",controls:["file upload","file upload dnd"],format:"number",i:true,j:["zoned"],help:"This property specifies the maximum number of files that can be uploaded at one time."},{name:"size limit",controls:["file upload","file upload dnd"],i:true,j:["zoned"],help:"Specifies the size limit (in MB) for each file. The default value is 10."},{name:"target directory",controls:["file upload","file upload dnd"],Lf:50,i:true,j:["char"],help:"This property specifies the IFS directory where uploaded files will be saved."},
{name:"rename to",controls:["file upload","file upload dnd"],Lf:50,i:true,j:["char"],help:"Specifies an alternate file name to be used when the uploaded file is saved.<br /><br />Note: This property is ignored when more than 1 file is uploaded."},{name:"overwrite files",controls:["file upload","file upload dnd"],choices:["true","false"],type:"boolean",i:true,j:["indicator","expression"],help:'Specifies the action to take when 1 or more files being saved already exists in the IFS target directory. When set to "true", the existing file(s) will be overwritten. When set to "false" an error will be returned and no files will be overwritten. The default setting is "false".'},
{name:"allowed type",controls:["file upload","file upload dnd"],fa:true,choices:["text/plain","application/vnd.ms-word","application/vnd.ms-excel","application/pdf","image/gif","image/jpg","image/png","Other..."],i:true,j:["char"],help:"Specifies a MIME file type (as reported by the web browser) which is allowed to be uploaded. If not set, any file type will be allowed.<br /><br />To specify multiple types, right-click the property and select Add Another Allowed Type."},{name:"onupload",type:"js",
help:"Initiates a client-side script when files are uploaded.",controls:["file upload","file upload dnd"],c:"genie"},{name:"Borders",category:true},{name:"border radius",m:"borderRadius",format:"px",choices:["1px","2px","3px","4px","5px","6px","7px","8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","Other..."],help:"This property allow you to create rounded corners by specifying a border radius."},{name:"border bottom color",m:"borderBottomColor",type:"color",
help:"The color of the element's bottom side of the border.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>)."},
{name:"border bottom style",m:"borderBottomStyle",choices:a,help:"The style of the element's bottom side of the border."},{name:"border bottom width",format:"px",m:"borderBottomWidth",choices:b,help:"The thickness of the element's bottom side of the border."},{name:"border left color",m:"borderLeftColor",type:"color",help:"The color of the element's left side of the border.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>)."},
{name:"border left style",m:"borderLeftStyle",choices:a,help:"The style of the element's left side of the border."},{name:"border left width",format:"px",m:"borderLeftWidth",choices:b,help:"The thickness of the element's left side of the border."},{name:"border right color",m:"borderRightColor",type:"color",help:"The color of the element's right bottom side of the border.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>)."},
{name:"border right style",m:"borderRightStyle",choices:a,help:"The style of the element's right side of the border."},{name:"border right width",format:"px",m:"borderRightWidth",choices:b,help:"The thickness of the element's right side of the border."},{name:"border top color",m:"borderTopColor",type:"color",help:"The color of the element's top side of the border.<br><br><u>Usage</u>: Enter a color name or select a color.<br><br> <u>Valid colors by name</u> : <span style='color:aqua;'>aqua</span>, <span style='color:black;'>black</span>, <span style='color:blue;'>blue</span>, <span style='color:fuchsia;'>fuchsia</span>, <span style='color:gray;'>gray</span>, <span style='color:green;'>green</span>, <span style='color:lime;'>lime</span>, <span style='color:maroon;'>maroon</span>, <span style='color:navy;'>navy</span>, <span style='color:olive;'>olive</span>, <span style='color:purple;'>purple</span>, <span style='color:red;'>red</span>, <span style='color:silver;'>silver</span>, <span style='color:teal;'>teal</span>, <span style='color:white;background-color:black;'>white</span>, and <span style='color:yellow;background-color:black;'>yellow</span>. All other colors must be specified using a hex value (ex: <span style='color:#FF0000;'>#FF0000</span>)."},
{name:"border top style",m:"borderTopStyle",choices:a,help:"The style of the element's top side of the border."},{name:"border top width",format:"px",m:"borderTopWidth",choices:b,help:"The thickness of the element's top side of the border."},{name:"Padding",category:true},{name:"padding bottom",format:"px",m:"paddingBottom",choices:c,help:"Sets the distance between the bottom edge of the current element and the element's content. Specify in pixels. <br>Ex: 12px",La:true},{name:"padding left",format:"px",
m:"paddingLeft",choices:c,help:"Sets the distance between the left edge of the current element and the element's content. Specify in pixels. <br>Ex: 12px",La:true},{name:"padding right",format:"px",m:"paddingRight",choices:c,help:"Sets the distance between the right edge of the current element and the element's content. Specify in pixels. <br>Ex: 12px",La:true},{name:"padding top",format:"px",m:"paddingTop",choices:c,help:"Sets the distance between the top edge of the current element and the element's content. Specify in pixels. <br>Ex: 12px",
La:true},{name:"Classes",category:true,c:"dspf"},{name:"css class",fa:true,help:"Defines a custom cascading style sheet class to assign to the element.  To specify multiple classes, right-click the property and select Add Another CSS Class.",c:"dspf"},{name:"focus class",help:"Defines a custom cascading style sheet class for when the element receives focus.",c:"dspf",controls:["combo box","date field","password field","select box","spinner","text area","textbox"]},{name:"display attribute field",
readOnly:true,i:true,j:["char"],Lf:1,help:"This property identifies a field containing a display attribute hex value.  It represents the DSPATR keyword with a program to system field parameter.  The hex value is translated to the appropriate css class at run time.",c:"dspf",viewdesigner:false},{name:"Misc",category:true},{name:"css class",J:"class",help:"Defines a custom cascading style sheet class to assign to the element.",c:"genie"},{name:"cursor",m:"cursor",choices:["auto","default","crosshair",
"pointer","move","e-resize","ne-resize","nw-resize","n-resize","se-resize","sw-resize","s-resize","w-resize","text","wait","help","Other..."],help:"Determines how the mouse cursor should look when hovering over the element. <br><br><u>Valid options</u>: <span style='cursor:default;'>default</span>, <span style='cursor:crosshair;'>crosshair</span>, <span style='cursor:pointer;'>pointer</span>, <span style='cursor:move;'>move</span>, <span style='cursor:e-resize;'>e-resize</span>, <span style='cursor:ne-resize;'>ne-resize</span>, <span style='cursor:nw-resize;'>nw-resize</span>, <span style='cursor:n-resize;'>n-resize</span>, <span style='cursor:se-resize;'>se-resize</span>, <span style='cursor:sw-resize;'>sw-resize</span>, <span style='cursor:s-resize;'>s-resize</span>, <span style='cursor:w-resize;'>w-resize</span>, <span style='cursor:text;'>text</span>, <span style='cursor:wait;'>wait</span>, <span style='cursor:help;'>help</span>.<br><br>Hover over the options above to see the cursor.",
La:true},{name:"overflow x",m:"overflowX",choices:["visible","hidden","scroll","auto"],help:"Determines whether a horizontal scrollbar should be displayed for this element.<br><br><u>Valid options</u>: <br>'visible' - lets the content flow beyond the dimensions of the element without a scrollbar.<br><br>'hidden' - does not display a scrollbar and hides overflowing content.<br><br>'scroll' - always displays the scrollbar.  <br><br>'auto' - displays the scrollbar only when the element's content goes beyond the elements dimensions.",
La:true},{name:"overflow y",m:"overflowY",choices:["visible","hidden","scroll","auto"],help:"Determines whether a vertical scrollbar should be displayed for this element.<br><br><u>Valid options</u>: <br>'visible' - lets the content flow beyond the dimensions of the element without a scrollbar.<br><br>'hidden' - does not display a scrollbar and hides overflowing content.<br><br>'scroll' - always displays the scrollbar.  <br><br>'auto' - displays the scrollbar only when the element's content goes beyond the elements dimensions.",
La:true},{name:"tab index",format:"number",J:"tabIndex",help:"Determines the tab order for input elements on the screen."+(M=="genie"?" This property does not take effect unless the Prevent Auto Tab property is set to true under Screen Properties.":"")},{name:"tool tip",type:"long",zf:true,J:"title",translate:true,help:"Defines the text to appear in a tool tip when the user hovers the mouse over this element."},{name:"user defined data",fa:true,help:"Specifies user-defined general purpose data associated with the widget.  To provide multiple user defined data values, right-click the property and select Add Another User Defined Value."},
{name:"visibility",format:"visible / hidden",m:"visibility",choices:["hidden","visible"],help:"Determines whether the element is visible or hidden.  Hidden elements appear dimmed out in design mode, and invisible at runtime."},{name:"inline style",type:"long",J:"style",help:'This property lets you define CSS properties that will be applied to the widget.  These properties are applied inline, and therefore take precedence over those defined in a CSS class. Multiple properties may be provided, separated by a semi-colon.  You can learn more about CSS properties at the following link: http://www.w3schools.com/cssref/. If you define CSS properties that are defined by other widget properties, the widget properties overrule the CSS inline properties. These CSS properties are ignored and should be set using the widget properties: "position", "visibility", "display", "left", "right", "top", "bottom", "width", "height"'},
{name:"Events",category:true},{name:"onblur",type:"js",help:"Initiates a client-side script when the element loses focus."},{name:"onchange",type:"js",help:"Initiates a client-side script when the element value is changed."},{name:"onclick",type:"js",help:"Initiates a client-side script when the element is clicked."},{name:"ondblclick",type:"js",help:"Initiates a client-side script when the element is double-clicked."},{name:"onfocus",type:"js",help:"Initiates a client-side script when the element receives focus."},
{name:"onkeydown",type:"js",help:"Initiates a client-side script when a keyboard key is being pressed down on this element."},{name:"onkeypress",type:"js",help:"Initiates a client-side script when the user presses and releases a keyboard key on this element."},{name:"onkeyup",type:"js",help:"Initiates a client-side script when the user releases a keyboard key on this element."},{name:"onmousedown",type:"js",help:"Initiates a client-side script when the mouse is pressed down on this element."},{name:"onmousemove",
type:"js",help:"Initiates a client-side script when the mouse is moving within this element."},{name:"onmouseout",type:"js",help:"Initiates a client-side script when the mouse is moved off this element."},{name:"onmouseover",type:"js",help:"Initiates a client-side script when the mouse is moved over this element."},{name:"onmouseup",type:"js",help:"Initiates a client-side script when the mouse button is released off this element."},{name:"onselect",controls:["combo box","textbox"],type:"js",help:"Initiates a client-side script when a selection is made from the selection list of an auto-complete textbox or a combo box. In the case of an auto-complete textbox, the selected record is passed to the function as a JSON object that has properties named after the selected fields."},
{name:"onspin",controls:["spinner"],type:"js",help:"Initiates a client-side script when the up or down arrow is clicked on a spinner element."}]}function lb(a){for(var b={},c=0;c<a.length;c++)b[a[c].name]=a[c];return b}function mb(){if(ib!=null)return ib;return ib=lb(kb())}
function nb(a,b,c){if(typeof a=="string")a=Ra(a);if(a==null)return null;b=="shortcut key"&&pui.Wm(c,a);if(b=="focus class"){a.focusClass=bb(c);N(a,"focus",pui.Mj);N(a,"blur",pui.Dl)}if(b=="required")a.wl=c=="true";if(b=="mandatory entry")a.yj=c=="true";if(b=="mandatory fill")a.zj=c=="true";if(b=="valid values")a.oj=c;if(b=="allow blanks")a.Jj=c=="true";if(b=="auto advance"){var d=a;if(a.comboBoxWidget!=null)d=a.comboBoxWidget.getBox();if(c=="true"){d.kh=true;N(d,"keyup",pui.lh)}else{d.kh=true;eb(d,
"keyup",pui.lh)}}if(b=="validate name")a.qj=c=="true";if(b=="validate email")a.Ug=c=="true";if(b=="comparison operator")a.th=c=="true";if(b=="comparison value")a.uh=c;if(b=="range low")a.de=c;if(b=="range high")a.ce=c;if(b=="checked value")a.kb=c;if(b=="unchecked value")a.hc=c;if(b=="bypass validation")a.C=c;if(b=="set focus"&&(c==true||c=="true")){d=a;if(d.comboBoxWidget!=null)d=d.comboBoxWidget.getBox();d.focus();pui.I.dom=d;pui.I.td=true}d=(a.df==null?mb():a.df)[b];if(d==null)a:{if(jb==null){d=
kb();jb=[];for(var f=0;f<d.length;f++)d[f].fa!=null&&d[f].fa==true&&jb.push(d[f])}for(f=0;f<jb.length;f++)if(b.substr(0,jb[f].name.length)===jb[f].name){d=jb[f];break a}d=null}if(d!=null){if(a.pui==null||a.pui.properties==null){f="";var g="output field";if(a.tagName=="DIV")f=ob(a);if(a.tagName=="INPUT"){f=a.value;g="textbox";if(a.type=="button"||a.type=="submit")g="button"}if(b=="field type")g=c;if(a.pui==null)a.pui={};a.pui.properties={"field type":g,value:f}}a.pui.properties[b]=c;return pb(d,a.pui.properties,
a,c,false)}}
function pb(a,b,c,d,f,g,k,l){if(d=="Other..."&&f&&a.name!="value")return c;var h=c,o;if(f){o=g.originalValue;g.Vb=true}else if(b.originalValue!=null)o=b.originalValue;else{o=c.tagName=="DIV"?c.comboBoxWidget!=null?c.comboBoxWidget.getValue():c.G!=null?c.G.value:ob(c):c.value;b.originalValue=o}var p=cb(d,o,c),s=a.name,t,y;if(s=="field type"){t=pui.widgets[p];if(t==null)return h;h=t.tag;var z=t.inputType;switch(p){case "select box":if(!f&&c.readOnly&&c.tagName=="INPUT")switch(pui.K.config.protectedSelectBox){case "disable":c.disabled=true;
break;case "output":default:h="input";z=c.type}if(f&&pui.is_old_ie&&pui.ie_mode==6&&(String(g.properties["select box height"])==""||String(g.properties["select box height"])=="1"||String(g.properties["select box height"])=="undefined")){h="input";z="text"}break}var A=false,B=false;y=c.tagName.toLowerCase()!=h;if(!y&&c.tagName.toLowerCase()=="input")if(c.type!=z){y=true;if(c.type=="number"&&z=="text")y=false}if(y){A=true;y=document.createElement(h);if(h=="input"||!pui.is_old_ie&&h=="button")y.type=
z;c.parentNode!=null&&c.parentNode.replaceChild(y,c);y.style.left=c.style.left;y.style.top=c.style.top;y.style.width=c.style.width;y.style.height=c.style.height;y.style.position=c.style.position;y.style.cursor=c.style.cursor;y.style.visibility=c.style.visibility;y.id=c.id;y.name=c.name;if(M=="dspf"){if(c.Ib!=null)y.Ib=c.Ib;if(c.ad!=null)y.ad=c.ad}if(M=="genie"){y.w=c.w;if(pui.K.I==c)pui.K.I=y;B=true}if(c.className.indexOf("hide")!=-1){y.className="hide";if(f){y.style.visibility="visible";y.style.filter=
"alpha(opacity=30)";y.style.opacity=0.3}}c.getAttribute("maxlength")!=null&&y.setAttribute("maxlength",c.getAttribute("maxlength"));y.disabled=c.disabled;if(c.hb!=null)y.hb=c.hb;if(c.gb!=null)y.gb=c.gb;if(c.Xh)y.Xh=true;M=="genie"&&attachInputEvents(y);if(f){g.dom=y;k!=null&&k.hq(g);g.designer.gq(y,g)}if(c.readOnly)if(h=="input"){if(y.type=="checkbox"||y.type=="radio")M=="genie"&&N(y,"click",disableInputControl)}else if(h=="textarea")y.readOnly=true}else{y=c;if(h=="div"&&p!="tab panel")y.tabPanel=
null;if(f||p=="chart"||p=="radio button")A=true}if(A){h=kb();for(z=0;z<h.length;z++){A=h[z].name;var v=b[A];if(v!=null&&v!=""){var I=h[z].m!=null;if(A=="overflow x"||A=="overflow y")if(b["field type"]=="layout")I=false;if(I)if(h[z].m=="visibility"&&f)if(v=="hidden"){y.style.filter="alpha(opacity=30)";y.style.opacity=0.3}else{y.style.filter="";y.style.opacity=""}else try{var G=pui.xk(h[z].m,v);y.style[h[z].m]=G;f&&pui.Df(y,h[z].m,G)}catch(E){}if(h[z].J!=null){if(h[z].type=="boolean"&&v=="true")v=true;
if(h[z].type=="boolean"&&v=="false")v=false;if(h[z].J=="disabled"&&f)v=false;try{if(v==false)y.getAttribute(h[z].J)!=null&&y.removeAttribute(h[z].J);else{var C=cb(v,o,y);if(h[z].J=="src")C=pui.normalizeURL(C,true);h[z].J!=="style"&&y.setAttribute(h[z].J,C);if(h[z].J=="class")y.className=v}}catch(u){}}}}}if(M=="dspf"){z=[];z.push(b["css class"]);A=2;for(v=b["css class "+A];v!=null;){z.push(v);A++;v=b["css class "+A]}A=b["display attribute field"];v=false;if(A!=null&&!pui.p(A)&&A!=""&&A!=" "){z=z.concat(pui.Oj(A));
v=true}qb(y,z,v)}h=y;if(!t.resizable){h.style.width="";h.style.height=""}}else{t=pui.widgets[b["field type"]];if(t==null)return h}if(h.pui==null)h.pui={};if(h.pui.properties==null)h.pui.properties={};h.pui.properties[s]=p;if(s=="value"&&d!="script: value"&&!f&&M=="genie"&&h.w!=null&&h.w.idx!=null)h.tagName=="INPUT"&&h.type=="radio"&&h.checked!=true||(pui.response[h.w.idx]=h);if(f&&s=="screen identifier"&&M=="genie"){z="red";z=d=="true"||d==true?"red":"#cccccc";if(h.style.borderLeftStyle=="dotted")h.style.borderLeftColor=
z;if(h.style.borderRightStyle=="dotted")h.style.borderRightColor=z;if(h.style.borderTopStyle=="dotted")h.style.borderTopColor=z;if(h.style.borderBottomStyle=="dotted")h.style.borderBottomColor=z}z=t.Pd;A=t.propertySetters;v=null;if(A!=null)v=A[s];var K;if(v!=null||z!=null)K={newValue:d,value:p,design:f,properties:b,originalValue:o,dom:h,Za:c,propertyName:s,e:g,Hl:k,evalProperty:function(S){return cb(this.properties[S],this.originalValue,this.dom)}};if(z!=null)if(z(K)==false)return;if(v!=null)if(v(K)==
false)return;if(B)if(y.comboBoxWidget!=null){B=y.comboBoxWidget.getBox();pui.Vm(B);B.w=y.w;attachInputEvents(B);y.comboBoxWidget.zp(c.maxLength)}else pui.Vm(y);if(s=="id"&&f){y=g.designer;B=y.selection;if(g.dom.id!=d&&document.getElementById(d)!=null)if(!(pui.is_old_ie&&g.dom.id.toUpperCase()==d.toUpperCase())){pui.alert('The ID "'+d+'" is already in use.');y.Ta.refresh();return h}for(z=0;z<B.ec.length;z++)if(g.properties.newitem=="true")if(gb[y.ya.Ua]&&gb[y.ya.Ua].items){A=gb[y.ya.Ua].items;for(v=
0;v<A.length;v++)if(A[v].id==g.properties.id)A[v].id=d}B.ec.length==1&&y.Ta.or("Properties - "+p)}if(s=="parent tab panel"&&(f||b.visibility!="hidden"))c.hb=p;if(s=="parent tab")c.gb=p;if(s=="top"||s=="left"||s=="right"||s=="bottom")pui.Mo(c);s=="empty text"&&!f&&pui.vp(c,p);y=null;if(String(d).substr(0,3).toLowerCase()=="js:")y=d.substr(3);if(String(d).substr(0,11).toLowerCase()=="javascript:")y=d.substr(11);if(String(d).substr(0,7).toLowerCase()=="script:")y=d.substr(7);if(a.m!=null){if(a.m=="visibility"&&
f)if(p=="hidden"){c.style.filter="alpha(opacity=30)";c.style.opacity=0.3}else{c.style.filter="";c.style.opacity="";c.style.visibility=p}else if(a.m=="backgroundColor"&&c.tabPanel!=null){c.tabPanel.yc=p?p:"#eeeeff";if(M=="genie"||f)c.tabPanel.r()}else{try{G=pui.xk(a.m,p);c.style[a.m]=G;if(f)p===null||p.length==0?pui.Hi(c,a.m):pui.Df(c,a.m,G)}catch(ba){if(y==null&&f){G="'"+d+"' is not a valid value for "+s+".";if(Ta.Vd){B=Ta.designer.Ri[Ta.designer.ya.Ua]["record format name"];if(b.grid!=null){z=Ra(b.grid);
if(z!=null&&z.grid!=null)B=z.grid.dc}G+="\n\n\nRecord Format: "+B;G+="\n\nElement Id: "+b.id;G+="\n\nElement Type: "+b["field type"]}pui.alert(G)}}if(c.tabPanel!=null)if(a.m=="color"||a.m=="fontFamily"||a.m=="fontSize"||a.m=="height"||a.m=="width")if(M=="genie"||f)c.tabPanel.r()}a.m=="visibility"&&p=="hidden"&&!f&&b["field type"]=="date field"&&setTimeout(function(){if(c.calimg&&c.style.visibility=="hidden")c.calimg.style.visibility="hidden"},1);a.m=="visibility"&&p=="hidden"&&!f&&b["field type"]==
"spinner"&&setTimeout(function(){c.ne&&c.style.visibility=="hidden"&&c.ne.hide()},1);if(a.m=="color"&&c.firstChild!=null&&c.firstChild.tagName=="A")c.firstChild.style.color=p;else if(a.m=="color"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.color=p;if(a.m=="textDecoration"&&c.firstChild!=null&&c.firstChild.tagName=="A")c.firstChild.style.textDecoration=p;else if(a.m=="textDecoration"&&c.firstChild!=null&&c.firstChild.nextSibling!=
null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.textDecoration=p;if(a.m=="width"&&!t.resizable)c.style.width="";if(a.m=="height"&&!t.resizable)c.style.height=""}if(a.J!=null)if(p=="")try{a.J==="style"?rb(c):c.removeAttribute(a.J);if(a.J=="class")c.className=""}catch(Y){y==null&&f&&pui.alert(Y.message)}else try{C=p;if(a.type=="boolean"&&C=="true"){C=true;if(a.J=="disabled"&&f)C=false}if(a.type=="boolean"&&C=="false")C=false;if(C==false)c.getAttribute(a.J)!=null&&c.removeAttribute(a.J);
else{if(a.J=="src")C=pui.normalizeURL(C,true);a.J==="style"?sb(c,C,b["field type"]==="layout"):c.setAttribute(a.J,C);if(a.J=="class")c.className=C}}catch(L){if(y==null&&f){G="'"+d+"' is not a valid value for "+s+".";if(Ta.Vd){B=Ta.designer.Ri[Ta.designer.ya.Ua]["record format name"];if(b.grid!=null){z=Ra(b.grid);if(z!=null&&z.grid!=null)B=z.grid.dc}G+="\n\n\nRecord Format: "+B;G+="\n\nElement Id: "+b.id;G+="\n\nElement Type: "+b["field type"]}pui.alert(G)}}if(M=="dspf"&&(s.substr(0,9)=="css class"||
s=="display attribute field")){z=[];z.push(b["css class"]);A=2;for(v=b["css class "+A];v!=null;){z.push(v);A++;v=b["css class "+A]}C=Number(s.substr(10));if(isNaN(C)||C<1||C>99)C=1;if(s!="display attribute field")z[C-1]=p;A=b["display attribute field"];v=false;if(A!=null&&!pui.p(A)&&A!=""&&A!=" "){z=z.concat(pui.Oj(A));v=true}qb(c,z,v)}if(a.type=="js"){a=null;if(s=="ontabclick")a=function(){eval("var tab = arguments[0];");try{return eval(d)}catch(S){pui.alert(s.substr(0,1).toUpperCase()+s.substr(1)+
" Error:\n"+S.message)}};else if(s=="onoptionclick")a=function(){eval("var value = arguments[0];");eval("var text = arguments[1];");try{eval(d)}catch(S){pui.alert(s.substr(0,1).toUpperCase()+s.substr(1)+" Error:\n"+S.message)}};else if(s=="onspin")a=function(){eval("var value = arguments[0];");eval("var increment = arguments[1];");eval("var spinner = arguments[2];");try{return eval(d)}catch(S){pui.alert(s.substr(0,1).toUpperCase()+s.substr(1)+" Error:\n"+S.message)}};else if(s=="onchartclick")a=function(S){eval("var name = arguments[0];");
try{var Z=eval(d);typeof Z=="function"&&Z(S)}catch(ea){pui.alert(s.substr(0,1).toUpperCase()+s.substr(1)+" Error:\n"+ea.message)}};else if(s!="onselect")a=function(S){if(pui.Ue==null)if(!(c.getAttribute!=null&&c.getAttribute("disabled")=="true"||c.disabled!=null&&c.disabled==true)){eval("var row;");l!=null&&eval("row = "+l+";");pui.temp_event=S;eval("var event = pui.temp_event;");try{var Z=eval(d);if(typeof Z=="function"){if(!S)S=window.event;Z(S,this)}}catch(ea){pui.alert(s.substr(0,1).toUpperCase()+
s.substr(1)+" Error:\n"+ea.message)}}};if(!f&&a!=null){c[s]=a;c.comboBoxWidget!=null&&s!="onselect"&&c.comboBoxWidget.Um(s,a)}}if(f){if(d!=""||b[s]!=null)b[s]=d;g.$a[s]=true;if(s=="field type"||s=="left"||s=="top"||s=="z index"||s=="visibility"||s=="height"||s=="width"||s=="label"||s=="color"||s=="font family"||s=="font size"||s=="font style"||s=="font weight")g.Rf();g.Te();k!=null&&k.rg();if(M=="dspf"){s=="id"&&pui.ide.br();if(s=="id"||s=="field type"||s=="value")pui.ide.zl();g.designer.oi()}}z=
t.ao;A=t.Pm;v=null;if(A!=null)v=A[s];if(v!=null||z!=null)K={newValue:d,value:p,design:f,properties:b,originalValue:o,dom:h,Za:c,propertyName:s,e:g,Hl:k,evalProperty:function(S){return cb(this.properties[S],this.originalValue,this.dom)}};z!=null&&z(K);v!=null&&v(K);return h}
function qb(a,b,c){function d(t){return t=="BLU"||t=="GRN"||t=="PNK"||t=="RED"||t=="TRQ"||t=="WHT"||t=="YLW"}for(var f=[],g=false,k=[],l=false,h=null,o=0;o<b.length;o++){var p=false;if(c&&o==b.length-1)p=true;var s=b[o];if(!(s==null||s=="")){if(d(s)){if(l&&!p)continue;if(l){if(p&&h!=null){f[h]=s;continue}}else{l=true;h=f.length}}f.push(s);if(s=="PR"||s=="PR-UL"){a.readOnly=true;a.tabIndex="-1";if(a.tagName=="SELECT")a.disabled=true;if(a.comboBoxWidget!=null){p=a.comboBoxWidget.getBox();p.readOnly=
true;p.disabled=true;p.tabIndex="-1"}}if(s=="RI")g=true;if(d(s)||s=="HI")k.push(s)}}if(g)for(o=0;o<k.length;o++)f.push("RI-"+k[o]);b=f.join(" ");a.setAttribute("class",b);a.className=b}
function cb(a){var b="";if(pui.p(a)||pui.mb(a)){if(a.designValue!=null)b=a.designValue;return b}if(a==null)a="";var c=null;if(String(a).substr(0,3).toLowerCase()=="js:")c=a.substr(3);if(String(a).substr(0,11).toLowerCase()=="javascript:")c=a.substr(11);if(String(a).substr(0,7).toLowerCase()=="script:")c=a.substr(7);if(c==null)b=a;else{eval("var value = arguments[1];");eval("var obj = arguments[2];");try{b=eval(c)}catch(d){if(!pui.kj){pui.kj=true;setTimeout(function(){pui.alert("Expression '"+bb(c)+
"' contains an error:\n\n"+d.message);pui.kj=false},1)}}}return b}pui.addCustomProperty=function(a){for(var b=kb(),c=mb(),d=false,f=b.length,g=0;g<b.length;g++)if(b[g].category==true&&b[g].name==a.category){f=g+1;d=true;break}if(!d){b.splice(f,0,{name:a.category,category:true,controls:a.controls});f++}delete a.category;b.splice(f,0,a);c[a.name]=a};pui.Jl=["position","visibility","display","left","right","top","bottom","width","height"];pui.dp=["overflow","overflow-x","overflow-y"];
function sb(a,b,c){if(a.pui.Eb&&a.pui.Eb!==null)for(var d in a.pui.Eb)a.style[d]="";a.pui.Eb={};b=b.split(";");for(var f=0;f<b.length;f++){var g=b[f].split(":");if(g.length==2){var k=g[0].replace(/^\s+|\s+$/gm,"");k=k.toLowerCase();if(!(pui.xc(pui.Jl,k)>=0))if(!(c&&pui.xc(pui.dp,k)>=0)){a.pui.Eb[k]=g[1];a.style[k]=g[1]}}}if(a.pui.Va&&a.pui.Va!==null)for(d in a.pui.Va)a.style[d]=a.pui.Va[d];else a.pui.Va={}}
function rb(a){if(!(typeof a.pui.Eb!=="object"||a.pui.Eb===null)){for(var b in a.pui.Eb)a.style[b]="";a.pui.Eb=null;if(a.pui.Va&&a.pui.Va!==null)for(b in a.pui.Va)a.style[b]=a.pui.Va[b];else a.pui.Va={}}}pui.Df=function(a,b,c){if(!a.pui.Va||a.pui.Va===null)a.pui.Va={};if(pui.xc(pui.Jl,b)<0)a.pui.Va[b]=c};
pui.Hi=function(a,b){typeof a.pui.Va!="undefined"&&a.pui.Va[b]!="undefined"&&delete a.pui.Va[b];if(typeof a.pui.Eb==="object"||a.pui.Eb!==null)for(var c in a.pui.Eb)a.style[c]=a.pui.Eb[c];for(c in a.pui.Va)a.style[c]=a.pui.Va[c]};function tb(a){if(typeof a=="string")a=Ra(a);if(a!=null)a.style.visibility="hidden"}function ub(){for(var a=0;a<ub.arguments.length;a++)tb(ub.arguments[a])}function vb(a){if(typeof a=="string")a=Ra(a);a!=null&&a.parentNode.removeChild(a)}function wb(){for(var a=0;a<wb.arguments.length;a++)vb(wb.arguments[a])}
function xb(a){var b;a=a!=null&&typeof a=="object"?a:document.getElementById(a);if(a==null)return"";b="";if(a.tagName.toLowerCase()=="div"){b=a.firstChild;b=b!=null&&b.tagName!=null&&b.tagName=="A"?b.innerHTML:a.innerHTML}if(a.tagName=="INPUT"&&a.type=="checkbox"){if(a.checked&&a.kb!=null)return a.kb;if(!a.checked&&a.hc!=null)return a.hc;return a.checked}if(a.tagName=="INPUT"||a.tagName=="TEXTAREA")b=a.value;if(a.tagName=="SELECT"){b=a.selectedIndex;b=b>=0?a.options[b].value:a.pui&&a.pui.properties&&
a.pui.properties.value?a.pui.properties.value:a.value}if(a.comboBoxWidget!=null)b=a.comboBoxWidget.getValue();if(a.G!=null)b=String(a.value);if(a.z!=null){b="";if(a.z.ac&&a.z.Zd!=null)b=a.z.Zd;else if(!a.z.ac&&a.z.Xd!=null)b=a.z.Xd}for(b=b.replace(/&nbsp;/g," ");b.indexOf(String.fromCharCode(160))!=-1;)b=b.replace(String.fromCharCode(160)," ");if(b==a.emptyText)b="";return b}function yb(a){return bb(xb(a))}function Ra(a){return document.getElementById(a)}
function zb(a,b){var c;c=typeof a=="object"?a:document.getElementById(a);if(c!=null){if(c.tagName=="DIV")if(c.G!=null)c.G.setValue(b);else if(c.comboBoxWidget!=null)c.comboBoxWidget.setValue(b);else if(c.button&&c.button.h)c.button.h.innerHTML=b;else c.innerHTML=b;if(c.tagName=="INPUT"||c.tagName=="SELECT"||c.tagName=="TEXTAREA")if(c.tagName=="INPUT"&&c.type=="checkbox")c.checked=typeof b=="boolean"?b:c.kb!=null&&b==c.kb?true:false;else c.value=b;if(M=="dspf"||pui.N&&c.w==null){c.modified=true;var d=
c.B;if(c.id!=null&&c.id.indexOf(".")==-1&&c.Ib!=null)pui.Gd[c.Ib]=true;if(d!=null){d.hide();d.U=true;pui.Q(c,d.ed())}}if(M=="genie"&&c.w!=null&&c.w.idx!=null)pui.response[c.w.idx]=c;pui.Cc(c);if(c.pui&&c.pui.properties)c.pui.properties.value=b}}
function Ab(a,b,c,d,f){if(typeof a=="string"){f=c;d=b;c=a;a=b=0}var g;if(c==null)c="div";g=c=c.toLowerCase();if(c=="dspf")g="div";if(c=="button")g="input";g=document.createElement(g);g.style.position="absolute";g.style.top=a*pui.jg+xa+"px";g.style.left=b*pui.ig+"px";if(d!=null)switch(c){case "div":g.innerHTML=d;break;case "dspf":a=new pui.Ajax(d);a.async=false;a.send();if(a.il())g.innerHTML=a.$b();break;case "input":g.value=d;break;case "button":g.type="button";g.value=d;g.className="button";if(!pui.is_quirksmode)g.style.width=
"55px";break;case "img":g.src=d;break}if(f!=null)g.id=f;if(c=="input"){document.forms.main.appendChild(g);N(g,"keydown",Oa)}else{M=="genie"&&document.getElementById(ma).appendChild(g);M=="dspf"&&pui.runtimeContainer.appendChild(g)}return g}function Ma(a){if(!a)a=window.event;if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(a.preventDefault){a.cancelBubble=true;a.preventDefault()}}var Bb={};
function Ya(a){for(;a.charAt(0)==" ";)a=a.replace(a.charAt(0),"");return a}function Wa(a){for(;a.charAt(a.length-1)==" ";)a=a.substring(0,a.length-1);return a}function bb(a){return a.replace(/^\s*|\s*$/g,"")}function ab(a,b){var c;try{c=document.createElement("<"+a+' name="'+b+'">')}catch(d){c=document.createElement(a);c.name=b}return c}
function ob(a){if(typeof a=="string")a=Ra(a);if(a==null)return"";var b=a.textContent;if(b==null){b=a.innerText;if(b==null)return""}for(;b.indexOf(String.fromCharCode(160))!=-1;)b=b.replace(String.fromCharCode(160)," ");return b}
function Za(a,b,c){var d=false,f=location.href;f=f.split("?")[0];f=f.split("/");if(f.length>2&&f[f.length-2].toLowerCase()=="auth")d=true;f="/profoundui/";if(d==true||c==true)f+="auth/";f+=a;if(b!=null&&b==true)f+="/"+PSID;if(pui.serverURL!=null)f=pui.serverURL+f;return f}function N(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)}
function eb(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else a.detachEvent&&a.detachEvent("on"+b,c)}
function Cb(a){if(a!=null&&a.touches!=null&&a.touches.length==1)return a.touches[0].pageX;var b=0;if(window.event!=null){if(window.event.clientX!=null)b+=window.event.clientX;if(document.documentElement!=null&&document.documentElement.scrollLeft!=null)b+=document.documentElement.scrollLeft;if(document.body!=null&&document.body.scrollLeft!=null)b+=document.body.scrollLeft}else if(a!=null){if(a.clientX!=null)b+=a.clientX;if(a.scrollX!=null)b+=a.scrollX}return b}
function Db(a){if(a!=null&&a.touches!=null&&a.touches.length==1)return a.touches[0].pageY;var b=0;if(window.event!=null){if(window.event.clientY!=null)b+=window.event.clientY;if(document.documentElement!=null&&document.documentElement.scrollTop!=null)b+=document.documentElement.scrollTop;if(document.body!=null&&document.body.scrollTop!=null)b+=document.body.scrollTop}else if(a!=null){if(a.clientY!=null)b+=a.clientY;if(a.scrollY!=null)b+=a.scrollY}return b}pui.He=function(a){return pui.wk(a).x};
pui.Uf=function(a){return pui.wk(a).y};pui.wk=function(a){a=a||window.event;var b={x:0,y:0};if(a!=null&&a.touches!=null&&a.touches.length==1){b.x=a.touches[0].pageX;b.y=a.touches[0].pageY}else if(a!=null){if(a.pageX)b.x=a.pageX;else if(a.clientX)b.x=a.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);if(a.pageY)b.y=a.pageY;else if(a.clientY)b.y=a.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}return b};
function Eb(){return pui.currentFormatNames}function Fb(){var a={},b="";b=location.search.substring(1,location.search.length);if(b.length==0)return a;b=b.replace(/\+/g," ");b=b.split("&");for(var c=0;c<b.length;c++){var d=b[c].split("="),f=decodeURIComponent(d[0]),g="";if(d.length==2)g=decodeURIComponent(d[1]);a[f]=g}return a}if(typeof nb!="undefined")window.eq=nb;
pui.pe={encode:function(a){for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);if(d<128)b+=String.fromCharCode(d);else{if(d>127&&d<2048)b+=String.fromCharCode(d>>6|192);else{b+=String.fromCharCode(d>>12|224);b+=String.fromCharCode(d>>6&63|128)}b+=String.fromCharCode(d&63|128)}}return b},decode:function(a){for(var b="",c=0,d=c1=c2=0;c<a.length;){d=a.charCodeAt(c);if(d<128){b+=String.fromCharCode(d);c++}else if(d>191&&d<224){c2=a.charCodeAt(c+1);b+=String.fromCharCode((d&31)<<6|c2&63);c+=2}else{c2=
a.charCodeAt(c+1);c3=a.charCodeAt(c+2);b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63);c+=3}}return b}};
pui.wj={wc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b="",c,d,f,g,k,l,h=0;for(a=pui.pe.encode(a);h<a.length;){c=a.charCodeAt(h++);d=a.charCodeAt(h++);f=a.charCodeAt(h++);g=c>>2;c=(c&3)<<4|d>>4;k=(d&15)<<2|f>>6;l=f&63;if(isNaN(d))k=l=64;else if(isNaN(f))l=64;b=b+this.wc.charAt(g)+this.wc.charAt(c)+this.wc.charAt(k)+this.wc.charAt(l)}return b},decode:function(a){var b="",c,d,f,g,k,l=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<a.length;){c=this.wc.indexOf(a.charAt(l++));
d=this.wc.indexOf(a.charAt(l++));g=this.wc.indexOf(a.charAt(l++));k=this.wc.indexOf(a.charAt(l++));c=c<<2|d>>4;d=(d&15)<<4|g>>2;f=(g&3)<<6|k;b+=String.fromCharCode(c);if(g!=64)b+=String.fromCharCode(d);if(k!=64)b+=String.fromCharCode(f)}return b=pui.pe.decode(b)}};pui.downloadJSON=function(){pui.savedJSON==null?pui.alert("JSON is not available."):pui.pk("text/plain","json.txt",pui.savedJSON)};
pui.keepAlive=function(){var a;if(M=="dspf")a=pui.K==null?Za("PUI0001200.pgm"):Za("PUI0002110.pgm");else if(M=="genie")a=DOCUMENT_URI;else return false;if(pui.psid!=null&&pui.psid!="")a+="/"+pui.psid;if(M=="genie")pui.K.Ab=true;if(M=="dspf")pui.Ob=false;pui.uc();$a({url:a,method:"post",params:{keepalive:"1"},sendAsBinary:false,suppressAlert:true,handler:function(){pui.Ya(true);if(M=="genie")pui.K.Ab=false;if(M=="dspf"){pui.Ob=true;for(var b=0;b<pui.ta.length;b++)pui.ta[b].vf()}},onfail:function(b){pui.onoffline==
null&&!pui["suppress comm errors"]&&pui.alert(pui.Ie(b));pui.Ya(true);if(M=="genie")pui.K.Ab=false;if(M=="dspf"){pui.Ob=true;for(b=0;b<pui.ta.length;b++)pui.ta[b].vf()}pui.onoffline!=null&&pui.onoffline()}});return true};
pui.getWindowSize=function(){var a,b;if(document.body&&document.body.offsetWidth){a=document.body.offsetWidth;b=document.body.offsetHeight}if(document.compatMode=="CSS1Compat"&&document.documentElement&&document.documentElement.offsetWidth){a=document.documentElement.offsetWidth;b=document.documentElement.offsetHeight}if(window.innerWidth&&window.innerHeight){a=window.innerWidth;b=window.innerHeight}if(a==null&&screen!=null)a=screen.width;if(b==null&&screen!=null)b=screen.height;if(a==null)a=800;
if(b==null)b=600;return{width:a,height:b}};pui.openURL=function(a){window.open(a)};pui.normalizeURL=function(a,b){if(a==null||typeof a!="string")return"";if(b==true&&window.puiMobileClient==null)return a;if(a.substr(0,5).toLowerCase()=="http:"||a.substr(0,6).toLowerCase()=="https:")return a;return pui.serverURL!=null?pui.serverURL+a:window.cordova&&a.substr(0,1)=="/"?a.substr(1):a};
pui.animate=function(a){var b=a.element;if(typeof b=="string")b=Ra(b);if(b!=null){var c,d=a.effect;if(d=="fly in left"||d=="fly in right"||d=="fly out left"||d=="fly out right")c="left";else if(d=="fly in up"||d=="fly in down"||d=="fly out up"||d=="fly out down")c="top";else if(d=="fade in"||d=="fade out")c="opacity";else{c=a.properties;if(c==null){c=a.property;if(c==null)return}}if(typeof c=="string")c=[c];var f=a.duration;if(f==null)f="500ms";if(f.substr(f.length-1,1)!="s")f+="s";var g=parseInt(f)*
1E3;if(f.length>2&&f.substr(f.length-2,2)=="ms")g=parseInt(f);var k=a.type;if(k==null)k="ease";var l=a.from,h=a.to;switch(d){case "fly in right":l=-b.offsetWidth;l+="px";h="0px";break;case "fly in left":l=b.offsetWidth;l+="px";h="0px";break;case "fly out left":h=-b.offsetWidth;h+="px";l="0px";break;case "fly out right":h=b.offsetWidth;h+="px";l="0px";break;case "fly out down":h=b.offsetHeight;h+="px";l="0px";break;case "fly out up":h=-b.offsetHeight;h+="px";l="0px";break;case "fly in up":l=b.offsetHeight;
l+="px";h="0px";break;case "fly in down":l=-b.offsetHeight;l+="px";h="0px";break;case "fade in":l="0";h="100";break;case "fade out":l="100";h="0";break}if(h!=null){var o="";for(d=0;d<c.length;d++){var p=c[d];if(o!="")o+=", ";o+=p+" "+f+" "+k}var s=["transition","MozTransition","WebkitTransition","msTransition","OTransition"];if(l!=null){if(typeof l=="string"||typeof l=="number")l=[l];for(d=0;d<c.length;d++){p=c[d];b.style[p]=l[d]}}setTimeout(function(){for(var t=0;t<s.length;t++)b.style[s[t]]=o;setTimeout(function(){if(typeof h==
"string"||typeof h=="number")h=[h];for(var y=0;y<c.length;y++)b.style[c[y]]=h[y];setTimeout(function(){for(var z=0;z<s.length;z++)b.style[s[z]]="";a.oncomplete!=null&&a.oncomplete()},g)},1)},1)}}};pui.getActiveElement=function(){return M=="genie"?lastActiveElement:pui.activeElement};pui.fieldExit=function(a){var b=pui.getActiveElement();if(b!=null){var c=false;if(a!=null)c=true;M=="genie"?Xa(b,c):pui.kk(b)}};
pui.showCalendar=function(a){var b=a;if(typeof a=="string")b=Ra(a);if(b!=null)if(typeof b=="object"){var c=b.calimg;if(c!=null)if(c.click!=null&&typeof c.click=="function")c.click();else c.onclick!=null&&typeof c.onclick=="function"&&setTimeout(function(){c.onclick()},250)}};pui.getComputedStyle=function(a){var b=null;if(window.getComputedStyle)b=window.getComputedStyle(a);else if(a.currentStyle)b=a.currentStyle;return b};
pui.upload=function(a,b){var c=a.dir,d=a.overwrite===true,f;if(typeof a.slimit=="number")f=a.slimit;var g;if(typeof a.flimit=="number")g=a.flimit;var k="";if(typeof a.altname=="string")k=a.altname;var l;if(typeof a.allowedTypes&&a.allowedTypes instanceof Array)l=a.allowedTypes;if(g==null)g=a.files.length;if(f==null||l==null){for(var h,o=[],p=0;p<a.files.length;p++){var s=a.files[p],t=typeof s.type!="undefined"&&s.type!=""?s.type:"application/octet-stream";pui.xc(o,t)==-1&&o.push(t);s=s.data&&s.data instanceof
ArrayBuffer?s.data.byteLength:s.size;s=Math.ceil(s/1048576);if(h==null||s>h)h=s}if(f==null)f=h;if(l==null)l=o}h=Za("PUI0009109.PGM");h+="?AUTH="+encodeURIComponent(pui.appJob.auth);h+="&mode=ajax";h+="&r="+Math.floor(Math.random()*1E9);o=new FormData;o.append("dir",c);o.append("overwrite",d?"1":"0");o.append("flimit",g);o.append("slimit",f);o.append("altname",k);for(p=0;p<l.length;p++)o.append("type",l[p]);for(p=0;p<a.files.length;p++){s=a.files[p];if(s.data&&s.data instanceof ArrayBuffer){var y;
try{y=new Blob([s.data])}catch(z){c=new window.WebKitBlobBuilder;c.append(s.data);y=c.getBlob()}o.append("file",y)}else o.append("file",s);o.append("filename",s.name)}var A=new XMLHttpRequest;A.open("POST",h,true);A.onreadystatechange=function(){if(A.readyState==4){var B=true,v;if(A.status==200){var I;try{I=eval("("+A.responseText+")")}catch(G){B=false;v="Server response missing or invalid."}if(I){B=I.success;if(!B)if(I.key){v=pui.getLanguageText("runtimeMsg","upload "+I.key);if(I.key=="file limit")v=
v.replace("&1",g);if(I.key=="size limit")v=v.replace("&1",f)}else v=I.error}}else{B=false;v=A.status+" - "+A.statusText+"."}typeof b=="function"&&b(B,v)}};A.send(o)};pui.getCookie=function(a){var b=document.cookie.split(";"),c="",d="",f="",g="";for(g=0;g<b.length;g++){c=b[g].split("=");d=c[0].replace(/^\s+|\s+$/g,"");if(d==a){if(c.length>1)f=unescape(c[1].replace(/^\s+|\s+$/g,""));return f}}return null};
pui.setCookie=function(a,b,c,d,f,g){var k=new Date;k.setTime(k.getTime());if(c)c=c*1E3*60*60*24;k=new Date(k.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+k.toGMTString():"")+(d?";path="+d:"")+(f?";domain="+f:"")+(g?";secure":"")};pui.deleteCookie=function(a,b,c){if(pui.getCookie(a))document.cookie=a+"="+(b?";path="+b:"")+(c?";domain="+c:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"};
pui.refresh=function(a){if(a==null)a={};var b=a.url;a=a.skin;pui.setCookie("puiRefreshId",pui.psid,null,"/");pui.skipConfirm=true;pui.shutdownOnClose=false;pui.confirmOnClose=false;if(a!=null){a="skin="+encodeURIComponent(a);b=window.location.href;var c=b.split("?");b=c[0];c=c[1];if(c==null)c="";qparms=c.split("&");c=false;for(var d=0;d<qparms.length;d++)if(qparms[d].length>=5&&qparms[d].substr(0,5).toLowerCase()=="skin="){qparms[d]=a;c=true}if(!c)if(qparms.length==1&&qparms[0]=="")qparms[0]=a;else qparms.push(a);
c=qparms.join("&");b=b+"?"+c}if(b!=null)window.location.href=b;else window.location.reload()};pui.downloadURL=function(a){var b=a.inline===true;if(a.id!=null){var c=Za("PUI0009110.PGM");c+="?id="+encodeURIComponent(a.id);if(a.contentType!=null)c+="&type="+encodeURIComponent(a.contentType);if(b)c+="&inline=1";c+="&usehttprc=0";c+="&AUTH="+encodeURIComponent(pui.appJob.auth);c+="&r="+Math.floor(Math.random()*1E9);return c}};
pui.download=function(a){var b=pui.downloadURL(a);a.inline===true?pui.openURL(b):pui.link(b)};
pui.focusOnContainer=function(){setTimeout(function(){if(pui.rb==null){pui.rb=document.createElement("input");pui.rb.type=pui.is_touch?"button":"text";pui.rb.readOnly=true;pui.rb.style.position="absolute";pui.rb.style.left="-999px";pui.rb.style.top="-999px";pui.rb.style.width="10px";pui.rb.style.borderStyle="none";pui.rb.style.backgroundColor="transparent";pui.runtimeContainer.appendChild(pui.rb)}pui.ld=true;pui.rb.focus();setTimeout(function(){pui.ld=false},0)},1)};
pui.addCSS=function(a){var b=document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css";if(pui.is_old_ie)c.styleSheet.cssText=a;else c.innerHTML=a;b.appendChild(c)};pui.loadCSS=function(a){if(pui.Sh(a)!=null)return false;var b=document.getElementsByTagName("head")[0],c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("media","screen");c.setAttribute("href",pui.normalizeURL(a));b.appendChild(c);return true};
pui.removeCSS=function(a){var b=document.getElementsByTagName("head")[0],c=pui.Sh(a);if(c==null){c=b.getElementsByTagName("style");for(var d=0;d<c.length;d++){var f=c[d];if(f.innerHTML==a||f.styleSheet!=null&&f.styleSheet.cssText==a){b.removeChild(f);return true}}return false}else{b.removeChild(c);return true}};
pui.loadJS=function(a){if(a==null)return null;var b,c,d;if(typeof a=="string")b=a;if(typeof a=="object"){b=a.path;c=a.callback;d=a.test;if(d!=null&&typeof d=="function"&&d()==true)return false}if(b==null)return null;if(pui.Xn(pui.normalizeURL(b))!=null)return false;a=document.getElementsByTagName("head")[0];var f=false,g=document.createElement("script");g.type="text/javascript";g.onreadystatechange=function(){if(g.readyState=="complete"||g.readyState=="loaded")if(!(d!=null&&typeof d=="function"&&
d()!=true)){!f&&c!=null&&c();f=true}};g.onload=function(){if(!(d!=null&&typeof d=="function"&&d()!=true)){!f&&c!=null&&c();f=true}};g.src=pui.normalizeURL(b);a.appendChild(g);return true};
pui.endOfSession=function(a){pui.confirmOnClose=false;pui.shutdownOnClose=false;if(window.puiMobileClient!=null&&window.puiMobileClient.showConnections!=null){window.puiMobileClient.showConnections();a!=null&&pui.alert(a)}else{var b=Fb().gobackto;if(b!=null){document.body.innerHTML="";a!=null&&pui.alert(a);location.href=b}if(navigator.app!=null&&navigator.app.exitApp!=null){document.body.innerHTML="";a!=null?pui.alert(a,function(){navigator.app.exitApp()}):navigator.app.exitApp()}}};
pui.alert=function(a,b,c,d){if(window.navigator!=null&&window.navigator.notification!=null&&window.navigator.notification.alert!=null)if(b==null&&c==null&&d==null&&window.puiMobileClient!=null&&window.puiMobileClient.alert!=null)window.puiMobileClient.alert(a);else{if(b==null)b=ha();if(c==null)c="Profound UI";if(d==null)d="OK";window.navigator.notification.alert(a,b,c,d)}else alert(a)};pui.get=function(a){return yb(a)};pui.set=function(a,b){zb(a,b)};
pui.getActiveContainer=function(){if(M=="genie"){for(var a=1,b=document.getElementById("window"+a);b;){var c=document.getElementById("window"+ ++a);if(c)b=c;else break}if(b)return b}else if(M=="dspf"&&pui.Mb)return pui.Mb;return pui.runtimeContainer};pui.getDisplayType=function(){return pui.N?"5250-handler":M=="dspf"?"rdf":"5250"};
function Gb(a){if(pui["use pc listener"]===true){var b=new pui.Ajax("http://localhost:"+(typeof pui["pc listener port"]=="number"?pui["pc listener port"]:80)+"/?cmd="+encodeURIComponent(a));b.method="GET";b.async=true;b.Sp=true;b.$q=function(d){if(d.hd()!=200){console.log("PC Command Listener comm. failure: "+d.Vf());console.log("Command: "+a)}};b.send()}else if(b=document.getElementById("PCCommandApplet"))try{b.runCommand(a)}catch(c){b='Unable to execute "'+a+'".\n\n';if(c!=null)b+=c.name+":\n\n"+
c.message+".";alert(b)}else{pui.Lj=a;Hb("runCommandCb")}}window.runCommandCb=function(){Gb(pui.Lj);pui.Lj=null};pui.runPCCommand=Gb;
function Ib(a,b){if(b!=null&&typeof b!="string"&&b==true)setTimeout(function(){Ib(a)},0);else if(M=="dspf"){var c=Ab("button");c.id="puiKeyButton";c.style.display="none";applyProperty("puiKeyButton","shortcut key",a);pui.click("puiKeyButton")}else if(arguments.length>1){c=[];for(var d=0;d<arguments.length;d++)c[d]="pressKey('"+arguments[d]+"')";multiStepAction(c)}else if(a.substr(0,6)=="option"){c=a.substr(6);selectOption(c)}else{c=getKeyNameFromDesc(a);c!=""&&pressKeyUsingHexName(c)}}
pui.isServerBusy=function(){if(M=="dspf"&&pui.Ob===false||M=="genie"&&pui.K.Ab===true)return true;for(var a=document.getElementsByTagName("iframe"),b=0;b<a.length;b++){var c=a[b].contentWindow;if(c!=null){var d=null;try{d=c.pui}catch(f){}if(d!=null)if(typeof d==="object")if(typeof d.isServerBusy==="function")if(d.isServerBusy())return true}}return false};if(typeof window.pui=="undefined")window.pui={};function Hb(a){if(document.getElementById("PCCommandApplet")==null){var b=document.createElement("applet");b.id="PCCommandApplet";b.archive="/profoundui/proddata/applet/PCIntegration.jar";b.code="com.profoundlogic.genie.PCIntegration";b.style.height="0px";b.style.width="0px";if(typeof eval(a)=="function"){var c=document.createElement("param");c.setAttribute("name","callback");c.setAttribute("value",a);b.appendChild(c)}document.body.appendChild(b)}}
window.copyToClipboardCb=function(){copyToClipboardCb(pui.Kj);pui.Kj=null};pui.help={};
pui.help.show=function(){var a=pui.Yd.layers;if(a!=null){a=a[a.length-1].formats;if(a!=null)if(a.length!=0){for(var b=pui.l.record,c=a[0],d=0;d<a.length;d++)if(a[d].name==b){c=a[d];break}var f=c.metaData.screen;a=null;b=false;for(d=1;!b;){var g="";if(d>1)g=" "+String(d);if(f["help record"+g]==null&&f["help panel group"+g]==null)b=true;else{var k=f["help panel condition"+g];if(k!=null&&pui.p(k)){k=k.dataType=="expression"?pui.Gh(k.fieldName,data):data[fieldName];if(k!="1"&&k!="true"&&k!=true){d++;
continue}}k=f["help area"+g];if(k==""||k==null){a=g;break}var l=k.split(" ");if(l.length==4){var h=Number(l[0]),o=Number(l[1]),p=Number(l[2]);l=Number(l[3]);var s=Number(pui.l.row),t=Number(pui.l.column);if(!isNaN(h)&&!isNaN(p)&&!isNaN(s)&&!isNaN(o)&&!isNaN(l)&&!isNaN(t))if(s>=h&&s<=p&&t>=o&&t<=l){a=g;break}}if(k==pui.l.Eh){a=g;break}d++}}a==null&&pui.help.sk(f);if(a!=null){if(f["help record"+a]!=null){b=f["help record"+a];d=f["help display file"];if(d==null){d=c.file;c=c.library;if(c==null||c=="")c=
"*LIBL"}else{helpFileParts=d.split("/");if(helpFileParts.length==2){c=helpFileParts[0];d=helpFileParts[1]}else c="*LIBL"}pui.uc();fb({url:Za("PUI0009108.pgm"),method:"post",params:{record:b,library:c,file:d,AUTH:pui.appJob.auth},async:true,handler:function(y){pui.Ya(true);y.success==true?pui.help.$o(y.metaData):pui.help.error(y)}})}if(f["help panel group"+a]!=null){c=f["help panel group"+a];d=c.split("/");if(d.length==2){b=d[0];c=d[1]}else b="*LIBL";a=f["help module"+a];pui.uc();fb({url:Za("PUI0009108.pgm"),
method:"post",params:{modules:"1",pgroup1:c,library1:b,module1:a,AUTH:pui.appJob.auth},async:true,handler:function(y){pui.Ya(true);y.success==true?pui.help.Gl(y.html,true,f):pui.help.error(y)}})}}}}};
pui.help.$o=function(a){a=a.items;var b=mb(),c=document.createElement("div");c.style.width="1000px";c.style.height="750px";c.style.zIndex=999;c.style.position="absolute";c.style.backgroundColor="white";pui.runtimeContainer.appendChild(c);for(var d=0;d<a.length;d++){var f=a[d];if(f.id!="btnHELP"){var g=document.createElement("div");g.style.position="absolute";var k=f.left,l=f.top;if(k==null)k="0px";if(l==null)l="0px";g.style.left=k;g.style.top=l;c.appendChild(g);if(f["field type"]=="button"||f["field type"]==
"styled button")g.onclick=function(){c.innerHTML="";c.parentNode.removeChild(c);c=null};for(var h in f){k=pui.Th(b,h);if(k!=null){l=f[h];if(l!=null&&l!="")g=pb(k,f,g,l,false)}}}}};pui.help.error=function(a){var b=a.id,c=a.message;a=a.help;var d="An error has occurred trying to display help text.";if(b!=null)d+="\n\nError Id: "+b;if(c!=null)d+="\n\nMessage: "+c;if(a!=null)d+="\n\n"+a;pui.alert(d)};
pui.help.Gl=function(a,b,c){var d=document.createElement("div");d.style.width="1000px";d.style.height="750px";d.style.zIndex=999;d.style.position="absolute";d.style.backgroundColor="white";d.style.padding="10px";pui.runtimeContainer.appendChild(d);d.innerHTML=a;a=document.createElement("input");a.type="button";a.value="Return to Application";a.onclick=function(){d.innerHTML="";d.parentNode.removeChild(d);d=null};d.appendChild(a);if(b==true){d.appendChild(document.createTextNode("    "));b=document.createElement("input");
b.type="button";b.value="Extended Help";b.onclick=function(){pui.help.sk(c,d)};d.appendChild(b)}if(pui["help panel group toc"]==false){tocDiv=d.firstChild;if(tocDiv!=null&&tocDiv.nodeType==3)tocDiv=tocDiv.nextSibling;if(tocDiv!=null&&tocDiv.tagName=="DIV"&&tocDiv.firstChild!=null&&tocDiv.firstChild.tagName=="A"&&tocDiv.firstChild.name=="TOC")tocDiv.style.display="none"}};
pui.help.sk=function(a,b){for(var c={modules:0,AUTH:pui.appJob.auth},d=false,f=1;!d;){var g="";if(f>1)g=" "+String(f);if(a["help record"+g]==null&&a["help panel group"+g]==null)d=true;else{var k=a["help panel condition"+g];if(k!=null&&pui.p(k)){k=k.dataType=="expression"?pui.Gh(k.fieldName,data):data[fieldName];if(k!="1"&&k!="true"&&k!=true){f++;continue}}k=a["help panel group"+g];if(k!=null){var l=k.split("/"),h;if(l.length==2){h=l[0];k=l[1]}else h="*LIBL";g=a["help module"+g];c.modules++;c["pgroup"+
c.modules]=k;c["library"+c.modules]=h;c["module"+c.modules]=g}f++}}if(c.modules<=0)return false;fb({url:Za("PUI0009108.pgm"),method:"post",params:c,async:true,handler:function(o){pui.Ya(true);if(o.success==true){if(b!=null){b.innerHTML="";b.parentNode.removeChild(b);b=null}pui.help.Gl(o.html)}else pui.help.error(o)}});return true};pui.click=function(a,b){setTimeout(function(){if(typeof a!="object")a=Ra(a);var c;if(a!=null){if(b!=true&&a.onclick!=null&&typeof a.onclick=="function"){a.onclick();return}c=a.T;if(a.T=="0"||a.A!=null)a.T="1";if(a.Rb!=null)pui.Qa=a.Rb;pui.C=a.C}var d=pui.wb();pui.C="false";if(d==false&&a!=null)a.T=c},0)};pui.link=function(a){pui.skipConfirm=true;setTimeout(function(){location.href=a},1);setTimeout(function(){pui.skipConfirm=false},100)};
pui.shiftElements=function(a,b,c){function d(f){f=document.getElementsByTagName(f);for(var g=0;g<f.length;g++){var k=f[g],l=parseInt(k.style.top);if(k.parentNode==pui.runtimeContainer&&!isNaN(l)&&l>=a&&l<=b){l+=c;k.style.top=l+"px"}}}d("div");d("input");d("select");d("textarea")};
pui.getRuntimeContainerHeight=function(){function a(c){c=document.getElementsByTagName(c);for(var d=0;d<c.length;d++){var f=c[d],g=parseInt(f.style.top);if(f.parentNode==pui.runtimeContainer&&!isNaN(g)){f=f.offsetHeight;if(!isNaN(f)){f+=g;if(f>b)b=f}}}}var b=0;a("div");a("input");a("select");a("textarea");return b};pui.showHelp=function(){pui.help.show()};pui.Ef={};
pui.show=function(a){var b=a.path,c=a.meta,d=a.appJob||{},f=a.format,g=a.formats,k=a.data;if(k==null)k={};var l=a.handler;if(!(c==null&&b==null)){if(c==null&&pui.Ef[b]!=null)c=pui.Ef[b];if(c==null){l={method:"post",handler:function(s){a.meta=s;a.appJob=d;pui.Ef[b]=s;pui.show(a)}};c=pui.Jo(b);if(c==null){l.url=b;fb(l)}else{l.url=Za("PUI0001102.pgm");l.params=c;l.handler=function(s){s=s.replace(/''/g,"'");pui.display=null;eval(s);a.meta=pui.display;pui.Ef[b]=pui.display;pui.show(a)};$a(l)}}else{if(g==
null&&f!=null){g=[];g.push(f)}f=[];if(g!=null)for(var h=0;h<c.formats.length;h++)for(var o=c.formats[h],p=0;p<g.length;p++)if(o.screen["record format name"]==g[p]){f.push({metaData:o,data:k,name:o.screen["record format name"]});break}f.length==0&&f.push({metaData:c.formats[0],data:k});c=a.container;if(c!=null&&typeof c=="string")c=Ra(a.container);if(c==null)pui.runtimeContainer=Ra("pui");g=[{formats:f}];k={a:pui.runtimeContainer,appJob:d,layers:g,success:true};if(c==null){pui.handler=l;if(pui.handler==
null)pui.handler=ha();pui.render(k)}else{c.innerHTML="";f=g[0].formats[0];f.uo=true;f.ki=true;f.a=c;pui.Li(f)}}}};pui.applyResponse=function(a,b){for(var c in b)a[c]=b[c]};pui.setMLTCHCFLD=function(a,b){if(pui.C!="true"){for(var c=0,d=0;d<b.length;d++){var f=Ra(b[d]);f!=null&&f.checked==true&&c++}d=Ra(a);if(d!=null)for(var g in pui.ca)if(pui.ca[g][0]==d){pui.yl[g]=String(c);return}}};
pui.setPSHBTNFLD=function(a,b){for(var c=b.id,d="",f=c.length-1;f>=0;f-=1){var g=c.substr(f,1);if(g<"0"||g>"9")break;d=g+d}d=Number(d);isNaN(d)||zb(a,String(d));pui.click(b,true)};
pui.buildFKeyMenu=function(a){if(a==null)a={};var b=a.prefix;if(b==null)b="btn";var c=a.fkeyMenuId;if(c==null){c="fkeyMenu";if(a.format!=null)c=a.format+"_"+c;if(a.file!=null)c=a.file+"_"+c}var d=a.skipF24;if(d==null)d=true;var f=a.skipHelp;if(f==null)f=false;var g=a.availableKeys;if(typeof g=="string")g=[g];a="";if(g!=null)for(var k=0;k<g.length;k++){var l=Ra(g[k]);if(l!=null)a+=" "+ob(l)}a=bb(a);c=Ra(c);if(c!=null){g=c.v;if(g!=null){k=c.parentNode;if(k!=null){g.choices=[];g.Gf=[];for(l=k.firstChild;l!=
null;){var h=l.id;if(!(h==null||h.length<=b.length||h.substr(0,b.length)!=b)){var o=h.substr(b.length);if(o.substr(0,2)=="CA"||o.substr(0,2)=="CF"){o=Number(o.substr(2));if(isNaN(o)||o<1||o>24){l=l.nextSibling;continue}o="F"+o}o+="=";if(o=="Submit=")o=null;l.style.left="-250px";l.style.top="-250px";k=-1;if(o!=null&&a!=""){k=a.indexOf(o);if(k==-1){l=l.nextSibling;continue}}if(!(o=="F24="&&d))if(!(o=="HELP="&&f))if(l.style.display!="none")if(l.style.visibility!="hidden"){o=l.tagName=="INPUT"?l.value:
ob(l);if(k!=-1){var p="",s=0;for(k=k;k<a.length;k++){var t=a.substr(k,1);t=="="&&s++;if(s>=2)break}if(s>=2)for(;k>0&&a.substr(k,1)!=" ";)k-=1;for(k=k-1;k>=0;k-=1){t=a.substr(k,1);if(t=="=")break;p=t+p}p=bb(p);if(p!="")o=p}g.choices.push(o);g.Gf.push(h)}}l=l.nextSibling}c.onoptionclick=function(y){pui.click(y)};g.r()}}}};
pui.capturePhoto=function(a){var b=a.dir;if(b==null)b="/www/profoundui/htdocs/profoundui/userdata/images";var c=a.overwrite;if(c!==true)c=false;var d=a.fileName;if(d==null)d="image.jpg";var f={};if(a.targetWidth!=null&&a.targetHeight!=null){f.targetWidth=a.targetWidth;f.targetHeight=a.targetHeight}f.quality=a.quality;if(f.quality==null)f.quality=50;f.destinationType=navigator.camera.DestinationType.FILE_URI;f.sourceType=navigator.camera.PictureSourceType.CAMERA;var g=a.handler;if(g==null)g=function(k){if(k.success==
false)pui.alert(k.error);else k.success==true?pui.alert("Photo captured successfully."):pui.alert("Invalid response.")};navigator.camera==null?g({success:false,error:"Camera unavailable."}):navigator.camera.getPicture(function(k){var l=new window.FileUploadOptions;l.fileKey="file";l.fileName=k.substr(k.lastIndexOf("/")+1);l.mimeType="image/jpeg";var h={};h.dir=b;h.overwrite=c?"1":"0";h.flimit="1";h.slimit="50";h.filename=d;l.params=h;h=new window.FileTransfer;var o=Za("PUI0009109.PGM");o+="?AUTH="+
encodeURIComponent(pui.appJob.auth);o+="&mode=ajax";h.upload(k,encodeURI(o),function(p){var s={};try{s=eval("("+decodeURIComponent(p.response)+")")}catch(t){s.success=false;s.error="Invalid response."}p.success=s.success;p.success||(p.error=s.key?pui.getLanguageText("runtimeMsg","upload "+s.key):s.error);g(p)},function(p){p.success=false;p.error="An error has occurred: Code = "+p.code;g(p)},l)},function(k){g({success:false,error:k})},f)};
pui.$p=function(a,b){var c=a.overwrite===true,d=a.data,f=d.indexOf(";base64,")+8;f=d.substring(f);var g=a.imageType;d=Za("PUI0009109.PGM");d+="?AUTH="+encodeURIComponent(pui.appJob.auth);d+="&mode=ajax";d+="&r="+Math.floor(Math.random()*1E9);c=[{name:"file",value:f,contenttype:g,filename:a.fileName,transferencoding:"base64"},{name:"dir",value:a.dir},{name:"overwrite",value:c?"1":"0"},{name:"flimit",value:"1"},{name:"slimit",value:String(Math.ceil(f.length/1048576))},{name:"filename",value:a.fileName}];
f=new pui.zm;f.Nm(c);f.send(d,function(k){var l=true,h;if(k.hd()==200){var o;try{o=eval("("+k.$b()+")")}catch(p){l=false;h="Server response missing or invalid."}if(o)(l=o.success)||(h=o.key?pui.getLanguageText("runtimeMsg","upload "+o.key):o.error)}else{l=false;h=k.hd()+" - "+k.Vf()+"."}typeof b=="function"&&b(l,h)})};
pui.uploadSignature=function(a){var b=Ra(a.signaturePadId);if(!(b==null||b.firstChild==null)){if(a.imageType==null)a.imageType="image/png";if(a.fileName==null)a.fileName="signature.png";b=b.firstChild.toDataURL(a.imageType);a.data=new String(b);pui.$p(a,a.handler)}};pui.errorTip=function(a,b,c){if(c==null)c=3E3;else if(c==0)c=null;if(typeof a=="string")a=Ra(a);pui.ld=true;var d=a.B;if(d==null)d=new pui.xf(a);pui.Y(a,d.ed());d.he(b);d.show(c);setTimeout(function(){pui.ld=false},0)};
pui.expandAccordionSection=function(a,b){var c=Ra(a);if(c!=null){c=c.Tb;c!=null&&c.Kd(b)}};pui.runAttnProgram=function(){M=="dspf"&&pui.submitResponse({attn:"1"})};pui.rm=function(){var a={},b={},c=this,d;this.init=function(){if(d==null)d=document.getElementsByTagName("head")[0]};this.Lm=function(f){if(typeof f=="string"){f=bb(f);if(f!="")if(a[f]==null){var g=document.createElement("link");g.setAttribute("rel","stylesheet");g.setAttribute("type","text/css");g.setAttribute("media","screen");g.setAttribute("href",pui.normalizeURL(f));a[f]=g;d.appendChild(g)}}};this.Gj=function(f,g,k){if(typeof f!="string")return false;f=bb(f);if(f=="")return false;if(b[f]!=null)return false;
if(k==true)return true;var l=false,h=document.createElement("script");h.type="text/javascript";h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded"){!l&&g!=null&&g();l=true}};h.onload=function(){!l&&g!=null&&g();l=true};b[f]=h;h.src=pui.normalizeURL(f);d.appendChild(h);return true};this.load=function(f){c.init();var g=null,k;if(f!=null){k=false;g=f.metaData.screen}else{k=true;g=Ta.designer.Ri[Ta.designer.ya.Ua]}var l={},h=1,o=g["external css"];for(k||(o=pui.ba(o,f.data,
f.ref));o!=null;){l[o]=true;h++;o=g["external css "+h];k||(o=pui.ba(o,f.data,f.ref))}h=[];for(o in a)l[o]!=true&&h.push(o);for(var p=0;p<h.length;p++){o=h[p];d.removeChild(a[o]);delete a[o]}for(o in l)c.Lm(o);var s=0;if(k!=true){h=1;for(o=pui.ba(g["external javascript"],f.data,f.ref);o!=null;){if(c.Gj(o,ha(),true)){f.Ml=false;s++}h++;o=pui.ba(g["external javascript "+h],f.data,f.ref)}if(s>0){h=1;for(o=pui.ba(g["external javascript"],f.data,f.ref);o!=null;){c.Gj(o,function(){s-=1;if(s==0){pui.onload!=
null&&typeof pui.onload=="function"&&pui.onload(f);var t=g.onload;if(t!=null&&t!="")try{eval('var format = "'+g["record format name"]+'";');eval('var file = "'+f.file+'";');eval(t)}catch(y){pui.alert("Onload Error:\n"+y.message)}}});h++;o=pui.ba(g["external javascript "+h],f.data,f.ref)}}}}};pui.Gn=new pui.rm;pui.xf=function(a){function b(C,u){setTimeout(function(){C==p&&E.hide()},u)}function c(){if(h>=0&&h<=100){v.style.filter="alpha(opacity="+h+")";v.style.opacity=h/100}if(o)h-=30;else h+=20;if(o&&h<=0||!o&&h>=100)if(o){v.style.display="none";v.style.visibility="hidden";h=0}else{v.style.filter="alpha(opacity=100)";v.style.opacity=1;h=100}else setTimeout(c,100)}function d(C){if(!pui.di){C=La(C);if(C!=null){C=C.B;C!=null&&C.U!=true&&C.show()}}}function f(C){C=C||window.event;var u=C.keyCode;if(!(u>=9&&
u<=45))if(!(u>=112&&u<=145)){C=La(C);if(C!=null){u=C.B;if(u!=null){u.hide();u.U=true;pui.Q(C,u.ed())}}}}function g(C){C=C||window.event;C=La(C);if(C!=null){var u=C.B;if(u!=null){u.hide();u.U=true;pui.Q(C,u.ed())}}}function k(C){if(C!=null)y=C;else if(typeof t.pui.properties["error message location"]!="undefined")y=t.pui.properties["error message location"];if(y!="left"&&y!="right"&&y!="top"&&y!="bottom")y="right"}function l(){var C=v!=null;if(C){G.onmousedown=null;G.onmouseup=null;G.onclick=null;
G.parentNode.removeChild(G);G=null;I.parentNode.removeChild(I);I=null;v.onmousedown=null;v.parentNode.removeChild(v);v=null}v=document.createElement("div");v.className="pui-tip ";v.className+=y=="top"?"pui-tip-top ":y=="bottom"?"pui-tip-bottom ":y=="left"?"pui-tip-left ":"pui-tip-right ";v.className+=A;v.style.position="absolute";I=document.createElement("div");I.className="pui-tip-content";G=document.createElement("div");G.className="pui-tip-close";G.onmousedown=function(u){G.className="pui-tip-close-click";
Ma(u);return false};G.onmouseup=function(){G.className="pui-tip-close"};G.onclick=function(){v.style.display="none";v.style.visibility="hidden";h=0;if(pui.is_old_ie){var u=t.parentNode;if(s!=null&&u!=null&&u.nodeName!="#document-fragment")if(s.tagName=="INPUT"||s.tagName=="SELECT"||s.tagName=="TEXTAREA")if(s.disabled!=true){pui.di=true;s.focus();if(s.createTextRange!=null){s.select();u=s.createTextRange();if(u!=null&&u.collapse!=null&&u.select!=null){u.collapse();u.select()}}setTimeout(function(){pui.di=
false},0)}}};v.onmousedown=function(u){Ma(u);return false};if(!C){v.style.display="none";v.style.visibility="hidden"}v.appendChild(I);v.appendChild(G);E.a.appendChild(v)}this.a=null;var h=0,o=false,p=0,s=a,t=a,y="right",z="",A="";if(typeof t.pui.properties["error message css class"]=="string")A=bb(t.pui.properties["error message css class"]);if(A=="")A="pui-tip-error";var B=A+"-invalid",v,I,G,E=this;this.a=pui.Rn(t);if(this.a==null)this.a=pui.runtimeContainer;if(s.comboBoxWidget!=null)s=s.comboBoxWidget.getBox();
N(s,"focus",d);s.tagName=="INPUT"&&(s.type=="text"||pui.eg(s.type))||N(s,"click",d);N(s,"blur",function(C){if(!pui.ld){C=La(C);if(C!=null){C=C.B;C!=null&&C.hide()}}});s.tagName=="SELECT"?N(s,"change",g):N(s,"keydown",f);s.B=this;k();l();this.he=function(C){z=C;I.innerHTML='<div class="pui-tip-icon" />';I.appendChild(document.createTextNode(z))};this.setPosition=function(C,u){v.style.left=C+"px";v.style.top=u+"px"};this.No=function(){var C=v.offsetHeight,u=v.offsetWidth,K=t.offsetHeight,ba=t.offsetWidth,
Y=y;k();if(Y!=y){l();E.he(z)}if(y=="left"||y=="right"){C=t.offsetTop-(C-K)/2;u=y=="left"?t.offsetLeft-u-3:t.offsetLeft+ba+3}else{u=t.offsetLeft+(ba-u)/2;C=y=="top"?t.offsetTop-C-3:t.offsetTop+K+3}K=t.parentNode;if(K==null||pui.is_old_ie&&K.nodeName=="#document-fragment"){k("right");l();E.he(z);C=0;u=-7}else{if(K.getAttribute("container")=="true"){ba=pui.layout.Kb(K);C+=ba.y;u+=ba.x}if(K!=E.a&&K.getAttribute("container")!="true"){u+=K.offsetLeft;C+=K.offsetTop;K=K.parentNode;if(K!=E.a){u+=K.offsetLeft;
C+=K.offsetTop;if(K.parentNode.getAttribute("container")=="true"){ba=pui.layout.Kb(K.parentNode);C+=ba.y;u+=ba.x}}}}if(t.style.visibility=="hidden"){K=t.gb;ba=t.hb;if(K!=null&&ba){ba=Ra(ba);if(ba!=null){ba=ba.tabPanel;if(ba!=null)if(ba.selectedTab!=K){ba.selectedTab=K;ba.r()}}}}E.setPosition(u,parseInt(C))};this.show=function(C,u){this.U=false;if(u==true)setTimeout(function(){E.show(C,false)},0);else{if(v.style.display=="none"){v.style.display="block";v.style.visibility="";h=0;o=false;c()}p+=1;if(p>
1E4)p=0;C!=null&&b(p,C);E.No()}};this.hide=function(){o=true;c()};this.io=function(){v.style.display="none";v.style.visibility="hidden";h=0};this.destroy=function(){v.removeChild(I);v.parentNode.removeChild(v);v=I=null;E=E.a=null};this.ed=function(){return B}};function Jb(a){function b(){if(!(pui.is_ie&&ya&&sa)){B=true;setTimeout(h,200)}}function c(F){F=F||window.event;var ca=F.keyCode;if((ca==38||ca==40)&&E.style.display=="block"){var R;if(ca==38)R=aa!=null?aa-1:fa.length-1;else if(ca==40)R=aa!=null?aa+1:0;if(R<0||R>=fa.length)R=null;f(R,true);F.cancelBubble=true;F.returnValue=false;F.preventDefault&&F.preventDefault();F.stopPropagation&&F.stopPropagation();return false}else if(ca==9&&aa!=null)p();else if(ca==13)if((ca=E.style.display=="block")&&aa!=null){p();
h();F.cancelBubble=true;F.returnValue=false;F.preventDefault&&F.preventDefault();F.stopPropagation&&F.stopPropagation();return false}else{h();if(ca){F.cancelBubble=true;F.returnValue=false;F.preventDefault&&F.preventDefault();F.stopPropagation&&F.stopPropagation();return false}}}function d(F){F=F||window.event;F=F.keyCode;if(!(T.readOnly||T.disabled))if(bb(T.value)==""){if(ia)ia.value="";h()}else if(F==8||F>=46&&F<=90||F>=96&&F<=111||F>=186&&F<=222||(window.nq!=null||typeof window.orientation!=="undefined")&&
(F==0||F==229))if(T.value.replace(/ /g,"")!="")if(H&&P)g(Wa(T.value.toUpperCase()));else{clearTimeout(e);B=false;e=setTimeout(function(){k(Wa(T.value))},r)}}function f(F,ca){if(aa!=null&&E.childNodes!=null&&E.childNodes[aa]!=null){E.childNodes[aa].className=E.childNodes[aa].className.replace(" autocomplete-selected","");E.childNodes[aa].className=E.childNodes[aa].className.replace("autocomplete-selected","")}if(F!=null){var R=E.childNodes[F];R.className+=" autocomplete-selected";if(ca==true&&typeof R.scrollIntoView!=
null){var ka=0;if(typeof window.pageYOffset=="number")ka=window.pageYOffset;else if(document.body&&document.body.scrollTop)ka=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)ka=document.documentElement.scrollTop;var qa=0;if(self.innerHeight)qa=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)qa=document.documentElement.clientHeight;else if(document.body)qa=document.body.clientHeight;qa=ka+qa;var ra=R.offsetTop+R.parentNode.offsetTop,
Ca=R.parentNode.parentNode;ra+=Ca.offsetTop;if(Ca.parentNode!=null&&Ca.parentNode.grid!=null){ra+=Ca.parentNode.offsetHeight;ra+=Ca.parentNode.parentNode.offsetHeight}if(ra+R.offsetHeight>qa||ra<ka){ta=true;R.scrollIntoView(true);setTimeout(function(){ta=false},1)}if(ya&&R.offsetTop>ja&&!ta){ta=true;R.scrollIntoView(true);setTimeout(function(){ta=false},1)}}}aa=F}function g(F){if(ia)ia.value="";if(F!=""){D({results:[{field1:""}]});for(var ca,R=0;R<O.length;R++)if(O[R][0].toUpperCase().indexOf(F)==
0){ca=R;break}if(ca!=null){fa=[];for(R=ca;R<O.length;R++)fa.push({field1:O[R][0],field2:O[R][1]});if(ia&&fa.length==1&&T.value.toUpperCase()==fa[0][ea].toUpperCase()){ia.value=s(fa[0],V);h()}else l()}else h()}}function k(F){if(F=="")h();else if(!(x&&x(Ia,F)==false)){da=null;F=encodeURIComponent(wa)+"="+encodeURIComponent(F);if(Ja!=null)F+="&limit="+Ja;if((Ja==null||Ja=="")&&pui["Default Auto Complete Max Choices"]!=null)F+="&limit="+encodeURIComponent(pui["Default Auto Complete Max Choices"]);if(Ia)for(var ca in Ia){F+=
"&";F+=encodeURIComponent(ca)+"="+encodeURIComponent(Ia[ca])}if(ia)oa+=1;ca=new pui.Ajax(pui.se(J));ca.method="post";ca.async=true;ca.suppressAlert=true;ca.postData=F;ca.onready=function(R){if(ia)oa-=1;if(R=Ua(R,"Genereate Auto-Complete Suggestions"))if(bb(T.value)=="")h();else if(B)h();else{R=eval(R);fa=R.results;if((V==null||ea==null)&&fa.length>0)for(var ka in fa[0]){if(V==null)V=ka;if(ea==null)ea=ka}if(ia&&fa.length==1&&T.value.toUpperCase()==fa[0][ea].toUpperCase())ia.value=s(fa[0],V);else if(ia)ia.value=
"";if(fa.length>0){D&&D(R);l()}else h()}};ca.send()}}function l(){var F=T.offsetWidth;if(!pui.is_old_ie||!pui.is_quirksmode)F-=2;if(za==null||za<F)za=F;E.style.width=za+"px";F=fa;if(a.ak){F=[];for(var ca=false,R=0;R<a.ak.length;R++){var ka=T.value,qa=H[R];if(ka!==null&&qa!==null){qa=qa.substr(0,ka.length);ka=ka.toUpperCase();qa=qa.toUpperCase()}if(ka==qa){F.push(a.ak[R]);ca=true}else if(ca)break}}if(!q){var ra;for(R in F[0]){ra=R;break}q='<div class="autocomplete-item">('+ra+")</div>"}E.innerHTML=
"";for(R=0;R<F.length;R++){ra=q;for(var Ca in F[R])ra=ra.replace("("+Ca+")",F[R][Ca]);E.innerHTML+=ra;E.lastChild.setAttribute("recordIndex",String(R))}for(R=0;R<E.childNodes.length;R++)if(E.childNodes[R].attachEvent)E.childNodes[R].attachEvent("onmouseover",t);else E.childNodes[R].addEventListener&&E.childNodes[R].addEventListener("mouseover",t,false);E.style.display="block";I=T.offsetTop;G=T.offsetLeft;R=T.parentNode;if(R.parentNode.grid){I+=R.offsetTop;G+=R.offsetLeft;R=R.parentNode;I+=R.offsetTop;
G+=R.offsetLeft;R=R.parentNode}if(R.getAttribute("container")=="true"){R=pui.layout.Kb(R);I+=R.y;G+=R.x}if(M=="genie")if(T.parentNode.layerInfo){I+=T.parentNode.offsetTop+T.parentNode.clientTop;G+=T.parentNode.offsetLeft+T.parentNode.clientLeft}I+=T.offsetHeight;I+=ga;G+=pa;R=pui.Ck();if(I-R+E.offsetHeight>pui.getWindowSize().height){Ca=I-E.offsetHeight-T.offsetHeight-3;if(Ca-R>=0)I=Ca}E.style.top=I+"px";E.style.left=G+"px";if(Aa){E.style.height="";ya=false;if(E.clientHeight>ja){E.style.height=String(ja)+
"px";ya=true}E.style.overflowY="auto"}if(m){C.style.top=I+3+"px";C.style.left=G-4+"px";C.style.width=za+10+"px";C.style.height=E.offsetHeight+2+"px";u.style.top="0px";u.style.left="0px";u.style.width="6px";if(E.offsetHeight>=6)u.style.height=E.offsetHeight-6+"px";if(E.offsetHeight>=6)Y.style.top=E.offsetHeight-6+"px";Y.style.left="0px";Y.style.height="6px";Y.style.width="6px";if(E.offsetHeight>=6)ba.style.top=E.offsetHeight-6+"px";ba.style.left="6px";ba.style.height="6px";ba.style.width=za-2+"px";
K.style.top="0px";K.style.right="0px";K.style.width="6px";if(E.offsetHeight>=6)K.style.height=E.offsetHeight-6+"px";if(E.offsetHeight>=6)L.style.top=E.offsetHeight-6+"px";L.style.right="0px";L.style.height="6px";L.style.width="6px";C.style.display="block"}if(Z){Ca=R=0;ra=m?C:E;R=ra.offsetTop;Ca=ra.offsetLeft;F=ra.offsetHeight;ra=ra.offsetWidth+1;S.style.top=R+"px";S.style.left=Ca+"px";S.style.height=F+"px";S.style.width=ra+"px";S.style.display="block"}}function h(){E.style.display="none";if(m)C.style.display=
"none";if(Z)S.style.display="none";fa=[];aa=null}function o(){E.style.display=="block"&&l()}function p(){if(aa!=null){for(var F in fa[aa]){T.value=fa[aa][F];break}da=fa[aa];if(ia!=null)if(fa[aa]!=null)ia.value=s(fa[aa],V);if(w)try{var ca=eval(w);typeof ca=="function"&&ca(da,T)}catch(R){pui.alert("Onselect error:\n"+R.name+"\n"+R.message+".")}}}function s(F,ca){var R=F[ca];if(R==null)for(var ka in F)R=F[ka];return R}function t(F){if(!ta){F=F||window.event;target=F.target||F.srcElement;F=target.getAttribute("recordIndex");
if(F==""||F==null){target=target.parentNode;F=target.getAttribute("recordIndex");if(F==""||F==null)return}f(Number(F))}}function y(F){if(ya&&ua!=null&&E.offsetWidth!=null){var ca=E.offsetWidth-ua;F=pui.He(F);var R=E,ka=0,qa=0;if(R&&R.parentNode){do{if(R.offsetLeft)ka+=R.offsetLeft;if(R.offsetTop)qa+=R.offsetTop}while(R=R.parentNode)}if(F-{left:ka,top:qa}.left>ca)return true}return false}function z(F){sa=true;if(!y(F)){p();h();setTimeout(function(){T.focus()},0)}}function A(){sa=false}var B=false,
v=this,I,G,E,C,u,K,ba,Y,L,S,Z,ea,aa=null,fa=[],e,ia,da,ta=false,Aa=false,ya=false,ua=function(){var F=document.createElement("div");F.style.overflow="scroll";F.style.visibility="hidden";F.style.position="absolute";document.body.appendChild(F);F.style.height="50px";F.style.width="50px";var ca=document.createElement("div");ca.style.height="1px";F.appendChild(ca);ca=ca.offsetWidth;var R=F.offsetWidth;F.parentElement.removeChild(F);return R-ca}(),ja=null,sa=false,W,T,J,V,ga,pa,va,za,Ia,wa,Ja,m,q,r,w,
x,D,H,P,O;J=a.url;V=a.valueField;T=typeof a.nj=="object"?a.nj:document.getElementById(a.nj);T.setAttribute("autocomplete","off");W=a.a?a.a:T.parentNode;M=="genie"&&T.setAttribute("maxLength","133");if(a.choices&&a.values){va=false;var Q=bb(T.value);O=[];H=a.choices;P=a.values;for(var U=0;U<P.length;U++)if(H[U]!=null){O[O.length]=[];O[O.length-1][0]=bb(H[U]);O[O.length-1][1]=bb(P[U]);if(!va&&Q!="")if(Q==bb(P[U])){T.value=bb(H[U]);va=T.Pj=true}}O.sort(function(F,ca){return F[0].toUpperCase()<ca[0].toUpperCase()?
-1:1});ea="field1";V="field2"}if(V){if(M=="genie"){va=T.getAttribute("name");T.removeAttribute("name");try{ia=document.createElement('<input name="'+va+'" />')}catch(X){ia=document.createElement("input");ia.name=va}ia.type="hidden";ia.value=T.value;ia.w=T.w;ia.iq=T;T.w=null;if(ia.w!=null)pui.response[ia.w.idx]=ia;document.forms.main.appendChild(ia)}if(M=="dspf"){ia={value:""};T.mh=ia}}ga=a.Wp?a.Wp:0;pa=a.wo?a.wo:0;va=a.zIndex?a.zIndex:1E5;if(typeof a.width!="undefined")za=a.width;if(a.baseParams)Ia=
a.baseParams;wa=a.Ho?a.Ho:"query";if(typeof a.fg!="undefined")Ja=a.fg;m=typeof a.shadow!="undefined"&&a.shadow==false?false:true;Z=pui.is_old_ie&&pui.ie_mode<=6?true:false;if(typeof a.beforequery=="function")x=a.beforequery;if(typeof a.onload=="function")D=a.onload;if(a.onselect!=null)w=a.onselect;if(typeof a.template!="undefined")q=a.template;r=typeof a.typeAheadDelay!="undefined"?a.typeAheadDelay:200;if(typeof a.ip!="undefined"&&typeof a.maxHeight!="undefined"){Aa=a.ip;ja=a.maxHeight}E=document.createElement("div");
E.style.display="none";E.style.margin="0px";E.style.padding="0px";E.style.position="absolute";E.style.zIndex=va;E.className="autocomplete-results "+bb(T.id)+"-autocomplete-results";if(E.addEventListener)E.addEventListener("mousedown",z,false);else E.attachEvent&&E.attachEvent("onmousedown",z);if(E.addEventListener)E.addEventListener("mouseup",A,false);else E.attachEvent&&E.attachEvent("onmouseup",A);W.appendChild(E);if(m){Q="";if(na=="ON")Q="https://"+HTTP_HOST;Q+=pui.normalizeURL("/profoundui/proddata/images/");
C=document.createElement("div");C.style.display="none";C.style.padding="0px";C.style.margin="0px";C.style.position="absolute";C.style.zIndex=va-1;C.style.fontSize="0px";u=document.createElement("div");u.style.padding="0px";u.style.margin="0px";u.style.position="absolute";u.style.background="transparent url("+Q+"shadow-side.png) repeat-y scroll";C.appendChild(u);Y=document.createElement("div");Y.style.padding="0px";Y.style.margin="0px";Y.style.position="absolute";Y.style.background="transparent url("+
Q+"shadow.png) no-repeat scroll 0px -12px";C.appendChild(Y);ba=document.createElement("div");ba.style.padding="0px";ba.style.margin="0px";ba.style.position="absolute";ba.style.background="transparent url("+Q+"shadow.png) repeat-x scroll 0px -36px";C.appendChild(ba);K=document.createElement("div");K.style.padding="0px";K.style.margin="0px";K.style.position="absolute";K.style.background="transparent url("+Q+"shadow-side.png) repeat-y scroll -6px";C.appendChild(K);L=document.createElement("div");L.style.padding=
"0px";L.style.margin="0px";L.style.position="absolute";L.style.background="transparent url("+Q+"shadow.png) no-repeat scroll 0px -6px";C.appendChild(L);W.appendChild(C)}if(Z){S=document.createElement("iframe");S.style.display="none";S.style.visibility="hidden";S.style.position="absolute";S.style.margin="0px";S.style.zIndex=va-2;W.appendChild(S)}if(T.addEventListener){T.addEventListener("keyup",d,false);T.addEventListener("keydown",c,false);T.addEventListener("blur",b,false);window.addEventListener("resize",
o,false)}else if(T.attachEvent){T.attachEvent("onkeyup",d);T.attachEvent("onkeydown",c);T.attachEvent("onblur",b);T.attachEvent("onresize",o)}this.Hp=function(F){q=F};this.gi=function(){return E.style.display=="block"};this.setWidth=function(F){za=F};this.Hq=function(){return da};this.destroy=function(){eb(T,"keyup",d);eb(T,"keydown",c);eb(T,"blur",b);eb(T,"resize",o);eb(window,"resize",o);v=O=P=H=D=x=w=m=Ia=T=W=da=ia=e=fa=aa=ea=S=L=Y=ba=K=u=C=E=null}}
function Kb(a,b,c){var d=cb(a["choices database file"],b,c),f=cb(a["choice options field"],b,c),g=pui.Md(f),k=cb(a["choices url"],b,c);f=cb(a["choice values field"],b,c);var l=cb(a["max choices"],b,c),h=cb(a.choices,b,c);h=pui.ha(h);if(h.length==0)h=[""];var o=cb(a["choice values"],b,c);if(o==""){o=[];for(var p=0;p<h.length;p++)o.push(h[p])}else o=pui.ha(o);if(o.length==0)o=[""];var s=bb(cb(a["results template"],b,c));if(s=="")s=null;if(d!=""&&g[0]!=""||k!=""||h.length>0&&h[0]!=""&&o[0]!=""){var t=
cb(a.onselect,b,c),y;if(t!=null&&t!=""){y=t;t=y.indexOf("(");if(t!=-1)if(y.substr(t+1,1)==")")y=y.substr(0,t)}t={};if(M=="genie")t.AUTH=GENIE_AUTH;if(M=="dspf")t.AUTH=pui.appJob.auth;if(k==""&&h[0]==""&&o[0]==""){var z=cb(a["contains match"],b,c)=="true",A="SELECT DISTINCT ";for(p=0;p<g.length;p++){if(p!=0)A+=", ";A+=g[p]}if(f!="")A+=","+f;A+=" FROM "+d;A+=" WHERE UPPER("+g[0]+") LIKE '";if(z)A+="%";A+="!!QUERY!!%'";p=cb(a["choices selection criteria"],b,c);if(p!="")A+=" AND ("+p+")";A+=" ORDER BY "+
g[0]}if(c.Ub!=null&&c.Ub.destroy!=null){c.Ub.destroy();c.Ub=null}var B;if(M=="dspf"&&Sa())B=Ta.designer.a;else{for(p=c.parentNode;p;){if(p.Bb){B=p;break}p=p.parentNode}if(B==null)B=pui.runtimeContainer}var v=new Jb({nj:c,url:k!=""?k:Za("PUI0009102.PGM"),baseParams:t,a:B,choices:h[0]!=""?h:null,values:o[0]!=""?o:null,fg:l!=""?l:null,template:s,onselect:y,valueField:k==""&&h[0]==""&&o[0]==""&&f!=""&&f!=g[0]?f:null,beforequery:k==""&&h[0]==""&&o[0]==""?function(I,G){G=Wa(G.replace(/\u00DF/g,"\u1e9e"));
G=G.toUpperCase();G=G.replace(/\u1E9E/g,"\u00df");if(G=="")return false;G=G.replace(/'/g,"''");if(pui.secLevel>0){if(cb(a["contains match"],b,c)=="true")G="%"+bb(G)+"%";else G+="%";I.q=pui.gd(c);I.p1=G;pui.fd(a,I)}else I.q=pui.Xa.cd(A.replace("!!QUERY!!",G))}:null,onload:function(I){if(!s)if(c.Zm==null){var G=document.createElement("div");G.style.position="absolute";G.style.top="0px";G.style.left="0px";G.style.className="autocomplete-item";G.style.visibility="hidden";document.body.appendChild(G);
var E='<div class="autocomplete-item">',C=I.colWidths;I=I.results[0];var u=0,K=0,ba;for(var Y in I){if(k==""&&u==g.length)break;G.innerHTML="";E+='<div class="autocomplete-col" style="float: left; width: ';if(C&&C[u])if(typeof C[u]=="number"){for(ba=0;ba<C[u];ba++)G.innerHTML+="a";E+=G.offsetWidth+5+'px;"';K+=G.offsetWidth+5}else if(typeof C[u]=="string"){E+=C[u]+';"';ba=Number(C[u].replace("px",""));isNaN(ba)||(K+=ba)}else{E+='100px"';K+=100}else{E+='100px"';K+=100}E+=">("+Y+")</div>";u++}E+="</div>";
v.setWidth(K+20);v.Hp(E);c.Zm=true;document.body.removeChild(G)}},shadow:pui.is_old_ie&&pui.ie_mode<=6?false:true});c.Ub=v;if(k==""&&g[0]!=""&&f!=""&&f!=g[0]&&c.value!=""){d="SELECT "+g[0]+" FROM "+d+" WHERE "+f+" = '"+Wa(c.value).replace("'","''")+"'";p=cb(a["choices selection criteria"],b,c);if(p!="")d+=" AND ("+p+")";y=new pui.Ajax(Za("PUI0009102.PGM"));y.method="post";y.async=true;y.suppressAlert=true;if(M=="genie")y.postData="AUTH="+GENIE_AUTH;if(M=="dspf")y.postData="AUTH="+pui.appJob.auth;
if(pui.secLevel>0){y.postData+="&q="+encodeURIComponent(pui.gd(c))+".reverse";y.postData+="&p1="+encodeURIComponent(Wa(c.value).replace("'","''"));d=pui.fd(a);if(d!="")y.postData+="&"+d}else y.postData+="&q="+pui.Xa.cd(d);y.postData+="&limit=1";y.onready=function(I){oa-=1;if(I=Ua(I,"Generate Auto-Complete Suggestions.")){var G;I=I.results[0];for(var E in I){G=E;break}c.value=G==null?"":I[G]}else c.value=""};oa+=1;y.send()}}};function Lb(a){this.toString=function(){return"INVALID: "+this.message};this.message=a}
function Mb(a){this.Ad[0][0][0]||this.Jm();var b,c,d,f,g=this.Ad[0][4],k=this.Ad[1];b=a.length;var l=1;if(b!==4&&b!==6&&b!==8)throw new Lb("invalid key size");this.Im=[d=a.slice(0),f=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(a%b===0||b===8&&a%b===4){c=g[c>>>24]<<24^g[c>>16&255]<<16^g[c>>8&255]<<8^g[c&255];if(a%b===0){c=c<<8^c>>>24^l<<24;l=l<<1^(l>>7)*283}}d[a]=d[a-b]^c}for(b=0;a;b++,a--){c=d[b&3?a:a-4];f[b]=a<=4||b<4?c:k[0][g[c>>>24]]^k[1][g[c>>16&255]]^k[2][g[c>>8&255]]^k[3][g[c&255]]}}
Mb.prototype={Dn:function(a){return this.Hm(a,0)},Ad:[[[],[],[],[],[]],[[],[],[],[],[]]],Jm:function(){var a=this.Ad[0],b=this.Ad[1],c=a[4],d=b[4],f,g,k,l=[],h=[],o,p,s,t;for(f=0;f<256;f++)h[(l[f]=f<<1^(f>>7)*283)^f]=f;for(g=k=0;!c[g];g^=o||1,k=h[k]||1){s=k^k<<1^k<<2^k<<3^k<<4;s=s>>8^s&255^99;c[g]=s;d[s]=g;p=l[f=l[o=l[g]]];t=p*16843009^f*65537^o*257^g*16843008;p=l[s]*257^s*16843008;for(f=0;f<4;f++){a[f][g]=p=p<<24^p>>>8;b[f][s]=t=t<<24^t>>>8}}for(f=0;f<5;f++){a[f]=a[f].slice(0);b[f]=b[f].slice(0)}},
Hm:function(a,b){if(a.length!==4)throw new Lb("invalid block size");var c=this.Im[b],d=a[0]^c[0],f=a[b?3:1]^c[1],g=a[2]^c[2],k=a[b?1:3]^c[3],l,h,o,p=c.length/4-2,s,t=4,y=[0,0,0,0];l=this.Ad[b];var z=l[0],A=l[1],B=l[2],v=l[3],I=l[4];for(s=0;s<p;s++){l=z[d>>>24]^A[f>>16&255]^B[g>>8&255]^v[k&255]^c[t];h=z[f>>>24]^A[g>>16&255]^B[k>>8&255]^v[d&255]^c[t+1];o=z[g>>>24]^A[k>>16&255]^B[d>>8&255]^v[f&255]^c[t+2];k=z[k>>>24]^A[d>>16&255]^B[f>>8&255]^v[g&255]^c[t+3];t+=4;d=l;f=h;g=o}for(s=0;s<4;s++){y[b?3&-s:
s]=I[d>>>24]<<24^I[f>>16&255]<<16^I[g>>8&255]<<8^I[k&255]^c[t++];l=d;d=f;f=g;g=k;k=l}return y}};function Nb(a){var b,c=[],d;a=a.replace(/\s|0x/g,"");d=a.length;a+="00000000";for(b=0;b<a.length;b+=8)c.push(parseInt(a.substr(b,8),16)^0);a=c;b=d*4;if(!(a.length*32<b)){a=a.slice(0,Math.ceil(b/32));d=a.length;b&=31;if(d>0&&b){c=a[d-1]&2147483648>>b-1;b=b===32?c:(c|0)+b*1099511627776;a[d-1]=b}}a=a;return a}pui.Xa={};pui.Xa.Om="if(a.c=='genie'){h.g=true;a.x++}";
pui.Xa.En=function(a){var b=Nb(pui.Xa.rk(pui.Xa.Om,2));b=new Mb(b);a=Nb(a);b=a=b.Dn(a);a="";var c;for(c=0;c<b.length;c++)a+=((b[c]|0)+263882790666240).toString(16).substr(4);c=b.length;b=c===0?0:(c-1)*32+(Math.round(b[c-1]/1099511627776)||32);return a=a.substr(0,b/4)};
pui.Xa.Fn=function(a,b){if(a.length%4!=0)return"";for(;a.length%32!=0;)a+="0020";if(b){for(var c="",d=0;d<a.length;d+=2){c+=a.substr(d,2);c+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)];c+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)]}a=c}c="";for(d=0;d<a.length;d+=32){var f=a.substr(d,32);c+=pui.Xa.En(f)}return c};
pui.Xa.rk=function(a,b){for(var c="",d=a.length,f=0,g;f<d;){for(g=a.charCodeAt(f++).toString(16);g.length<b;)g="0"+g;c+=g}return c};pui.Xa.cd=function(a){a=pui.Xa.rk(a,4);return pui.Xa.Fn(a,true).toUpperCase()};var Ob=new (function(){function a(){var g="{ ",k=0;for(var l in f){k++;var h=f[l];if(k>1)g+=", ";g+=l+":";g+='"';g+=h;g+='"'}g+=" }";document.cookie=c+"="+escape(g)+"; path=/"}function b(){for(var g=null,k=document.cookie.split("; "),l=0;l<k.length;l++){var h=k[l].split("=");if(c==h[0])g=unescape(h[1])}if(g==null)f={};else try{f=eval("("+g+")")}catch(o){f={}}d=true}var c="GenieSession";if(M=="dspf")c="PUISession";var d=false,f={};this.Bg=function(g,k){d||b();f[g]=k;a()};this.getValue=function(g,k){d||
b();var l=f[g];if(l==null)l=k;if(l==null)l="";return l};this.clear=function(){f={};a()};this.So=this.set=this.setValue=this.Bg;this.get=this.getValue});window.session=Ob;window.session.saveValue=Ob.Bg;window.session.getValue=Ob.getValue;window.session.clear=Ob.clear;window.session.setValue=Ob.setValue;window.session.set=Ob.set;window.session.put=Ob.So;window.session.get=Ob.get;pui.runtimeContainer=null;pui.Fl=0;pui["refresh interval"]=null;pui.ca={};pui.Cd={};pui.Rd={};pui.Jd={};pui.P={};pui.Tc={};pui.psid=null;pui.Ob=false;pui.Bh=false;pui.I={};pui.lg=null;pui.Yc=1E3;pui.Mb=null;pui.li=null;pui.mi=null;pui.modified=false;pui.Gd={};pui.ld=false;pui.di=false;pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.skipConfirm=false;pui.Qa="";pui.mg=null;pui.ja={};pui.l={};pui.Jf={};pui.wg={};pui.Sg={};pui.Jg={};pui.jj={};pui.Ka={};pui.Ff={};pui.Zg=null;pui.Xg=null;pui.qg=true;
pui.Tg=null;pui.te=null;pui.Ti=false;pui.Hg=[];pui.S={};pui.S.keys={};pui.ta=[];pui.Qe=[];pui.C="false";pui.ik="false";pui.Oc=null;pui.bf=false;pui.Z=false;pui.Ic=false;pui.ze=null;pui.Fe=null;pui.sb=[];pui.activeElement=null;pui.nh=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.ge={};pui.Yg=null;pui.gj=20;pui.Pp=8;pui.leftOffset=140;pui.Xp=0;pui.nl=27;pui["vertical button spacing"]=33;pui["horizontal button spacing"]=90;pui.dup={};pui.dup["char"]="\u25cf";pui.dup.keyCode=45;
pui.dup.shift=true;pui.dup.ctrl=false;pui.dup.alt=false;pui["highlight on focus"]=false;pui["window mask color"]="#CCCCCC";pui["window mask opacity"]=50;pui["loading animation"]={};pui["loading animation"].path=pui.normalizeURL("http://192.168.0.16/ABC/images/loading.gif");pui["loading animation"].right=90;pui["loading animation"].top=10;pui["loading animation"].width=70;pui["loading animation"].height=70;pui["loading animation"].zIndex=250;pui["auto tab"]=false;pui["enable arrow keys"]=false;
pui["horizontal auto arrange"]=false;pui["buttons per row"]=1;pui.wikihelp={};pui.Hn={F1:1,F2:2,F3:3,F4:4,F5:5,F6:6,F7:7,F8:8,F9:9,F10:10,F11:11,F12:12,F13:13,F14:14,F15:15,F16:16,F17:17,F18:18,F19:19,F20:20,F21:21,F22:22,F23:23,F24:24,Enter:0};
pui.hh={F1:49,F2:50,F3:51,F4:52,F5:53,F6:54,F7:55,F8:56,F9:57,F10:58,F11:59,F12:60,F13:177,F14:178,F15:179,F16:180,F17:181,F18:182,F19:183,F20:184,F21:185,F22:186,F23:187,F24:188,"Pause/Break":189,Clear:189,Enter:241,"Alt-F1":243,Help:243,PageUp:244,PageDown:245,Print:246,RecordBackspace:248,AutoEnter:63};
pui.ul=function(a){a=a.metaData.items;for(var b=0;b<a.length;b++){var c=a[b],d=c["field type"];if(d=="checkbox"||d=="combo box"||d=="date field"||d=="password field"||d=="radio button"||d=="select box"||d=="spinner"|d=="text area"||d=="textbox"){c["read only"]="true";d=false;var f=1,g="css class";if(c[g]=="PR"||c[g]=="PR-UL")d=true;for(;c[g]!=null;){f++;g="css class "+f;if(c[g]=="PR"||c[g]=="PR-UL")d=true}d||(c[g]="PR")}}};
pui.yn=function(a,b,c,d){var f;switch(a){case "*END":f=d;a=27;break;case "*ALL":f=1;a=27;break;case "*NO":a=f=0;break;default:a=parseInt(a);if(isNaN(a))a=0;f=d;a=d+a-1}if(c==null)c="";d=c.split("-");if(d.length!=2)d=c=0;else{c=parseInt(d[0]);if(isNaN(c))c=0;d=parseInt(d[1]);if(isNaN(d))d=0}var g=null;b=b.metaData.items;for(var k=0;k<b.length;k++){var l=b[k],h=l["cursor row"];if(h!=null&&h!=""){h=parseInt(h);if(!isNaN(h)&&h>0){if(h>=f&&h<=a){l.visibility="hidden";if(l.grid!=null)g=l.grid}if(h>=c&&
h<=d&&pui["clear overlapped lines"]!=false){l.visibility="hidden";if(l.grid!=null)g=l.grid}}}}if(g!=null)for(k=0;k<b.length;k++){l=b[k];if(l["field type"]=="grid"&&l.id==g)l.visibility="hidden";if(l["field type"]=="image"&&l.id==g+"_expander")l.visibility="hidden"}};
pui.Uo=function(a,b){if(a==null)return false;if(b==null)return false;var c=a.split("-"),d=b.split("-");if(c.length!=2)return false;if(d.length!=2)return false;var f=parseInt(c[0]);c=parseInt(c[1]);var g=parseInt(d[0]);d=parseInt(d[1]);if(isNaN(f))return false;if(isNaN(c))return false;if(isNaN(g))return false;if(isNaN(d))return false;var k=(f+c)/2,l=(g+d)/2;if(k>=g&&k<=d)return true;if(l>=f&&l<=c)return true;return false};
pui.Go=function(a){var b=null,c=null;if(a.length>1)for(var d=0;d<a.length;d++){var f=a[d];if(pui.ba(f.metaData.screen.protect,f.data,f.ref)=="true")for(s=0;s<d;s++)pui.ul(a[s]);var g=f.metaData.screen["clear line"];if(g!=null&&g!=""){var k=f.metaData.screen["overlay range"],l=f.metaData.screen["starting line"];if(l==null)l=k!=null?k.split("-")[0]:"1";l=parseInt(l);if(isNaN(l)||l<1)l=1;var h=false,o=f.metaData.items;for(s=0;s<o.length;s++){var p=o[s];p=p["field type"];if(p=="checkbox"||p=="combo box"||
p=="date field"||p=="password field"||p=="radio button"||p=="select box"||p=="spinner"|p=="text area"||p=="textbox"){h=true;break}}for(s=0;s<d;s++){pui.yn(g,a[s],k,l);h&&pui.Uo(a[s].metaData.screen["overlay range"],k)&&pui.ul(a[s])}}if(f.subfiles!=null){k=f.metaData.screen["overlay range"];if(k!=null){oRangeArr=k.split("-");if(oRangeArr.length==2){b=Number(oRangeArr[1]);o=f.metaData.items;for(var s=0;s<o.length;s++){p=o[s];if(p["field type"]=="grid"){c=p;break}}}}}}if(b!=null&&!isNaN(b)&&c!=null)for(d=
0;d<a.length;d++){f=a[d];k=f.metaData.screen["overlay range"];if(k!=null){oRangeArr=k.split("-");if(oRangeArr.length==2){o=Number(oRangeArr[0]);if(!isNaN(o)&&o>b){o=Number(c["number of rows"]);if(isNaN(o)||o<=0)break;if(c["has header"]=="true")o-=1;p=Number(c["row height"]);if(isNaN(p)||p<=0)break;g=c["fold multiple"];if(g==null)g=parseInt(p/pui.gj);g=Number(g);if(isNaN(g)||g<1)g=1;p=parseInt(p/g);g=o*(p-pui.gj);o=c["show paging controls"];p=c["show page number"];k=c["csv export"];l=false;if(o!=null&&
o!=""&&o!="false")l=true;if(p!=null&&p!=""&&p!="false")l=true;if(k!=null&&k!=""&&k!="false")l=true;if(l)g+=pui.nl;if(g<=0)break;o=f.metaData.items;for(s=0;s<o.length;s++){p=o[s];if(p.grid==null){f=p["field type"];if(f!="panel"&&f!="css panel"&&!pui.p(p.top)&&p["css class"]!="stationary"&&p["css class 2"]!="stationary")p.top=parseInt(p.top)+g+"px"}}}}}}};
pui.qn=function(){pui.rb=null;if(pui.Yd!=null&&pui.hi!=true){for(var a=0;a<pui.Yd.layers.length;a++)for(var b=pui.Yd.layers[a],c=0;c<b.formats.length;c++){var d=b.formats[c];d.data&&delete d.data;d.metaData&&delete d.metaData;d=d.subfiles;if(d!=null)for(var f in d){delete d[f].data;delete d[f]}}delete pui.Yd}for(c=0;c<pui.ta.length;c++){a=pui.ta[c];a!=null&&typeof a.destroy=="function"&&a.destroy()}pui.ta=[];for(c=0;c<pui.Qe.length;c++){a=pui.Qe[c];a!=null&&typeof a.destroy=="function"&&a.destroy()}pui.Qe=
[];if(typeof FusionCharts!="undefined")for(c=0;c<pui.xe.length;c++)FusionCharts(pui.xe[c])&&FusionCharts(pui.xe[c]).dispose();pui.xe=[];for(var g in pui.ge)document.body.style[g]=pui.ge[g];pui.ge={};pui.Sk()};pui.resize=function(a){var b=pui.runtimeContainer;if(b!=null)for(var c=0;c<b.childNodes.length;c++){var d=b.childNodes[c];if(d.sizeMe!=null&&typeof d.sizeMe=="function")if(pui.is_old_ie||pui.Cb(d.style.width)||pui.Cb(d.style.height))d.sizeMe();a&&d.layout!=null&&d.layout.stretch()}};
pui.Lo=function(a){if(a!=null){a=a.state;if(a!=null){if(a.vl=="previous")if(pui.te!=null){pui.C="true";pui.Ti=true;pui.wb()}history.forward()}}};
pui.render=function(a){if(a.version!=null&&pui.version!=null&&a.version!=pui.version){var b="Profound UI server-side version ("+a.version+") doesn't match client-side JavaScript version ("+pui.version+").";window.console&&window.console.error&&console.error(b)}pui.is_old_ie&&pui.ie_mode>=9?pui.Y(pui.runtimeContainer,"pui-ie9plus"):pui.Q(pui.runtimeContainer,"pui-ie9plus");if(pui.K&&pui.K.Db==null)pui.K.Db=document.getElementById("middle");if(!pui.bp){N(window,"resize",pui.resize);pui.bp=true}if(!pui.$m&&
history.pushState!=null&&history.replaceState!=null){history.replaceState({vl:"previous"},document.title);history.pushState({vl:"current"},document.title);N(window,"popstate",pui.Lo);pui.$m=true}pui.qn();pui.Yd=a;b=a.success;if(b==null)b=true;if(b)if(a.closeTab==true&&window.parent!=window&&pui.Dd(window.parent))window.Atrium.closeTab();else if(a.noKey==true){pui.skipConfirm=true;a="/profoundui/key";if(pui.serverURL!=null)a=pui.serverURL+a;location.href=a}else{if(pui.K==null){if(pui["refresh interval"]!=
null&&pui["refresh interval"]>0&&pui.Fl>=pui["refresh interval"]){pui.refresh();return}pui.Fl++}if(a.psid!=null)pui.psid=a.psid;if(a.appJob!=null){pui.secLevel=a.appJob.secLevel;if(pui.appJob==null)pui.appJob={};for(c in a.appJob)pui.appJob[c]=a.appJob[c]}pui.layers=a.layers;if(a.ctrlJob!=null){if(pui.ctrlJob==null)pui.ctrlJob={};for(var c in a.ctrlJob)pui.ctrlJob[c]=a.ctrlJob[c]}if(pui.Z&&!pui.Ic)Ra("ipadKeyboard").style.display="none";pui.Ym();if(pui.handler==null)if(pui["client side timeout"]==
true){pui.timeout=a.timeout;pui.Ia.start()}else pui.da.Ip();pui.Tc={};pui.modified=false;pui.Gd={};pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.Qa="";pui.Ka={};pui.Jf={};pui.wg={};pui.Sg={};pui.Jg={};pui.jj={};pui.Oa={};pui.C="false";pui.bf=false;pui.activeElement=null;pui.Ti=false;pui.nh=false;c=pui.translate(a);c!=null&&pui.alert(c);c=a.layers;for(b=0;b<c.length;b++)pui.Go(c[b].formats);if(c.length>0){b=c[c.length-1];if(b.formats.length>0){var d=b.formats[b.formats.length-1];if(pui.mg==
null)pui.mg=document.title;b=pui.ba(d.metaData.screen["document title"],d.data,d.ref);if(b!=null&&b!="")document.title=b;else if(document.title!=pui.mg)document.title=pui.mg}}if(pui.wikihelp.overlays)for(;pui.wikihelp.overlays.length>0;){b=pui.wikihelp.overlays.pop();b.parentNode.removeChild(b);try{delete b.pui}catch(f){}b=null}pui.wikihelp.overlays=[];pui.Yg=[];for(b=0;b<c.length;b++){pui.ca={};pui.Cd={};pui.Rd={};pui.Jd={};pui.P={};pui.S={};pui.S.keys={};pui.Bh=false;pui.I={};pui.Ff={};pui.Zg=null;
pui.Xg=null;pui.qg=true;pui.Tg=null;pui.te=null;pui.Hg=[];pui.ja.record=null;pui.ja.field=null;pui.ja.position=null;pui.ja.row=null;pui.ja.column=null;pui.l.record=null;pui.l.field=null;pui.l.position=null;pui.l.Eh=null;pui.l.row=null;pui.l.column=null;pui.l.Wc=null;pui.l.sc=null;pui.l.cc=null;pui.ta=[];pui.Qe=[];pui.sb=[];var g=c[b].formats;if(b==0){pui.Mb=null;pui.li=null;pui.mi=null;a.a.innerHTML=""}else{pui.Kp(a,c[b]);if(g.length>0){d=g[0].metaData.screen["window reference"];if(d!=null&&d!=""&&
c[b].metaData!=null)for(var k=c[b].metaData.items,l=0;l<k.length;l++){var h=k[l];if(h.id==d&&(h["field type"]=="panel"||h["field type"]=="css panel")){g[0].metaData.items.push(h);break}}}}pui.Oc=null;k=b==c.length-1;pui.currentFormatNames=[];for(l=0;l<g.length;l++){d=g[l];d.a=a.a;if(k){d.uo=true;pui.Gn.load(d)}if(d.active==true){d.ki=true;pui.Oc=d.name}pui.Li(d)}if(pui.Oc==null)if(g.length>0){l=g.length-1;g[l].ki=true;pui.Oc=g[l].name}else pui.Oc=null;b>0&&g.length>0&&pui.ba(g[0].metaData.screen["center window"],
g[0].data,g[0].ref)=="true"&&pui.kn();pui.Yg.push(a.a)}if(pui.I!=null&&pui.I.dom!=null&&(!pui.bf||pui.l.Wc!=null||pui.l.sc!=null||pui.I.td==true)){a=pui.I.dom.parentNode;a!=null&&a.parentNode!=null&&a.parentNode.grid!=null&&parseInt(pui.I.dom.style.top)>parseInt(a.style.height)?pui.focusOnContainer():setTimeout(function(){if(pui.I.dom!=null)if(pui.I.dom.tagName=="DIV"||pui.I.dom.style.visibility=="hidden")pui.focusOnContainer();else if(pui.l.cc==true)pui.focusOnContainer();else if(pui.l.cc!="no focus on page")try{pui.I.dom.focus();
if(pui.is_old_ie&&pui.I.dom.tagName!="SELECT"&&pui.I.dom.type!="checkbox"&&pui.I.dom.type!="radio")if(pui.I.dom.createTextRange!=null){pui.I.dom.select();var o=pui.I.dom.createTextRange();if(o!=null&&o.collapse!=null&&o.select!=null){o.collapse();o.select()}}else pui.focusOnContainer();pui["highlight on focus"]&&pui.I.dom.select()}catch(p){pui.focusOnContainer()}},1)}else if(!pui.bf&&(pui.l.Wc==null||pui.l.sc==null))pui.focusOnContainer();pui.Ob=true;for(b=0;b<pui.ta.length;b++){a=pui.ta[b];if(a.d!=
null){a.d.jh!=null&&typeof a.d.jh=="function"&&a.d.jh();a.d.ff=true}}pui.hl!=null&&pui.hl.update();pui.breakMessagesInit()}else document.body.innerHTML="<h1>Unrecoverable Error</h1> <p>Unrecoverable error <strong>"+a.exception+"</strong> occurred while handling an exception. The original exception id is <strong>"+a.cause+"</strong>.</p> <p>Please contact the server administrator to determine the cause of the problem."};
pui.Li=function(a){var b=a.designMode;if(b==null)b=false;var c=a.metaData.screen,d=a.metaData.items,f=a.designer,g=a.data,k=a.name,l=false,h=[],o={};if(pui.controller!=null&&c!=null)for(var p="",s=1,t="error condition";c[t+p];){if(pui.ba(c[t+p],g)=="1"){p=pui.ba(c["error message"+p],g);h.push({msg:p});break}p=" "+ ++s}!b&&a.A==null&&pui.currentFormatNames.push(k);if(c!=null){if(pui.ba(c["show as window"],g,a.ref)=="true")l=true;if(c["window reference"]!=null&&c["window reference"]!="")l=true}if(!b&&
a.pd==null){pui.P[k]={};s=a.metaData.screen["return cursor record"];if(pui.p(s))pui.ja.record=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["return cursor field"];if(pui.p(s))pui.ja.field=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["return cursor position"];if(pui.p(s))pui.ja.position=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["return cursor row"];if(pui.p(s))pui.ja.row=(pui.handler==null?k+".":"")+s.fieldName.toUpperCase();s=
a.metaData.screen["return cursor column"];if(pui.p(s))pui.ja.column=(pui.handler==null?k+".":"")+s.fieldName.toUpperCase();s=a.metaData.screen.changed;if(pui.p(s))pui.Ff[k]=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["window left"];if(pui.p(s))pui.Xg=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["window top"];if(pui.p(s))pui.Zg=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["valid command key"];if(pui.p(s))pui.Tg=(pui.handler==null?
k+".":"")+s.fieldName.toUpperCase();s=a.metaData.screen["back button"];if(pui.p(s))pui.te=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["dd element id"];if(pui.p(s))pui.Ka.xh=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["dd record number"];if(pui.p(s))pui.Ka.yh=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["target element id"];if(pui.p(s))pui.Ka.lj=(pui.handler==null?k+".":"")+pui.O(s.fieldName);s=a.metaData.screen["target record number"];
if(pui.p(s))pui.Ka.mj=(pui.handler==null?k+".":"")+pui.O(s.fieldName);var y=1;for(s=a.metaData.screen["set off"];pui.p(s);){pui.Hg.push(k+"."+s.fieldName.toUpperCase());y++;s=a.metaData.screen["set off "+y]}pui.ik=pui.ba(c["bypass validation"],g,a.ref);pui.l.Wc=pui.ba(c["set cursor row"],g,a.ref);pui.l.sc=pui.ba(c["set cursor column"],g,a.ref);pui.l.cc=pui.ba(c["no focus"],g,a.ref);if(pui.l.cc=="true")pui.l.cc=true;if(pui["no focus"]=="true"||pui["no focus"]==true)pui.l.cc=true;if(pui.p(c["set cursor condition"])){s=
pui.ba(c["set cursor condition"],g,a.ref);if(s!=true&&s!="true"){pui.l.Wc=null;pui.l.sc=null}}}if(b){f.ya.name=c["record format name"];if(f.ya.name==null||f.ya.name=="")f.ya.name="[Unnamed Screen]";for(t in c){var z=c[t];f.Ri[f.ya.Ua][t]=z;f.ir[f.ya.Ua][t]=true}}if(!b&&a.pd==null)if(pui.ba(c["disable enter key"],g,a.ref)=="true")pui.Bh=true;var A=mb();s=[];y=[];for(var B=[],v=0;v<d.length;v++)if(!(a.hideControlRecord==true&&!b&&d[v]["field type"]!="grid"&&d[v].grid==null&&d[v]["cursor row"]!=null)){if(!b&&
a.pd!=null&&d[v]["field type"]=="output field"&&d[v].visibility=="hidden"){var I=parseInt(d[v].top),G=parseInt(d[v].left);if(!isNaN(I)&&I<0&&!isNaN(G)&&G<0)continue}if(!b&&d[v]["auto arrange"]=="true"){I=d[v].visibility;if(I=="hidden"||pui.p(I)&&pui.ba(I,g,a.ref)=="hidden")d[v]["shortcut key"]!=null&&delete d[v]["shortcut key"]}if(!b&&d[v]["shortcut key"]!=null){I=d[v].disabled;if(I=="true"||pui.p(I)&&pui.ba(I,g,a.ref)=="true")delete d[v]["shortcut key"]}G=I=null;var E=d[v].grid,C=d[v].layout;if(E!=
null){C=Ra(E);if(C!=null){I=C.grid;G=Number(d[v].column);if(b)G=I.cells[I.f?1:0][G];else if(a.pd!=null)G=I.cells[a.pd][G];else{d[v].domEls!=null&&delete d[v].domEls;I.aa.push(d[v]);continue}}}else if(C!=null){C=Ra(C);if(C!=null&&C.layout!=null)G=C.layout.Ec[Number(d[v].container)-1]}if(G==null)G=b?f.a:a.a;var u;if(!b&&a.A!=null&&d[v].domEls!=null&&d[v].domEls[a.A-1]!=null){u=d[v].domEls[a.A-1];if(G!=null){G.appendChild(u);if(u.ee==true){u.style.display="";u.ee=false}if(u.calimg!=null){G.appendChild(u.calimg);
if(u.calimg.ee){u.calimg.style.display="";u.calimg.ee=false}}if(u.Yb!=null)for(C=0;C<u.Yb.length;C++){G.appendChild(u.Yb[C]);if(u.Yb[C].ee==true){u.Yb[C].style.display="";u.Yb[C].ee=false}}if(u.bi===true){pui.xn(u);u.bi=false}if(a.ua!=null&&a.ua.text!=""&&String(d[v].column)===String(a.ua.col))if(u.tagName=="DIV"){pui.ai(u,a.ua.text);u.bi=true}}}else{u=document.createElement("div");u.style.position="absolute";var K=d[v].left;C=d[v].top;if(pui.p(K))K="0px";if(pui.p(C))C="0px";if(K=="NaNpx")K="0px";
if(C=="NaNpx")C="0px";if(d[v].left!=null)u.style.left=K;if(d[v].top!=null)u.style.top=C;if(!b&&d[v]["parent tab panel"]!=null&&d[v]["parent tab panel"]!="")u.style.visibility="hidden";if(G!=null)d[v].lo!=null?G.insertBefore(u,d[v].lo):G.appendChild(u);K={};C=null;if(b){C=f.addItem(u,true);C.properties=K;C.properties.newitem="true";C.$a.newitem=true;p=d[v]["field type"];if(p=="styled button"||p=="panel"||p=="css panel"||p=="css button"||p=="Layout")C.dom.style.borderStyle="none"}for(var ba in d[v])if(ba!=
"domEls"){z=d[v][ba];if(pui.p(z))if(b)p=z;else{if(pui.ro(ba))u.Xh=true;p=pui.ba(z,g,a.ref);if(ba=="value"||ba=="html"){u.Ib=k;u.ad=pui.O(z.fieldName);if(d[v]["field type"]=="textbox"){var Y=pui.ba(d[v]["choices database file"],g,a.ref);if(Y!=null&&Y!=""){Y=pui.ba(d[v]["choice options field"],g,a.ref);var L;if(Y!=null)L=pui.ha(Y)[0];Y=pui.ba(d[v]["choice values field"],g,a.ref);if(L!=null&&L!=""&&Y!=null&&Y!=""&&L!=Y){z.formatting="Text";z.Mc=null;z.maxLength=null}}}}if(ba=="cursor record number")pui.Jf[(pui.handler==
null?k+".":"")+pui.O(z.fieldName)]=u;if(ba=="subfile return rrn")pui.wg[(pui.handler==null?k+".":"")+pui.O(z.fieldName)]=u;if(ba=="return mode")pui.Jg[(pui.handler==null?k+".":"")+pui.O(z.fieldName)]=u;if(ba=="column sort response")u.ye=(pui.handler==null?k+".":"")+pui.O(z.fieldName);if(ba=="field name sort response")u.Ee=(pui.handler==null?k+".":"")+pui.O(z.fieldName);if(ba=="subfile changed")pui.jj[K["record format name"]]=z.fieldName}else{if(!b&&G!=null&&G.Bb){if(G.Zl==null)G.Zl="";if(ba=="id"||
ba=="top"||ba=="left")G.Zl+=z}p=z}K[ba]=p}if(K["field type"]=="tab panel"){p=K.id;s.push(p);Bb[p]!=null?y.push(Bb[p]):y.push(cb(K["active tab"],"",u))}for(t in K){p=u.df==null?pui.Th(A,t):pui.Th(u.df,t);if(p!=null){z=K[t];if(!b){Y=d[v][t];if(pui.p(Y)){Y.revert=false;if(pui.is_touch&&!pui.is_mouse_capable&&t=="value"&&K["field type"]=="textbox"&&Y.formatting=="Number")if(Y.numSep!="true"&&Y.numBlankFill!="true"&&Y.negNum!="(999.00)"&&Y.negNum!="999.00-"&&Y.negNum!="999.00 CR"&&(!Y.edtWrd||Y.edtWrd==
"")&&(!Y.edtMsk||Y.edtMsk=="")&&(!Y.curSym||Y.curSym=="")&&(!Y.units||Y.units==""))u.type="number";if(t=="changed"){var S=pui.O(Y.fieldName),Z=k+"."+S;if(pui.handler!=null)Z=S;if(a.A!=null)Z+="."+a.A;if(pui.Cd[Z]==null)pui.Cd[Z]=[];pui.Cd[Z].push(u)}if(t=="is blank"){S=pui.O(Y.fieldName);Z=k+"."+S;if(pui.handler!=null)Z=S;if(a.A!=null)Z+="."+a.A;if(pui.Rd[Z]==null)pui.Rd[Z]=[];pui.Rd[Z].push(u)}if(t=="dup key response"&&K["allow dup key"]=="true"){S=Y.fieldName.toUpperCase();Z=k+"."+S;if(pui.handler!=
null)Z=S;if(a.A!=null)Z+="."+a.A;if(pui.Jd[Z]==null)pui.Jd[Z]=[];pui.Jd[Z].push(u)}if(t=="response"||t=="chart response"||t=="menu response"||t=="upload response"||t=="tab response"||t=="active tab"||t=="radio button group"||t=="page down response"&&u.grid!=null&&u.grid.o!=null||t=="page up response"&&u.grid!=null&&u.grid.o!=null||t=="value"&&(u.tagName=="INPUT"&&u.type!="button"||u.tagName=="SELECT"||u.tagName=="TEXTAREA"||u.comboBoxWidget!=null||u.G!=null||u.signaturePad!=null||u.z!=null)){S=pui.O(Y.fieldName);
Z=k+"."+S;if(pui.handler!=null)Z=S;if(a.A!=null)Z+="."+a.A;if(t=="radio button group"){var ea=S;if(a.A!=null)ea+="."+a.A;u.name=ea;if(pui.is_old_ie){var aa;try{aa=document.createElement('<input name="'+ea+'" type="radio">')}catch(fa){aa=document.createElement("input");aa.name=ea;aa.type="radio"}aa.style.position=u.style.position;aa.style.left=u.style.left;aa.style.top=u.style.top;aa.style.visibility=u.style.visibility;aa.style.display=u.style.display;aa.id=u.id;aa.value=u.value;aa.Yb=u.Yb;aa.Nc=u.Nc;
aa.modified=u.modified;aa.disabled=u.disabled;u.parentNode.replaceChild(aa,u);aa.checked=u.checked;aa.hb=u.hb;aa.gb=u.gb;aa.onblur=u.onblur;aa.onchange=u.onchange;aa.onclick=u.onclick;aa.ondblclick=u.ondblclick;aa.onfocus=u.onfocus;aa.onkeydown=u.onkeydown;aa.onkeypress=u.onkeypress;aa.onkeyup=u.onkeyup;aa.onmousedown=u.onmousedown;aa.onmousemove=u.onmousemove;aa.onmouseout=u.onmouseout;aa.onmouseover=u.onmouseover;aa.onmouseup=u.onmouseup;aa.pui=u.pui;u=aa}u.radioValue=K.value}if(pui.ca[Z]==null)pui.ca[Z]=
[];if(t=="page down response"){pui.ca[Z].push(u.grid.o.ga);pui.ca[Z].push(u.grid.o.V)}else if(t=="page up response"){pui.ca[Z].push(u.grid.o.ia);pui.ca[Z].push(u.grid.o.W)}else pui.ca[Z].push(u);if(t=="menu response")u.T="";if(t=="upload response")u.fileUpload.To=Z;if(t=="chart response")u.T="";if(t=="tab response")u.lp=true;if(t=="active tab")u.kp=true;if(t=="response"){Z=K["shortcut key"];if(Z!=null&&Z!=""){if(pui.P[k]==null)pui.P[k]={};if(pui.P[k][Z]==null)pui.P[k][Z]=[];pui.P[k][Z].push(u);u.Rb=
Z}if(E==null)u.T="0";if(K.onclick==null||K.onclick=="")pui.Zc(u)}if(t=="page down response"){if(pui.P[k].PageDown==null)pui.P[k].PageDown=[];pui.P[k].PageDown.push(u.grid.o.V);pui.Zc(u.grid.o.ga);pui.Zc(u.grid.o.V);u.grid.o.ga.L=Y;u.grid.o.V.L=Y}if(t=="page up response"){if(pui.P[k].PageUp==null)pui.P[k].PageUp=[];pui.P[k].PageUp.push(u.grid.o.W);pui.Zc(u.grid.o.ia);pui.Zc(u.grid.o.W);u.grid.o.ia.L=Y;u.grid.o.W.L=Y}u.L=Y}}if(t=="selection field"&&K["field type"]=="grid")if(pui.p(d[v]["selection field"]))u.grid.Ma=
d[v]["selection field"];if(t=="row font color"&&K["field type"]=="grid")if(pui.p(d[v][t]))u.grid.zg=d[v][t];if(t=="row background"&&K["field type"]=="grid")if(pui.p(d[v][t]))u.grid.xg=d[v][t];if(t=="shortcut key"&&z!=null&&z!=""&&!pui.p(d[v].response)){if(pui.P[k][z]==null)pui.P[k][z]=[];pui.P[k][z].push(u);u.Rb=z;if(E==null)u.T="0";if(K.onclick==null||K.onclick=="")pui.Zc(u)}if(t=="id"&&a.A!=null){z+="."+a.A;K[t]=z}if(t=="set focus"&&z=="true")if(pui.I.dom==null||pui.I.td!=true)if(K.visibility!=
"hidden"){pui.I.dom=u;if(u.comboBoxWidget!=null)pui.I.dom=u.comboBoxWidget.getBox();pui.I.td=true}if(t=="focus class"&&!pui.p(z)&&bb(z)!=""){u.focusClass=bb(z);N(u,"focus",pui.Mj);N(u,"blur",pui.Dl)}if(t=="required"&&z=="true")u.wl=true;if(t=="mandatory entry"&&z=="true")u.yj=true;if(t=="mandatory fill"&&z=="true")u.zj=true;if(t=="valid values"&&z!=null&&z!="")u.oj=z;if(t=="allow blanks"&&z=="true")u.Jj=true;if(t=="auto advance"&&z=="true"){var e=u;if(u.comboBoxWidget!=null)e=u.comboBoxWidget.getBox();
e.kh=true;N(e,"keyup",pui.lh)}t=="allow dup key"&&z=="true"&&N(u,"keydown",function(W){W=W||window.event;if(W.keyCode==pui.dup.keyCode)if(!(pui.dup.shift&&!W.shiftKey))if(!(pui.dup.ctrl&&!W.ctrlKey))if(!(pui.dup.alt&&!W.altKey)){var T=La(W),J=T.value,V=T.maxLength;if(V==null)V=0;V=Number(V);if(isNaN(V))V=0;var ga=Qa(T);if(ga<0)ga=0;for(J=J.substr(0,ga);J.length<ga;)J+=" ";for(;J.length<V;)J+=pui.dup["char"];T.value=J;ia(W);pui.Vh(T);Ma(W);return false}});if(t=="allow field exit"&&z=="true"){e=u;if(u.comboBoxWidget!=
null)e=u.comboBoxWidget.getBox();if(pui.p(d[v].value)&&d[v].value.rjZeroFill=="true"){u.Ll=true;e.Ll=true}N(e,"keydown",function(W){W=W||window.event;if(W.keyCode==pui["field exit key"]&&!W.shiftKey&&(pui["field exit key"]==17||!W.ctrlKey)){var T=La(W);pui.Pg(T);if(pui.kk(T)==false){Ma(W);return false}}})}if(t=="validate name"&&z=="true")u.qj=true;if(t=="validate email"&&z=="true")u.Ug=true;if(t=="set as modified"&&z=="true"){u.modified=true;pui.modified=true;if(a.A==null)pui.Gd[k]=true}if(t.length>=
11&&t.substr(0,11)=="blank value"&&z!=null&&z!=""){if(u.ue==null)u.ue=[];u.ue.push(z);Y=u;if(u.comboBoxWidget!=null)Y=u.comboBoxWidget.getBox();boxValue=Y.tagName=="DIV"?ob(Y):Y.value;if(boxValue==z)if(Y.tagName=="DIV")Y.innerHTML="";else Y.value=""}if(t=="comparison operator"&&z!=null&&z!="")u.th=z;if(t=="comparison value"&&z!=null&&z!="")u.uh=z;if(t=="range low"&&z!=null&&z!="")u.de=z;if(t=="range high"&&z!=null&&z!="")u.ce=z;if(t=="checked value")u.kb=z;if(t=="unchecked value")u.hc=z;if(t=="cursor row")u.Ae=
z;if(t=="cursor column")u.Hd=z;if(t=="bypass validation")u.C=z;if(t=="auto arrange"&&z=="true")if(a.ki!=true){u.style.display="none";u.style.visibility="hidden";u.removeAttribute("id")}else if(K.visibility!="hidden"){Z=K["shortcut key"];if(pui.S.keys[Z]==true){u.style.display="none";u.style.visibility="hidden"}else{if(Z)pui.S.keys[Z]=true;if(l||pui["horizontal auto arrange"]){if(pui.S.top==null)pui.S.top=parseInt(u.style.top);if(pui.S.left==null){pui.S.left=parseInt(u.style.left);pui.S.Ha=parseInt(u.style.left)}else if(pui["horizontal auto arrange"]){if(pui.S.Cf==
null)pui.S.Cf=0;if(pui.S.na==null)pui.S.na=parseInt(u.style.top);pui.S.Cf++;pui.S.left=pui.S.Ha+pui.S.Cf%pui["buttons per row"]*pui["horizontal button spacing"];pui.S.top=pui.S.na+Math.floor(pui.S.Cf/pui["buttons per row"])*pui["vertical button spacing"]}else if(pui.S.sl!=null&&Math.abs(parseInt(u.style.top)-pui.S.sl)>5)pui.S.left=pui.S.Ha;else pui.S.left+=pui["horizontal button spacing"];u.style.left=pui.S.left+"px";pui.S.sl=parseInt(u.style.top);if(pui["horizontal auto arrange"])u.style.top=pui.S.top+
"px"}else{if(pui.S.top==null)pui.S.top=parseInt(u.style.top);else pui.S.top+=pui["vertical button spacing"];u.style.top=pui.S.top+"px"}}}if(t=="allow drag"&&z=="true"){if((K.cursor==null||K.cursor=="")&&!pui.Z)u.style.cursor="move";pui.Xm(u,K)}}if(!b&&t=="visibility"&&K["parent tab panel"]!=null&&K["parent tab panel"]!="")z="hidden";if(z!=null&&z!=""){Y=K;if(b)Y=C.properties;u=pb(p,Y,u,z,b,C,null,a.A)}if(!b&&t=="visibility"&&z=="visible"&&a.pd!=null)u.style.visibility=""}if(a.ua!=null&&a.ua.text!=
""&&String(K.column)===String(a.ua.col))if(u.tagName=="DIV"){pui.ai(u,a.ua.text);u.bi=true}if(pui.controller!=null&&t.indexOf("error condition")==0&&z=="1"&&!o[u.id]){p="";if(t.length>15)p=" "+parseInt(t.substr(15),10);p=K["error message"+p];h.push({id:u.id,msg:p});o[u.id]=true}}if(pui["auto tab"]==true&&K["prevent auto tab"]!="true")if(K["field type"]=="combo box"||K["field type"]=="date field"||K["field type"]=="spinner"||K["field type"]=="textbox"||K["field type"]=="password field"){e=u;if(u.comboBoxWidget!=
null)e=u.comboBoxWidget.getBox();N(e,"keyup",function(W){W=W||window.event;var T=La(W),J=true,V=W.keyCode;if(V<48||V>90&&V<96||V>111&&V<186)if(V!=32)J=false;V=T;if(V.comboBoxWidget!=null)V=V.comboBoxWidget.getBox();if(J&&V.value.length==V.maxLength&&Qa(V)>=V.maxLength){pui.Vh(T);Ma(W);return false}})}if(pui["enable arrow keys"]==true)if(K["field type"]=="combo box"||K["field type"]=="date field"||K["field type"]=="spinner"||K["field type"]=="textbox"||K["field type"]=="password field"||K["field type"]==
"checkbox"){e=u;if(u.comboBoxWidget!=null)e=u.comboBoxWidget.getBox();N(e,"keydown",function(W){W=W||window.event;var T=La(W);if(!(T.Ub&&T.Ub.gi())){var J=W.keyCode,V=T;if(V.comboBoxWidget!=null)V=V.comboBoxWidget.getBox();if(J==37)if(Qa(V)<=0){pui.Xf(T,"left");Ma(W);return false}if(J==38){pui.Xf(T,"up");Ma(W);return false}if(J==39)if(Qa(V)>=V.value.length){pui.Xf(T,"right");Ma(W);return false}if(J==40){pui.Xf(T,"down");Ma(W);return false}}})}if(!b&&K.visibility!="hidden"&&pui.l.Wc!=null&&pui.l.Wc!=
""&&pui.l.sc!=null&&pui.l.sc!=""){crow=K["cursor row"];if(u.parentNode&&u.parentNode.parentNode&&u.parentNode.parentNode.grid){E=parseInt(crow,10);isNaN(E)||(E+=u.parentNode.row-1);crow=""+E}if(pui.l.Wc==crow){E=false;if(pui.l.sc==K["cursor column"])E=true;if(!E)if(K["field type"]=="textbox"||K["field type"]=="date field"||K["field type"]=="password field"||K["field type"]=="combox box"||K["field type"]=="spinner"){p=d[v].value;if(p!=null&&pui.p(p)&&p.dataLength!=null){p=Number(p.dataLength);Y=Number(K["cursor column"]);
Z=Number(pui.l.sc);if(!isNaN(p)&&!isNaN(Y)&&!isNaN(Z))if(Z>Y&&Z<Y+p)E=true}}if(E){pui.I.dom=u;if(u.comboBoxWidget!=null)pui.I.dom=u.comboBoxWidget.getBox();pui.I.td=true}}}if(!b){var ia=function(W){if(pui.Ob){W=La(W);W.modified=true;if(W.parentNode!=null&&W.parentNode.comboBoxWidget!=null)W.parentNode.modified=true;pui.modified=true;if(W.id!=null&&W.id.indexOf(".")==-1)pui.Gd[k]=true}};if(u.comboBoxWidget!=null||u.tagName=="TEXTAREA"||u.tagName=="INPUT"&&(pui.Oe(u)||u.type=="file")){e=u;if(u.comboBoxWidget!=
null)e=u.comboBoxWidget.getBox();if(u.L!=null&&u.L.maxLength!=null){e.maxLength=u.L.maxLength;if(u.tagName=="TEXTAREA"){N(u,"keyup",function(W){W=La(W);var T=Number(W.maxLength);if(!isNaN(T)&&T>0&&W.value!=null&&W.value.length>T)W.value=W.value.substr(0,T)});N(u,"paste",function(W){var T=La(W);setTimeout(function(){var J=Number(T.maxLength);if(!isNaN(J)&&J>0&&T.value!=null&&T.value.length>J)T.value=T.value.substr(0,J)},0)});N(u,"keydown",function(W){W=W||window.event;var T=W.keyCode;if(T>=48&&T<=
57||T>=65&&T<=90||T==32||T>=106&&T<=111||T>=186&&T<=192||T>=219&&T<=222){T=La(W);var J=Number(T.maxLength);if(!isNaN(J)&&J>0&&T.value!=null&&T.value.length==J){Ma(W);return false}}})}}if(u.Ib!=null||u.ad!=null||u.Ae!=null||u.Hd!=null){N(e,"focus",pui.pc);N(e,"keyup",pui.pc)}N(e,"focus",pui.lf);N(e,"keydown",pui.lf);N(e,"change",ia);N(e,"paste",ia);e.vh=0;N(e,"mouseup",pui.ij);N(e,"mousedown",pui.ij);N(e,"keyup",pui.ij);N(e,"keydown",function(W){W=W||window.event;var T=W.keyCode;T>=9&&T<=45&&T!=32||
T>=112&&T<=145||W.ctrlKey&&T!=88&&T!=86||ia(W)});u.L&&u.L.Mc&&function(){var W=u.L.Mc;N(e,"keypress",function(T){T=T||window.event;pui.Mc(T,W)})}();if(u.L!=null&&u.L.edtMsk!=null&&u.L.edtMsk!=""){N(e,"keyup",function(W){pui.ih(La(W),W)});N(e,"keydown",function(W){W=W||window.event;var T=W.keyCode,J=La(W),V=null;if(T==46||T==8||T==32){var ga=false;if(typeof J.selectionStart=="number")ga=J.selectionStart==0&&J.selectionEnd==J.value.length;else if(typeof document.selection!="undefined")ga=document.selection.createRange().text==
J.value;if(ga){J.value="";return}}if(T>=48&&T<=57)V=T-48;if(T>=96&&T<=105)V=T-96;if(T==46)V=0;if(T==8)V=0;if(V!=null){J=La(W);ga=J.value;if(ga!=null){var pa=Qa(J);if(T==8&&pa>0)pa-=1;J.value=ga.substr(0,pa)+String(V)+ga.substr(pa+1);T!=46&&T!=8&&pa++;Ma(W);pui.ih(J,W,pa);if(pui.is_old_ie)try{W.keyCode=0}catch(va){}return false}}});pui.ih(e)}}u.tagName=="SELECT"&&N(u,"keydown",function(W){W=W||window.event;var T=W.keyCode;if(T==38||T==40)ia(W)});if(u.tagName=="SELECT"||u.tagName=="INPUT"&&(u.type==
"checkbox"||u.type=="radio")){if(u.Ib!=null||u.ad!=null||u.Ae!=null||u.Hd!=null){N(u,"focus",pui.pc);N(u,"keyup",pui.pc)}N(u,"focus",pui.lf);N(u,"keydown",pui.lf);N(u,"change",ia);u.tagName!="SELECT"?N(u,"click",ia):N(u,"keydown",function(W){if(!W)W=window.event;if(W.keyCode==34){W.cancel=true;W.preventDefault&&W.preventDefault();return false}})}if(u.tagName=="INPUT"&&u.type=="radio")u.modified=true;if(u.Ib!=null||u.ad!=null||u.Ae!=null||u.Hd!=null)N(u,"click",pui.pc);N(u,"click",pui.lf)}if(!b&&!pui.Z&&
pui.I.dom==null&&!u.disabled&&!u.readOnly&&K.visibility!="hidden"){if(u.tagName=="INPUT")if(pui.Oe(u)||u.type=="checkbox"||u.type=="radio"||u.type=="file")pui.I.dom=u;if(u.tagName=="TEXTAREA"||u.tagName=="SELECT")pui.I.dom=u;if(u.comboBoxWidget!=null)pui.I.dom=u.comboBoxWidget.getBox()}b&&K["field type"]=="grid"&&f.Ek.push(C);b&&K["field type"]=="layout"&&f.vo.push(C);p=K["field type"];if(p!=null){E=pui.widgets[p];E!=null&&E.initialize!=null&&E.initialize({design:b,properties:K,dom:u,e:C})}!b&&K["field type"]==
"layout"&&pui.Qe.push(u.layout);if(!b&&K["field type"]=="grid"){C=a.subfiles;var da,ta,Aa,ya,ua;E=pui.jc(K["record format name"]);if(C!=null)da=C[E];if(da!=null)ta=da.data;if(da!=null)Aa=da["field names"];if(da!=null)ya=da.ref;if(da!=null)ua=da.errors;u.grid.Lh=a.fileId;if(typeof pui.view!="undefined")u.grid.tf="pui-grid-"+pui.view;else if(typeof a.file!="undefined"&&typeof a.library!="undefined")u.grid.tf="pui-grid-"+a.library+"-"+a.file+"-"+E;u.grid.D=ta!=null?ta:[];u.grid.la=Aa!=null?Aa:[];if(pui.handler!=
null&&ta==null){ta=g[pui.jc(K["record format name"])];if(ta!=null&&ta.length>0){Aa=[];da=[];for(S in ta[0])Aa.push(S);for(C=0;C<ta.length;C++){E=[];p=ta[C];for(Y=0;Y<Aa.length;Y++){S=Aa[Y];E.push(p[S])}da.push(E)}u.grid.D=da;u.grid.la=Aa;da={}}}u.grid.ref=ya!=null?ya:{};if(ua!=null)u.grid.errors=ua;C=d[v]["subfile message key"];E=d[v]["subfile program message queue"];p=d[v]["subfile control program message queue"];if(C!=null&&C!=""&&E!=null&&E!=""||p!=null&&p!=""){if(u.grid.d!=null)u.grid.d.hr="Message";
u.grid.aa.push({id:"_msgsfltext",column:"0","field type":"output field",grid:K.id,left:"5px",top:"5px",cursor:"pointer",onclick:"pui.showMessageSubfileHelp(this);",value:{dataLength:"132",dataType:"char",fieldName:"text",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});u.grid.aa.push({id:"_msgsflhelp",column:"0","field type":"output field",grid:K.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"9999",dataType:"char",fieldName:"help",
formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});u.grid.aa.push({id:"_msgsflid",column:"0","field type":"output field",grid:K.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"7",dataType:"char",fieldName:"id",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});u.grid.aa.push({id:"_msgsfldate",column:"0","field type":"output field",grid:K.id,left:"0px",top:"0px",visibility:"hidden",
value:{dataLength:"7",dataType:"char",fieldName:"date",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});u.grid.aa.push({id:"_msgsfltime",column:"0","field type":"output field",grid:K.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"6",dataType:"char",fieldName:"time",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}})}if(u.grid.D.length==0)if(pui.p(d[v]["subfile message key"])||pui.p(d[v]["subfile program message queue"]))u.grid.$h();
da==null&&u.grid.$h();C=Number(K["subfile record number"]);u.grid.Kg=C;if(isNaN(C)){C=1;u.grid.Kg=0}if(C<1||C>9999){C=1;u.grid.Kg=0}if(K["position at top"]!="true"){E=u.grid.cells.length;if(u.grid.f)E-=1;if(u.grid.Lk())E*=u.grid.eb;u.grid.n=parseInt((C-1)/E)*E+1}else u.grid.n=C;if(K["place cursor"]=="true"){u.grid.pg=C;pui.bf=true}B.push(u.grid);pui.ta.push(u.grid)}if(!b&&a.A!=null){u.A=a.A;if(d[v].domEls==null)d[v].domEls=[];d[v].domEls[a.A-1]=u}}if((pui.controller!=null||typeof pui.handler=="function")&&
K!=null&&K["set as modified"]!="false")u.modified=true;if(!b&&a.Gc!=null)u.Gc=a.Gc;if(!b&&I!=null&&!I.expanded){G=parseInt(G.style.height);if(!isNaN(G)){I=parseInt(u.style.top);if(isNaN(I))I=0;if(I>G&&(u.tagName=="INPUT"||u.tagName=="SELECT"||u.tagName=="TEXTAREA")&&!u.disabled){u.Gi=true;u.disabled=true}}}}if(!b){ua=pui.controller!=null&&h.length>0?h:a.errors;if(ua!=null)if(a.A!=null){ua=ua[String(a.A)];ua!=null&&pui.dj(ua,a.A)}else pui.dj(ua)}for(v=0;v<s.length;v++){d=document.getElementById(s[v]).tabPanel;
if(y[v])d.selectedTab=y[v];d.r()}if(b)for(v=0;v<f.Ek.length;v++)f.Ek[v].dom.grid.zb(true);for(v=0;v<B.length;v++){var ja=B[v];if(pui.I!=null&&pui.I.td==true)ja.pg=null;if(ja.Lk())ja.collapse(Ra(ja.b.id+"_expander"));else{if(ja.Xc)continue;ja.getData()}if(!ja.Xc){ja.n>1&&ja.d!=null&&ja.d.type=="sliding"&&ja.d.tc(ja.n,true);if(pui.bf&&pui.l.sc==null&&pui.l.Wc==null)if(pui.I==null||pui.I.td!=true)setTimeout(function(){ja.pl(true)},1);if(ja.d!=null){!b&&ja.d.type=="sliding"&&ja.d.nb==1&&ja.d.r();if(!b&&
ja.d.type=="paging"){k=c["record format name"];if(pui.P[k].PageDown==null){pui.P[k].PageDown=[];pui.P[k].PageDown.push(ja.o.V);ja.o.vi=true}if(pui.P[k].PageUp==null){pui.P[k].PageUp=[];pui.P[k].PageUp.push(ja.o.W);ja.o.yi=true}}}ja.Zk();ja.cp()}}!b&&pui.onload!=null&&typeof pui.onload=="function"&&a.pd==null&&a.Ml!==false&&!pui.N&&pui.onload(a);if(c!=null&&!b){if(a.Ml!==false){b=c.onload;if(b!=null&&b!="")try{eval('var format = "'+c["record format name"]+'";');eval('var file = "'+a.file+'";');eval(b)}catch(sa){pui.alert("Onload Error:\n"+
sa.message)}}pui.lg=c.onsubmit}};
pui.Zc=function(a){N(a,"click",function(){if(a.disabled!=true)if(!(a.getAttribute!=null&&a.getAttribute("disabled")=="true")){if(a.bb!=null){if(a.nextPage==true&&!a.bb.grid.jb()){a.bb.grid.ti();return}if(a.cf==true&&!a.bb.grid.pb()){a.bb.grid.xi();return}}if(a.Rb!=null)pui.Qa=a.Rb;var b=[];if(a.Rb!=null&&!a.bb)for(formatName in pui.P){var c=pui.P[formatName][pui.Qa];if(c!=null)for(var d=0;d<c.length;d++)b.push(c[d])}else b.push(a);for(d=0;d<b.length;d++){b[d].T="1";if(b[d].C=="true"||b[d].C=="send data")pui.C=
b[d].C}c=a.parentNode;if(c!=null){d=c.parentNode;if(d!=null){d=d.grid;d!=null&&d.Fg(c.row)}}pui.Pf=null;pui.Id=null;pui.Of=null;pui.zh=null;if(a.pui&&a.pui.properties&&a.pui.properties["destination url"]){c=a.pui.properties;pui.Pf=c["destination url"];pui.Of=!c.bookmarkable||c.bookmarkable=="true";pui.zh=c["redirect to destination"]=="true";pui.Id=[];d=1;for(var f="destination parameter name",g="destination parameter value";c[f];){pui.Id.push([c[f],c[g]]);f="destination parameter name "+ ++d;g="destination parameter value "+
d}}c=pui.wb();pui.Pf=null;pui.Id=null;pui.Of=null;pui.zh=null;if(c==false){for(d=0;d<b.length;d++)b[d].T="0";pui.C="false"}}})};
pui.dj=function(a,b){for(var c=[],d=a.length-1;d>=0;d-=1){var f=a[d],g=f.msg;if(f.encoded)g=pui.formatting.Kf(g);g=g.replace(/&N/g,"<br/>");g=g.replace(/&P/g,"<br/>");g=g.replace(/&B/g,"<br/>");var k=f.dom;f=f.id;if(b!=null)f+="."+b;if(k==null&&f!=null)k=Ra(f);if(k==null||k.tagName==null)g!=null&&g!=""&&c.push(g);else{if(k.parentNode&&k.parentNode.comboBoxWidget)k=k.parentNode;f=k;if(k.comboBoxWidget!=null)f=k.comboBoxWidget.getBox();if(k.pui.properties["error message location"]=="alert")c.push(g);
else{var l=f.B;if(l==null)l=new pui.xf(k);if(!l.U){pui.Y(f,l.ed());l.he(g);l.show(3E3,true)}g=k.parentNode;if(g!=null){g=g.parentNode;if(g!=null){g=g.grid;if(g!=null)g.Vg[k.id]=l}}}}}if(c.length>0){k="";for(d=c.length-1;d>=0;d-=1){if(d!=c.length-1)k+="<br/>";k+=c[d]}for(var h=k;h.indexOf("<br/>")>=0;)h=h.replace("<br/>","\n");setTimeout(function(){pui.alert(h)},1)}var o=!pui.Ob;setTimeout(function(){pui.ld=true;for(var p=0;p<a.length;p++){var s=a[p].id;if(b!=null)s+="."+b;var t=a[p].dom;if(t==null&&
s!=null)t=Ra(s);if(t!=null){if(t.comboBoxWidget!=null)t=t.comboBoxWidget.getBox();try{t.focus();pui["highlight on focus"]&&t.select();l.U||t.B.show();if(o){pui.I.dom=t;pui.I.td=true}break}catch(y){}}}setTimeout(function(){pui.ld=false},0)},0)};
pui.wb=function(){if(pui.Ue!=null)return false;if(pui.isServerBusy())return false;var a=pui.en();if(typeof a.valid=="boolean"&&a.valid==false)if(pui.C!="true"&&(pui.C!="send data"||a.si==true)){a.si=false;pui.dj(a.errors);pui.Tc={};pui.Qa="";return false}Pb();if(pui.lg!=null&&pui.lg!="")try{pui.yl=a;var b=eval(pui.lg);if(typeof b=="function")b=b(a);delete pui.yl;if(b==false){pui.Tc={};pui.Qa="";return false}}catch(c){pui.alert("Onsubmit Error:\n"+c.message);pui.Tc={};pui.Qa="";return false}if(pui.onsubmit!=
null&&typeof pui.onsubmit=="function")if(pui.onsubmit()==false){pui.Tc={};pui.Qa="";return false}pui.haltFrames();pui.Ob=false;pui.uc();b=false;if(pui.C!="true"&&(pui.C!="send data"||a.si==true))b=pui.Qo(a);b||pui.submitResponse(a);return true};
pui.en=function(){var a={};for(var b in pui.Cd){for(var c=pui.Cd[b],d=0;d<c.length;d++){var f=c[d];if(f.modified&&(pui.controller!=null||pui.C!="true")){a[b]="1";break}}if(a[b]!="1")a[b]="0"}for(b in pui.Rd){c=pui.Rd[b];for(d=0;d<c.length;d++){f=c[d];if(typeof f.value=="string"&&bb(f.value)==""){a[b]="1";break}}if(a[b]!="1")a[b]="0"}for(b in pui.Jd){c=pui.Jd[b];for(d=0;d<c.length;d++){f=c[d];if(pui.ei(f)){a[b]="1";break}}if(a[b]!="1")a[b]="0"}for(b in pui.ca){var g=pui.ca[b];c=f=g[0];if(f.comboBoxWidget!=
null)c=f.comboBoxWidget.getBox();var k=null;if(f.T!=null){k=f.T;if(k=="0")for(d=1;d<g.length;d++){if(g[d].T=="1"){k="1";break}}else if(f.T==""&&f.pui.properties["field type"]=="menu"&&g.length>1)for(d=1;d<g.length;d++)if(g[d].T!=""){k=g[d].T;break}a[b]=k}else{if(pui.modified&&pui.C!="true"&&pui.C!="send data"){if(f.yj==true&&f.modified!=true){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:pui.getLanguageText("runtimeMsg","ME")});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}if(f.zj==
true&&f.modified==true&&c.maxLength!=null&&c.value!=null&&(c.maxLength!=c.value.length||c.value===c.emptyText)){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:pui.getLanguageText("runtimeMsg","MF")});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}}if(pui.C!="true"&&pui.C!="send data"&&f.wl==true&&!f.disabled)if(typeof c.value=="string"&&(bb(c.value)==""||c.value===c.emptyText)||f.fileUpload!=null&&f.fileUpload.getCount()<1){a.valid=false;if(a.errors==null)a.errors=[];d=pui.getLanguageText("runtimeMsg",
"required");if(f.fileUpload!=null)d=pui.getLanguageText("runtimeMsg","file required");a.errors.push({dom:c,msg:d});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}if(f.fileUpload!=null&&pui.C!="true"&&pui.C!="send data"){d=f.fileUpload.pj();if(d==null)d=f.fileUpload.rj();if(d!=null){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:f,msg:d});if(f.B!=null&&f.B.U!=null)f.B.U=false;continue}}if(f.modified==true&&(pui.controller!=null||pui.C!="true")){if(f.tagName=="INPUT")switch(f.type){case "text":case "number":case "password":case "file":case "hidden":case "":case "number":case "date":case "datetime":case "time":case "email":case "url":case "month":case "tel":case "url":case "color":case "datetime-local":case "search":case "week":k=
f.value;if(k===f.emptyText)k="";if(f.mh!=null)if(pui["force auto complete match"]!=false||f.mh.value!="")k=f.mh.value;if(pui.ei(k)){g="";var l=" ";if(f.L!=null&&pui.formatting.vb(f.L.dataType))l="0";d="";for(var h=0;h<k.length;h++){var o=k.substr(h,1);if(o==pui.dup["char"]){g+="1";o=l;k=k.substr(0,h)+o+k.substr(h+1)}else g+="0";if(o>="0"&&o<="9")d+=o}if(l!="0")a[b+".dup"]=g;if(l=="0"){l=Number(f.L.dataLength);if(isNaN(l))l=0;g=f.L.decPos;if(isNaN(g))g=0;l-=g;if(l<0)l=0;h=d.substr(0,l);d=d.substr(l);
if(d.length>g)d=d.substr(0,g);g=".";if(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")g=",";l=k.indexOf("-")!=-1;k=h;if(d!="")k+=g+d;if(l)k="-"+k}}break;case "checkbox":k=f.checked?f.kb!=null&&f.kb!=""?f.kb:"1":f.hc!=null&&f.hc!=""?f.hc:" ";break;case "radio":for(h=0;h<g.length;h++){d=g[h];if(d.checked&&d.radioValue!=null){k=d.radioValue;break}}break}if(f.tagName=="SELECT"){h=false;if(f.getAttribute("multiple")!=null)h=true;if(!h)k=f.value;if(h){k=[];for(h=0;h<f.options.length;h++)f.options[h].selected&&
k.push(f.options[h].value);k=k.join(",")}}if(f.tagName=="TEXTAREA"){k=f.value;if(k===f.emptyText)k=""}if(f.comboBoxWidget!=null){k=f.comboBoxWidget.getValue();if(k===f.comboBoxWidget.getBox().emptyText)k=""}if(f.G!=null){k=f.value;if(k!=null)k=String(k)}if(f.signaturePad!=null)k=f.signaturePad.getValue();if(f.z!=null){k="";if(f.z.ac&&f.z.Zd!=null)k=f.z.Zd;else if(!f.z.ac&&f.z.Xd!=null)k=f.z.Xd}if(f.type=="grid selection")k=f.value}}if(typeof k=="string"&&(pui.controller!=null||pui.C!="true")){if(bb(k)==
""&&f.ue!=null&&f.ue.length>=1)k=f.ue[0];if(f.signaturePad!=null&&pui.C!="send data")if(k.length>f.L.maxLength){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:f,msg:pui.getLanguageText("runtimeMsg","signature overflow")});if(f.B!=null&&f.B.U!=null)f.B.U=false;continue}h=f.L;if(h!=null&&h.dataType!="expression"){h.value=k;h.revert=true;if(f.T!=null)h.formatting="Text";k=pui.oe.format(h);if(typeof k=="object"){a.valid=false;a.si=true;if(a.errors==null)a.errors=[];a.errors.push({dom:c,
msg:k.msg});if(c.B!=null&&c.B.U!=null)c.B.U=false}else{d=false;if(pui.C=="send data")d=true;if(pui.ei(f))d=true;if(f.Jj==true&&typeof f.value=="string"&&bb(f.value)=="")d=true;if(!d){if(f.qj==true){d=designUtils.qj(k);if(d!=""&&d!="is too long."){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:"Name "+d});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}}if(f.Ug==true)if(!pui.Ug(k)){a.valid=false;if(a.errors==null)a.errors=[];d=pui.getLanguageText("runtimeMsg","invalid email");
a.errors.push({dom:c,msg:d});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}if(typeof f.oj=="string"){g=pui.ha(f.oj);l=true;for(d=0;d<g.length;d++)if(Wa(String(g[d]))==k){l=false;break}if(l){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:pui.getLanguageText("runtimeMsg","validValues")+g.join(", ")+"."});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}}if(typeof f.th=="string"&&typeof f.uh=="string"){l=f.uh;g=k;if(h.formatting=="Number"){l=Number(l);g=Number(g)}o=l;if(typeof l==
"string"){l=Wa(l);o="'"+o+"'"}if(typeof g=="string")g=Wa(g);d="";switch(f.th){case "Equal":if(l!=g)d="Value must equal "+o+".";break;case "Not Equal":if(l==g)d="Value must not equal "+o+".";break;case "Greater Than":if(g<=l)d="Value must be greater than "+o+".";break;case "Greater Than or Equal":if(g<l)d="Value must be greater than or equal to "+o+".";break;case "Less Than":if(g>=l)d="Value must be less than "+o+".";break;case "Less Than or Equal":if(g>l)d="Value must be less than or equal to "+o+
".";break}if(d!=""){a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:d});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}}if(typeof f.de=="string"){d=f.de;g=k;if(h.formatting=="Number"){d=Number(d);g=Number(g)}if(typeof d=="string")d=Wa(d);if(typeof g=="string")g=Wa(g);if(g<d){k=f.de;if(h.formatting!="Number")k="'"+k+"'";d=pui.getLanguageText("runtimeMsg","invalid low range",[k]);if(f.ce!=null){g=f.ce;if(h.formatting!="Number")g="'"+g+"'";d=pui.getLanguageText("runtimeMsg","invalid range",
[k,g])}a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:d});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}}if(typeof f.ce=="string"){d=f.ce;g=k;if(h.formatting=="Number"){d=Number(d);g=Number(g)}if(typeof d=="string")d=Wa(d);if(typeof g=="string")g=Wa(g);if(g>d){g=f.ce;if(h.formatting!="Number")g="'"+g+"'";d=pui.getLanguageText("runtimeMsg","invalid high range",[g]);if(f.de!=null){k=f.de;if(h.formatting!="Number")k="'"+k+"'";d=pui.getLanguageText("runtimeMsg","invalid range",
[k,g])}a.valid=false;if(a.errors==null)a.errors=[];a.errors.push({dom:c,msg:d});if(c.B!=null&&c.B.U!=null)c.B.U=false;continue}}}a[b]=k;if(f.A!=null){c=b.split(".")[0];k=c+".rrn";h=k+"="+f.A;if(pui.Tc[h]!=true){if(a[k]==null)a[k]=[];a[k].push(f.A);pui.Tc[h]=true}k=pui.jj[c];if(k!=null)a[c+"."+k+"."+f.A]="1"}}}}}if(pui.Qa!=null&&pui.Qa!=""){b=pui.Hn[pui.Qa];if(b!=null&&b>0)a.fkey=String(b);b=pui.hh[pui.Qa];a.aid=b!=null?String(b):pui.hh.Enter}if(pui.ja.record!=null&&pui.ja.record!=""&&pui.l.record!=
null&&pui.l.record!="")a[pui.ja.record]=pui.l.record;if(pui.ja.field!=null&&pui.ja.field!=""&&pui.l.field!=null&&pui.l.field!="")a[pui.ja.field]=pui.l.field;if(pui.ja.position!=null&&pui.ja.position!=""&&pui.l.position!=null&&pui.l.position!="")a[pui.ja.position]=pui.l.position;if(pui.ja.row!=null&&pui.ja.row!=""&&pui.l.row!=null&&pui.l.row!="")a[pui.ja.row]=pui.l.row;if(pui.ja.column!=null&&pui.ja.column!=""&&pui.l.column!=null&&pui.l.column!="")a[pui.ja.column]=pui.l.column;b=Number(pui.l.row);
if(!isNaN(b)&&b>0)a.row=String(b);b=Number(pui.l.column);if(!isNaN(b)&&b>0)a.column=String(b);if(pui.l.uj!=null)a.wrow=String(pui.l.uj);if(pui.l.tj!=null)a.wcolumn=String(pui.l.tj);for(var p in pui.Jf){f=pui.Jf[p];if(f.yb!=null)a[p]=f.yb}for(var s in pui.wg){f=pui.wg[s];if(f.Kl!=null){a[s]=f.Kl;if(pui.Qa=="PageUp")a[s]=1;if(pui.Qa=="PageDown")a[s]+=f.grid.Yn()}}for(var t in pui.Sg)a[t]=pui.Sg[t];for(var y in pui.Jg){f=pui.Jg[y];a[y]=f.grid.expanded?"0":"1"}if(pui.ze!=null){p=pui.ze.b.ye;k=pui.ze.bk;
if(p!=null&&k!=null)a[p]=k}if(pui.Fe!=null){p=pui.Fe.b.Ee;k=pui.Fe.Kh;if(p!=null&&k!=null)a[p]=k}for(var z in pui.Ff)a[pui.Ff[z]]=pui.Gd[z]&&(pui.controller!=null||pui.C!="true")?"1":"0";if(pui.qg){if(pui.Zg!=null&&pui.Mb!=null)a[pui.Zg]=String(parseInt(pui.Mb.style.top));if(pui.Xg!=null&&pui.Mb!=null)a[pui.Xg]=String(parseInt(pui.Mb.style.left))}if(pui.Tg!=null)a[pui.Tg]=a.aid!=pui.hh.Enter?"1":"0";for(d=0;d<pui.Hg.length;d++){setOffField=pui.Hg[d];if(a[setOffField]==null)a[setOffField]="0"}if(pui.Ka.wb==
true){if(pui.Ka.xh!=null)a[pui.Ka.xh]=pui.dragDropInfo["dd element id"];if(pui.Ka.yh!=null){z=pui.dragDropInfo["dd record number"];if(z==null)z=0;a[pui.Ka.yh]=String(z)}if(pui.Ka.lj!=null)a[pui.Ka.lj]=pui.dragDropInfo["target element id"];if(pui.Ka.mj!=null){z=pui.dragDropInfo["target record number"];if(z==null)z=0;a[pui.Ka.mj]=String(z)}}if(pui.te!=null)a[pui.te]=pui.Ti?"1":"0";if(pui.controller!=null){z=0;p=pui.Yd.layers;for(d=0;d<p.length;d++){s=p[d].formats;for(h=0;h<s.length;h++)a["pui-recname."+
++z]=s[h].metaData.screen["record format name"]}}return a};
pui.submitResponse=function(a){var b;b=pui.K==null?Za("PUI0001200.pgm"):Za("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")b+="/"+pui.psid;if(pui.handler!=null&&typeof pui.handler=="string")b=pui.handler;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{b=pui.overrideSubmitUrl(b)}catch(c){}if(pui.handler!=null&&typeof pui.handler=="function"){if(pui.Pf){var d=pui.Pf.split("?"),f="";b=d[0];if(d.length>1)f=d[1];var g="";d=[];for(var k=0;k<pui.Id.length;k++){var l=pui.Id[k][0],
h=pui.Id[k][1];if(g!="")g+="&";g+=encodeURIComponent(l)+"="+encodeURIComponent(h);d.push('"'+l+'"','"'+h+'"');a[l]=h}if(pui.Of){if(f!="")f+="&";f+=g}if(f!="")b+="?"+f;if(pui.zh){if(pui.Of)location.href=b;else{a='postTo("'+b+'"';if(d.length>0)a+=","+d.join(",");a+=");";eval(a)}return}else pui.controller=b}pui.handler(a)}else{pui.Ia.end();fb({url:b,method:"post",params:a,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(o){pui.Ya();if(o==null){document.body.innerHTML='<div style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+
pui.getLanguageText("runtimeMsg","session ended text")+"<br/><br/>"+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";if(shutDown()!=false){pui.shutdownOnClose=false;pui.confirmOnClose=false;M=""}}else{o.a=pui.runtimeContainer;pui.K==null?pui.render(o):pui.fr(o)}},onfail:function(o){pui.onoffline==null&&!pui["suppress comm errors"]&&pui.alert(pui.Ie(o));pui.Ya(true);pui.Mi();pui.onoffline!=null&&pui.onoffline()}})}};
pui.Mi=function(){for(var a in pui.ca)for(var b=pui.ca[a],c=0;c<b.length;c++)if(b[c].T=="1")b[c].T="0";pui.Ob=true};pui.hn=function(a){for(var b in a){var c=a[b],d=Ra(b);if(d!=null){var f=d.B;f!=null&&f.hide();f=new pui.xf(d);f.he(c);f.show()}}pui.Ya(true);for(a=0;a<pui.ta.length;a++)pui.ta[a].vf();pui.unmaskScreen();pui.Mi()};
pui.ba=function(a,b,c){if(!pui.p(a)&&!pui.mb(a))return a;if(b==null){if(a.designValue!=null)return a.designValue;return""}var d=a.fieldName;if(a.lowerCaseField!=true&&pui.handler==null)d=d.toUpperCase();if(a.dataType=="expression")b=pui.Gh(a.fieldName,b);else{b=b[d];if(b==null)b=""}a.value=b;if(a.dataType=="reference"){c=c[d];if(c!=null){a.dataType=pui.Yp(c.dataType);a.dataLength=String(c.dataLength);a.decPos=String(c.decPos)}}if(a.formatting=="Text")if(pui.formatting.vb(a.dataType)){a.textTransform!=
null&&delete a.textTransform;a.trimLeading!=null&&delete a.trimLeading;a.trimTrailing!=null&&delete a.trimTrailing;a.formatting="Number";a.numSep="false";a.zeroBalance="false";a.zeroFill="false";a.curSym="";a.units="";a.negNum="-999.00"}return pui.oe.format(a)};
pui.Gh=function(a,b){for(var c=false,d=a.split(" or "),f=0;f<d.length;f++){for(var g=true,k=d[f].split(" and "),l=0;l<k.length;l++){var h=k[l],o=false;if(h.substr(0,1)=="N"){o=true;h=h.substr(1)}h="*IN"+h;h=b[h]=="1";if(o)h=!h;if(!h){g=false;break}}if(g){c=true;break}}if(c)return"1";return"0"};
pui.uc=function(){var a;if(pui["loading animation"].text!=null){a=document.createElement("div");a.innerHTML=pui["loading animation"].text;a.style.backgroundColor="#cccccc";a.style.border="1px solid #333333";a.style.fontSize="10px";a.style.fontFamily="Sans-Serif"}else{a=document.createElement("img");a.src=pui["loading animation"].path;var b=pui["loading animation"].height;a.style.width=pui["loading animation"].width+"px";a.style.height=b+"px"}a.style.position="absolute";a.style.left=pui["loading animation"].left+
"px";b=pui["loading animation"].top;b+=Math.max(document.body.scrollTop,document.documentElement.scrollTop);a.style.top=b+"px";a.style.zIndex=pui["loading animation"].zIndex;a.id="_pui_loading_animation";pui.runtimeContainer.appendChild(a);for(a=0;a<pui.ta.length;a++){b=pui.ta[a];b.Xc||b.mask()}};pui.Ya=function(a){if(a==true){a=Ra("_pui_loading_animation");a!=null&&a.parentNode!=null&&a.parentNode.removeChild(a)}};
pui.Qd=function(a,b){if(M=="dspf"){if(!a)a=window.event;var c=a.keyCode,d;d=c-111;if(b==null)if(d>=1&&d<=12){if(!pui.is_old_ie||d>1||a.shiftKey){if(a.shiftKey)d+=12;else if(a.Qc&&Event.wf)d+=12;b="F"+d;if(a.altKey)b="Alt-"+b;else if(a.ctrlKey)b="Ctrl-"+b}}else switch(c){case 13:b="Enter";break;case 19:b="Pause/Break";break;case 27:b="Escape";break;case 33:b="PageUp";break;case 34:b="PageDown";break;case 44:b="PrtScn";break}if(b=="Ctrl-F9"){pui.downloadJSON();return false}if((d=b!=null&&pui.Oc!=null&&
(b=="Enter"||b=="PageUp"||b=="PageDown"||pui.P[pui.Oc][b]!=null))&&b=="PageUp"||b=="PageDown"){var f=false;for(c=0;c<pui.ta.length;c++){var g=pui.ta[c];if(g.o&&g.o.je)if(f==false)f=true;else{d=false;break}}}if(d){d=[];c=false;for(var k in pui.P){f=pui.P[k][b];if(f!=null){g=true;for(c=0;c<f.length;c++){var l=f[c];l.disabled||(g=false);if(l.bb!=null){if(l.nextPage==true&&!l.bb.grid.jb()){l.bb.grid.ti();Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(h){}return false}if(l.nextPage==true&&!l.bb.ng){Ma(a);
if(pui.is_old_ie)try{a.keyCode=0}catch(o){}return false}if(l.cf==true&&!l.bb.grid.pb()){l.bb.grid.xi();Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(p){}return false}if(l.cf==true&&!l.bb.og){Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(s){}return false}if(l.disabled){Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(t){}return false}}d.push(l)}if(d.length>=1&&typeof d[0].onclick=="function"&&l.nextPage!=true&&l.cf!=true){d[0].onclick();pui.runtimeContainer.focus();Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(y){}return false}if(g){Ma(a);
if(pui.is_old_ie)try{a.keyCode=0}catch(z){}return false}c=true}}if(b=="Enter"&&!pui.Bh)c=true;if(c){pui.Qa=b;for(c=0;c<d.length;c++){d[c].T="1";if(d[c].C=="true"||d[c].C=="send data")pui.C=d[c].C}if(pui.wb()==false){for(c=0;c<d.length;c++)d[c].T="0";pui.C="false"}Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(A){}return false}}if(b!=null&&(b!="PageUp"&&b!="PageDown"||pui.nh)){Ma(a);if(pui.is_old_ie)try{a.keyCode=0}catch(B){}return false}}};pui.Wh=function(a){return pui.Qd(a,"F1")};
pui.run=function(a){var b=a.mobile===true,c=a.parameter,d=a.program;if(d==null)d="";var f=a.container,g=a.workstnid;if(g==null)g="";g=g.toUpperCase();var k=a.debug,l=a.log;if(k==null)k="0";if(l==null)l="0";var h="*LIBL",o=d.split("/");if(o.length==2){h=o[0];d=o[1]}if(f==null)f="pui";if(typeof f=="string")f=document.getElementById(f);N(document.body,"keydown",pui.Qd);N(document.body,"help",pui.Wh);N(document.body,"mousedown",pui.Zj);a.jsonURL==null&&a.mode!="preview"&&pui.Nj();f.setAttribute("tabindex",
"0");pui.runtimeContainer=f;pui.uc();o="post";var p=Za("PUI0001200.pgm");if(a.jsonURL!=null){p=a.jsonURL+"?r="+Math.floor(Math.random()*1E9+1);o="get"}d={program:d.toUpperCase(),library:h.toUpperCase(),init:"1",debug:k,log:l,workstnid:g};if(a.suffixid=="1")d.suffixid="1";if(a.duplicateid=="1")d.duplicateid="1";if(b){d.mobile="1";if(c==null)c="";d.p1=c;d.l1="250"}b=a.params;if(b!=null)for(var s in b)d[s]=b[s];if(a.mode=="preview")if(window.opener==null||window.opener.pui==null||window.opener.pui.generatePreview==
null){f.innerHTML="";pui.alert("Preview data is no longer available.  You can rebuild the preview in the Visual Designer.")}else{a=window.opener.pui.generatePreview();a.a=f;pui.hi=true;pui.handler=window.opener.pui.viewdesigner?function(t){fb({url:"dummy_url",method:"post",params:t,sendAsBinary:false,suppressAlert:true,handler:function(){document.body.innerHTML="<br/><br/>Preview screen submitted."},onfail:function(){document.body.innerHTML="<br/><br/>Preview screen submitted."}})}:null;pui.render(a)}else{a=
pui.getCookie("puiRefreshId");if(a!=null){pui.deleteCookie("puiRefreshId","/");d={refresh:"1"};p+="/"+a}fb({url:p,method:o,sendAsBinary:false,params:d,saveResponse:true,suppressAlert:true,handler:function(t){pui.Ya();t.a=f;pui.render(t)},onfail:function(t){pui.Ya(true);setTimeout(function(){if(pui.onoffline==null){pui["suppress comm errors"]||pui.alert(pui.Ie(t));pui.is_touch&&setTimeout(function(){navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()},500)}else pui.onoffline()},
500)}})}};
pui.signon=function(a){var b=a.mobile===true,c=a.container,d=a.debug,f=a.workstnid,g=a.atrium_item;if(g==null)g="";if(f==null)f="";f=f.toUpperCase();var k=a.log;if(c==null)c="pui";if(d==null)d="0";if(k==null)k="0";if(typeof c=="string")c=document.getElementById(c);N(document.body,"keydown",pui.Qd);N(document.body,"help",pui.Wh);pui.Nj();c.setAttribute("tabindex","0");pui.runtimeContainer=c;pui.Ue==null&&pui.uc();var l=Za("PUI0001200.pgm"),h="",o="";if(typeof a.program!="undefined"){o="*LIBL";var p=
a.program.split("/");if(p.length==2){o=p[0];h=p[1]}}d={signon:"1",program:h.toUpperCase(),library:o.toUpperCase(),init:"1",debug:d,log:k,workstnid:f,atrium_item:g};if(a.suffixid=="1")d.suffixid="1";if(a.duplicateid=="1")d.duplicateid="1";if(b)d.mobile="1";a=a.params;if(a!=null)for(var s in a)d[s]=a[s];s=pui.getCookie("puiRefreshId");if(s!=null){pui.deleteCookie("puiRefreshId","/");d={refresh:"1"};l+="/"+s}pui.Ue==null&&fb({url:l,method:"post",sendAsBinary:false,params:d,saveResponse:true,suppressAlert:true,
handler:function(t){pui.Ya();t.a=c;pui.render(t)},onfail:function(t){pui.Ya(true);setTimeout(function(){if(pui.onoffline==null){pui["suppress comm errors"]||pui.alert(pui.Ie(t));pui.is_touch&&setTimeout(function(){navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()},500)}else pui.onoffline()},500)}})};
pui.Qi=function(a){a.profoundui="1";fb({url:pui.normalizeURL(pui.controller),method:"post",params:a,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(b){pui.Ya();if(b==null)document.body.innerHTML='<div style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session ended text")+"<br/><br/>"+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";else{b.a=pui.runtimeContainer;var c=b.data;if(c==null)c=
{};if(b.view!=null)pui.view=b.view;if(b.redirect!=null)location.href=b.redirect;else if(b.controller!=null){pui.controller=b.controller;pui.Qi({})}else if(b.html!=null)pui.runtimeContainer.innerHTML=b.html;else{var d=b.format;if(d==null)d=b.screen;var f=b.formats;if(f==null)f=b.screens;b=b.appJob||{};pui.show({path:pui.normalizeURL(pui.view),data:c,format:d,formats:f,appJob:b,handler:function(g){pui.Qi(g)}})}}},onfail:function(b){pui.onoffline==null&&!pui["suppress comm errors"]&&pui.alert(pui.Ie(b));
pui.Ya(true);pui.Mi();pui.onoffline!=null&&pui.onoffline()}})};
pui.start=function(){pui.Qp();var a=Fb();pui.Uj=a.canvasSize;var b=a.pgm;if(b==null)b=a.program;var c=a.debug,d=a.container,f=a.workstnid,g=a.suffixid,k=a.duplicateid,l=a.log,h=a.atrium_item,o=a.initpgm,p=a.jsonURL,s=a.mode,t=a.controller,y=a.mobile==="1",z=a.observe==="1";if(z)pui.hl.enabled=true;var A={};pui.Ah!=null&&typeof pui.Ah=="function"&&pui.Ah(d);for(var B=1;B<=255;B++){var v=a["p"+B],I=a["l"+B];if(v==null||I==null)break;A["p"+B]=v;A["l"+B]=I}if(t!=null)pui.controller=t;if(pui.controller!=
null){N(document.body,"keydown",pui.Qd);N(document.body,"help",pui.Wh);N(document.body,"mousedown",pui.Zj);pui.Qi({})}else{a={container:d,debug:c,log:l,workstnid:f,suffixid:g,duplicateid:k,mobile:y,params:A,observe:z};if(b==null&&p==null&&s==null){if(h!=null)a.atrium_item=h;else if(o!=null)a.program=o;pui.signon(a)}else{a.program=b;if(p!=null)a.jsonURL=p;if(s!=null)a.mode=s;pui.run(a)}}};pui.newSession=function(){window.location.reload()};
pui.closeSession=function(){if(window.parent!=window&&pui.Dd(window.parent))window.Atrium.closeTab();else{document.body.innerHTML='<div style="width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";try{window.close()}catch(a){}navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()}};
pui.formatErrorText=function(){var a=document.getElementById("ESHELP"),b;if(a!=null){b=a.innerHTML;if(b!=null){var c="Recovery  . . . :";b=b.replace(c,"<br/><br/>"+c);c=c.replace("  "," ");b=b.replace(c,"<br/><br/>"+c);a.innerHTML=b}}};
pui.maskScreen=function(){function a(k){var l={x:0,y:0};if(k.offsetParent)for(;;){l.x+=k.offsetLeft;l.y+=k.offsetTop;if(!k.offsetParent)break;k=k.offsetParent}else if(k.x){l.x+=k.x;l.y+=k.y}if(document.documentElement.scrollHeight>document.documentElement.clientHeight)l.x+=8;return l}function b(){if(!(pui.scrollFrequency!=null&&pui.Uk!=null&&(new Date).getTime()-pui.Uk<pui.scrollFrequency)){pui.Uk=(new Date).getTime();var k=document.documentElement.scrollTop,l=document.documentElement.scrollLeft;
if(!pui.is_old_ie){k=window.pageYOffset;l=window.pageXOffset}var h=a(pui.runtimeContainer);if(pui.K!=null||pui.runtimeContainer.offsetLeft!=0||pui.runtimeContainer.offsetTop!=0){l-=h.x;if(M=="dspf")k-=h.y;else k=-pui.runtimeContainer.offsetTop}if(f!=null){f.style.top=k+"px";f.style.left=l+"px"}}}var c=document.documentElement.clientWidth-2,d=document.documentElement.clientHeight-2;if(c<0)c=0;if(d<0)d=0;var f;if(pui.Se==null){f=document.createElement("div");f.id="pui-screen-mask";pui.Se=f}else f=pui.Se;
pui.runtimeContainer.appendChild(f);f.qo=true;f.style.position="absolute";f.style.padding="0px";f.style.left="0px";f.style.top="0px";if(pui.K!=null||pui.runtimeContainer.offsetLeft!=0||pui.runtimeContainer.offsetTop!=0){f.style.display="none";setTimeout(function(){var k=a(pui.runtimeContainer);f.style.left=0-k.x+"px";f.style.top=0-k.y+"px";f.style.display=""},0)}f.style.width=c+"px";f.style.height=d+"px";f.style.backgroundColor=pui["window mask color"];pui.Yc++;f.style.zIndex=pui.Yc;var g=pui["window mask opacity"];
f.style.opacity=g/100;f.style.filter="alpha(opacity="+g+")";if(typeof f.style.MozUserSelect!="undefined")f.style.MozUserSelect="none";N(window,"resize",function(){if(!(pui.resizeFrequency!=null&&pui.Tk!=null&&(new Date).getTime()-pui.Tk<pui.resizeFrequency)){pui.Tk=(new Date).getTime();c=document.documentElement.clientWidth-2;d=document.documentElement.clientHeight-2;if(f!=null){f.style.height=d+"px";f.style.width=c+"px"}b()}});N(window,"scroll",b)};
pui.unmaskScreen=function(){if(pui.Se!=null){var a=pui.Se.parentNode;a==pui.runtimeContainer&&a.removeChild(pui.Se)}};
pui.Kp=function(a,b){function c(h){h=a.a.getElementsByTagName(h);for(var o=0;o<h.length;o++){var p=h[o];if(p.onclick)p.onclick=null;p.id="";p.removeAttribute("id");p.disabled=true;p.readOnly=true}}var d=b.formats[0];pui.Ya(true);c("a");c("input");c("button");c("div");c("select");c("textarea");var f;if(d!=null)f=pui.ba(d.metaData.screen["mask screen"],d.data,d.ref);var g=true;if(f=="false")g=false;g&&pui.maskScreen(a);f=document.createElement("div");pui.Yc++;f.style.zIndex=pui.Yc;f.style.position=
"absolute";var k;if(d!=null)k=pui.ba(d.metaData.screen["window left"],d.data,d.ref);pui.li=k;if(k==null)k="0px";if(k.length<=2||k.substr(k.length-2)!="px"){k=parseInt(k);if(isNaN(k))k=0;k=k*pui.Pp+pui.leftOffset;k+="px";pui.qg=false}var l;if(d!=null)l=pui.ba(d.metaData.screen["window top"],d.data,d.ref);pui.mi=l;if(l==null)l="0px";if(l.length<=2||l.substr(l.length-2)!="px"){l=parseInt(l);if(isNaN(l))l=0;l=l*pui.gj+pui.Xp;l+="px";pui.qg=false}f.style.left=k;f.style.top=l;f.Bb=true;pui.runtimeContainer.appendChild(f);
a.a=f;pui.Mb=f};pui.kn=function(){for(var a=pui.getDimensions(pui.Mb),b,c=0;c<pui.Yg.length;c++){b=pui.getDimensions(pui.Yg[c]);if(b.x1!=b.x2&&b.y1!=b.y2)break}c=parseInt((b.x2-(a.x2-a.x1))/2)-a.x1;b=parseInt((b.y2-(a.y2-a.y1))/2)-a.y1;if(c<-a.x1)c=-a.x1;if(b<-a.y1)b=-a.y1;pui.Mb.style.left=c+"px";pui.Mb.style.top=b+"px"};
pui.getDimensions=function(a){for(var b={x1:99999,y1:99999,x2:0,y2:0},c=a.firstChild;c!=null;){if(!c.Bb&&!c.qo&&c.style!=null&&c.style.position=="absolute"){var d=c.offsetLeft,f=c.offsetTop,g=d+c.offsetWidth,k=f+c.offsetHeight;if(d<b.x1)b.x1=d;if(f<b.y1)b.y1=f;if(g>b.x2)b.x2=g;if(k>b.y2)b.y2=k}c=c.nextSibling}if(a.id=="5250"&&b.x1==99999&&b.x2==0&&b.y1==99999&&b.y2==0){b.x1=0;b.y1=0;b.x2=a.parentNode.offsetWidth;b.y2=a.parentNode.offsetHeight}if(b.x1==99999)b.x1=0;if(b.y1==99999)b.y1=0;return b};
pui.showMessageSubfileHelp=function(a){if(pui.Nb!=null&&pui.Nb.style.display!="none"&&pui.Nb.parentNode!=null)pui.Nb.style.display="none";else{var b=a.id,c=b.substr(b.indexOf("."));b=yb("_msgsflid"+c);var d=yb("_msgsfldate"+c);if(d.length==7&&d.substr(0,1)=="1"){d="20"+d.substr(1);var f=Number(d.substr(0,4)),g=Number(d.substr(4,2))-1;d=Number(d.substr(6,2));d=new Date(f,g,d);f=pui.appJob.dateFormat;if(f=="")f="*ISO";f=pui.formatting.keywords.DATFMT[f].Fa.replace(/\B/g,pui.appJob.dateSeparator);d=
d.format(f,"en_US")}f=yb("_msgsfltime"+c);g=pui.appJob.timeSeparator;if(g==null)g=".";f=f.substr(0,2)+g+f.substr(2,2)+g+f.substr(4,2);g=a.innerHTML;var k=yb("_msgsflhelp"+c);k=k.replace(/&amp;N/g,"<br/><br/>");k=k.replace("Cause . . . . . :","<strong>Cause:</strong>");k=k.replace("Recovery  . . . :","<strong>Recovery:</strong>");c='<div style="height: 30px; text-align: center; padding-top: 3px;"><strong>Additional Message Information</strong></div>';c+='<div style="height: 215px; overflow-y: auto; white-space: normal;">';
c+="<strong>Message Id:</strong> "+b+"<br/><br/>";c+="<strong>Message:</strong> "+g+"<br/><br/>";c+="<strong>Date/Time:</strong> "+d+" "+f;c+=k;c+="<br/><br/>";c+="</div>";a=a.parentNode.parentNode;b=parseInt(a.style.top);b-=260;if(b<5)b=5;d=parseInt(a.style.left);d+=3;var l;if(pui.Nb==null||pui.Nb.parentNode==null){l=document.createElement("div");a.parentNode.appendChild(l)}else l=pui.Nb;l.style.position="absolute";l.style.left=d+"px";l.style.top=b+"px";l.style.width="640px";l.style.height="250px";
l.style.border="1px solid #cccccc";l.style.zIndex=pui.Yc;l.style.whiteSpace="normal";l.style.fontFamily="Arial";l.style.backgroundColor="#ffffff";l.style.color="#555555";l.style.paddingLeft="8px";l.innerHTML=c;l.style.display="";var h=document.createElement("img");h.style.position="absolute";h.style.top="3px";h.style.right="2px";h.style.cursor="pointer";h.src=pui.normalizeURL("/profoundui/proddata/images/buttons/close/x1.png");h.onmouseover=function(){h.src=pui.normalizeURL("/profoundui/proddata/images/buttons/close/x1_hover.png")};
h.onmouseout=function(){h.src=pui.normalizeURL("/profoundui/proddata/images/buttons/close/x1.png")};h.onclick=function(){l.style.display="none"};l.appendChild(h);pui.Nb=l}};pui.lf=function(a){a=La(a);if(!(a.tagName=="INPUT"&&a.type=="button"))pui.activeElement=a;a=a;if(a.parentNode&&a.parentNode.comboBoxWidget)a=a.parentNode;a=a.parentNode;if(a!=null){var b=a.parentNode;if(b!=null){b=b.grid;b!=null&&b.Fg(a.row)}}};
pui.pc=function(a,b){var c;if(a!=null)c=La(a);if(b!=null)c=b;var d=c.parentNode,f=null;if(d!=null&&d.parentNode!=null)f=d.parentNode.grid;var g=false;if(c.tagName=="A"||c.tagName=="BUTTON"||c.tagName=="INPUT"&&c.type=="button"||c.button!=null)g=true;var k=c;if(k.parentNode!=null&&k.parentNode.comboBoxWidget!=null)k=k.parentNode;if(k.tagName=="OPTION"&&k.parentNode.tagName=="SELECT")k=k.parentNode;pui.l.record=k.Ib;pui.l.field=k.ad;var l=Qa(c)+1;if(l<=0)l=1;if(c.maxLength!=null&&c.maxLength>=1&&l>
c.maxLength)l=c.maxLength;pui.l.position=String(l);pui.l.Eh=k.id;pui.l.row=k.Ae;pui.l.uj=null;pui.l.tj=null;c=pui.mi;if(c!=null)if(c.length<=2||c.substr(c.length-2)!="px"){c=Number(c);if(!isNaN(c)&&c>0){pui.l.uj=pui.l.row;if(pui.l.row!=null)pui.l.row=Number(pui.l.row)+c}}if(d!=null&&d.row!=null&&typeof d.row=="number"){if(pui.l.row!=null){pui.l.row=Number(pui.l.row)+d.row;if(f!=null&&f.f)pui.l.row-=1;pui.l.row=String(pui.l.row)}f!=null&&f.Fg(d.row)}d=pui.li;if(d!=null)if(d.length<=2||d.substr(d.length-
2)!="px")d=Number(d);if(k.Hd==null)pui.l.column=null;else{pui.l.column=Number(k.Hd)+Number(l)-1;if(!isNaN(d)&&d>0){pui.l.tj=pui.l.column;pui.l.column=pui.l.column+d+1}}if(!g)for(g=0;g<pui.ta.length;g++){k=pui.ta[g];if(k!=f)k.b.yb=0}};pui.Zj=function(a){var b=false;a=La(a);if(a==document.body)b=true;if(a==pui.runtimeContainer)b=true;if(a.parentNode!=null&&a.parentNode.panel!=null)b=true;if(b){pui.l.field=null;pui.l.position=null;pui.l.Eh=null}};
pui.Mj=function(a){a=La(a);var b=a.className;if(b==null)b="";b=bb(b);if(b.indexOf(a.focusClass)==-1)b+=" "+a.focusClass;a.className=b};pui.Dl=function(a){a=La(a);var b=a.className;if(b==null)b="";for(b=bb(b);b.indexOf(a.focusClass)>=0;)b=b.replace(a.focusClass,"");a.className=bb(b)};
pui.lh=function(a){a=a||window.event;var b=a.keyCode;if(b<48||b>90&&b<96||b>111&&b<186)if(b!=32)return;a=La(a);if(a.comboBoxWidget!=null)a=a.comboBoxWidget.getBox();if(a.value.length==a.maxLength&&Qa(a)>=a.maxLength){pui.Qa="Enter";pui.click()}};pui.Yp=function(a){switch(a){case 0:return"char";case 7:return"zoned";case 9:return"packed";case 10:return"floating";case 15:return"graphic";case 16:return"date";case 17:return"time";case 18:return"timestamp";default:return"char"}};
pui.ei=function(a){var b="";if(typeof a=="string")b=a;if(typeof a=="object")b=a.value;if(b==null)b="";if(typeof b!="string")b=String(b);return b.indexOf(pui.dup["char"])!=-1};
pui.Vh=function(a){function b(g){var k=g.parentNode;g=g.nextSibling;if(g!=null&&g.grid!=null)g=g.grid.f?g.grid.cells[1][0].firstChild:g.grid.cells[0][0].firstChild;if(g==null&&k.parentNode.grid!=null)g=k.nextSibling!=null?k.nextSibling.firstChild:b(k.parentNode.nextSibling);return g}if(a.parentNode.comboBoxWidget!=null)a=a.parentNode;for(a=a;(a=b(a))!=null;){var c=a;if(a!=null&&a.comboBoxWidget!=null)c=a.comboBoxWidget.getBox();var d=c.tagName;if(d=="INPUT"||d=="SELECT"||d=="TEXTAREA"||d=="A")if(!c.readOnly&&
!c.disabled&&a.style.visibility!="hidden"&&c.tabIndex!="-1"){try{c.focus();pui["highlight on focus"]&&c.select();setTimeout(function(){pui.pc(null,c)},0)}catch(f){}break}}};
pui.Xf=function(a,b){function c(G){G=g.getElementsByTagName(G);for(var E,C=0;C<G.length;C++){E=G[C];E.tagName.toUpperCase()=="INPUT"&&E.type.toUpperCase()=="BUTTON"||E.tabIndex==-1||z.push(E)}}if(a.parentNode.comboBoxWidget!=null)a=a.parentNode;var d=parseInt(a.style.left);if(isNaN(d))return null;var f=parseInt(a.style.top);if(isNaN(f))return null;var g=a.parentNode,k=g.parentNode;if(k.grid!=null){var l=parseInt(a.parentNode.style.left);if(isNaN(l))return null;var h=parseInt(a.parentNode.style.top);
if(isNaN(h))return null;var o=parseInt(k.style.left);if(isNaN(o))return null;var p=parseInt(k.style.top);if(isNaN(p))return null;d+=l+o;f+=h+p;g=k.parentNode}var s=null,t=99999,y=99999,z=[];c("input");c("select");c("textarea");c("a");for(var A=0;A<z.length;A++){k=z[A];if(!(k.readOnly||k.disabled||k.style.visibility=="hidden"||k.parentNode.style.visibility=="hidden")){if(k.tagName=="A")k=k.parentNode;h=k;if(k.parentNode.comboBoxWidget!=null)h=k.parentNode;var B=parseInt(h.style.left);if(!isNaN(B)){var v=
parseInt(h.style.top);if(!isNaN(v)){k=k.parentNode.parentNode;if(k.grid!=null){l=parseInt(h.parentNode.style.left);if(isNaN(l))return null;h=parseInt(h.parentNode.style.top);if(isNaN(h))return null;o=parseInt(k.style.left);if(isNaN(o))continue;p=parseInt(k.style.top);if(isNaN(p))continue;B+=l+o;v+=h+p}k=Math.abs(d-B);l=Math.abs(f-v);if(b=="down"&&v>f||b=="up"&&f>v)if(l<y||l==y&&k<t){s=z[A];t=k;y=l}if(b=="right"&&B>d||b=="left"&&d>B)if(l<=3&&k<t){s=z[A];t=k;y=l}}}}}if(s!=null)try{s.focus();pui["highlight on focus"]&&
s.select();setTimeout(function(){pui.pc(null,s)},0)}catch(I){}};pui.O=pui.jc=function(a){if(a==null)return"";return pui.handler!=null||pui.viewdesigner?a:a.toUpperCase()};
pui.kk=function(a){if(!a.disabled&&!a.readOnly)if(a.tagName=="TEXTAREA"||a.tagName=="INPUT"&&(a.type=="text"||a.type=="number"||a.type=="password")){var b=a.vh;if(pui.is_touch&&!pui.is_mouse_capable)b=Qa(a);if(b==null)return false;if(b<0)b=0;b=a.value.substr(0,b);if(a.Ll==true&&a.maxLength!=null)for(;b.length<a.maxLength;)b="0"+b;a.value=b;a.modified=true}if(a.kh==true){pui.Qa="Enter";pui.click()}else pui.Vh(a);return false};
pui.translate=function(a){var b=a.translations;if(b!=null){for(var c in b)b[c]=pui.formatting.Kf(b[c]);c="";a=a.layers;for(var d=0;d<a.length;d++)for(var f=a[d].formats,g=0;g<f.length;g++){var k=f[g],l=k.metaData.items;c+=pui.lk(k.metaData.screen,b,true);for(k=0;k<l.length;k++)c+=pui.lk(l[k],b)}if(c!="")return"Missing translation data:\n\n"+c}};
pui.lk=function(a,b,c){c=c===true;var d="";for(var f in a){var g=a[f];if(pui.mb(g)){for(var k=g.translations,l=[],h=0;h<k.length;h++){var o=k[h],p=o==0?"":b[o];if(p!=null)l.push(p);else{p=g.designValue;if(k.length>1)p=JSON.parse(p)[h];l.push(p);d+=c?'Record format "'+bb(a["record format name"])+'" ':'Widget "'+bb(a.id)+'" ';d+=', property "'+bb(f)+'". ';d+="Phrase: "+p;d+=" ("+o+").\n"}}if(l.length==1)a[f]=l[0];else if(l.length>1)a[f]=JSON.stringify(l)}}return d};
pui.wikihelp.overlayOn=function(){if(pui.layers!=null)if(pui.wikihelp.overlays.length>0)for(var a=0;a<pui.wikihelp.overlays.length;a++){var b=pui.wikihelp.overlays[a],c=true;if(b.pui.zi)c=b.pui.zi(b.pui.hb,b.pui.gb);if(c)b.style.display="block"}else pui.wikihelp.ek(true)};
pui.wikihelp.ek=function(a){for(var b=Eb(),c=0;c<pui.layers.length;c++)for(var d=pui.layers[c],f=0;f<d.formats.length;f++){var g=d.formats[f];if(!(pui.xc(b,g.name)<0))for(var k=0;k<g.metaData.items.length;k++){var l=g.metaData.items[k];if(l.id){var h=Ra(l.id);if(h)if(l["field type"]!=="layout")if(l["field type"]!=="panel")if(l["field type"]!=="css panel")if(l.visibility!=="hidden"){var o=document.createElement("div");o.className="pui-wikih-overlay";o.style.position="absolute";h.parentNode.appendChild(o);
o.pui={};o.pui.dspf=g.file;o.pui.recfmt=g.name;o.pui.fieldId=l.id;o.pui.fieldName="";if(typeof l.value=="object"&&l.value.fieldName)o.pui.fieldName=l.value.fieldName;else if(typeof l["menu response"]=="object"&&l["menu response"].fieldName)o.pui.fieldName=l["menu response"].fieldName;else if(typeof l.response=="object"&&l.response.fieldName)o.pui.fieldName=l.response.fieldName;var p=true;if(h.hb&&h.gb){o.pui.hb=h.hb;o.pui.gb=parseInt(h.gb,10);o.pui.zi=function(t,y){var z=document.getElementById(t);
if(!z)return false;return z.Ak()===y};p=o.pui.zi(o.pui.hb,o.pui.gb)}o.style.display=p&&a?"block":"none";h.getBoundingClientRect();p=h.offsetWidth;var s=h.offsetHeight;o.style.zIndex=h.style.zIndex+100;if(h.style.top.length>0)o.style.top=h.style.top;else if(h.style.bottom.length>0)o.style.bottom=h.style.bottom;if(h.style.left.length>0)o.style.left=h.style.left;else if(h.style.right.length>0)o.style.right=h.style.right;if(l["field type"]==="radio button"){o.style.margin="3px 3px 0 5px";if(h.nextSibling&&
h.nextSibling.tagName.toLowerCase()=="div"){p=h.offsetWidth+h.nextSibling.offsetWidth;s=Math.max(h.offsetHeight,h.nextSibling.offsetHeight)}}else if(l["field type"]==="checkbox"){o.style.margin="2px";if(h.nextSibling&&h.nextSibling.tagName.toLowerCase()=="div"){p=h.offsetWidth+h.nextSibling.offsetWidth;s=Math.max(h.offsetHeight,h.nextSibling.offsetHeight)}}else if(l["field type"]==="tab panel"){s=h.childNodes[1].offsetHeight;o.style.fontSize=s*0.85+"px"}else if(l["field type"]==="date field")p=h.offsetWidth+
22;else if(l["field type"]==="grid"){if(l["csv export"]==="true")s+=pui.nl}else if(l["field type"]==="styled button"&&!l.height)s=pui.getDimensions(h).y2;o.style.width=p+"px";o.style.height=s+"px";if(pui.wikihelp.overlayText){o.appendChild(document.createTextNode(pui.wikihelp.overlayText));if(pui.wikihelp.fontScale!=false){l=Number(pui.wikihelp.fontScale);if(isNaN(l))l=1.56;o.style.fontSize=Math.min(p/pui.wikihelp.overlayText.length*l,s*l/2)+"px"}}if(pui.wikihelp.image){l=document.createElement("img");
l.src=pui.wikihelp.image;if(pui.wikihelp.imageSquare!==false){p=Math.min(p,s);l.width=p;l.height=p}else{l.width=p;l.height=s}o.appendChild(l)}N(o,"click",pui.wikihelp.Bo);pui.wikihelp.overlays.push(o)}}}}};pui.wikihelp.overlayOff=function(){for(var a=0;a<pui.wikihelp.overlays.length;a++)pui.wikihelp.overlays[a].style.display="none"};
pui.wikihelp.Bo=function(a){a=a||window.event;Ma(a);var b=a.target||a.srcElement;if(b.parentNode.pui&&b.parentNode.pui.dspf)b=b.parentNode;var c={};c.dspf=b.pui.dspf;c.recfmt=b.pui.recfmt;c.fieldId=b.pui.fieldId;c.fieldName=b.pui.fieldName;c.event=a;typeof pui.wikihelp.onclick==="function"&&pui.wikihelp.onclick(c);return false};
pui.wikihelp.getScreenInfo=function(){pui.wikihelp.overlays.length<1&&pui.wikihelp.ek(false);var a={};a.formats=Eb();a.dspf=pui.layers[0].formats[0].file;a.fields=[];for(var b=0;b<pui.wikihelp.overlays.length;b++){var c={};c.id=pui.wikihelp.overlays[b].pui.fieldId;if(pui.wikihelp.overlays[b].pui.fieldName&&pui.wikihelp.overlays[b].pui.fieldName.length>0)c.name=pui.wikihelp.overlays[b].pui.fieldName;a.fields.push(c)}return a};pui.Jp=function(){function a(){for(var l=k.options.length-1;l>=0;l--)k.remove(l);var h=false;for(l=0;l<pui.pi.length;l++){var o=pui.pi[l];if(o.height!=null)if(o.width!=null){var p=k.options.length;k.options[p]=new Option(o.description,o.height+"x"+o.width);if(o.height==f&&o.width==g||o.width==f&&o.height==g)h=k.options[p].selected=true}}if(!h){p=k.options.length;k.options[p]=new Option(f+" x "+g,f+"x"+g);k.options[p].selected=true}}var b=Ra("pui");if(b!=null){var c=document.createElement("div"),d=
pui.Uj.split("x"),f=Number(d[1]);if(isNaN(f))f=320;var g=Number(d[0]);if(isNaN(g))g=640;c.style.position="absolute";c.Oq=true;c.style.border="2px solid #999999";c.style.backgroundColor="#333333";c.style.borderRadius="15px";c.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";c.style.width=g+60+"px";c.style.height=f+60+"px";c.style.top="40px";c.style.left="20px";b.style.width=g+"px";b.style.height=f+"px";b.style.left="50px";b.style.top="70px";b.style.backgroundColor="white";b.style.overflow="hidden";
b.parentNode.insertBefore(c,b);var k=document.createElement("select");k.style.position="absolute";k.style.width="200px";k.style.top="10px";k.style.left="50px";k.style.fontFamily="sans-serif";k.style.fontSize="13px";a();fb({url:Za("PUI0009112.pgm"),method:"post",params:{},suppressAlert:true,handler:function(l){if(l.success!=true)l.message!=null?pui.alert(l.message):pui.alert("Error occurred while loading canvas sizes.");else{l=l.sizes;if(l!=null&&l!=""){pui.pi=eval(l);a()}}},onfail:function(){pui.alert("Error occurred while loading canvas sizes.")}});
k.onchange=function(){var l=k.value.split("x");f=Number(l[1]);if(isNaN(f))f=320;g=Number(l[0]);if(isNaN(g))g=640;c.style.width=g+60+"px";c.style.height=f+60+"px";b.style.width=g+"px";b.style.height=f+"px";pui.resize(true)};document.body.appendChild(k);d=document.createElement("img");d.src="/profoundui/proddata/images/dspfdesigner/icons24x24/rotate_canvas.png";d.style.position="absolute";d.style.top="8px";d.style.left="260px";d.style.cursor="pointer";d.title="Rotate";d.onclick=function(){var l=c.style.height;
c.style.height=c.style.width;c.style.width=l;l=b.style.height;b.style.height=b.style.width;b.style.width=l;pui.resize(true)};document.body.appendChild(d)}};
pui.Ah=function(a){if(a==null)a="pui";if(typeof a=="string")a=document.getElementById(a);if(a!=null){var b;if(a.parentNode.className=="ipad-emulator"){pui.Z=true;b=false}if(a.parentNode.className=="iphone-emulator"){pui.Z=true;pui.Ic=true;b=false}if(pui.Z){if(b=true){var c=document.createElement("img");c.src="/profoundui/proddata/images/ipad/finger.png";c.style.position="absolute";c.style.cursor="crosshair";c.style.zIndex=99;N(document,"mousemove",function(d){var f=Cb(d);f+=3;c.style.left=f+"px";
d=Db(d);d+=3;c.style.top=d+"px"});N(document,"mousedown",function(d){var f=Cb(d);f+=1;c.style.left=f+"px";d=Db(d);d+=1;c.style.top=d+"px"})}a=document.createElement("input");a.style.position="absolute";if(pui.Ic){a.style.left="90px";a.style.top="164px";a.style.width="223px";a.style.backgroundColor="#d3dae4"}else{a.style.left="285px";a.style.top="89px";a.style.width="455px"}a.style.color="#999999";a.style.borderStyle="none";a.style.fontFamily="Trebuchet MS, Sans-Serif";a.style.fontSize="14px";a.value=
location.href;if(!pui.Ic){a.onclick=function(){Ra("ipadKeyboard").style.display=""};a.onblur=function(){Ra("ipadKeyboard").style.display="none"}}document.body.appendChild(a);b&&document.body.appendChild(c)}else if(pui.Uj!=null){pui.Jp();pui.Z=true;pui.Ic=true}}};
pui.pi=[{description:"iPhone (320 x 480)",height:320,width:480},{description:"iPad (768 x 1024)",height:768,width:1024},{description:"Android Phone (360 x 640)",height:360,width:640},{description:"Android Phone (480 x 800)",height:480,width:800},{description:"Android Tablet (600 x 1024)",height:600,width:1024},{description:"Android Tablet (800 x 1280)",height:800,width:1280}];pui.dragDropInfo={};
pui.Xm=function(a,b){function c(k){function l(aa){pui.Fk(K)||document.body.appendChild(K);if(g&&a.grid.Fc){var fa=Ra(a.grid.Fc);fa.style.visibility="hidden";fa.style.display="none"}fa=Db(aa)-Y+t;var e=Cb(aa)-ba+s;K.style.top=S+fa+"px";K.style.left=L+e+"px";y&&aa.preventDefault();fa=Z;e=false;for(var ia=0;ia<G.length;ia++){var da=G[ia],ta=K.offsetLeft,Aa=K.offsetTop,ya=ta+K.offsetWidth,ua=Aa+K.offsetHeight;if(da.gm==null||da.hm==null){var ja=pui.Od(da.parentNode);da.gm=ja[0];da.hm=ja[1]}ja=da.offsetLeft+
da.gm;var sa=da.offsetTop+da.hm,W=ja+da.offsetWidth,T=sa+da.offsetHeight;if(da.parentNode.getAttribute("container")=="true"){var J=W-da.offsetWidth+da.parentNode.offsetWidth-da.offsetLeft;if(J<W)W=J}if(e||ja>ya||W<ta||sa>ua||T<Aa)if(da.gf!=null)pui.Q(da,"grid-drop-target");else{if(da.tagName=="IMG")if(da.zc!=null)da.style.backgroundColor=da.zc;if(da.ve!=null)da.style.borderColor=da.ve}else{if(da.gf!=null)pui.Y(da,"grid-drop-target");else{if(da.ve==null)da.ve=da.style.borderColor;if(da.ve==null)da.ve=
"";da.style.borderColor="#9999ff";if(da.tagName=="IMG"){if(da.zc==null)da.zc=da.style.backgroundColor;if(da.zc==null)da.zc="";da.style.backgroundColor="#D8F0FD"}}e=true;Z=da}}e||(Z=null);if(fa!=Z){A++;if(fa!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=a;pui.dragDropInfo["dd element id"]=a.id;if(B!=null)pui.dragDropInfo["dd record number"]=B;pui.dragDropInfo.proxy=K;pui.dragDropInfo.event=aa;var V=h(fa);pui.dragDropInfo["target element"]=V.dom;pui.dragDropInfo["target element id"]=V.id;
if(V.ma!=null)pui.dragDropInfo["target record number"]=V.ma;pui.dragDropInfo.text=B!=null?"ondragleave: Dragging row "+B+" of grid "+a.id:"ondragleave: Dragging element "+a.id;pui.dragDropInfo.text+=V.ma!=null?" off of row "+V.ma+" of grid "+V.id:" off of element "+V.id;d("ondragleave")}if(Z!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=a;pui.dragDropInfo["dd element id"]=a.id;if(B!=null)pui.dragDropInfo["dd record number"]=B;pui.dragDropInfo.proxy=K;pui.dragDropInfo.event=aa;V=h(Z);pui.dragDropInfo["target element"]=
V.dom;pui.dragDropInfo["target element id"]=V.id;if(V.ma!=null)pui.dragDropInfo["target record number"]=V.ma;pui.dragDropInfo.text=B!=null?"ondragenter: Dragging row "+B+" of grid "+a.id:"ondragenter: Dragging element "+a.id;pui.dragDropInfo.text+=V.ma==0?" before row "+(V.ma+1)+" of grid "+V.id:V.ma!=null?" after row "+V.ma+" of grid "+V.id:" over element "+V.id;d("ondragenter");var ga=function(za){setTimeout(function(){if(za==A){var Ia=false;if(pa()){V.grid.n-=1;V.ma-=1;Ia=true}else if(va()){V.grid.n+=
1;V.ma+=1;Ia=true}if(Ia){V.grid.xb?V.grid.d.tc(V.grid.n):V.grid.getData();pui.dragDropInfo.text=B!=null?"ondragleave: Dragging row "+B+" of grid "+a.id:"ondragleave: Dragging element "+a.id;pui.dragDropInfo.text+=" off of row "+pui.dragDropInfo["target record number"]+" of grid "+V.id;d("ondragleave");pui.dragDropInfo["target record number"]=V.ma;pui.dragDropInfo.text=B!=null?"ondragenter: Dragging row "+B+" of grid "+a.id:"ondragenter: Dragging element "+a.id;pui.dragDropInfo.text+=V.ma==0?" before row "+
(V.ma+1)+" of grid "+V.id:" after row "+V.ma+" of grid "+V.id;d("ondragenter");setTimeout(function(){ga(za)},35)}}},350)},pa=function(){if(V.row==null)return false;if(V.grid.pb())return false;if(V.row==0)return true;if(V.row==1&&V.grid.f)return true;return false},va=function(){if(V.row==null)return false;if(V.grid.jb())return false;if(V.row==V.grid.cells.length)return true;return false};if(pa()||va())ga(A)}}y||Ma(aa)}function h(aa){var fa=aa.gf;if(fa==null)return{dom:aa,id:aa.id};else{var e=aa=aa.An;
if(fa.f)e-=1;e=e+fa.n-1;return{dom:fa.b,grid:fa,id:fa.b.id,row:aa,ma:e}}}function o(){A++;if(f){pui.Fk(K)&&K.parentNode.removeChild(K);K=null}if(y){eb(document,"touchmove",l);eb(document,"touchend",o)}else{eb(document,"mousemove",l);eb(document,"mouseup",o)}document.onselectstart=ea;if(Z!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=a;pui.dragDropInfo["dd element id"]=a.id;if(B!=null)pui.dragDropInfo["dd record number"]=B;pui.dragDropInfo.proxy=K;pui.dragDropInfo.event=k;var aa=h(Z);pui.dragDropInfo["target element"]=
aa.dom;pui.dragDropInfo["target element id"]=aa.id;if(aa.ma!=null)pui.dragDropInfo["target record number"]=aa.ma;pui.dragDropInfo.text=B!=null?"ondrop: Dropped row "+B+" of grid "+a.id:"ondrop: Dropped element "+a.id;pui.dragDropInfo.text+=aa.ma==0?" before row "+(aa.ma+1)+" of grid "+aa.id:aa.ma!=null?" after row "+aa.ma+" of grid "+aa.id:" into element "+aa.id;if(Z.gf!=null)pui.Q(Z,"grid-drop-target");else{if(Z.tagName=="IMG")Z.style.backgroundColor=Z.zc;if(Z.zc!=null)Z.style.borderColor=Z.zc}if(!(aa.dom.id==
a.id&&B!=null&&aa.ma!=null&&(B==aa.ma||B==aa.ma+1))){pui.dragDropInfo.cancel=false;d("ondrop");if(pui.dragDropInfo.cancel!=true)if(pui.Ka.xh!=null||pui.Ka.yh||pui.Ka.lj!=null||pui.Ka.mj){pui.Ka.wb=true;pui.C=pui.ik;pui.wb();pui.C="false"}}}if(!f&&pui.Ka.wb!=true){a.style.left=L+"px";a.style.top=S+"px"}}var p=pui.Od(a.parentNode),s=p[0],t=p[1],y=false;if(k!=null&&k.touches!=null){if(k.touches.length!=1)return;y=true}var z,A=0,B;if(g){p=a.grid.D;if(a.grid.isFiltered())p=a.grid.sa;var v=a.grid.cells.length-
1;if(!a.grid.lb()){z=p.length-a.grid.n+1;if(v>z)v=z}z=0;if(a.grid.f)z=1;var I=La(k);if(I.tagName=="A"||I.tagName=="IMG"||I.tagName=="INPUT"||I.tagName=="SELECT"||I.tagName=="TEXTAREA")return;for(;I!=null&&(I.row==null||I.col==null);)I=I.parentNode;if(I!=null&&I.row>=z)z=I.row;else return;if(z>v)return;B=z+a.grid.n;if(a.grid.f)B-=1;if(p[B-1]!==null&&p[B-1].length!=0&&p[B-1].A!=null)B=p[B-1].A}I=b["drop targets"];var G=[];if(I!=null&&I!=""){I=I.split(",");for(v=0;v<I.length;v++){var E=Ra(I[v]);if(E!=
null)if(E.grid!=null){var C=E.grid.g,u=C.length-1;if(!E.grid.lb()){p=E.grid.D;if(E.grid.isFiltered())p=E.grid.sa;p=p.length-E.grid.n+2;if(u>p)u=p}for(p=E.grid.f?1:0;p<=u;p++){C[p].An=p;G.push(C[p])}}else G.push(E)}}var K=a;if(f){if(g){z=a.grid.cells[z];p=z[0];K=document.createElement("div");K.style.position="absolute";K.style.left=a.style.left;K.style.top=parseInt(a.style.top)+parseInt(p.style.top)+"px";v=parseInt(a.style.width);v-=2;if(b.scrollbar!="none")v-=16;if(v<5)v=5;K.style.width=v+"px";p=
parseInt(p.style.height);p-=2;if(p<5)p=5;K.style.height=p+"px";for(v=0;v<z.length;v++){p=z[v].cloneNode(true);p.style.top="0px";p.onclick=null;p.onmousedown=null;p.onmouseup=null;K.appendChild(p)}}else K=a.cloneNode(true);K.style.zIndex=701;if(!pui.Z)K.style.cursor="move";K.style.opacity=0.6;K.style.filter="alpha(opacity=60)";K.style.border="1px solid #333333"}var ba=Cb(k),Y=Db(k),L=parseInt(K.style.left),S=parseInt(K.style.top),Z=null,ea=document.onselectstart;pui.dragDropInfo={};pui.dragDropInfo["dd element"]=
a;pui.dragDropInfo["dd element id"]=a.id;if(B!=null)pui.dragDropInfo["dd record number"]=B;pui.dragDropInfo.proxy=K;pui.dragDropInfo.event=k;pui.dragDropInfo.text=B!=null?"ondragstart: Dragging row "+B+" of grid "+a.id:"ondragstart: Dragging element "+a.id;d("ondragstart");if(y){N(document,"touchmove",l);N(document,"touchend",o)}else{N(document,"mousemove",l);N(document,"mouseup",o)}document.onselectstart=la(false)}function d(k){var l=b[k];if(l!=null&&l!="")try{if(eval(l)==false)return false}catch(h){pui.alert(k+
" Error:\n"+h.message);return false}}a.onselectstart=la(false);if(typeof a.style.MozUserSelect!="undefined")a.style.MozUserSelect="none";var f=b["use proxy"]=="true",g=a.grid!=null;if(g){f=true;setTimeout(function(){var k=a.grid.cells.length-1;if(!a.grid.lb()){var l=a.grid.D;if(a.grid.isFiltered())l=a.grid.sa;l=l.length-a.grid.n+1;if(k>l)k=l}if((b.cursor==null||b.cursor=="")&&!pui.Z)for(l=a.grid.f?1:0;l<=k;l++)for(var h=a.grid.cells[l],o=0;o<h.length;o++)h[o].style.cursor="move"},1)}N(a,"mousedown",
c);N(a,"touchstart",c)};pui.xm=function(){var a=this,b=[];this.Cq=function(){return b};this.add=function(c){var d=c.name;if(d!==null){for(var f=0;f<b.length;f++)if(c.text<b[f].text)break;b.splice(f,0,c);a[d]=c}}};pui.locales=new pui.xm;pui.locales.add({name:"en_UK",text:"English (United Kingdom)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","g:i A o\\n n/j/y","Y-m-d-H.i.s.uu"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:1});pui.locales.add({name:"en_US",text:"English (United States)",datePatterns:["Y-m-d","m/d/y","m/d/Y","n/j/y","n/j/Y","m-d-y","m-d-Y","n-j-y","n-j-Y","Y/m","m/Y","Y/m/d","y/m/d","l, F j, Y","l, F jS, Y","D, M d, y","D, M d, Y","D M d y","D M d Y","F j, y","F j, Y","M j, y","M j, Y","j-M-y","j-M-Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["m/d/y g:i A","m/d/y g:i a","m/d/y H:i:s","m-d-y g:i A","m-d-y g:i a",
"m-d-y H:i:s","D, M d, Y H:i:s","g:i A o\\n n/j/y","Y-m-d-H.i.s.uu"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:0});pui.locales.add({name:"fr_FR",text:"French (France)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["janvier","f\u00e9vrier","mars","avril","mai","juin","juillet","ao\u00fbt","septembre","octobre","novembre","d\u00e9cembre"],shortMonthNames:["jan","f\u00e9v","mar","avr","mai","jun","jui","ao\u00fb","sep","oct","nov","d\u00e9c"],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDayNames:["dim","lun","mar","mer","jeu","ven","sam"],weekStart:1});pui.locales.add({name:"de_DE",text:"German (Germany)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["Januar","Februar","M\u00e4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonthNames:["Jan","Feb","M\u00e4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDayNames:["So","Mo","Di","Mi","Do","Fr","Sa"],weekStart:1});pui.locales.add({name:"pt_BR",text:"Portuguese (Brazil)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["janeiro","fevereiro","mar\u00e7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["domingo","segunda","ter\u00e7a","quarta","quinta","sexta","s\u00e1bado"],shortDayNames:["Dom","Seg","Ter","Qua","Qui","Sex","S\u00e1b"],weekStart:0});pui.locales.add({name:"nl_NL",text:"Dutch (Netherlands)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonthNames:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDayNames:["zo","ma","di","wo","do","vr","za"],weekStart:1});pui.locales.add({name:"da_DK",text:"Danish (Denmark)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],shortMonthNames:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],dayNames:["s\u00f8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\u00f8rdag"],shortDayNames:["s\u00f8n","man","tir","ons","tor","fre","l\u00f8r"],weekStart:1});pui.locales.add({name:"es_MX",text:"Spanish (Mexico)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonthNames:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","mi\u00e9rcoles","jueves","viernes","s\u00e1bado"],shortDayNames:["dom","lun","mar","mi\u00e9","jue","vie","s\u00e1b"],weekStart:1});pui.locales.add({name:"ga_IE",text:"Irish (Ireland)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["Ean\u00e1ir","Feabhra","M\u00e1rta","Aibre\u00e1n","M\u00ed na Bealtaine","Meith","I\u00fail","L\u00fanasa","Me\u00e1n F\u00f3mhair","Deireadh F\u00f3mhair","M\u00ed na Samhna","M\u00ed na Nollag"],shortMonthNames:["Ean","Feabh","M\u00e1rta","Aib","Beal","Meith","I\u00fail","L\u00fan","MF\u00f3mh","DF\u00f3mh","Samh","Noll"],dayNames:["D\u00e9 Domhnaigh","D\u00e9 Luain","D\u00e9 M\u00e1irt","D\u00e9 C\u00e9adaoin","D\u00e9ardaoin","D\u00e9 hAoine","D\u00e9 Sathairn"],
shortDayNames:["Domh","Luan","M\u00e1irt","C\u00e9ad","D\u00e9ar","Aoine","Sath"],weekStart:1});pui.locales.add({name:"it_IT",text:"Italian (Italy)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonthNames:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],dayNames:["domenica","luned\u00ec","marted\u00ec","mercoled\u00ec","gioved\u00ec","venerd\u00ec","sabato"],shortDayNames:["dom","lun","mar","mer","gio","ven","sab"],weekStart:1});pui.locales.add({name:"he_IL",text:"Hebrew (Israel)",datePatterns:["Y-m-d","d/m/y","d/m/Y","n/j/y","n/j/Y","d-m-y","d-m-Y","n-j-y","n-j-Y","Y/m","m/Y","Y/m/d","y/m/d","l, F j, Y","l, F jS, Y","D, M d, y","D, M d, Y","D M d y","D M d Y","F j, y","F j, Y","M j, y","M j, Y","j-M-y","j-M-Y"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["d/m/y g:i A","d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a",
"d-m-y H:i:s","D, M d, Y H:i:s","g:i A o\\n n/j/y","Y-m-d-H.i.s.uu"],monthNames:["\u05d9\u05e0\u05d5\u05d0\u05e8","\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8","\u05de\u05d0\u05e8\u05e1","\u05d0\u05e4\u05e8\u05d9\u05dc","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0\u05d9","\u05d9\u05d5\u05dc\u05d9","\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8","\u05e1\u05e4\u05d8\u05de\u05d1\u05e8","\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8","\u05e0\u05d5\u05d1\u05de\u05d1\u05e8","\u05d3\u05e6\u05de\u05d1\u05e8"],shortMonthNames:["\u05d9\u05e0.",
"\u05e4\u05d1\u05e8","\u05de\u05d0\u05e8\u05e1","\u05d0\u05e4\u05e8","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0\u05d9","\u05d9\u05d5\u05dc\u05d9","\u05d0\u05d5\u05d2","\u05e1\u05e4\u05d8","\u05d0\u05d5\u05e7","\u05e0\u05d5\u05d1","\u05d3\u05e6\u05de"],dayNames:["\u05e8\u05d0\u05e9\u05d5\u05df","\u05e9\u05e0\u05d9","\u05e9\u05dc\u05d9\u05e9\u05d9","\u05e8\u05d1\u05d9\u05e2\u05d9","\u05d7\u05de\u05d9\u05e9\u05d9","\u05e9\u05d9\u05e9\u05d9","\u05e9\u05d1\u05ea"],shortDayNames:["\u05d0","\u05d1","\u05d2",
"\u05d3","\u05d4","\u05d5","\u05e9"],weekStart:0});pui.Rm=function(a){function b(){if(o.length>0){var v=o.substr(o.length-1,1);o=o.substr(0,o.length-1);if(v=="0"&&o.length==0&&A)v=z?"*":" "}else{v="0";if(A)v=" ";if(z)v="*"}return v}for(var c=a.edtWrd,d=a.value,f=Number(a.decPos),g="[\\d",k=0;k<c.length;k++){var l=c.substr(k,1),h=l;if(l!=" "){if(l=="&")h=" ";h=pui.formatting.escapeRe(h);g+=h}}g+="]";a.Mc=RegExp(g);var o;o=isNaN(Number(d))?"0":String(d);o=o.replace("-","");k=o.split(".");g=k[0];l="";if(k.length>1)l=k[1];if(f==null||isNaN(f))f=0;for(;l.length>
f;)l=l.substr(l.length-1);for(;f>l.length;)l+="0";for(o=g+l;o.substr(0,1)=="0";)o=o.substr(1);f="$";if(pui.appJob!=null&&pui.appJob.curSym!=null)f=pui.appJob.curSym;if(c==null||c=="")return d;c=bb(c);if(c.length<3)return d;if(c.substr(0,1)!="'")return d;if(c.substr(c.length-1,1)!="'")return d;c=c.substr(1,c.length-2);g=c.indexOf("0")+1;k=c.indexOf("*")+1;if(g==0||k!=0&&k<g)g=k;l=-1;for(k=c.length-1;k>=0;k-=1)if(k+1==g||c.substr(k,1)==" "){l=k;break}h=c.substr(0,l+1);var p="",s="",t=false,y=false;
for(k=l+1;k<c.length;k++)if(c.substr(k,2)=="CR"){y=true;k++}else if(c.substr(k,1)=="-")y=true;else if(c.substr(k,1)!="&")if(!(c.substr(k,1)=="*"&&!y)){p=c.substring(l+1,k);s=c.substr(k);t=true;break}t||(p=c.substr(l+1));c="";var z=t=false;var A=y=false;if(g==0)A=true;for(k=h.length-1;k>=0;k-=1){var B=l=h.substr(k,1);if(l==" ")B=b();else if(l=="&")B=" ";else if(l=="0"&&k+1==g)B=b();else if(l=="*"){z=true;B=b()}else if(l==f){if(k+2==g){B=b();y=true}}else if(t){B=" ";if(z)B="*"}c=B+c;if(k<=g)A=true;
if(A&&o.length==0)t=true}p=p.replace(/&/g," ");p=p.replace(/\*/g," ");if(d>=0){p=p.replace("CR","  ");p=p.replace("-"," ")}c=c+p+s;a.maxLength=c.length;c=bb(c);if(z&&c.substr(0,1)!="*")c="*"+c;if(y)c=f+c;return c};
pui.Qm=function(a,b,c){b=b||window.event;var d;if(b!=null)d=b.keyCode;b=a.L;if(b!=null){var f=b.edtMsk,g=b.edtWrd;if(!(f==null||f==""))if(!(g==null||g=="")){if(g.length>1&&g.substr(0,1)=="'"&&g.substr(g.length-1,1)=="'")g=g.substr(1,g.length-2);if(f.length>1&&f.substr(0,1)=="'"&&f.substr(f.length-1,1)=="'")f=f.substr(1,f.length-2);b=a.value;if(b!=null){var k=[],l=f.length;if(g.length<l)l=g.length;for(var h=0;h<l;h++){wrdCh=g.substr(h,1);mskCh=f.substr(h,1);if(wrdCh==" "||wrdCh=="0"||mskCh==" ")k.push(null);
else wrdCh=="&"?k.push(" "):k.push(wrdCh)}for(l=k.length;b.length<l;)if(d==null||d==0)b=" "+b;else b+=" ";if(b.length>l)b=b.substr(0,l);for(h=0;h<l;h++){f=k[h];g=b.substr(h,1);if(f!=null&&g!=f)b=b.substr(0,h)+f+b.substr(h+1);else if(f==null&&(g<"0"||g>"9"))b=b.substr(0,h)+"0"+b.substr(h+1)}b=Wa(b);if(b!=Wa(a.value)||c!=null){if(c==null)c=Qa(a);if(d!=8)for(;c<k.length&&k[c]!=null;)c++;a.value=b;if(a.createTextRange!=null&&!pui.is_opera){if(a=a.createTextRange()){a.moveStart("character",c);a.collapse();
a.select()}}else a.selectionStart!=null&&a.setSelectionRange(c,c)}}}}};
pui.ih=function(a,b,c){if(typeof pui["use original edit mask"]!="undefined"&&pui["use original edit mask"]===true)return pui.Qm(a,b,c);b=b||window.event;var d;if(b!=null)d=b.keyCode;b=a.L;if(b!=null){var f=b.edtMsk,g=b.edtWrd;if(!(f==null||f==""))if(!(g==null||g=="")){if(g.length>1&&g.substr(0,1)=="'"&&g.substr(g.length-1,1)=="'")g=g.substr(1,g.length-2);if(f.length>1&&f.substr(0,1)=="'"&&f.substr(f.length-1,1)=="'")f=f.substr(1,f.length-2);b=a.value;if(b!=null){var k=[],l=f.length,h=l;if(g.length<
l)l=g.length;for(var o=0;o<l;o++){wrdCh=g.substr(o,1);mskCh=f.substr(o,1);if((wrdCh=="0"||wrdCh=="*")&&h>o)h=o;if(wrdCh==" "||wrdCh=="0"||mskCh==" ")k.push(null);else wrdCh=="&"?k.push(" "):k.push(wrdCh)}for(l=k.length;b.length<l;)if(d==null||d==0)b=" "+b;else b+=" ";if(b.length>l)b=b.substr(0,l);for(o=0;o<l;o++){f=o<=h?" ":"0";g=k[o];var p=b.substr(o,1);if(g!=null&&p!=g)b=b.substr(0,o)+g+b.substr(o+1);else if(g==null&&(p<"0"||p>"9"))b=b.substr(0,o)+f+b.substr(o+1)}b=Wa(b);if(b!=Wa(a.value)||c!=null){if(c==
null)c=Qa(a);if(d!=8)for(;c<k.length&&k[c]!=null;)c++;a.value=b;if(a.createTextRange!=null&&!pui.is_opera){if(a=a.createTextRange()){a.moveStart("character",c);a.collapse();a.select()}}else a.selectionStart!=null&&a.setSelectionRange(c,c)}}}}};pui.formatting={Date:{formats:{locales:{}},ae:{locales:{}},On:function(a,b){switch(a){case "n":return"(date.getMonth()+1)";case "m":return'pui.formatting.leftPad(date.getMonth()+1, 2, "0")';case "M":return'pui.locales["'+b+'"].shortMonthNames[date.getMonth()]';case "F":return'pui.locales["'+b+'"].monthNames[date.getMonth()]';case "j":return"date.getDate()";case "d":return'pui.formatting.leftPad(date.getDate(), 2, "0")';case "S":return"pui.formatting.Date.getSuffix(date.getDate())";case "D":return'pui.locales["'+
b+'"].shortDayNames[date.getDay()]';case "l":return'pui.locales["'+b+'"].dayNames[date.getDay()]';case "y":return'pui.formatting.leftPad("" + date.getFullYear(), 4, "0").slice(2)';case "Y":return'pui.formatting.leftPad(date.getFullYear(), 4, "0")';case "g":return"((date.getHours() % 12) ? date.getHours() % 12 : 12)";case "G":return"date.getHours()";case "h":return'pui.formatting.leftPad((date.getHours() % 12) ? date.getHours() % 12 : 12, 2, "0")';case "H":return'pui.formatting.leftPad(date.getHours(), 2, "0")';
case "R":return'(pui.formatting.Date.isMidnight(date) ? "24" : pui.formatting.leftPad(date.getHours(), 2, "0"))';case "i":return'pui.formatting.leftPad(date.getMinutes(), 2, "0")';case "s":return'pui.formatting.leftPad(date.getSeconds(), 2, "0")';case "u":return'pui.formatting.leftPad(date.getMilliseconds(), 3, "0")';case "U":return'String("000")';case "a":return'(date.getHours() < 12 ? "am" : "pm")';case "A":return'(date.getHours() < 12 ? "AM" : "PM")';case "z":return'pui.formatting.leftPad(Math.ceil((date - (new Date(date.getFullYear(), 0, 1)))/86400000)+1, 3, "0")';
default:return'"'+a.replace(/('|\\|"|\.)/,"\\$1")+'"'}},Sn:function(a,b,c){switch(a){case "n":return{ra:"(\\\\d{1,2})",pa:"m = parseInt(matches["+b+"], 10) - 1;",qa:1};case "m":return{ra:"(\\\\d{2})",pa:"m = parseInt(matches["+b+"], 10) - 1;",qa:1};case "M":return{ra:"("+pui.locales[c].shortMonthNames.join("|")+")",pa:"m = pui.formatting.Date.getMonthNum(matches["+b+'], "'+c+'", true);',qa:1};case "F":return{ra:"("+pui.locales[c].monthNames.join("|")+")",pa:"m = pui.formatting.Date.getMonthNum(matches["+
b+'], "'+c+'", false);',qa:1};case "j":return{ra:"(\\\\d{1,2})",pa:"d = parseInt(matches["+b+"], 10);",qa:1};case "d":return{ra:"(\\\\d{2})",pa:"d = parseInt(matches["+b+"], 10);",qa:1};case "S":return{ra:"(?:st|nd|rd|th)",pa:"",qa:0};case "D":return{ra:"(?:"+pui.locales[c].shortDayNames.join("|")+")",pa:"",qa:0};case "l":return{ra:"(?:"+pui.locales[c].dayNames.join("|")+")",pa:"",qa:0};case "y":return{ra:"(\\\\d{2})",pa:"y = parseInt(matches["+b+"], 10); y += (y > pui.formatting.Date.y2k ? 1900 : 2000);",
qa:1};case "Y":return{ra:"(\\\\d{4})",pa:"y = parseInt(matches["+b+"], 10); if (y == 0) y = null;",qa:1};case "g":return{ra:"(\\\\d{1,2})",pa:"h = parseInt(matches["+b+"], 10);",qa:1};case "G":return{ra:"(\\\\d{1,2})",pa:"h = parseInt(matches["+b+"], 10);",qa:1};case "h":return{ra:"(\\\\d{1,2})",pa:"h = parseInt(matches["+b+"], 10);",qa:1};case "H":return{ra:"(\\\\d{1,2})",pa:"h = parseInt(matches["+b+"], 10);",qa:1};case "R":return{ra:"(\\\\d{1,2})",pa:"h = parseInt(matches["+b+"], 10);",qa:1};case "i":return{ra:"(\\\\d{2})",
pa:"i = parseInt(matches["+b+"], 10);",qa:1};case "s":return{ra:"(\\\\d{2})",pa:"s = parseInt(matches["+b+"], 10);",qa:1};case "u":return{ra:"(\\\\d{3})",pa:"u = parseInt(matches["+b+"], 10);",qa:1};case "U":return{ra:"(\\\\d{3})",pa:"var microSeconds = parseInt(matches["+b+"], 10);",qa:1};case "a":return{ra:"(am|pm)",pa:"if(matches["+b+'] == "am"){ if(h == 12) h = 0; }else if(h < 12) h += 12;',qa:1};case "A":return{ra:"(AM|PM)",pa:"if(matches["+b+'] == "AM"){ if(h == 12) h = 0; }else if(h < 12) h += 12;',
qa:1};case "z":return{ra:"(\\\\d{1,3})",pa:"d = parseInt(matches["+b+"], 10);",qa:1};default:return{ra:a.replace(/('|\\|"|\.)/,"\\\\$1"),pa:"",qa:0}}},parse:function(a,b,c){pui.formatting.Date.ae.locales[c]&&pui.formatting.Date.ae.locales[c][b]||pui.formatting.Date.Ao(b,c);return pui.formatting.Date.ae.locales[c][b](a)},zo:function(a,b){var c=a,d=false,f="",g="return ";if(c==="Y-m-d-H.i.s.uu")c="Y-m-d-H.i.s.uU";for(var k=0;k<c.length;k++){f=c.charAt(k);if(!d&&f=="\\")d=true;else if(d){g+='"'+f.replace(/('|\\|")/g,
"\\$1")+'" + ';d=false}else g+=pui.formatting.Date.On(f,b)+' + "" + '}g=g.replace(/\+\s$/,"")||'""';g+=";";pui.formatting.Date.formats.locales[b]||(pui.formatting.Date.formats.locales[b]={});pui.formatting.Date.formats.locales[b][a]=new Function("date",g)},Ao:function(a,b){var c=a,d=false,f="",g="",k="",l=1;if(c==="Y-m-d-H.i.s.uu")c="Y-m-d-H.i.s.uU";for(var h=0;h<c.length;h++){f=c.charAt(h);if(!d&&f=="\\")d=true;else if(d){g+=f.replace(/('|\\)/g,"\\$1");d=false}else{f=pui.formatting.Date.Sn(f,l,b);
l+=f.qa;g+=f.ra;k+=f.pa}}c='var y = 1, m = 0, d = 1;         var h = 0, i = 0, s = 0, u = 0;         var regexObj = new RegExp("^'+g+'$");         var matches = str.match(regexObj);         if(matches && matches.length > 0){'+k+"var dt = new Date(y, m, d, h, i, s, u);         dt.setFullYear(y);if(dt.getFullYear() !== y || dt.getMonth() !== m || dt.getDate() !== d ||          dt.getHours() !== h || dt.getMinutes() !== i || dt.getSeconds() !== s)         return null;return dt;         }else return null;";
pui.formatting.Date.ae.locales[b]||(pui.formatting.Date.ae.locales[b]={});pui.formatting.Date.ae.locales[b][a]=new Function("str",c)},getSuffix:function(a){switch(a){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},Qn:function(a,b,c){b=c?pui.locales[b].shortMonthNames:pui.locales[b].monthNames;for(c=0;c<12;c++)if(b[c]==a)return c;return 0},po:function(a){return a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===
0},pr:"Y-m-d",qr:"H:i:s",hj:"Y-m-d-H.i.s.uu",cq:39},leftPad:function(a,b,c){for(a+="";a.length<b;)a=c+a;return a},fp:function(a,b,c){for(a+="";a.length<b;)a+=c;return a},vb:function(a){return/^(?:zoned|floating|packed)$/.test(a)},Cn:function(a,b){for(var c=0;c<a.length;c++)if(a.charCodeAt(c)>65535)return{msg:pui.getLanguageText("runtimeMsg","outside ucs2")};for(;a.length<b;)a+=" ";return pui.wj.encode(a)},Kf:function(a){return pui.wj.decode(a)},keywords:{DATFMT:{"*JOB":{Fa:"Ymd",db:"-"},"*MDY":{Fa:"mdy",
db:"/"},"*DMY":{Fa:"dmy",db:"/"},"*YMD":{Fa:"ymd",db:"/"},"*JUL":{Fa:"yz",db:"/"},"*ISO":{Fa:"Ymd",db:"-"},"*USA":{Fa:"mdY",db:"/"},"*EUR":{Fa:"dmY",db:"."},"*JIS":{Fa:"Ymd",db:"-"}},xj:{"*JOB":"/","/":"/","-":"-",".":".",",":","," ":" "},zd:{"*HMS":{Fa:"Ris",db:":"},"*ISO":{Fa:"Ris",db:"."},"*USA":{Fa:"hi A",db:":"},"*EUR":{Fa:"Ris",db:"."},"*JIS":{Fa:"Ris",db:":"}},Ej:{"*JOB":":",":":":",".":".",",":","," ":" "}},escapeRe:function(){var a=/([\.\*\+\?\^\$\{\}\(\)\|\-\[\]\/\\])/g;return function(b){return b.replace(a,
"\\$1")}}()};Date.prototype.format=function(a,b){pui.formatting.Date.formats.locales[b]&&pui.formatting.Date.formats.locales[b][a]||pui.formatting.Date.zo(a,b);return pui.formatting.Date.formats.locales[b][a](this)};
pui.oe={format:function(a){if(a.revert){if(typeof pui.inputfilter=="function"){var b={};for(var c in a)b[c]=a[c];try{var d=pui.inputfilter(b.value,b,M);if(typeof d=="string")a.value=d}catch(f){pui.Xk(f,"(pui.inputfilter)")}}b=null;if(typeof pui.validate=="function")b=pui.validate(a);if(b==null||b==false)b=this[a.formatting].Sc(a);return typeof b==="object"?b:b+""}else{this.so(a);return this[a.formatting].format(a)+""}},Text:{format:function(a){var b=a.value+"";if(a.customPattern!="")if(a.customPattern==
"y/m")if(b.length>2)b=b.substr(0,b.length-2)+"/"+b.substr(b.length-2);if(a.dataType=="graphic")b=pui.formatting.Kf(b);if(a.trimTrailing===true||a.trimTrailing==="true")b=b.replace(/\s+$/g,"");else for(;b.length<a.dataLength;)b+=" ";if(a.trimLeading===true||a.trimLeading==="true")b=b.replace(/^\s+/g,"");if(a.textTransform=="uppercase")b=b.toUpperCase();else if(a.textTransform=="lowercase")b=b.toLowerCase();else if(a.textTransform=="capitalize")b=b.replace(/(?:^[a-z]| +[a-z])/g,function(c){return c.toUpperCase()});
a.maxLength=a.dataLength=="undefined"?null:a.dataLength;return b},Sc:function(a){var b=a.value+"";b=b.replace(/\s+$/g,"");if(a.blankFill=="true"&&a.dataType=="char"){var c=Number(a.dataLength);isNaN(c)||(b=pui.formatting.leftPad(b,c," "))}if(a.textTransform=="uppercase")b=b.toUpperCase();else if(a.textTransform=="lowercase")b=b.toLowerCase();else if(a.textTransform=="capitalize")b=b.replace(/(?:^[a-z]| +[a-z])/g,function(d){return d.toUpperCase()});if(a.dataType=="graphic"){c=parseInt(a.dataLength,
10);b=pui.formatting.Cn(b,c)}return b}},Number:{format:function(a){var b=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=(a.value||0)+"",d=parseFloat(c,10)||0,f;f=c.replace(/\..*/,"");if((f==""||f=="-")&&pui.appJob.decimalFormat=="J")f="0";var g;strValueWithDecimalPoint=c;if(strValueWithDecimalPoint.indexOf(".")==-1)strValueWithDecimalPoint+=".";g=strValueWithDecimalPoint.replace(/.*\./,"");var k=parseInt(a.dataLength,10),l=parseInt(a.decPos,10),h=k,o="[\\d";if(a.edtWrd!=
null&&a.edtWrd!="")if(pui.formatting.vb(a.dataType))return pui.Rm(a);if(l>0){g=pui.formatting.fp(g,l,"0");c=f+(b?",":".")+g;if(!a.noExtraSpaces||a.noExtraSpaces!="true")h++;o+=b?",":"\\."}if(a.zeroFill===true||a.zeroFill==="true")c=pui.formatting.leftPad(c,k+(l?1:0),"0");if(a.numSep===true||a.numSep==="true"){for(c=/(\d+)(\d{3})/;c.test(f);)f=f.replace(c,"$1"+(b?".":",")+"$2");c=f+(l>0?(b?",":".")+g:"");o+=b?"\\.":",";b=k-l-1;b=b>=0?b:0;if(!a.noExtraSpaces||a.noExtraSpaces!="true")h+=Math.floor(b/
3)}b=d<0;c=c.replace(/-/g,"");if(a.negNum=="(999.00)"){if(b)c="("+c+")";if(!a.noExtraSpaces||a.noExtraSpaces!="true")h+=2;o+="\\(\\)"}else if(a.negNum=="999.00-"){c+=b?"-":" ";if(!a.noExtraSpaces||a.noExtraSpaces!="true")h++;o+="\\-"}else if(a.negNum=="999.00 CR"){if(b)c+=" CR";if(!a.noExtraSpaces||a.noExtraSpaces!="true")h+=3;o+="CR\\s"}else if(a.negNum=="-999.00"){if(b)c="-"+c;if(!a.noExtraSpaces||a.noExtraSpaces!="true")h++;o+="\\-"}if(a.curSym){c=a.curSym=="EUR"?c+" EUR":a.curSym=="$"?c.substr(0,
1)=="-"?"-"+a.curSym+c.substr(1):a.curSym+c:a.curSym+c;h+=a.curSym.length;o+=pui.formatting.escapeRe(a.curSym)}if(a.units){c+=a.units;h+=a.units.length;o+=pui.formatting.escapeRe(a.units)}if(a.zeroBalance===false||a.zeroBalance==="false")if(d===0)c="";o+="]";if(isNaN(h))h=null;a.maxLength=h;a.Mc=RegExp(o);return c},Sc:function(a){var b=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=".";if(b)c=",";var d=a.value+"";if(a.edtWrd!=null&&a.edtWrd!=null){var f=d;d="";
for(var g=0;g<f.length;g++){var k=f.substr(g,1);if((k<"0"||k>"9")&&k!=c)k="";d+=k}}if(a.numSep){d=b?d.replace(/\./g,""):d.replace(/,/g,"");c=d.split(c);if(c.length>1){c[0]=b?c[0].replace(/\./g,""):c[0].replace(/,/g,"");d=c.join(".")}}if(a.curSym)d=d.replace(RegExp("^"+pui.formatting.escapeRe(a.curSym)),"");if(a.units)d=d.replace(RegExp(pui.formatting.escapeRe(a.units)+"$"),"");b=true;c=d.replace(/[^\d\-]/g,"");if(/-/.test(c)&&!/(^-|-$)/.test(c))b=false;if(a.negNum&&/[\-()CR]/.test(d)){if(a.negNum==
"(999.00)")d=d.replace(/\(/,"").replace(/\)/,"");else if(a.negNum=="999.00-"||a.negNum=="-999.00")d=d.replace(/-/,"");else if(a.negNum=="999.00 CR")d=d.replace(/ CR/,"");d="-"+d}if(b&&d=="-")b=false;d=bb(d);if(b)b=!/[^\d.\-]/.test(d)&&d.split("-").length<=2&&d.split(".").length<=2;f=pui.getLanguageText("runtimeMsg","invalid number",[a.value]);if(b){c=d.replace(/-/,"").split(".");if(c[0].length>parseInt(a.dataLength,10)-parseInt(a.decPos,10)){b=false;f=pui.getLanguageText("runtimeMsg","invalid length",
[a.value])}if(c.length==2)if(c[1].length>parseInt(a.decPos,10)){b=false;f=pui.getLanguageText("runtimeMsg","invalid decimal",[a.value,a.decPos])}else if(d.indexOf(".")==-1){b=d.replace(/-/g,"").length<=a.dataLength;f=pui.getLanguageText("runtimeMsg","invalid decimal",[a.value,a.decPos])}else if(d.indexOf(".")==d.length-1)b=false}if(b&&a.zeroFill=="true"&&a.dataType=="char")d=pui.formatting.leftPad(d,parseInt(a.dataLength,10),"0");if(b&&a.numBlankFill=="true"&&a.dataType=="char"){a=Number(a.dataLength);
isNaN(a)||(d=pui.formatting.leftPad(d,a," "))}return b?d:{msg:f}}},Indicator:{format:function(a){var b=a.value+"",c,d;if(a.indFormat=="Custom Values"){c=a.customTrue;d=a.customFalse}else{c=a.indFormat.split(" / ")[0];d=a.indFormat.split(" / ")[1]}if(c!=""||d!="")a.Mc=RegExp("["+pui.formatting.escapeRe(c+d)+"]");a.maxLength=c.length>d.length?c.length:d.length;return b==="1"?c:d},Sc:function(a){var b=a.value+"",c,d;if(a.indFormat=="Custom Values"){c=a.customTrue;d=a.customFalse}else{c=a.indFormat.split(" / ")[0];
d=a.indFormat.split(" / ")[1]}return b===c||b===d?b===c?"1":"0":{msg:pui.getLanguageText("runtimeMsg","invalid choice",[a.value,c,d])}}},Date:{format:function(a){var b;b=pui.locale&&pui.locales[pui.locale]?pui.locale:a.locale;var c=a.value+"",d=this.af(a.keywords);if(pui.formatting.vb(a.dataType)){if(c=="0"&&a.dataType=="zoned"&&a.dataLength==6)if(a.dateFormat=="m/d/y"||a.dateFormat=="d/m/y"){a.maxLength=8;return"00/00/00"}if(c==""||c=="0")return"";d.Da=(a.dateFormat||d.display).replace(/[^mdyY]/g,
"");if(/Y/.test(d.Da)){if(a.dataLength==6&&(d.Da=="Ym"||d.Da=="mY")){c+="01";d.Da+="d"}c=pui.formatting.leftPad(c,8,"0")}else if(/y/.test(d.Da)){if(a.dataLength==4&&(d.Da=="ym"||d.Da=="my")){c+="01";d.Da+="d"}c=pui.formatting.leftPad(c,6,"0")}}var f=pui.formatting.Date.parse(c,d.Da,b);a.dateFormat=a.dateFormat||d.display;if(f)c=f.format("Y-m-d","en_US")=="0001-01-01"?"":f.format(a.dateFormat,b);return c},Sc:function(a){var b;b=pui.locale&&pui.locales[pui.locale]?pui.locale:a.locale;var c=a.value+
"",d=this.af(a.keywords);if(pui.formatting.vb(a.dataType))d.Da=(a.dateFormat||d.display).replace(/[^mdyY]/g,"");var f,g=a.dateFormat;if(g==null||g=="")g=d.Da;if(a.dataType=="zoned")if(c.length==5&&(g=="m/d/y"||g=="d/m/y")||c.length==7&&(g=="m/d/Y"||g=="d/m/Y"))c="0"+c;if(a.dataType=="char")if(c.length==7&&(g=="m/d/y"||g=="d/m/y")||c.length==9&&(g=="m/d/Y"||g=="d/m/Y"))c="0"+c;if(a.dataType=="zoned"&&parseInt(a.dataLength,10)==c.length){if(c.length==6&&(g=="m/d/y"||g=="d/m/y")||c.length==8&&(g=="m/d/Y"||
g=="d/m/Y"))c=c.substr(0,2)+"/"+c.substr(2,2)+"/"+c.substr(4);if(c.length==6&&g=="m/Y")c=c.substr(0,2)+"/"+c.substr(2);if(c.length==6&&g=="Y/m")c=c.substr(0,4)+"/"+c.substr(4)}f=c===""?pui.formatting.Date.parse("0001-01-01","Y-m-d","en_US"):pui.formatting.Date.parse(c,g,b);if(g=="m/d/y"||g=="d/m/y"){if(c=="00/00/00"&&a.dataType=="char")return"0";if(c=="00/00/00")return"0"}if(g=="m/d/Y"||g=="d/m/Y"){if(c=="00/00/0000"&&a.dataType=="char")return"";if(c=="00/00/0000")return"0"}if(a.dataType=="zoned"&&
c=="")return"0";if(a.dataType=="char")return c;if(f)return f.format(d.Da,b);else{f=pui.formatting.Date.parse((new Date).getFullYear()+"-03-07-14.30.15.000000","Y-m-d-H.i.s.u000",b);return{msg:pui.getLanguageText("runtimeMsg","invalid date",[a.value,f.format(g,b)])}}},af:function(a){var b,c;if(a&&a.length>0)for(var d=/^\s*DATFMT\s*\(\s*(\*\w{3})\s*\)\s*$/,f=/^\s*DATSEP\s*\(\s*(?:(\*JOB)|'(.)')\s*\)\s*$/,g=0;g<a.length;g++){var k=a[g].toUpperCase();if(d.test(k))b=k.replace(d,"$1");else if(f.test(k))c=
k.replace(f,"$1$2")}if(!b&&pui["default date pattern"]){a=pui["default date pattern"];d="Y-m-d"}else{b=b||"*ISO";c=c||"*JOB";d=pui.formatting.keywords.DATFMT[b]?pui.formatting.keywords.DATFMT[b].Fa:pui.formatting.keywords.DATFMT["*ISO"].Fa;f=(g=/^(?:\*MDY|\*DMY|\*YMD|\*JUL)$/.test(b))?pui.formatting.keywords.xj[c]:pui.formatting.keywords.DATFMT[b]?pui.formatting.keywords.DATFMT[b].db:"-";a=d;if(b=="*JOB"&&pui.appJob&&pui.appJob.dateFormat){b=pui.appJob.dateFormat;a=pui.formatting.keywords.DATFMT[b].Fa}k=
f;if(g=/^(?:\*MDY|\*DMY|\*YMD|\*JUL)$/.test(b)){if(c=="*JOB"&&pui.appJob&&pui.appJob.dateSeparator)c=pui.appJob.dateSeparator;k=pui.formatting.keywords.xj[c]}d=d.replace(/\B/g,f);a=a.replace(/\B/g,k)}return{Da:d,display:a}}},Time:{format:function(a){var b;b=pui.locale&&pui.locales[pui.locale]?pui.locale:a.locale;var c=a.value+"",d=this.af(a.keywords);if(pui.formatting.vb(a.dataType)){d.Da=(a.timeFormat||d.display).replace(/[^Hgis]/g,"");c=pui.formatting.leftPad(c,parseInt(a.dataLength,10),"0")}var f=
c,g=d.Da;if(f.length==4){g+="s";f+="00"}if(f=pui.formatting.Date.parse(f,g,b)){if(a.timeFormat==="")a.timeFormat=d.display;if(/^0*$/.test(c.replace(/\D/g,"")))return f.format(a.timeFormat,b).replace(/(?:12|24)/g,"00");return f.format(a.timeFormat,b)}return c},Sc:function(a){var b;b=pui.locale&&pui.locales[pui.locale]?pui.locale:a.locale;var c=a.value+"",d=this.af(a.keywords);if(pui.formatting.vb(a.dataType))d.Da=(a.timeFormat||d.display).replace(/[^Hgis]/g,"");var f;if(f=c===""?pui.formatting.Date.parse("00:00:00",
"H:i:s","en_US"):pui.formatting.Date.parse(c,a.timeFormat,b))if(/^0*$/.test(c.replace(/\D/g,""))){a=f.format(d.Da,b);a=a.replace(/(?:12|24)/g,"00");return a=a.replace(/PM/i,"AM")}else{if(!(f.getHours()===0&&f.getMinutes()===0&&f.getSeconds()===0))d.Da=d.Da.replace(/([^\\]?)R/g,"$1H");return f.format(d.Da,b)}else{f=pui.formatting.Date.parse((new Date).getFullYear()+"-03-07-14.30.15.000000","Y-m-d-H.i.s.u000",b);return{msg:pui.getLanguageText("runtimeMsg","invalid time",[a.value,f.format(a.timeFormat,
b)])}}},af:function(a){var b,c;if(a&&a.length>0)for(var d=/^\s*TIMFMT\s*\(\s*(\*\w{3})\s*\)\s*$/,f=/^\s*TIMSEP\s*\(\s*(?:(\*JOB)|'(.)')\s*\)\s*$/,g=0;g<a.length;g++){var k=a[g].toUpperCase();if(d.test(k))b=k.replace(d,"$1");else if(f.test(k))c=k.replace(f,"$1$2")}b=b||"*ISO";c=c||"*JOB";a=pui.formatting.keywords.zd[b]?pui.formatting.keywords.zd[b].Fa:pui.formatting.keywords.zd["*ISO"].Fa;f=d=b=="*HMS"?pui.formatting.keywords.Ej[c]||":":pui.formatting.keywords.zd[b]?pui.formatting.keywords.zd[b].db:
".";if(b=="*HMS"){if(c=="*JOB"&&pui.appJob&&pui.appJob.timeSeparator)c=pui.appJob.timeSeparator;f=pui.formatting.keywords.Ej[c]}return{Da:a.replace(/\B/g,d),display:a.replace(/\B/g,f)}}},"Time Stamp":{format:function(a){var b;b=pui.locale&&pui.locales[pui.locale]?pui.locale:a.locale;var c=a.value+"";if(a.timeStampFormat){var d=pui.formatting.Date.parse(c,pui.formatting.Date.hj,b);if(d)c=d.format(a.timeStampFormat,b)}return c},Sc:function(a){var b;b=pui.locale&&pui.locales[pui.locale]?pui.locale:a.locale;
var c=a.value+"";if(c=pui.formatting.Date.parse(c,a.timeStampFormat,b))c=c.format(pui.formatting.Date.hj,b);else{c=pui.formatting.Date.parse((new Date).getFullYear()+"-09-09-14.30.15.000000",pui.formatting.Date.hj,b);return{msg:pui.getLanguageText("runtimeMsg","invalid time stamp",[a.value,c.format(a.timeStampFormat,b)])}}return c}},Special:{format:function(a){var b=a.value+"",c="\\d",d;switch(a.special){case "Percentage":b=b.replace(/[^\d\-.]/g,"");d=parseInt(a.dataLength,10)+2;if(pui.formatting.vb(a.dataType)&&
parseInt(a.decPos,10)>0){var f=(parseFloat("."+(b.split(/\./)[1]||"0"),10).toFixed(parseInt(a.decPos,10))+"").split(/\./)[1];b=b.split(/\./)[0]+"."+f;c+="\\.";d++}c+="\\-%";b+="%";break;case "Zip Code":b=b.replace(/[^\d]/g,"");b=pui.formatting.leftPad(b,5,"0");d=5;break;case "Zip Code + 4":b=b.replace(/[^\d]/g,"");b=pui.formatting.leftPad(b,9,"0");b=b.slice(0,b.length-4)+"-"+b.slice(-4);c+="\\-";d=10;break;case "Phone Number":b=b.replace(/[^\d]/g,"");d="";f=b.length;for(var g=f-1;g>=0;g--){if(g==
f-5)d="-"+d;if(g==f-8)d=") "+d;d=b.charAt(g)+d}if(f>7)d="("+d;b=d;c+="\\-() ";d=14;break;case "Social Security Number":b=b.replace(/[^\d]/g,"");b=pui.formatting.leftPad(b,9,"0");b=b.slice(0,b.length-6)+"-"+b.slice(-6,-4)+"-"+b.slice(-4);c+="\\-";d=11;break;case "Mailto Link":b="mailto:"+bb(b);c=null;break;case "Navigation Link":b=pui.is_android?"geo:0,0?q="+bb(b):"http://maps.google.com/maps?q="+bb(b);c=null;break;case "Telephone Link":b="tel:"+bb(b);c=null;break;case "Normalize URL":b=pui.normalizeURL(b);
c=null;break}if(c!=null)a.Mc=RegExp("["+c+"]");a.maxLength=d;return b},Sc:function(a){var b=a.value+"";switch(a.special){case "Percentage":b=b.replace(/%/g,"");if(b.length>0){if(!/^-?\d*\.?\d+$/.test(b))return{msg:pui.getLanguageText("runtimeMsg","invalid percent",[b])};if(b.length-b.split(".").length-1>a.dataLength+(parseInt(a.decPos,10)===0?0:1))return{msg:pui.getLanguageText("runtimeMsg","invalid digits",[b,a.dataLength])};if(pui.formatting.vb(a.dataType)){var c=parseInt(a.dataLength,10)-parseInt(a.decPos,
10),d=b.split(".");if(d[0].length>c)return{msg:pui.getLanguageText("runtimeMsg","exceeds whole",[b,c])};if(d[1]&&d[1].length>parseInt(a.decPos,10))return{msg:pui.getLanguageText("runtimeMsg","exceeds decimal",[b,a.decPos])}}}return b;case "Zip Code":if(pui.formatting.vb(a.dataType)){b=b.replace(/[^\d]/g,"");a=parseInt(a.dataLength,10)-parseInt(a.decPos,10);if(a>5)a=5;if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[a])}}else{a=parseInt(a.dataLength,10);if(b.length>a){b=b.replace(/[^\d]/g,
"");if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[a])}}}return b;case "Zip Code + 4":if(pui.formatting.vb(a.dataType)){b=b.replace(/[^\d]/g,"");a=parseInt(a.dataLength,10)-parseInt(a.decPos,10);if(a>9)a=9;if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[a])}}else{a=parseInt(a.dataLength,10);if(b.length>a){b=b.replace(/[^\d]/g,"");if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[a])}}}return b;case "Phone Number":if(pui.formatting.vb(a.dataType)){b=
b.replace(/[^\d]/g,"");a=parseInt(a.dataLength,10)-parseInt(a.decPos,10);if(a>10)a=10;if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","phone too long",[a])}}else{a=parseInt(a.dataLength,10);if(b.length>a){b=b.replace(/[^\d]/g,"");if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","phone too long",[a])}}}return b;case "Social Security Number":if(pui.formatting.vb(a.dataType)){b=b.replace(/[^\d]/g,"");a=parseInt(a.dataLength,10)-parseInt(a.decPos,10);if(a>9)a=9;if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg",
"ssno too long",[a])}}else{a=parseInt(a.dataLength,10);if(b.length>a){b=b.replace(/[^\d]/g,"");if(b.length>a)return{msg:pui.getLanguageText("runtimeMsg","ssno too long",[a])}}}return b;default:return b}}},Custom:{format:function(a){if(a.customFunction!==""){var b,c;try{c=eval("("+a.customFunction+")")}catch(d){return{msg:pui.getLanguageText("runtimeMsg","invalid custom val")+"\n\n"+d.message||d.description}}if(typeof c==="function"){try{b=c(a)}catch(f){return{msg:pui.getLanguageText("runtimeMsg",
"error custom val")+"\n\n"+f.message||f.description}}return b}}if(a.customPattern!==""){if(a.dataType=="date"){a.dateFormat=a.customPattern;a.formatting="Date"}else if(a.dataType=="time"){a.timeFormat=a.customPattern;a.formatting="Time"}else if(a.dataType=="timestamp"){a.timeStampFormat=a.customPattern;a.formatting="Time Stamp"}else{a.formatting="Date";timePatternChars=["H","i","s","u","g","a","A"];for(b=0;b<timePatternChars.length;b++)if(a.customPattern.indexOf(timePatternChars[b])!=-1){a.formatting=
"Time Stamp";break}if(a.formatting=="Time Stamp")a.timeStampFormat=a.customPattern;if(a.formatting=="Date")a.dateFormat=a.customPattern}return pui.oe.format(a)}},Sc:function(a){if(a.customFunction!=="")return pui.oe.Custom.format(a)}},validate:function(a){return a},so:function(){var a={"char":{},graphic:{Number:true,Indicator:true,Date:true,Time:true,"Time Stamp":true,Special:true},zoned:{"Time Stamp":true},indicator:{Date:true,Time:true,"Time Stamp":true,Special:true},expression:{Text:true,Number:true,
Date:true,Time:true,"Time Stamp":true,Special:true},floating:{"Time Stamp":true},date:{Number:true,Indicator:true,Time:true,Special:true},time:{Number:true,Indicator:true,Date:true,"Time Stamp":true,Special:true},timestamp:{Number:true,Indicator:true,Special:true},reference:{}};return function(b){if(!a[b.dataType]||a[b.dataType][b.formatting]||b.formatting===""){b.formatting="Text";return false}return true}}()};pui.Gm=function(){var a=this,b=[];this.xq=function(){return b};this.Bk=function(c){if(c==null)c=true;for(var d=[],f=0;f<b.length;f++){var g=b[f];if(!(g.c!=null&&g.c!=M))if(c||!g.wh&&g.name!="layout")d.push(g.name)}d.sort();return d};this.Eq=function(){for(var c=[],d=0;d<b.length;d++){var f=b[d].menuName;if(typeof f=="string")c.push(f);else for(var g=0;g<f.length;g++)c.push(f[g])}c.sort();return c};this.Jq=function(c){for(var d=0;d<b.length;d++){var f=b[d];if(typeof f.menuName=="string"){if(c==f.menuName)return f}else for(var g=
0;g<f.menuName.length;g++)if(c==f.menuName[g])return f}return null};this.add=function(c){var d=c.name;if(d!=null){if(c.newId==null){for(var f=d.split(" "),g="",k=0;k<f.length;k++){word=f[k];word=word.charAt(0).toUpperCase()+word.substr(1);g+=word}c.newId=g}if(c.menuName==null){f=d.split(" ");g="";for(k=0;k<f.length;k++){var l=f[k];l=l.charAt(0).toUpperCase()+l.substr(1);if(g!="")g+=" ";g+=l}c.menuName=g}if(c.newValue==null)c.newValue="";if(c.tag==null)c.tag="div";if(c.inputType==null&&c.tag=="input")c.inputType=
"text";if(c.defaults==null)c.defaults={};if(c.Ai==null)c.Ai="";if(c.ol==null)c.ol="";if(c.ji==null)c.ji="";if(c.resizable==null)c.resizable=true;if(c.wh==null)c.wh=false;if(c.a==null)c.a=false;if(c.Ac==null)c.Ac=true;if(c.Tj==null)c.Tj=true;if(c.Lb==null)c.Lb=false;b.push(c);a[d]=c;if(!pui.$j)mb()["field type"].choices=a.Bk(false)}}};pui.widgets=new pui.Gm;pui.widgets.kc=function(){var a=[];for(var b in pui.widgets.buttonStyles)a.push(b);return a};
pui.widgets.Je=function(){var a=[];for(var b in pui.widgets.panelStyles)a.push(b);return a};pui.widgets.Jn=function(){return pui.widgets.rh};pui.widgets.Zn=function(){var a=[];for(var b in pui.widgets.tabStyles)a.push(b);a.push("Other...");return a};function Qb(a){this.onready=this.onfail=this.onsuccess=this.suppressAlert=this.password=this.user=this.async=this.url=this.postData=this.method=null;this.headers={};this.params=null;this.sendAsBinary=true;var b=null,c=null,d=null,f=null,g=typeof pui!="undefined"&&typeof pui.alert!="undefined"?pui.alert:alert,k=this;if(typeof a=="object")for(var l in a){if(typeof this[l]!="undefined")this[l]=a[l]}else this.url=a;if(window.XMLHttpRequest)b=new XMLHttpRequest;else if(window.ActiveXObject)b=new ActiveXObject("Microsoft.XMLHTTP");
else{g("Ajax request error: Unsupported browser.");return}this.send=this.send=function(){function h(){if(b.readyState==4){c=b.status+" - "+b.statusText;k.onready!=null&&k.onready(k);if(b.status==200){d=true;k.onsuccess!=null&&k.onsuccess(k)}else{d=false;k.suppressAlert!=true&&g(c);k.onfail!=null&&k.onfail(k)}f=false}}var o=null,p=null,s=null;if(k.method==null)o="GET";else if(typeof k.method!="string"&&(k.method.toUpperCase()!="GET"||k.method.toUpperCase()!="POST"||k.method.toUpperCase()!="PUT")){g('Invalid value for property: "method".');
return}else o=k.method.toUpperCase();if(o=="POST")if(k.postData!=null)if(typeof k.postData!="string"){g('Invalid value for property: "postData".');return}else s=k.postData;else s="";if(k.async==null)p=true;else if(k.async!=true&&k.async!=false){g('Invalid value for property: "async".');return}else p=k.async;if(typeof k.url!="string")g('Invalid value for property: "url".');else{if(k.user!=null)if(typeof k.user!="string"){g('Invalid value for property: "user".');return}if(k.password!=null)if(typeof k.password!=
"string"){g('Invalid value for property: "password".');return}if(k.onsuccess!=null)if(typeof k.onsuccess!="function"){g('Invalid value for event: "onsuccess".');return}if(k.onfail!=null)if(typeof k.onfail!="function"){g('Invalid value for event: "onfail".');return}if(k.onready!=null)if(typeof k.onready!="function"){g('Invalid value for event: "onready".');return}var t=k.url,y=k.params;if(typeof y=="object"){var z="";for(var A in y){var B=y[A],v=[];if(typeof B=="object"){if(B.length!=null&&B.length>
0)v=B}else v.push(B);for(B=0;B<v.length;B++){if(z!="")z+="&";z+=encodeURIComponent(A)+"="+encodeURIComponent(v[B])}}if(z!="")if(o.toUpperCase()=="POST"){if(s!=null&&s!="")s+="&";else s="";s+=z}else{y=t.split("?");if(y.length==2&&y[1]!="")t=y[0]+"?"+y[1]+"&"+z;else t+="?"+z}}try{b.open(o,t,p,k.user,k.password);t=false;var I=k.headers;for(A in I){b.setRequestHeader(A,I[A]);if(A.toUpperCase()=="CONTENT-TYPE")t=true}if(o=="POST")t?b.setRequestHeader("Content-Length",s!=null?s.length:0):b.setRequestHeader("Content-type",
"application/x-www-form-urlencoded")}catch(G){g(G);return}f=true;if(p==true)b.onreadystatechange=h;if(k.sendAsBinary==true)try{b.sendAsBinary(s)}catch(E){b.send(s)}else b.send(s);p!=true&&h()}};this.ok=this.il=function(){return d!=null?d:false};this.getResponseText=this.$b=function(){return b.responseText};this.getResponseXML=this.yk=function(){return b.responseXML};this.getStatus=this.hd=function(){return b.status};this.getStatusText=this.zk=function(){return b.statusText};this.getStatusMessage=
this.Vf=function(){return c};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(d)try{return b.getAllResponseHeaders()}catch(h){g(h)}};this.getResponseHeader=this.getResponseHeader=function(h){if(d)try{return b.getResponseHeader(h)}catch(o){g(o)}};this.setRequestHeader=this.setRequestHeader=function(h,o){k.headers[h]=o};this.abort=this.abort=function(){if(!(f==null||f==true))try{b.abort()}catch(h){g(h)}}}
function $a(a,b){var c,d,f,g="";if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(typeof c.handler=="function"){d=true;f=c.handler}else d=false}else if(b!=null&&typeof b=="function"){d=true;f=b}else d=false;c=new Qb(arguments[0]);c.async=d;c.onsuccess=function(k){g+=k.$b();d==true&&f(g)};c.send();if(d==false)return g}
function fb(a,b){var c,d,f,g=null,k=false;if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(c.saveResponse==true)k=true;if(typeof c.handler=="function"){d=true;f=c.handler}else d=false}else if(b!=null&&typeof b=="function"){d=true;f=b}else d=false;c=new Qb(arguments[0]);c.async=d;c.onsuccess=function(l){l=l.$b();if(k&&typeof pui=="object")pui.savedJSON=l;try{g=eval("("+l+")")}catch(h){f(null,h);return}d==true&&f(g)};c.send();if(d==false)return g}
if(typeof window.pui=="undefined")window.pui={};window.RPGspRequest=Qb;window.pui.Ajax=Qb;window.pui.AjaxRequest=Qb;window.ajax=$a;
window.ajaxXML=function(a,b){var c,d,f,g=null;if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;c.onfail=null;c.onsuccess=null;if(typeof c.handler=="function"){d=true;f=c.handler}else d=false}else if(b!=null&&typeof b=="function"){d=true;f=b}else d=false;c=new Qb(arguments[0]);c.async=d;c.onsuccess=function(k){g=k.yk();d==true&&f(g)};c.send();if(d==false)return g};window.ajaxJSON=fb;
window.ajaxSubmit=function(a,b){var c,d="",f=typeof pui!="undefined"&&typeof pui.alert!="undefined"?pui.alert:alert;if(typeof a=="object")c=a;else{c=document.getElementById(a);if(c==null)c=document.forms[a]}var g;if(c!=null)g=c.tagName;if(c==null||g==null||g.toUpperCase()!="FORM"){f("Ajax request error: Invalid form object.");return""}if(a.action==""){f("Ajax request error: Invalid form action.");return""}for(f=0;f<c.elements.length;f++){g=c.elements[f];if(g.name!=null&&g.name!=""){var k=false;if(g.tagName==
"INPUT"){var l=g.type;l=l.toLowerCase();if(l=="hidden")k=true;if(l=="password")k=true;if(l=="text")k=true;if(pui.eg(l))k=true;if(l=="")k=true;if(l=="checkbox"||l=="radio")if(g.checked)k=true}if(g.tagName=="TEXTAREA")k=true;if(g.tagName=="SELECT")k=true;if(k){if(d!="")d+="&";d+=g.name+"="+encodeURIComponent(g.value)}}}c=new Qb(c.action);c.method="POST";c.postData=d;var h="",o;if(b!=null&&typeof b=="function")o=true;else{o=false;c.async=false}c.onsuccess=function(p){h+=p.$b();o==true&&b(h)};c.send();
if(o==false)return h};pui.widgets.add({name:"ajax container",defaults:{width:"200px",height:"100px"},propertySetters:{"field type":function(a){if(a.design){a.dom.innerHTML="AJAX content will appear here.";a.dom.style.overflow="hidden"}else{a.dom.innerHTML="";url=a.evalProperty("ajax url");if(url==null||url=="")a.dom.innerHTML="AJAX URL property not specified.";else $a(url,function(b){try{a.dom.innerHTML=b}catch(c){a.dom.innerHTML=c.message}})}}}});pui.widgets.add({name:"button",tag:"input",inputType:"button",newValue:"Click Here",Lb:true,defaults:{width:!pui.is_quirksmode?"100px":null,"css class":"button"},propertySetters:{"field type":function(a){a.dom.value=a.evalProperty("value");if(a.design&&a.properties["field type"]!="button"){var b=a.e.properties["css class"];if(b==null)b="";if(!pui.p(b))if(b.indexOf("button")<0){if(b!="")b+=" ";b+="button";a.e.properties["css class"]=b;a.e.$a["css class"]=true;a.dom.className=b}}a.design||N(a.dom,"keydown",
function(c){if(c.keyCode==13){if(!c)c=window.event;c.cancelBubble=true}})},value:function(a){a.dom.value=a.value}}});pui.charts={};pui.xe=[];pui.widgets.rh=["Column3D","Column2D","Bar2D","Line","Area2D","Pie2D","Pie3D","Doughnut3D","Other..."];pui.widgets.kq=["3D Column","2D Column","2D Bar","Line","Area","2D Pie","3D Pie","Doughnut"];
pui.widgets.jf=function(a){function b(){function d(){a.dom.Ok=false}var f=a.dom.id+"_Chart";FusionCharts(f)&&FusionCharts(f).dispose();var g=new FusionCharts({type:a.type.toLowerCase(),id:f,width:"100%",height:"100%",renderAt:a.dom,events:{renderComplete:d,dataLoadError:d,dataInvalid:d,noDataToDisplay:d}});pui.xe.push(f);g.dom=a.dom;a.transparent==true&&g.setTransparent(true);if(typeof a.dom.pui.properties["chart response"]!="undefined"||typeof a.dom.onchartclick=="function"){if(a.vj!=null||a.Rk!=
null)FusionCharts(f).addEventListener("DataLoadRequestCompleted",pui.widgets.Mm);if(a.yd!=null)a.yd=pui.widgets.Ij(a.dom.id,a.yd);else if(a.jsonData!=null)a.jsonData=pui.widgets.Hj(a.dom.id,a.jsonData)}if(a.vj!=null)g.setXMLUrl(a.vj);else if(a.yd!=null)g.setXMLData(a.yd);else if(a.Rk!=null)g.setJSONUrl(a.Rk);else a.jsonData!=null&&g.setJSONData(a.jsonData);a.dom.style.backgroundColor="";g.render();a.dom.chart=document.getElementById(f);if(a.dom.chart!=null&&a.dom.chart.style.visibility=="visible")a.dom.chart.style.visibility=
""}function c(d,f){var g=false,k=document.getElementsByTagName("head")[0],l=document.createElement("script");l.type="text/javascript";l.onreadystatechange=function(){if(l.readyState=="complete"||l.readyState=="loaded")if(typeof FusionCharts!="undefined"){g||f();g=true}};l.onload=function(){if(typeof FusionCharts!="undefined"){g||f();g=true}};l.src=d;k.appendChild(l)}if(!a.dom.Ok){a.dom.Ok=true;typeof FusionCharts=="undefined"?c(pui.normalizeURL("/FusionChartsXT/js/pui-fusioncharts.js"),function(){b()}):
b()}};pui.widgets.Mm=function(a,b){b.cancelDataLoad();var c=a.sender.dom.id;b.dataFormat=="xml"?a.sender.setXMLData(pui.widgets.Ij(c,b.data)):a.sender.setJSONData(pui.widgets.Hj(c,b.data))};
pui.widgets.Ij=function(a,b){try{var c;if(typeof DOMParser!="undefined")c=(new DOMParser).parseFromString(b,"text/xml");else{c=new ActiveXObject("Microsoft.XMLDOM");c.async=false;c.loadXML(b)}for(var d=c.getElementsByTagName("set"),f=0;f<d.length;f++){var g=d[f],k=g.getAttribute("name");if(k==null)k=g.getAttribute("label");g.setAttribute("link",'j-pui.widgets.doChartLink-{"id":"'+a+'", "name":"'+k+'"}')}return typeof XMLSerializer!="undefined"?(new XMLSerializer).serializeToString(c):c.xml}catch(l){return b}};
pui.widgets.Hj=function(a,b){try{for(var c=eval("("+b+")"),d=c.data,f=0;f<d.length;f++){var g=d[f];g.link='j-pui.widgets.doChartLink-{"id":"'+a+'", "name":"'+g.label+'"}'}return c}catch(k){return b}};pui.widgets.doChartLink=function(a){a=eval("("+a+")");var b=a.name;a=Ra(a.id);if(typeof a.pui.properties["chart response"]!="undefined"){a.T=b;if(a.C=="true"||a.C=="send data")pui.C=a.C;if(pui.wb()==false)a.T=""}else typeof a.onchartclick=="function"&&a.onchartclick(b)};
pui.widgets.mf=function(a,b,c){a.innerHTML="";if(c)b="Map";else{c=false;for(var d=0;d<pui.widgets.rh.length;d++)if(b==pui.widgets.rh[d])if(b!="Other..."){c=true;break}c||(b="Bar2D")}c=document.createElement("img");c.src="/profoundui/proddata/images/charts/"+b+".jpg";c.style.position="absolute";c.style.left="0px";c.style.top="0px";c.style.width="100%";c.style.height="100%";c.Pq=true;a.appendChild(c)};
pui.widgets.add({name:"chart",defaults:{width:"300px",height:"200px","background color":"#EEEEEE","z index":"21"},propertySetters:{"field type":function(a){var b=Ra(a.evalProperty("parent tab panel"));if(b)b=b.tabPanel;var c=parseInt(a.evalProperty("parent tab"),10);if(!(b&&!isNaN(c)&&c!=b.selectedTab)){b=bb(a.evalProperty("map type"));var d;if(b!=""){if(b.toLowerCase().indexOf("maps/")==0)b=b.substr(5);d=b="/FusionChartsXT/js/maps/"+b}else d=a.evalProperty("chart type");if(a.design){pui.widgets.mf(a.dom,
d,b!="");a.dom.style.overflow="hidden";a.dom.style.border="1px solid #999999"}else{if(a.dom.pui==null)a.dom.pui={};a.dom.pui.properties=a.properties;if(!a.dom.chart)a.dom.innerHTML="<br/>&nbsp;&nbsp;&nbsp;&nbsp;Loading Chart...";if(d=="")d="Bar2D";c=a.evalProperty("chart url");if(c!=null&&c!="")c=pui.se(c);b=a.evalProperty("chart xml");var f=a.evalProperty("chart json");if(b!=null&&b!="")pui.widgets.jf({dom:a.dom,type:d,transparent:a.properties["chart overlay"]!="true",yd:b});else if(f!=null&&f!=
"")pui.widgets.jf({dom:a.dom,type:d,transparent:a.properties["chart overlay"]!="true",jsonData:f});else if(c==""){c=a.evalProperty("database file").toUpperCase();f=a.evalProperty("name field").toUpperCase();var g=a.evalProperty("value field").toUpperCase(),k=a.evalProperty("summary option");b=a.evalProperty("record limit").toUpperCase();var l=a.evalProperty("selection criteria").toUpperCase(),h=a.evalProperty("order by").toUpperCase(),o=a.evalProperty("names"),p=a.evalProperty("values"),s=a.evalProperty("chart options");
if(bb(o)!=""&&bb(p)!=""){b='<?xml version="1.0" encoding="utf-8"?><chart';if(s!=null&&typeof s=="string"&&s!="")b+=" "+s;b+=">";c=pui.ha(o);f=pui.ha(p);g=c.length;if(f.length>g)g=f.length;for(l=0;l<g;l++){h=c[l];p=f[l];if(h==null)h="";h=bb(h);if(h.substr(0,2)=="D_"||h.substr(0,2)=="I_"){p=yb(h);if(p!="")h=p}p=f[l];if(p==null)p="0";p=String(p);p=bb(p);k=p.substr(0,1);if((k<"0"||k>"9")&&k!="."&&k!=","&&k!="-"){p=yb(p);if(pui.appJob.decimalFormat!="I"&&pui.appJob.decimalFormat!="J")p=p.replace(/,/g,
"")}p=Number(p);if(isNaN(p))p=0;b+='<set name="'+pui.nm(h)+'" value="'+pui.nm(p)+'" />'}b+="</chart>";pui.widgets.jf({dom:a.dom,type:d,transparent:a.properties["chart overlay"]!="true",yd:b})}else if(c=="")a.dom.innerHTML="&nbsp;&nbsp;Data source not specified for chart.";else if(f=="")a.dom.innerHTML="&nbsp;&nbsp;Name field not specified for chart.";else{o="";if(k=="average")o="avg(";if(k=="count")o="count(";if(k=="sum")o="sum(";if(k=="maximum")o="max(";if(k=="minimum")o="min(";if(g==null||g=="")if(k==
"count")g=f;else{a.dom.innerHTML="&nbsp;&nbsp;Value field not specified for chart.";return}p="SELECT ";if(o!="")g=o+g+")";p+=f+", ";p+=g+" ";p+=" FROM "+c;if(l!="")p+=" WHERE "+l;if(o!="")p+=" GROUP BY "+f+" ";p+=o==""&&h!=""?" ORDER BY "+h:" ORDER BY "+f;c=Za("PUI0009104.PGM");f="AUTH=";if(M=="genie")f+=GENIE_AUTH;if(M=="dspf")f+=pui.appJob.auth;if(pui.secLevel>0){f+="&q="+encodeURIComponent(pui.gd(a.dom));g=pui.fd(a.properties);if(g!="")f+="&"+g}else f+="&q="+pui.Xa.cd(p);f+="&maxcount="+b;var t=
new pui.Ajax(c);t.method="post";t.async=true;t.postData=f;t.suppressAlert=true;t.onsuccess=function(){if(!Sa()){var y="invalid",z=Ua(t,"Run Charting Query");if(z)y=z;if(s!=null&&typeof s=="string"&&s!=""&&y.substr(0,45)=='<?xml version="1.0" encoding="utf-8"?><chart>')y='<?xml version="1.0" encoding="utf-8"?><chart>'.substr(0,44)+" "+s+y.substr(44);pui.widgets.jf({dom:a.dom,type:d,transparent:a.properties["chart overlay"]!="true",yd:y})}};t.send()}}else{c=c.replace(/&/g,"%26");pui.widgets.jf({dom:a.dom,
type:d,transparent:a.properties["chart overlay"]!="true",vj:c})}}}},width:function(a){a.dom.width=a.value;var b=typeof a.properties["map type"]!="undefined";a.design&&pui.widgets.mf(a.dom,a.properties["chart type"],b)},height:function(a){a.dom.height=a.value;var b=typeof a.properties["map type"]!="undefined";a.design&&pui.widgets.mf(a.dom,a.properties["chart type"],b)},"chart type":function(a){a.design&&pui.widgets.mf(a.dom,a.value)},"map type":function(a){a.design&&pui.widgets.mf(a.dom,a.value,true)},
visibility:function(a){if(a.dom.chart)a.dom.chart.style.display=a.value=="hidden"?"none":""}}});pui.widgets.add({name:"checkbox",tag:"input",inputType:"checkbox",ji:"label",resizable:false,defaults:{label:"Checkbox"},propertySetters:{"field type":function(a){var b=a.evalProperty("value"),c=a.evalProperty("checked value");a.dom.kb=c;if(!pui.is_quirksmode)if(!pui.is_old_ie)a.dom.style.margin="2px";a.dom.checked=M=="genie"&&a.dom.Fo!=null&&a.properties.value==null&&a.properties["checked value"]==null?a.dom.Fo:b==c?true:false;if(!a.design){b=a.evalProperty("unchecked value");a.dom.hc=b;Ba.push(a.dom);
b=a.evalProperty("label");b!=""&&Va(a.dom,b);M=="dspf"&&N(a.dom,"click",function(){if(a.dom.readOnly)if(a.dom.checked==false)a.dom.checked=true;else if(a.dom.checked==true)a.dom.checked=false})}pui.Nh(a.dom)},value:function(a){var b=a.evalProperty("checked value");a.dom.kb=b;a.dom.checked=a.value==b?true:false;pui.Nh(a.dom)},"checked value":function(a){var b=a.evalProperty("value"),c=a.value;a.dom.kb=c;a.dom.checked=b==c?true:false;pui.Nh(a.dom)},visibility:function(a){if(!a.design&&a.dom.Nc)a.dom.Nc.style.visibility=
a.value=="hidden"?"hidden":""}}});pui.pm=function(){function a(){k.innerHTML="";k.style.display="none"}function b(){var h=d.t.offsetTop,o=d.t.offsetLeft,p=d.t.parentNode;if(p.parentNode.grid){h+=p.offsetTop;o+=p.offsetLeft;p=p.parentNode;h+=p.offsetTop;o+=p.offsetLeft;p=p.parentNode}if(p.getAttribute("container")=="true"){p=pui.layout.Kb(p);h+=p.y;o+=p.x}if(M=="genie")if(d.t.parentNode.layerInfo){h+=d.t.parentNode.offsetTop+d.t.parentNode.clientTop;o+=d.t.parentNode.offsetLeft+d.t.parentNode.clientLeft}h+=d.t.offsetHeight;k.style.top=
h+"px";k.style.left=o+"px"}function c(){k.innerHTML="";k.style.display="";k.style.height=d.choices.length>5||d.choices.length==0?l+"px":"";b();var h=parseInt(d.t.style.width);if(pui.is_old_ie&&d.choices.length>5)h-=22;if(h<20)h=20;var o=document.createElement("div");o.style.width=h+"px";o.style.height="0px";o.style.fontSize="0px";o.style.padding="0px";o.style.margin="0px";o.style.border="0px none";o.style.cursor="default";k.appendChild(o);for(h=0;h<d.choices.length;h++){o=document.createElement("div");
o.innerHTML=d.choices[h]+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";o.style.whiteSpace="nowrap";o.Ed=d["choice values"][h];if(o.Ed==null)o.Ed=d.choices[h];o.pn=d.choices[h];o.style.overflow="hidden";o.style.fontFamily=f.style.fontFamily;o.style.fontSize="12px";o.style.padding="2px";o.style.cursor="default";o.onmouseover=function(s){s=La(s);s.style.backgroundImage="url("+pui.normalizeURL("/profoundui/proddata/images/combo/selection_background.gif")+")";s.style.backgroundPosition="center bottom";
s.style.backgroundRepeat="repeat-x"};o.onmouseout=function(s){La(s).style.backgroundImage=""};o.onmousedown=function(s){Ma(s)};o.onclick=function(s){var t=La(s);if(!f.readOnly&&!d.design){f.value=t.Ed;f.modified=true;d.t.modified=true;if(M=="genie"&&f.w!=null&&f.w.idx!=null)pui.response[f.w.idx]=f;var y=f.B;if(y!=null){y.hide();y.U=true;pui.Q(f,y.ed())}pui.Cc(f)}a();if(!pui.is_touch||pui.is_mouse_capable)d.wp();d.t.Ol!=null&&!f.readOnly&&!d.design&&d.t.Ol(f.value,t.pn,d.t);Ma(s)};k.appendChild(o)}h=
parseInt(k.style.top,10);o=pui.Ck();if(h-o+k.offsetHeight>pui.getWindowSize().height){var p=h-k.offsetHeight-f.offsetHeight-3;if(p-o>=0)h=p}k.style.top=h+"px"}this.Za=this.t=this.a=null;this.design=false;this.choices=[];this["choice values"]=[];var d=this,f,g,k,l=110;this.showChoices=function(){c()};this.hideChoices=function(){a()};this.init=function(){if(d.t==null){d.t=document.createElement("div");d.a!=null&&d.a.appendChild(d.t);d.t.style.position="absolute";d.t.style.top="100px";d.t.style.left=
"100px"}d.t.style.backgroundColor="#ffffff";d.t.style.overflow="hidden";d.t.style.border="1px solid #7f9db9";if(d.t.style.width==null)d.t.style.width="80px";d.t.style.height="20px";if(pui.is_quirksmode)d.t.style.height=pui.is_old_ie?"22px":"19px";if(f==null){f=document.createElement("input");d.t.appendChild(f)}f.type="text";f.setAttribute("autocomplete","off");f.style.position="absolute";f.style.border="0px none";f.style.top="0px";f.style.left="1px";f.style.paddingTop="1px";f.style.fontFamily="Trebuchet MS";
f.style.fontWeight="normal";f.style.outline="none";f.className="input";if(d.Za!=null&&d.Za.tagName=="INPUT")f.className=d.Za.className;d.t.className="input";f.name=d.t.name;if(d.design){f.style.cursor="default";f.readOnly=true}if(g==null){g=document.createElement("img");d.t.appendChild(g)}g.src=pui.normalizeURL("/profoundui/proddata/images/combo/down_arrow.gif");g.style.position="absolute";g.style.top="0px";g.style.right="0px";g.style.width="18px";g.style.height="20px";g.sn=true;g.onmousedown=function(p){Ma(p)};
g.onmouseup=function(p){k.style.display=="none"&&!f.disabled?c():a();Ma(p)};for(var h,o=d.t.parentNode;o;){if(o.Bb){h=o;break}o=o.parentNode}if(k==null){k=document.createElement("div");if(M=="dspf"&&Sa())Ta.designer.a.appendChild(k);else h?h.appendChild(k):pui.runtimeContainer.appendChild(k);N(document,"click",function(p){La(p)!=g&&a()})}k.style.display="none";k.style.position="absolute";k.style.overflowX="hidden";k.style.overflowY="auto";k.style.height=l+"px";k.style.backgroundColor="#EAF2FB";k.style.border=
"1px solid #A4BED4";k.style.zIndex=130};this.r=function(){var h=parseInt(d.t.style.width)-21;if(isNaN(h)||h<0)h=0;f.style.width=h+"px"};this.Fp=function(h,o){var p=h.split(" ");if(p.length==2)p[1]=p[1].substr(0,1).toUpperCase()+p[1].substr(1);f.style[p.join("")]=o};this.setValue=function(h){f.value=h;pui.Cc(f)};this.getValue=function(){return f.value};this.Wl=function(h){f.readOnly=h};this.setDisabled=function(h){f.disabled=h};this.zp=function(h){f.maxLength=h};this.mr=function(h,o){f.setAttribute(h,
o)};this.sp=function(h){f.className=h};this.Um=function(h,o){f[h]=o;if(d.t[h]!=null)d.t[h]=ha()};this.clear=function(){d.choices=[];d["choice values"]=[];f.value="";pui.Cc(f)};this.getBox=function(){return f};this.wp=function(){f.focus()}};
pui.widgets.add({name:"combo box",defaults:{width:"80px","css class":"input","font family":"Trebuchet MS"},propertySetters:{"field type":function(a){if(a.dom.comboBoxWidget==null)a.dom.comboBoxWidget=new pui.pm;a.dom.comboBoxWidget.t=a.dom;a.dom.comboBoxWidget.design=a.design;var b=a.evalProperty("width");a.dom.comboBoxWidget.Za=a.Za;a.dom.comboBoxWidget.init();if(b!=null&&b!="")a.dom.style.width=b;a.dom.comboBoxWidget.r();var c=a.evalProperty("choices url");if(c!=""&&!a.design){var d=new pui.Ajax(pui.se(c));
d.async=true;d.suppressAlert=true;d.onready=function(){a.dom.comboBoxWidget.clear();var s=Ua(d,"Generate Combo Box Options");if(s){for(var t=0;t<s.length;t++){var y=s[t];a.dom.comboBoxWidget.choices.push(y.text);a.dom.comboBoxWidget["choice values"].push(y.value)}a.dom.comboBoxWidget.setValue(a.evalProperty("value"))}};a.dom.comboBoxWidget.clear();a.dom.comboBoxWidget.setValue("Loading...");d.send()}else if(a.evalProperty("choices database file")!=""){if(!a.design){b=a.evalProperty("max choices");
var f=a.evalProperty("choices database file"),g=pui.Md(a.evalProperty("choice options field")),k=a.evalProperty("choice values field");if(k==null||k=="")k=g[0];c=a.evalProperty("choices selection criteria");var l=pui.Md(a.evalProperty("order by"));if(l[0]!="")for(var h=0;h<l.length;h++){var o=l[h];pui.xc(g,o)==-1&&g.push(o)}k=g[0]+", "+k;g.splice(0,1);if(g.length>0)k+=", "+g.join();f="SELECT DISTINCT "+k+" FROM "+f;if(c&&c!="")f+=" WHERE "+c;if(l[0]!="")f+=" ORDER BY "+l.join();c=Za("PUI0009103.PGM");
var p=new pui.Ajax(c);p.method="post";p.async=true;p.suppressAlert=true;if(M=="genie")p.postData="AUTH="+GENIE_AUTH;if(M=="dspf")p.postData="AUTH="+pui.appJob.auth;if(pui.secLevel>0){p.postData+="&q="+encodeURIComponent(pui.gd(a.dom));c=pui.fd(a.properties);if(c!="")p.postData+="&"+c}else p.postData+="&q="+pui.Xa.cd(f);if(b!=null&&b!="")p.postData+="&maxcount="+encodeURIComponent(b);p.onsuccess=function(){var s=Ua(p,"Generate Dropdown Box Options");a.dom.comboBoxWidget.clear();if(s){if(a.properties["blank option"]==
"true"){var t=a.evalProperty("blank option label");if(t==null)t="";a.dom.comboBoxWidget.choices.push(t);a.dom.comboBoxWidget["choice values"].push("")}for(t=0;t<s.length;t++){var y=s[t];a.dom.comboBoxWidget.choices.push(y.text);a.dom.comboBoxWidget["choice values"].push(y.value)}a.dom.comboBoxWidget.setValue(a.evalProperty("value"))}};a.dom.comboBoxWidget.clear();a.dom.comboBoxWidget.setValue("Loading...");p.send()}}else a.dom.comboBoxWidget.setValue(a.evalProperty("value"))},choices:function(a){if(a.dom.comboBoxWidget!=
null)a.dom.comboBoxWidget.choices=pui.ha(a.value)},"choice values":function(a){if(a.dom.comboBoxWidget!=null)a.dom.comboBoxWidget["choice values"]=pui.ha(a.value)},value:function(a){a.dom.comboBoxWidget!=null&&a.dom.comboBoxWidget.setValue(a.value)},"read only":function(a){if(a.dom.comboBoxWidget!=null&&!a.design)a.value==true||a.value=="true"?a.dom.comboBoxWidget.Wl(true):a.dom.comboBoxWidget.Wl(false)},disabled:function(a){if(a.dom.comboBoxWidget!=null&&!a.design)a.value==true||a.value=="true"?
a.dom.comboBoxWidget.setDisabled(true):a.dom.comboBoxWidget.setDisabled(false)},"css class":function(a){a.dom.comboBoxWidget!=null&&a.dom.comboBoxWidget.sp(a.value)},width:function(a){if(a.dom.comboBoxWidget!=null){a.dom.style.width=a.value;a.dom.comboBoxWidget.r()}},onselect:function(a){a.dom.Ol=function(){eval("var value = arguments[0];");eval("var text = arguments[1];");eval("var object = arguments[2];");try{eval(a.value)}catch(b){pui.alert("Onselect Error:\n"+b.message)}}},"input type":function(a){try{!a.design&&
a.dom.comboBoxWidget!=null&&a.dom.comboBoxWidget.getBox().setAttribute("type",a.value)}catch(b){}}},Pd:function(a){switch(a.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":case "background color":a.dom.comboBoxWidget.Fp(a.propertyName,a.value);break}},Pm:{"tab index":function(a){a.dom.removeAttribute("tabindex");a.dom.comboBoxWidget.getBox().setAttribute("tabindex",
a.value)}}});pui.$g=function(){this.designMode=this.a=null;this.mm=this.Ld=false;var a,b,c,d,f="a",g=false,k=" ui-icon-shadow";if(pui.is_firefox)k="";var l=this;this.init=function(){function h(){if(!g){pui.Q(a,"ui-btn-up-"+f);pui.Y(a,"ui-btn-down-"+f)}}function o(){pui.Q(a,"ui-btn-down-"+f);pui.Y(a,"ui-btn-up-"+f)}a=l.Ld||l.mm?document.createElement("span"):document.createElement("a");b=document.createElement("span");c=document.createElement("span");d=document.createElement("span");a.className="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-"+
f;a.style.marginTop="0";a.style.marginBottom="0";b.className="ui-btn-inner ui-btn-corner-all";c.className="ui-btn-text";d.className="ui-icon"+k;b.appendChild(c);b.appendChild(d);a.appendChild(b);l.a.appendChild(a);N(a,"mouseover",function(){if(!g){pui.Q(a,"ui-btn-up-"+f);pui.Y(a,"ui-btn-hover-"+f)}});N(a,"mouseout",function(){pui.Q(a,"ui-btn-hover-"+f);pui.Y(a,"ui-btn-up-"+f)});N(a,"focus",function(){g||pui.Y(a,"ui-focus")});N(a,"blur",function(){pui.Q(a,"ui-focus")});N(a,"mousedown",h);N(a,"touchstart",
h);N(document,"mouseup",o);N(document,"touchend",o)};this.setText=function(h){c.innerHTML=h};this.Qb=function(h){if(h==null||h==""||pui.p(h))h="a";if(h.length>1)h=h.substr(0,1);h=h.toLowerCase();if(f!=h){for(var o=a.className.split(" "),p=0;p<o.length;p++){var s=o[p];if(s.length>2&&s.substr(s.length-2,2)=="-"+f){o=s.substr(0,s.length-1)+h;pui.Q(a,s);pui.Y(a,o);break}}f=h}};this.Gg=function(h){pui.Q(a,"ui-btn-icon-left");pui.Q(a,"ui-btn-icon-right");pui.Q(a,"ui-btn-icon-top");pui.Q(a,"ui-btn-icon-bottom");
h!="left"&&h!="right"||pui.Y(a,"ui-btn-icon-"+h)};this.setIcon=function(h){if(h=="left arrow")h="arrow-l";if(h=="right arrow")h="arrow-r";if(h=="up arrow")h="arrow-u";if(h=="down arrow")h="arrow-d";if(h==null)h="";if(h!="")h=" ui-icon-"+h;d.className="ui-icon"+h+k};this.ud=function(h){h==true?pui.Y(a,"ui-mini"):pui.Q(a,"ui-mini")};this.setDisabled=function(h){g=h};this.F=function(h){if(!(h==null||pui.p(h))){a.style.borderTopLeftRadius="";a.style.borderTopRightRadius="";a.style.borderBottomLeftRadius=
"";a.style.borderBottomRightRadius="";b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";switch(h){case "left":a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";break;case "right":a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";break;case "top":a.style.borderTopRightRadius=
"0";a.style.borderTopLeftRadius="0";b.style.borderTopRightRadius="0";b.style.borderTopLeftRadius="0";break;case "bottom":a.style.borderBottomRightRadius="0";a.style.borderBottomLeftRadius="0";b.style.borderBottomRightRadius="0";b.style.borderBottomLeftRadius="0";break;case "all":a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";b.style.borderTopRightRadius=
"0";b.style.borderBottomRightRadius="0";break;default:break}}};this.setHeight=function(h){if(typeof h=="number")h+="px";a.style.height=h};this.setStyle=function(h,o){if(pui.p(o))o="";var p=h.split(" ");if(p.length==2)h=p[0]+p[1].substr(0,1).toUpperCase()+p[1].substr(1);if(h=="textAlign")a.style[h]=o;else c.style[h]=o};this.yp=function(h){if(!l.designMode)a.href=h};this.Gp=function(h){if(!l.designMode)a.target=h};this.Tl=function(h){if(l.a!=null){if(h!=null)l.a.style.height=h;if(l.a.style.height!=
null&&l.a.style.height!=""&&c.innerHTML.toLowerCase().indexOf("<br")<0){h=a.offsetHeight-26;if(h<0)h=0;c.style.lineHeight=h+"px"}else c.style.lineHeight=null}};this.Sh=this.Zb=function(){return a};this.lc=function(){return b};this.Uh=function(){return c};this.sd=function(h){for(var o=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],p=0;p<o.length;p++){var s=o[p],t=h[s];t!=null&&l.setStyle(s,
t)}}};pui.widgets.yq=function(a){var b={};for(var c in a)b[c]=a[c];if(b.value==null)b.value="Click Here";if(b.width==null)b.width="160px";if(b.height==null)b.height="42px";if(b.theme==null)b.theme="c - Gray";a=document.createElement("div");a.style.width=b.width;a.style.height=b.height;c=new pui.$g;c.a=a;c.designMode=true;c.Ld=true;c.init();c.setText(b.value);c.Qb(b.theme);c.setIcon(b.icon);c.Gg(b["icon position"]);c.ud(b["small button"]=="true");c.F(b["straight edge"]);return a};
pui.widgets.add({name:"css button",newValue:"Click Here",Lb:true,defaults:{width:"160px",theme:"c - Gray"},Pd:function(a){switch(a.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":a.dom.button.setStyle(a.propertyName,a.value);break;default:break}},propertySetters:{"field type":function(a){var b=new pui.$g;b.a=a.dom;b.designMode=
a.design;a.dom.innerHTML="";if(!a.design&&a.properties["hyperlink reference"]==null&&a.properties.target==null)b.mm=true;b.init();a.dom.button=b;b.setText(a.evalProperty("value"));b.Qb(a.evalProperty("theme"));b.setIcon(a.evalProperty("icon"));b.Gg(a.evalProperty("icon position"));b.ud(a.evalProperty("small button")=="true");b.F(a.evalProperty("straight edge"));b.setHeight("100%")},theme:function(a){a.dom.button.Qb(a.value)},value:function(a){a.dom.button.setText(a.value)},icon:function(a){a.dom.button.setIcon(a.value)},
"icon position":function(a){a.dom.button.Gg(a.value)},"small button":function(a){a.dom.button.ud(a.value=="true"||a.value==true)},disabled:function(a){a.dom.button.setDisabled(a.value=="true"||a.value==true)},"straight edge":function(a){a.dom.button.F(a.value)},"hyperlink reference":function(a){var b=a.value;if(a.designMode)b=null;a.dom.button.yp(b)},target:function(a){a.dom.button.Gp(a.value)},height:function(a){a.dom.button.Tl(a.value)},visibility:function(a){if(!a.design)a.dom.firstChild.style.display=
a.value=="hidden"?"none":""}}});pui.bh=function(){this.a=null;this.type="body";this.Hc=false;var a,b,c,d,f="c",g=this;this.init=function(){a=document.createElement("span");b=document.createElement("span");if(g.type=="header")c=document.createElement("span");a.className="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-"+f+" no-shadow";a.style.marginTop="0";a.style.marginBottom="0";a.style.cursor="default";b.className="ui-btn-inner ui-btn-corner-all";if(g.type=="header"){c.className="ui-btn-text";b.appendChild(c)}if(g.Hc&&g.type=="body"){d=
document.createElement("div");d.setAttribute("container","true");d.style.position="absolute";d.style.width="100%";d.style.height="100%";d.style.overflow="hidden";a.appendChild(d)}a.appendChild(b);g.a.appendChild(a)};this.setText=function(k){if(g.type=="header"){if(k==null||pui.p(k)||pui.mb(k))k="";c.innerHTML=k}};this.Qb=function(k){if(k==null||k==""||pui.p(k))k="c";if(k.length>1)k=k.substr(0,1);k=k.toLowerCase();if(f!=k){for(var l=a.className.split(" "),h=0;h<l.length;h++){var o=l[h];if(o.length>
2&&o.substr(o.length-2,2)=="-"+f){l=o.substr(0,o.length-1)+k;pui.Q(a,o);pui.Y(a,l);break}}f=k}};this.F=function(k){if(!(k==null||pui.p(k))){a.style.borderTopLeftRadius="";a.style.borderTopRightRadius="";a.style.borderBottomLeftRadius="";a.style.borderBottomRightRadius="";b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";switch(k){case "left":a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";b.style.borderTopLeftRadius=
"0";b.style.borderBottomLeftRadius="0";break;case "right":a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";break;case "top":a.style.borderTopRightRadius="0";a.style.borderTopLeftRadius="0";b.style.borderTopRightRadius="0";b.style.borderTopLeftRadius="0";break;case "bottom":a.style.borderBottomRightRadius="0";a.style.borderBottomLeftRadius="0";b.style.borderBottomRightRadius="0";b.style.borderBottomLeftRadius=
"0";break;case "all":a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";break;default:break}}};this.setHeight=function(k){if(typeof k=="number")k+="px";a.style.height=k};this.setStyle=function(k,l){if(g.type=="header"){if(pui.p(l))l="";var h=k.split(" ");if(h.length==2)k=h[0]+h[1].substr(0,
1).toUpperCase()+h[1].substr(1);if(k=="textAlign")a.style[k]=l;else c.style[k]=l}};this.sd=function(k){for(var l=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],h=0;h<l.length;h++){var o=l[h],p=k[o];p!=null&&g.setStyle(o,p)}};this.Tl=function(k){if(g.type=="header")if(g.a!=null){if(k!=null)g.a.style.height=k;if(g.a.style.height!=null&&g.a.style.height!=""){k=link.offsetHeight-26;if(k<0)k=
0;c.style.lineHeight=k+"px"}else c.style.lineHeight=null}};this.Zb=function(){return a};this.lc=function(){return a};this.Uh=function(){return c}};
pui.ah=function(){this.a=null;this.Hc=false;var a,b,c,d,f=true,g=40,k="none",l=this;this.init=function(){a=document.createElement("div");b=document.createElement("div");a.style.position="absolute";a.style.left="0px";a.style.top="0px";a.style.width="100%";b.style.position="absolute";b.style.left="0px";b.style.width="100%";c=new pui.bh;c.type="header";c.Hc=l.Hc;c.a=a;c.init();c.Qb("b");c.setHeight("100%");d=new pui.bh;d.type="body";d.Hc=l.Hc;d.a=b;d.init();d.setHeight("100%");l.F("none");l.a.appendChild(a);
l.a.appendChild(b);l.resize();var h=l.a.parentNode;h!=null&&h.Bb==true&&l.Yk();h==null&&setTimeout(function(){var o=l.a.parentNode;o!=null&&o.Bb==true&&l.Yk()},0)};this.Yk=function(){var h=l.a.parentNode;N(a,"mousedown",function(o){function p(B){var v=Cb(B);B=Db(B);if(v<0)v=0;if(B<0)B=0;h.style.top=A-y+B+"px";h.style.left=z-t+v+"px"}function s(){eb(document,"mousemove",p);eb(document,"mouseup",s)}var t=Cb(o),y=Db(o),z=parseInt(h.style.left),A=parseInt(h.style.top);N(document,"mousemove",p);N(document,
"mouseup",s);Ma(o)});N(a,"touchstart",function(o){if(o.touches.length==1){o=o.touches[0];h.s={};h.s.startX=o.pageX;h.s.startY=o.pageY;h.s.Ha=parseInt(h.style.left);h.s.na=parseInt(h.style.top)}});N(a,"touchmove",function(o){if(o.touches.length==1){var p=o.touches[0],s=p.pageY;h.style.left=h.s.Ha-h.s.startX+p.pageX+"px";h.style.top=h.s.na-h.s.startY+s+"px";o.preventDefault()}});a.style.cursor="move";a.firstChild.style.cursor="move"};this.nf=function(h){a.style.display=h?"":"none";f=h;l.F(k);l.resize()};
this.of=function(h){h=parseInt(h);if(isNaN(h)||h<=0)h=40;g=h;l.resize()};this.F=function(h){if(!(h==null||pui.p(h))){k=h;if(f)switch(h){case "left":c.F("left");c.Zb().style.borderBottomRightRadius="0";c.lc().style.borderBottomRightRadius="0";d.F("left");d.Zb().style.borderTopRightRadius="0";d.lc().style.borderTopRightRadius="0";break;case "right":c.F("right");c.Zb().style.borderBottomLeftRadius="0";c.lc().style.borderBottomLeftRadius="0";d.F("right");d.Zb().style.borderTopLeftRadius="0";d.lc().style.borderTopLeftRadius=
"0";break;case "top":c.F("all");d.F("top");break;case "bottom":c.F("bottom");d.F("all");break;case "all":c.F("all");d.F("all");break;default:c.F("bottom");d.F("top");break}else d.F(h)}};this.setText=function(h){c.setText(h)};this.Uh=function(){return c.Uh()};this.setStyle=function(h,o){c.setStyle(h,o)};this.sd=function(h){c.sd(h)};this.Vc=function(h){c.Qb(h)};this.Uc=function(h){d.Qb(h)};this.resize=function(h){var o;if(typeof h=="string")if(h.length<3||h.substr(h.length-2,2)!="px")h=null;o=h!=null&&
!isNaN(parseInt(h))?parseInt(h):l.a.offsetHeight;h=g;f||(h=-1);o=o-h-5;if(o<0)o=0;if(f)a.style.height=h+"px";b.style.top=h+1+"px";b.style.height=o+"px"};this.setHeight=function(h){l.a.style.height=h;l.resize(h)};this.Bq=function(){return c.Zb()};this.Aq=function(){return g}};
pui.widgets.zq=function(a){var b={};for(var c in a)b[c]=a[c];if(b.value==null)b.value="Panel Title";if(b.width==null)b.width="200px";if(b.height==null)b.height="300px";if(b["header theme"]==null)b["header theme"]="B - Blue";if(b["body theme"]==null)b["body theme"]="C - Gray";a=document.createElement("div");a.style.width=b.width;a.style.height=b.height;a.style.position="relative";c=new pui.ah;c.a=a;c.init();c.setText(b.value);c.Vc(b["header theme"]);c.Uc(b["body theme"]);c.F(b["straight edge"]);c.nf(b["has header"]!==
"false"&&b["has header"]!==false);c.of(b["header height"]);c.setHeight(b.height);return a};
pui.widgets.add({name:"css panel",menuName:"CSS Panel",newId:"Panel",newValue:"Panel Title",Lb:true,defaults:{width:"200px",height:"300px","z index":"8"},Pd:function(a){switch(a.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":a.dom.panel.setStyle(a.propertyName,a.value);break;default:break}},propertySetters:{"field type":function(a){a.dom.sizeMe=
function(){a.dom.panel.resize()};var b=new pui.ah;b.a=a.dom;a.dom.innerHTML="";b.init();a.dom.panel=b;var c=a.evalProperty("height");c!=null&&b.setHeight(c);b.setText(a.evalProperty("value"));b.Vc(a.evalProperty("header theme"));b.Uc(a.evalProperty("body theme"));b.F(a.evalProperty("straight edge"));c=a.evalProperty("has header");c=c!=="false"&&c!==false;b.nf(c);b.of(a.evalProperty("header height"))},"header theme":function(a){a.dom.panel.Vc(a.value)},"body theme":function(a){a.dom.panel.Uc(a.value)},
value:function(a){a.dom.panel.setText(a.value)},"straight edge":function(a){a.dom.panel.F(a.value)},"has header":function(a){a.dom.panel.nf(a.value!=="false"&&a.value!==false)},"header height":function(a){a.dom.panel.of(a.value)},height:function(a){a.dom.panel.setHeight(a.value)}}});var Sb=null,Tb=[],Ub=0;pui.currentDateField=null;
function Vb(a,b,c){var d,f,g,k=0;if(pui.locale&&pui.locales[pui.locale])g=pui.locale;else{if(M=="dspf"&&a.L)g=a.L.locale;else if(M=="genie")g=pui.K.config.locale;if(g=="")g=null}if(g){d=pui.locales[g].monthNames;dayNames=pui.locales[g].shortDayNames;f=[];if(pui.locales[g].weekStart)k=pui.locales[g].weekStart;for(g=0;g<dayNames.length;g++)f.push(dayNames[g])}else{d=["January","February","March","April","May","June","July","August","September","October","November","December"];f=["Su","Mo","Tu","We",
"Th","Fr","Sa"]}pui.currentDateField=a;b=b==null||b==""?new Date:Wb(b);if(b==null)b=new Date;g=b.getMonth();var l=new Date(b);for(l.setMonth(g-1);l.getMonth()==g;)l.setDate(l.getDate()-1);var h=new Date(b);h.setMonth(g+1);g=g+1;if(g==12)g=0;for(;h.getMonth()!=g;)h.setDate(h.getDate()-1);var o=new Date(b);o.setFullYear(b.getFullYear()-1);var p=new Date(b);p.setFullYear(b.getFullYear()+1);g=new Date(b);g.setDate(1);g.setDate(1-(7+g.getDay()-k)%7);(new Date(h)).setDate(0);var s=new Date;d=new String('<table cellspacing="0" border="0" width="100%">\n<tr><td class="brndrow1">\n<table cellspacing="0" cellpadding="4" border="0" width="100%">\n<tr>\n  <td class="brndrow1"><span arrow="1" style="cursor:pointer" onclick="show_calendar(pui.currentDateField, \''+
Xb(o)+"'+document.cal.time.value, '"+c+'\');"><img arrow="1" src="'+pui.normalizeURL("/profoundui/proddata/images/prev_year.png")+'" width="16" height="16" border="0" alt="previous month"></span><span arrow="1" style="cursor:pointer" onclick="show_calendar(pui.currentDateField, \''+Xb(l)+"'+document.cal.time.value, '"+c+'\');"><img arrow="1" src="'+pui.normalizeURL("/profoundui/proddata/images/prev_month.png")+'" width="16" height="16" border="0" alt="previous month"></span></td>\n  <td class="calendar" align="center" class="brndrow1" colspan="5"><font color="white" face="tahoma, verdana"><b>'+
d[b.getMonth()]+" "+b.getFullYear()+'</b></font></td>\n  <td class="brndrow1" align="right"><span arrow="1" style="cursor:pointer" onclick="show_calendar(pui.currentDateField, \''+Xb(h)+"'+document.cal.time.value, '"+c+'\');"><img arrow="1" src="'+pui.normalizeURL("/profoundui/proddata/images/next_month.png")+'" width="16" height="16" border="0" alt="next month"></span><span arrow="1" style="cursor:pointer" onclick="show_calendar(pui.currentDateField, \''+Xb(p)+"'+document.cal.time.value, '"+c+'\');"><img arrow="1" src="'+
pui.normalizeURL("/profoundui/proddata/images/next_year.png")+'" width="16" height="16" border="0" alt="next month"></span></td>\n</tr>\n');l=new Date(g);d+="<tr>\n";for(h=0;h<7;h++)d+='  <td class="calendar brndrow2" align="center"><font color="white" face="verdana, tahoma">'+f[(k+h)%7]+"</font></td>\n";for(d+="</tr>\n";l.getMonth()==b.getMonth()||l.getMonth()==g.getMonth();){d+="<tr>\n";for(f=0;f<7;f++){d+=l.getDate()==b.getDate()&&l.getMonth()==b.getMonth()?'  <td class="calendar" onmouseover="this.style.backgroundColor=\'yellow\'" onmouseout="this.style.backgroundColor=\'#FFB6C1\'" bgcolor="#FFB6C1" align="right"':
l.getDay()==0||l.getDay()==6?'  <td class="calendar" onmouseover="this.style.backgroundColor=\'yellow\'" onmouseout="this.style.backgroundColor=\'#eeeeee\'" bgcolor="#eeeeee" align="right"':'  <td class="calendar" onmouseover="this.style.backgroundColor=\'yellow\'" onmouseout="this.style.backgroundColor=\'white\'" bgcolor="white" align="right"';if(l.getDate()==s.getDate()&&l.getMonth()==s.getMonth()&&l.getYear()==s.getYear())d+='  style="border: 2px solid #CCCCFF;"';d+=l.getMonth()==b.getMonth()?
" onclick=\"javascript:pui.currentDateField.value='"+Yb(l,c,a.L)+'\'; calendar_select();"><font color="black" face="verdana, tahoma">':" onclick=\"javascript:pui.currentDateField.value='"+Yb(l,c,a.L)+'\'; calendar_select();"><font color="gray" face="verdana, tahoma">';d+=l.getDate()+"</font></td>\n";l.setDate(l.getDate()+1)}d+="</tr>\n"}d+='</table>\n</tr>\n</td>\n</table>\n<form name="cal"><input type="hidden" name="time" value="'+new String(b.getHours()+":"+b.getMinutes()+":"+b.getSeconds())+'">\n</form>\n';
Sb=document.getElementById("popcal");f=a.calimg;Sb.style.width="180px";Sb.innerHTML=d;c=Zb(f)+6;f=$b(f)+1+f.firstChild.height;if(parseInt(a.style.top)>250){f-=150;c+=11}a=pui.getWindowSize().width-230;if(a<0)a=0;if(c>a)c=a;Sb.style.left=c+"px";Sb.style.top=f+"px";setTimeout(function(){Sb.style.visibility="visible"},0)}function Wb(a){a=/^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/.exec(a);if(!a)return new Date;return new Date(a[3],a[2]-1,a[1],a[4],a[5],a[6])}
function Xb(a){return new String(a.getDate()+"-"+(a.getMonth()+1)+"-"+a.getFullYear()+" ")}
function Yb(a,b,c){var d=null;if(c!=null){var f;f=pui.locale&&pui.locales[pui.locale]?pui.locale:c.locale;if(pui["default date pattern"])d=pui["default date pattern"];else{d=c.dateFormat;if(d==null)d=c.customPattern}if(d!=null)return a.format(d,f)}if(c!=null&&c.dataLength=="8"&&c.decPos=="0"&&(b=="MM/DD/YY"||b=="DD/MM/YY"))b+="YY";if(c!=null&&c.dataLength=="6"&&c.decPos=="0"&&(b=="MM/DD/YYYY"||b=="DD/MM/YYYY"))b=b.substr(0,6);var g;c=new String(a.getMonth()+1);f=new String(a.getDate());d=new String(a.getFullYear());
a=c;if(c.length==1)a="0"+c;c=f;if(f.length==1)c="0"+f;if(d.length==4){g=d;f=d=d.substring(2,4)}else{f=d;g=d=d.substring(d.length-2,d.length)}b=b;b=b.replace("YYYY",g);b=b.replace("YY",f);b=b.replace("MM",a);return b=b.replace("DD",c)}function Zb(a){var b=0;if(a.offsetParent)for(;;){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b}
function $b(a){var b=0;if(a.offsetParent)for(;;){b+=a.offsetTop;if(!a.offsetParent)break;a=a.offsetParent}else if(a.y)b+=a.y;return b}function Pb(){if(Sb!=null){document.getElementById("popcal").style.visibility="hidden";Sb=null}}
function ac(a,b){if(b==null||b=="")b=M=="genie"?pui.K.config.defaultDateFormat:pui.defaultDateFormat;if(b==null||b=="")b="MM/DD/YY";var c='<img src="'+pui.normalizeURL("/profoundui/proddata/images/cal.gif")+'" width="16px" height="16px" border="0" alt="">',d=document.createElement("div");d.style.position="absolute";d.style.width="16px";d.innerHTML=c;d.style.left=parseInt(a.style.left)+a.offsetWidth+5+"px";c=parseInt(a.style.top);c+=parseInt((a.offsetHeight-22)/2);d.style.top=c+"px";d.style.visibility=
a.style.visibility;if(a.pui==null||a.pui.properties==null||a.pui.properties.visibility==null||a.pui.properties.visibility=="")if(M=="genie"&&a.w!=null&&a.w.attr!=null){c=a.w.attr;if(c=="27"||c=="2F"||c=="37"||c=="3F")d.style.visibility="hidden"}d.style.display="none";d.style.cursor="pointer";if(a.style.zIndex!=null)d.style.zIndex=a.style.zIndex;d.onclick=function(f){var g=Vb,k;a:{k=a.value;var l=b,h=a.L,o;if(!(o=k==null)){if(!(o=k==""))b:{o=k;for(var p=0;p<o.length;p++){var s=o.substr(p,1);if(s>=
"1"&&s<="9"){o=false;break b}}o=true}o=o}if(o)k="";else{o=k.substr(0,1);p=k.substr(1,1);if(o>="1"&&o<="9"&&p=="/")k="0"+k;if(o=h!=null){if(o=h.edtWrd!=null){if(o=h.edtWrd!="")b:{o=k;for(p=0;p<o.length;p++){s=o.substr(p,1);if(s<"0"||s>"9"){o=false;break b}}o=true}o=o}o=o}if(o)if(h.edtWrd=="'  /  /  '"&&k.length==6||h.edtWrd=="'  /  /    '"&&k.length==8)k=k.substr(0,2)+"/"+k.substr(2,2)+"/"+k.substr(4);if(h!=null&&h.dataLength=="8"&&h.decPos=="0"&&(l=="MM/DD/YY"||l=="DD/MM/YY"))l+="YY";if(h!=null&&
h.dataLength=="6"&&h.decPos=="0"&&(l=="MM/DD/YYYY"||l=="DD/MM/YYYY"))l=l.substr(0,6);o=null;if(h!=null){if(pui["default date pattern"])o=pui["default date pattern"];else{o=h.dateFormat;if(o==null)o=h.customPattern}if(o!=null){locale=pui.locale&&pui.locales[pui.locale]?pui.locale:h.locale;if(h=pui.formatting.Date.parse(k,o,locale)){k=h.format("d-m-Y 00:00:00",locale);break a}}}h="";o=l.indexOf("MM");if(o>=0)h=k.substr(o,2);if(h.substr(0,1)==" ")h="0"+h.substr(1,1);o="";p=l.indexOf("DD");if(p>=0)o=
k.substr(p,2);if(o.substr(0,1)==" ")o="0"+o.substr(1,1);p=p="";s=l.indexOf("YY");l=l.indexOf("YYYY");if(l>=0)p=k.substr(l,4);else if(s>=0){p=k.substr(s,2);k=2E3;if(Number(p)>39)k=1900;p=Number(p)+k}k=o+"-"+h+"-"+p+" 00:00:00"}}g(a,k,b);if(!f)f=window.event;if(f){f.cancelBubble=true;f.returnValue=false;f.preventDefault&&f.preventDefault();f.stopPropagation&&f.stopPropagation()}return false};if(a.parentNode!=null){a.parentNode.appendChild(d);a.calimg=d;Tb[Ub++]=a;pui.hg(a);if(document.getElementById("popcal")==
null){N(document,"click",function(f){for(f=La(f);f!=null;){if(f.id=="popcal"||f.getAttribute!=null&&f.getAttribute("arrow")=="1")return;f=f.parentNode}Pb()});d=document.createElement("div");d.style.position="absolute";d.style.width="180px";d.style.zIndex=100;d.style.visibility="hidden";d.id="popcal";document.body.appendChild(d)}}}
pui.hg=function(a){var b=a.calimg;if(b!=null){b.style.display="none";b.style.left=a.offsetLeft+a.offsetWidth+5+"px";var c=a.offsetTop;c+=parseInt((a.offsetHeight-22)/2);b.style.top=c+"px";b.style.display="block"}};pui.Wq=function(){for(var a=0;a<Ub;a++)pui.hg(Tb[a])};
pui.widgets.add({name:"date field",tag:"input",newId:"Date",Ai:pui.normalizeURL("/profoundui/proddata/images/cal.gif"),defaults:{"css class":"input"},propertySetters:{"field type":function(a){a.dom.value=a.evalProperty("value");if(!a.design){if(a.dom.tagName=="INPUT"&&!a.dom.readOnly&&!a.dom.disabled){var b;b=a.properties["date format"];if(b==null||b=="")b=M=="genie"?pui.K.config.defaultDateFormat:pui.defaultDateFormat;if(b==null||b=="")b="MM/DD/YY";setTimeout(function(){if(a.dom.calimg==null)ac(a.dom,
b);else if(M=="genie"){a.dom.calimg.parentNode.removeChild(a.dom.calimg);a.dom.calimg=null;ac(a.dom,b)}},1)}if(pui.Z&&!pui.Ic){N(a.dom,"focus",function(){Ra("ipadKeyboard").style.display=""});N(a.dom,"blur",function(){Ra("ipadKeyboard").style.display="none"})}a.dom.sizeMe=function(){pui.hg(a.dom)};a.dom.be=function(){pui.hg(a.dom)}}if(a.design){a.dom.readOnly=true;a.dom.sizeMe=function(){var c=a.e;c.Rf();c.Te()};a.dom.be=function(){var c=a.e;c.Rf();c.Te()}}},value:function(a){a.dom.value=a.value},
"input type":function(a){try{a.design||a.dom.setAttribute("type",a.value)}catch(b){}},visibility:function(a){if(a.dom.calimg)a.dom.calimg.style.visibility=a.value=="hidden"?"hidden":""}}});pui.widgets.add({name:"field set panel",Ac:false,tag:"fieldset",newId:"FieldSet",newValue:"Field Set",a:true,Lb:true,defaults:{width:"300px",height:"200px","z index":"8"},propertySetters:{"field type":function(a){var b="";if(a.evalProperty("color")!=null&&a.evalProperty("color")!=" ")b=' style="color: '+a.evalProperty("color")+';"';var c=a.evalProperty("value");a.dom.innerHTML=c!=null&&c!=""?"<legend"+b+">"+c+"</legend>":""},value:function(a){var b="";if(a.evalProperty("color")!=null&&a.evalProperty("color")!=
" ")b=' style="color: '+a.evalProperty("color")+';"';var c=a.value;a.dom.innerHTML=c!=null&&c!=""?"<legend"+b+">"+c+"</legend>":""},color:function(a){var b=a.dom.firstChild;if(b!=null&&b.tagName=="LEGEND")b.style.color=a.value}}});pui.fileupload={};
pui.fileupload.eh=function(a){function b(L){L=L||window.event;if(A!=null){L.cancelBubble=true;L.returnValue=false;L.preventDefault&&L.preventDefault();L.stopPropagation&&L.stopPropagation();return false}}function c(L){L=L||window.event;var S=L.target||L.srcElement;if(A==null){S=S.Fi;s[S].parentNode.removeChild(s[S]);s.splice(S,1);g.render()}L.cancelBubble=true;L.returnValue=false;L.preventDefault&&L.preventDefault();L.stopPropagation&&L.stopPropagation();return false}function d(L){L=L||window.event;
g.clear();L.cancelBubble=true;L.returnValue=false;L.preventDefault&&L.preventDefault();L.stopPropagation&&L.stopPropagation();return false}function f(L){L=L||window.event;if(A==null&&!Sa()&&!pui.K.Ab){if(g.getCount()==0){pui.alert(pui.getLanguageText("runtimeMsg","upload no files"));return}else{var S=g.pj();S||(S=g.rj());if(S){pui.alert(S);return}}g.upload()}if(L){L.cancelBubble=true;L.returnValue=false;L.preventDefault&&L.preventDefault();L.stopPropagation&&L.stopPropagation();return false}}var g=
this,k=Za("PUI0009109.PGM"),l,h,o,p,s=[],t,y,z=1,A,B="",v=false,I=false,G=1,E=10,C="",u="",K=false,ba=[],Y;h=ab("iframe","frame_"+a.id);h.src=pui.normalizeURL("/profoundui/proddata/html/blank.html");h.className="upload-frame";h.style.display="none";a.appendChild(h);(function(){l=document.createElement("form");l.enctype="multipart/form-data";l.encoding="multipart/form-data";l.method="post";l.target="frame_"+a.id;l.className="upload-form";var L=ab("input","flimit");L.type="hidden";l.appendChild(L);
L=ab("input","slimit");L.type="hidden";l.appendChild(L);L=ab("input","altname");L.type="hidden";l.appendChild(L);L=ab("input","dir");L.type="hidden";l.appendChild(L);L=ab("input","overwrite");L.type="hidden";l.appendChild(L);a.appendChild(l)})();o=document.createElement("div");o.className="control-box";l.appendChild(o);h=document.createElement("div");h.className="list-box";p=document.createElement("table");p.className="list";h.appendChild(p);l.appendChild(h);this.render=function(){if(!I||s.length==
0){var L;if(!I)if(s.length>0){L=s[s.length-1];if(L.input.value==""){L.parentNode.removeChild(L);s.splice(s.length-1,1)}else L.style.display="none"}L=document.createElement("a");L.className="control-proxy";L.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload select text")));var S=document.createElement("input");S.name="file";S.type="file";S.className="control";if(I){S.multiple=true;I=typeof S.files!="undefined"}if(S.attachEvent){S.attachEvent("onchange",g.render);L.attachEvent("onclick",
b)}else if(S.addEventListener){S.addEventListener("change",g.render,false);L.addEventListener("click",b,false)}L.input=S;s.push(L);L.appendChild(S);if(t==null){t=document.createElement("a");t.href="javascript: void(0);";t.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload clear text")));t.className="clear";if(t.attachEvent)t.attachEvent("onclick",d);else t.addEventListener&&t.addEventListener("click",d,false);o.appendChild(t)}t==null?o.appendChild(L):o.insertBefore(L,t);
if(M=="genie"){if(y==null){y=document.createElement("a");y.href="javascript: void(0);";y.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload upload text")));y.className="upload"}if(y.attachEvent)y.attachEvent("onclick",f);else y.addEventListener&&y.addEventListener("click",f,false);o.appendChild(y)}}p.tBodies.length>0&&p.removeChild(p.tBodies[0]);L=p.appendChild(document.createElement("tbody"));S=[];var Z=[];if(I)for(var ea=0;ea<s[0].input.files.length;ea++){S.push(s[0].input.files[ea].name);
Z.push(s[0].input.files[ea].size)}else for(ea=0;ea<s.length;ea++)s[ea].input.value!=""&&S.push(s[ea].input.value.substr(s[ea].input.value.lastIndexOf("\\")+1));for(ea=0;ea<S.length;ea++){var aa;if(I){aa=Z[ea];var fa=2,e=["B","KB","MB","GB","TB"];aa=Math.max(aa,0);var ia=Math.floor((aa?Math.log(aa):0)/Math.log(1024));ia=Math.min(ia,e.length-1);aa/=Math.pow(1024,ia);fa=typeof fa=="number"?fa:0;aa=" ("+(Math.round(aa*Math.pow(10,fa))/Math.pow(10,fa)+" "+e[ia])+")"}else aa="";fa=S[ea]+aa;e=L.insertRow(-1);
e.className="row";e.className+=ea%2==0?" even":" odd";aa=e.insertCell(-1);aa.className="name-col";aa.title=fa;aa.appendChild(document.createTextNode(fa));if(!I){aa=e.insertCell(-1);aa.className="remove-col";fa=document.createElement("a");fa.href="javascript: void(0);";fa.className="remove";fa.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload remove text")));fa.Fi=ea;if(fa.attachEvent)fa.attachEvent("onclick",c);else fa.addEventListener&&fa.addEventListener("click",c,false);
aa.appendChild(fa)}}};this.Yi=function(L){if(L!=null&&!isNaN(L))G=L};this.$i=function(L){if(L!=null&&!isNaN(L))E=L};this.setMode=function(L){if(L=="enhanced"&&!I||L!="enhanced"&&I){I=L=="enhanced";this.clear()}};this.Wf=function(){return C};this.Nd=function(){var L=[];if(I)for(var S=0;S<s[0].input.files.length;S++)L.push(s[0].input.files[S].name);else for(S=0;S<s.length;S++)s[S].input.value!=""&&L.push(s[S].input.value.substr(s[S].input.value.lastIndexOf("\\")+1));return L};this.bj=function(L){if(typeof L==
"string"){C=L;if(C.length>1&&C.charAt(C.length-1)=="/")C=C.substr(0,C.length-1)}};this.Wi=function(L){if(typeof L=="string")u=L};this.setDisabled=function(L){v=L;for(L=0;L<s.length;L++)s[L].input.disabled=v};this.Zi=function(L){if(typeof L=="boolean")K=L};this.cj=function(L){Y=L};this.Vi=function(L){if(L&&L.constructor&&L.constructor.toString().indexOf("function Array")!=-1)ba=L};this.getCount=function(){return I?s[0].input.files.length:s.length-1};this.pj=function(){if(this.getCount()>G)return pui.getLanguageText("runtimeMsg",
"upload file limit",[G])};this.rj=function(){if(!I)for(var L=this.Nd(),S={},Z=0;Z<L.length;Z++){if(typeof S[L[Z]]!="undefined")return pui.getLanguageText("runtimeMsg","upload duplicate file");S[L[Z]]=true}};this.upload=function(){if(!(A!=null||M=="genie"&&pui.K.Ab)){A={};B="";if(typeof window.cordova!="undefined"){var L={};L.dir=C;L.overwrite=K;L.flimit=G;L.slimit=E;L.altname=u;L.allowedTypes=ba;L.files=[];if(I)for(var S=0;S<s[0].input.files.length;S++)L.files.push(s[0].input.files[S]);else for(S=
0;S<s.length-1;S++)L.files[S]=s[S].input.files[0];pui.upload(L,function(Z,ea){Z||(B=ea);A=null})}else{if(M=="genie"){pui.K.Ab=true;pui.uc()}l.action=k;l.action+="?AUTH=";if(pui.appJob&&pui.appJob.auth)l.action+=encodeURIComponent(pui.appJob.auth);l.action+="&trans="+encodeURIComponent(z);l.action+="&id="+encodeURIComponent(a.id);l.elements.flimit.value=G;l.elements.slimit.value=E;l.elements.dir.value=C;l.elements.altname.value=u;for(l.elements.overwrite.value=K?"1":"0";l.elements.type;)l.elements.type.length?
l.removeChild(l.elements.type[0]):l.removeChild(l.elements.type);for(S=0;S<ba.length;S++){L=ab("input","type");L.type="hidden";L.value=ba[S];l.appendChild(L)}A=setTimeout(function(){g.If(z,{success:false,error:pui.getLanguageText("runtimeMsg","upload timeout")})},864E5);if(!I)s[s.length-1].input.disabled=true;l.submit()}}};this.completeTransaction=function(L,S){if(!(A==null||L!=z)){clearTimeout(A);var Z;if(typeof S=="string")try{Z=eval("("+S+")")}catch(ea){Z={success:false,error:pui.getLanguageText("runtimeMsg",
"upload invalid response")}}else Z=S;if(!Z.success){if(Z.key)Z.error=pui.getLanguageText("runtimeMsg","upload "+Z.key);B=Z.error;if(Z.key=="file limit")B=B.replace("&1",G);if(Z.key=="size limit")B=B.replace("&1",E)}if(!I)s[s.length-1].input.disabled=false;A=null;z++;if(M=="genie"){pui.K.Ab=false;pui.Ya(true);Z.success==true?this.Ch():pui.alert(Z.error)}}};this.Qk=function(){return A!=null};this.uk=function(){return B};this.getId=function(){return a.id};this.Ch=function(){if(Y&&Y!=""){var L={};L.dir=
this.Wf();L.names=this.Nd();(function(S){eval("var info = arguments[0];");try{var Z=eval(Y);typeof Z=="function"&&Z(S)}catch(ea){pui.alert("onupload Error:\n"+ea.message)}})(L)}};this.clear=function(){if(A==null&&!v){for(;s.length>0;){s[s.length-1].parentNode.removeChild(s[s.length-1]);s.pop()}this.render()}}};pui.Qo=function(a){if(pui.sb.length>0){for(var b=0;b<pui.sb.length;b++)pui.sb[b].upload();pui.Xj(a);return true}else return false};
pui.Xj=function(a){for(var b=true,c=0;c<pui.sb.length;c++)if(pui.sb[c].Qk()){b=false;break}if(b){b={};var d=true;for(c=0;c<pui.sb.length;c++){var f=pui.sb[c].uk();if(f!=""){d=false;b[pui.sb[c].getId()]=f}}if(d){for(c=0;c<pui.sb.length;c++){var g=pui.sb[c];b=g.To;needResponse=true;d=g.getCount();if(d>99)d=99;for(d=String(d);d.length<3;)d="0"+d;f=g.Wf();if(f.length>256)f=f.substr(0,256);else for(;f.length<256;)f+=" ";g=g.Nd();for(var k="",l=0;l<g.length;l++){var h=g[l];if(h.length>256)h=h.substr(0,
256);else for(;h.length<256;)h+=" ";k+=h}a[b]=d+f+k}pui.submitResponse(a)}else pui.hn(b)}else setTimeout(function(){pui.Xj(a)},250)};
pui.widgets.add({name:"file upload",newId:"FileUpload",menuName:"File Upload",defaults:{width:"400px",height:"150px","css class":"pui-file-upload","selection mode":"standard","size limit":"10","number of files":"1","overwrite files":"false"},propertySetters:{"field type":function(a){if(a.dom.fileUpload==null){a.dom.fileUpload=new pui.fileupload.eh(a.dom);M=="dspf"&&pui.sb.push(a.dom.fileUpload)}for(var b=1,c="allowed type",d=[];typeof a.properties[c]=="string";){d.push(a.evalProperty(c));c="allowed type "+
++b}a.dom.fileUpload.Vi(d);a.dom.fileUpload.render()},"selection mode":function(a){a.dom.fileUpload.setMode(a.value)},"number of files":function(a){a.design||a.dom.fileUpload.Yi(parseInt(a.value,10))},"size limit":function(a){a.design||a.dom.fileUpload.$i(parseInt(a.value,10))},"target directory":function(a){a.design||a.dom.fileUpload.bj(bb(a.value))},"rename to":function(a){a.design||a.dom.fileUpload.Wi(bb(a.value))},"overwrite files":function(a){a.design||a.dom.fileUpload.Zi(a.value=="true"||a.value==
true)},onupload:function(a){a.design||a.dom.fileUpload.cj(a.newValue)},disabled:function(a){a.design||a.dom.fileUpload.setDisabled(a.value=="true")}}});pui.fileUploadDND={};
pui.fileUploadDND.eh=function(a){function b(J){J=J||event;J.returnValue=false;J.stopPropagation&&J.stopPropagation();J.preventDefault&&J.preventDefault();if(fa||Y!==null||Sa()||pui.hi)return false;J.dataTransfer.tq="copy";pui.Y(I,"dragover");return false}function c(J){J=J||event;J.returnValue=false;J.stopPropagation&&J.stopPropagation();J.preventDefault&&J.preventDefault();pui.Q(I,"dragover");return false}function d(J){J=J||event;J.returnValue=false;J.stopPropagation&&J.stopPropagation();J.preventDefault&&
J.preventDefault();if(!(fa||Y!==null||M==="genie"&&pui.K.Ab||Sa()||pui.hi))if(J.dataTransfer.files===null||J.dataTransfer.files===undefined)console.log("Browser doesn't support dataTransfer.files API");else{pui.Q(this,"dragover");if(C.length>0&&(C[0].mk||L.length>0))for(;C.length>0;)C.pop();s();if(C.length+J.dataTransfer.files.length>e)o(pui.getLanguageText("runtimeMsg","upload file limit",[e]));else if(J.dataTransfer.files.length>0){W=J.dataTransfer.files;T=0;f()}else o(pui.runtimeMsg.en_US["upload invalid type"])}}
function f(){var J=new FileReader;J.onload=function(){W[T].Nk=true;if(T==W.length-1)g();else{T++;f()}};J.onerror=function(){W[T].Nk=false;if(T==W.length-1)g();else{T++;f()}};J.readAsArrayBuffer(W[T])}function g(){for(var J=[],V=false,ga=0;ga<W.length&&!V;ga++){for(var pa=false,va=0;va<C.length;va++)if(C[va].name===W[ga].name){pa=true;break}va=W[ga].type.replace(/image\/jpeg/i,"image/jpg");if(!(ya.length<=0||ya.indexOf(va)>=0)||!W[ga].Nk){V=true;o(pui.runtimeMsg.en_US["upload invalid type"])}else if(pa){V=
true;o(pui.runtimeMsg.en_US["upload duplicate file"])}else if(W[ga].size>ia*1048576){V=true;o(pui.getLanguageText("runtimeMsg","upload size limit",[ia]))}else J.push(W[ga])}if(!V)for(ga=0;ga<J.length;ga++)C.push(J[ga]);if(C.length>0&&!ea&&!aa){u.style.display="";if(M==="genie")sa.style.display=""}A.render();if(aa&&M==="genie")A.upload();else if(M==="dspf"&&ea&&C.length>0){pui.Qa="Enter";pui.click()}}function k(){G.value=100;var J,V=ba;if((J=Z.responseText.match(/completeTransaction\((\d),(\{[^\}]+\})\)/i))&&
J.length>0){V=parseInt(J[1],10);J=J[2].replace(/'/g,'"');J=JSON.parse(J)}else J={success:false,error:pui.getLanguageText("runtimeMsg","upload invalid response")};A.If(V,J)}function l(J){if(J.lengthComputable)G.value=J.loaded/J.total*100|0}function h(){G.value=0;var J={success:false,error:pui.getLanguageText("runtimeMsg","upload cancelled")};A.If(ba,J)}function o(J){if(M==="genie"){ja.style.display="";ja.innerHTML=J}else{S!==null&&S.hide();S=new pui.xf(B);S.he(J);S.show()}}function p(J){J=J||window.event;
J.cancelBubble=true;J.returnValue=false;J.preventDefault&&J.preventDefault();J.stopPropagation&&J.stopPropagation();if(Y!==null)return false;C.splice((J.target||J.srcElement).Fi,1);A.render();if(C.length==0)A.clear();else{s();if(M==="genie")sa.style.display=""}return false}function s(){if(M==="genie")ja.style.display="none";if(S!==null){S.hide();S=null}L="";G.value=0}function t(J){J=J||window.event;A.clear();J.cancelBubble=true;J.returnValue=false;J.preventDefault&&J.preventDefault();J.stopPropagation&&
J.stopPropagation();return false}function y(J){J=J||window.event;Y===null&&!Sa()&&!pui.K.Ab&&A.upload();if(J){J.cancelBubble=true;J.returnValue=false;J.preventDefault&&J.preventDefault();J.stopPropagation&&J.stopPropagation();return false}}function z(J){J=J||window.event;J.preventDefault&&J.preventDefault();J.stopPropagation&&J.stopPropagation();J.cancelBubble=true;J.returnValue=false;Z&&Z.abort&&Z.abort();return false}var A=this,B=a,v=Za("PUI0009109.PGM"),I,G,E,C=[],u=null,K=null,ba=1,Y=null,L="",
S=null,Z=null,ea=false,aa=false,fa=false,e=1,ia=10,da="",ta="",Aa=false,ya=[],ua;if(M==="genie")var ja,sa=null;var W=null,T=0;(function(){var J=true;if(!window.File||!window.FileList||!window.FileReader)J=false;I=document.createElement("div");I.className="drop-box";var V=pui.getLanguageText("runtimeText","upload drophere text");if(!J){V=pui.getLanguageText("runtimeText","upload browser unsupported");I.style.whiteSpace="pre-wrap";I.style.overflowX="auto"}V=document.createTextNode(V);I.appendChild(V);
if(J&&I.addEventListener){I.addEventListener("dragover",b);I.addEventListener("dragleave",c);I.addEventListener("drop",d)}B.appendChild(I)})();a=document.createElement("div");a.className="control-box";u=document.createElement("a");u.className="clear-files";u.style.display="none";u.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload clear text")));if(u.attachEvent)u.attachEvent("onclick",t);else u.addEventListener&&u.addEventListener("click",t,false);a.appendChild(u);if(M===
"genie"){sa=document.createElement("a");sa.className="upload-files";sa.style.display="none";sa.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload upload text")));if(sa.attachEvent)sa.attachEvent("onclick",y);else sa.addEventListener&&sa.addEventListener("click",y,false);a.appendChild(sa)}G=document.createElement("progress");G.id="progbar_"+B.id;G.max=100;G.value=0;a.appendChild(G);K=document.createElement("a");K.className="abort-upload";K.appendChild(document.createTextNode("[x]"));
K.style.visibility="hidden";if(K.attachEvent)K.attachEvent("onclick",z);else K.addEventListener&&K.addEventListener("click",z);a.appendChild(K);if(M==="genie"){ja=document.createElement("p");ja.className="error";ja.style.display="none";a.appendChild(ja)}B.appendChild(a);a=document.createElement("div");a.className="list-box";E=document.createElement("table");E.className="list";a.appendChild(E);B.appendChild(a);this.render=function(){E.tBodies.length>0&&E.removeChild(E.tBodies[0]);var J=E.appendChild(document.createElement("tbody"));
if(L.length>0&&M==="genie")ja.innerHTML=L;for(var V=0;V<C.length;V++){var ga=C[V].size,pa=2,va=["B","KB","MB","GB","TB"];ga=Math.max(ga,0);var za=Math.floor((ga?Math.log(ga):0)/Math.log(1024));za=Math.min(za,va.length-1);ga/=Math.pow(1024,za);pa=typeof pa==="number"?pa:0;pa=C[V].name+(" ("+(Math.round(ga*Math.pow(10,pa))/Math.pow(10,pa)+" "+va[za])+")");va=J.insertRow(-1);va.className="row";va.className+=V%2===0?" even":" odd";ga=va.insertCell(-1);ga.className="name-col";ga.title=pa;ga.appendChild(document.createTextNode(pa));
ga=va.insertCell(-1);ga.className="remove-col";if(C[V].mk){ga=va.insertCell(-1);ga.className="status-col";pa=document.createTextNode(pui.getLanguageText("runtimeText","upload finished text"));ga.appendChild(pa)}else{pa=document.createElement("a");pa.href="javascript: void(0);";pa.className="remove";pa.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload remove text")));pa.Fi=V;if(pa.attachEvent)pa.attachEvent("onclick",p);else pa.addEventListener&&pa.addEventListener("click",
p,false);ga.appendChild(pa)}}};this.np=function(J){ea=J===true||J==="true"};this.op=function(J){aa=J===true||J==="true"};this.Yi=function(J){if(J!==null&&!isNaN(J))e=J};this.$i=function(J){if(J!==null&&!isNaN(J))ia=J};this.bj=function(J){if(typeof J==="string"){da=J;if(da.length>1&&da.charAt(da.length-1)==="/")da=da.substr(0,da.length-1)}};this.Wi=function(J){if(typeof J==="string")ta=J};this.setDisabled=function(J){fa=J==="true"||J===true};this.Zi=function(J){if(J==="true"||J===true)Aa=J};this.cj=
function(J){ua=J};this.Vi=function(J){if(J&&J.constructor&&J.constructor.toString().indexOf("function Array")!==-1)ya=J};this.Wf=function(){return da};this.Nd=function(){for(var J=[],V=0;V<C.length;V++)J.push(C[V].name);return J};this.getCount=function(){return C.length};this.Qk=function(){return Y!==null};this.uk=function(){return L};this.getId=function(){return B.id};this.pj=function(){if(this.getCount()>e)return pui.getLanguageText("runtimeMsg","upload file limit",[e])};this.rj=function(){for(var J=
this.Nd(),V={},ga=0;ga<J.length;ga++){if(typeof V[J[ga]]!=="undefined")return pui.getLanguageText("runtimeMsg","upload duplicate file");V[J[ga]]=true}};this.upload=function(){if(!(L.length>0)){s();u.style.display="none";if(M==="genie")sa.style.display="none";if(C.length>0){Y={};if(M==="genie"){pui.K.Ab=true;pui.uc()}var J=v+"?AUTH=";if(pui.appJob&&pui.appJob.auth)J+=encodeURIComponent(pui.appJob.auth);J+="&trans="+encodeURIComponent(ba);J+="&id="+encodeURIComponent(B.id);var V=new FormData;V.append("flimit",
e);V.append("slimit",ia);V.append("dir",da);V.append("altname",e>1?"":ta);V.append("overwrite",Aa?"1":"0");for(var ga=0;ga<C.length;ga++)V.append("file",C[ga]);Y=setTimeout(function(){A.If(ba,{success:false,error:pui.getLanguageText("runtimeMsg","upload timeout")})},864E5);Z=new XMLHttpRequest;Z.open("POST",J);if("upload"in Z)Z.upload.onprogress=l;Z.onload=k;Z.onabort=h;K.style.visibility="visible";Z.send(V)}}};this.If=function(J,V){if(!(Y===null||J!==ba)){clearTimeout(Y);K.style.visibility="hidden";
if(V.success)for(var ga=0;ga<C.length;ga++)C[ga].mk=true;else{if(V.key)V.error=pui.getLanguageText("runtimeMsg","upload "+V.key);L=V.error;if(V.key==="file limit")L=L.replace("&1",e);if(V.key==="size limit")L=L.replace("&1",ia);M!=="genie"&&!ea&&o(L)}A.render();u.style.display="";Y=null;ba++;if(M==="genie"){pui.K.Ab=false;pui.Ya(true);V.success?this.Ch():o(V.error)}}};this.Ch=function(){if(ua&&ua.length>0){var J={};J.dir=this.Wf();J.names=this.Nd();(function(V){eval("var info = arguments[0];");try{var ga=
eval(ua);typeof ga==="function"&&ga(V)}catch(pa){o("onupload Error:\n"+pa.message)}})(J)}};this.clear=function(){if(Y===null&&!fa){for(;C.length>0;)C.pop();s();u.style.display="none";if(M==="genie")sa.style.display="none";this.render()}}};
pui.widgets.add({name:"file upload dnd",newId:"FileUploadDND",menuName:"File Upload DND",defaults:{width:"300px",height:"252px","css class":"pui-file-upload","size limit":"10","number of files":"1","overwrite files":"false"},propertySetters:{"field type":function(a){if(a.dom.fileUpload===undefined){a.dom.fileUpload=new pui.fileUploadDND.eh(a.dom);M==="dspf"&&pui.sb.push(a.dom.fileUpload)}for(var b=1,c="allowed type",d=[];typeof a.properties[c]==="string";){d.push(a.evalProperty(c));c="allowed type "+
++b}a.dom.fileUpload.Vi(d);a.dom.fileUpload.render();if(!pui.fileUploadDND.fl){if(window.addEventListener){window.addEventListener("dragover",pui.fileUploadDND.dl,false);window.addEventListener("drop",pui.fileUploadDND.dl,false)}pui.fileUploadDND.fl=true}},"auto submit":function(a){a.design||a.dom.fileUpload.np(a.value)},"auto upload":function(a){a.design||a.dom.fileUpload.op(a.value)},"number of files":function(a){a.design||a.dom.fileUpload.Yi(parseInt(a.value,10))},"size limit":function(a){a.design||
a.dom.fileUpload.$i(parseInt(a.value,10))},"target directory":function(a){a.design||a.dom.fileUpload.bj(bb(a.value))},"rename to":function(a){a.design||a.dom.fileUpload.Wi(bb(a.value))},"overwrite files":function(a){a.design||a.dom.fileUpload.Zi(a.value)},onupload:function(a){a.design||a.dom.fileUpload.cj(a.newValue)},disabled:function(a){a.design||a.dom.fileUpload.setDisabled(a.value)}}});pui.fileUploadDND.dl=function(a){a=a||event;a.returnValue=false;a.preventDefault&&a.preventDefault()};
pui.fileUploadDND.fl=false;pui.Dm=function(){function a(){if(g.getContext!=null){f=g.getContext("2d");if(f!=null){if(d.color!=null)f.strokeStyle=d.color;if(d.backgroundColor!=null){g.style.backgroundColor=d.backgroundColor;f.fillStyle=d.backgroundColor;f.fillRect(0,0,d.a.offsetWidth,d.a.offsetHeight)}f.lineJoin="round";f.lineWidth=5}}}function b(p,s,t,y){if(f!=null){if(t==null&&y==null)f.lineTo(p,s);else{f.moveTo(p,s);f.lineTo(t,y)}f.stroke()}}function c(p){function s(v){if(!(d.readOnly||d.disabled)){if(v!=null&&v.touches!=
null)if(v.touches.length!=1)return;var I=Cb(v)-y[0];v=Db(v)-y[1];b(I,v);var G=l[l.length-1];G.push(I);G.push(v);k.x=I;k.y=v}}function t(){f.closePath();if(z){eb(g,"touchmove",s);eb(g,"touchend",t);eb(document,"touchend",t)}else{eb(g,"mousemove",s);eb(g,"mouseup",t);eb(document,"mouseup",t)}}if(!(d.readOnly||d.disabled))if(f!=null){var y=pui.Od(d.a),z=false;if(p!=null&&p.touches!=null){if(p.touches.length!=1)return;z=true}l.push([]);k.x=Cb(p)-y[0];k.y=Db(p)-y[1];f.beginPath();b(k.x,k.y,k.x,k.y);var A=
l[l.length-1];A.push(k.x);A.push(k.y);d.a.modified=true;if(!pui.Lc(p)){if(z){N(g,"touchmove",s);N(g,"touchend",t);N(document,"touchend",t)}else{N(g,"mousemove",s);N(g,"mouseup",t);N(document,"mouseup",t)}if(d.designMode&&!d.e.isSelected()){A=d.e.designer;var B=A.selection;B.clear();B.add(d.e);A.Ta.refresh()}Ma(p);return false}}}var d=this,f,g,k={},l=[],h,o;this.a=null;this.color="#333333";this.backgroundColor="#ffffcc";this.designMode=false;this.e=null;this.init=function(){d.a.innerHTML="";d.a.style.overflow=
"hidden";d.a.style.padding="0px";g=document.createElement("canvas");if(!d.designMode)g.innerHTML="Your browser does not support HTML5 Canvas.<br/>Signature pad widget will not function.";d.a.appendChild(g);h=document.createElement("div");h.style.position="absolute";h.style.top="0px";h.style.right="1px";h.style.width="40px";h.innerHTML="Clear";h.style.backgroundColor="#cccccc";h.style.padding="1px";h.style.border="1px solid #666666";h.style.color="#666666";h.style.fontFamily="Sans-Serif";h.style.fontSize=
"12px";h.style.textAlign="center";h.style.cursor="pointer";h.onmousedown=function(p){Ma(p);return false};h.onclick=function(){d.clear();d.a.modified=true};d.a.appendChild(h);if(d.designMode){o=document.createElement("div");o.style.position="absolute";o.style.top="0px";o.style.right="46px";o.style.width="40px";o.innerHTML="Move";o.style.backgroundColor="#cccccc";o.style.padding="1px";o.style.border="1px solid #666666";o.style.color="#666666";o.style.fontFamily="Sans-Serif";o.style.fontSize="12px";
o.style.textAlign="center";o.style.cursor="move";d.a.appendChild(o)}d.resize();N(g,"mousedown",c);N(g,"touchstart",c);N(d.a,"dblclick",function(p){if(d.designMode){var s=d.e.designer.Ta;s.lr("value",null,true,p);s.jq.jr()}});if(d.designMode)if(pui.is_chrome||pui.is_old_ie&&pui.ie_mode<10){g.style.display="none";o.style.display="none"}};this.resize=function(p){g.style.width=d.a.offsetWidth+"px";g.style.height=d.a.offsetHeight+"px";g.setAttribute("width",d.a.offsetWidth);g.setAttribute("height",d.a.offsetHeight);
a();if(p==true)d.xl();else l=[]};this.clear=function(){f!=null&&f.clearRect(0,0,d.a.offsetWidth,d.a.offsetHeight);d.resize()};this.tp=function(p){d.color=p;a()};this.pp=function(p){d.backgroundColor=p;a()};this.Yl=function(){h.style.visibility=d.readOnly||d.disabled?"hidden":""};this.getValue=function(){for(var p="[",s=0;s<l.length;s++){var t=l[s];if(s>0)p+=",";p+="[";for(j=0;j<t.length;j++){if(j>0)p+=",";p+=t[j]}p+="]"}p+="]";return p};this.setValue=function(p){d.clear();if(!(p.length<5||p.substr(0,
2)!="[["||p.substr(p.length-2,2)!="]]")){try{l=eval("("+p+")")}catch(s){}d.xl()}};this.xl=function(){if(f!=null){f.beginPath();for(var p=0;p<l.length;p++){var s=l[p];for(j=0;j<s.length;j+=2){if(j+1>s.length)break;var t=j-2;if(t<0)t=0;b(s[t],s[t+1],s[j],s[j+1])}}f.closePath()}}};
pui.widgets.add({name:"signature pad",defaults:{height:"150px",width:"450px","background color":"#ffffcc","border top style":"solid","border top width":"1px","border top color":"#000000","border left style":"solid","border left width":"1px","border left color":"#000000","border right style":"solid","border right width":"1px","border right color":"#000000","border bottom style":"solid","border bottom width":"1px","border bottom color":"#000000",color:"#333333"},propertySetters:{"field type":function(a){if(a.dom.signaturePad==
null){a.dom.signaturePad=new pui.Dm;a.dom.signaturePad.a=a.dom;if(a.dom.signaturePad.designMode=a.design)a.dom.signaturePad.e=a.e;a.dom.signaturePad.init();a.dom.sizeMe=function(){a.dom.signaturePad.resize(true)}}},value:function(a){a.design||setTimeout(function(){a.dom.signaturePad.setValue(a.value)},0)},color:function(a){a.dom.signaturePad.tp(a.value)},"read only":function(a){a.dom.signaturePad.readOnly=a.value==true||a.value=="true"?true:false;a.dom.signaturePad.Yl()},disabled:function(a){a.dom.signaturePad.disabled=
a.value==true||a.value=="true"?true:false;a.dom.signaturePad.Yl()},width:function(a){a.dom.style.width=a.value;a.dom.signaturePad.resize()},height:function(a){a.dom.style.height=a.value;a.dom.signaturePad.resize()},"background color":function(a){a.dom.signaturePad.pp(a.value)}}});function bc(a){var b=a.dom,c=a.evalProperty("value"),d=a.evalProperty("image source");if(a.properties.value=="script: value"){if(c=="")c=a.dom.innerHTML;if(c.substr(0,5).toLowerCase()=="<img "){a=c.indexOf(">");c=a>=0?c.substr(a+1):""}}a="";if(d!=null&&d!="")a='<img src="'+pui.normalizeURL(d)+'" style="vertical-align:middle;padding-bottom:2px;" /> ';b.setAttribute("type","button");b.innerHTML=a+c}
pui.widgets.add({name:"graphic button",tag:"button",inputType:"button",newValue:"Accept",Lb:true,defaults:{width:!pui.is_quirksmode?"100px":null,"image source":"/profoundui/proddata/images/accept.png",color:"#009933","font weight":"bold"},propertySetters:{"field type":function(a){bc(a)},value:function(a){a.properties.value=a.value;bc(a)},"image source":function(a){a.properties["image source"]=a.value;bc(a)}}});pui.Bm=function(){function a(){if(!h.W.disabled){if(M!="genie"||pui.N){if(h.yi)return;if(h.grid.designMode)return;if(h.grid.pb())return}h.grid.xi()}}function b(){if(!h.V.disabled){if(M!="genie"||pui.N){if(h.vi)return;if(h.grid.designMode)return;if(h.grid.jb())return}h.grid.ti()}}this.y=this.x=100;this.width=500;this.Lg=this.qf=this.je=this.Fd=false;this.ll=this.ml=null;this.vi=this.yi=this.ng=this.og=false;this.wi=1;this.V=this.ga=this.W=this.ia=this.grid=this.a=null;var c,d,f,g,k,l,h=this;this.init=
function(){c=document.createElement("div");c.style.position="absolute";c.style.backgroundRepeat="repeat-x";c.style.textAlign="center";c.style.paddingTop="5px";c.style.overflow="hidden";c.onselectstart=la(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";h.a.appendChild(c);d=document.createElement("div");d.style.cursor="pointer";d.style.position="absolute";d.style.top="4px";d.style.left="4px";d.style.height="14px";d.style.padding="1px";d.style.width="14px";d.onclick=
function(){h.grid.designMode||h.grid.exportCSV()};pui.Y(d,"export-image-icon");c.appendChild(d);f=document.createElement("span");f.innerHTML=pui.getLanguageText("runtimeText","csv export text");f.style.position="absolute";f.style.top="5px";f.style.left="24px";f.style.textDecoration="underline";f.style.cursor="pointer";f.onclick=function(){h.grid.designMode||h.grid.exportCSV()};f.className="paging-link";c.appendChild(f);h.ia=document.createElement("div");h.ia.className="prev-image-icon";h.ia.style.verticalAlign=
"top";h.ia.style.display="inline-block";h.ia.style.height="16px";h.ia.style.width="16px";h.ia.Rb="PageUp";h.ia.T="0";h.ia.bb=h;h.ia.cf=true;h.ia.onmouseover=function(){h.ia.disabled||pui.Y(h.W,"paging-link-hover")};h.ia.onmouseout=function(){h.ia.disabled||pui.Q(h.W,"paging-link-hover")};h.ia.onclick=function(){a()};c.appendChild(h.ia);h.W=document.createElement("span");h.W.innerHTML=pui.getLanguageText("runtimeText","previous link text");h.W.href="javascript:void(0)";h.W.style.verticalAlign="top";
h.W.Rb="PageUp";h.W.T="0";h.W.bb=h;h.W.cf=true;h.W.onmouseover=function(){h.W.disabled||pui.Y(h.W,"paging-link-hover")};h.W.onmouseout=function(){h.W.disabled||pui.Q(h.W,"paging-link-hover")};h.W.onclick=function(){a()};h.W.className="paging-link";c.appendChild(h.W);g=document.createElement("span");g.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";c.appendChild(g);l=document.createElement("span");l.style.fontFamily="Arial";l.style.fontSize="11px";l.style.fontWeight="bold";l.style.verticalAlign="top";
c.appendChild(l);k=document.createElement("span");k.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";c.appendChild(k);h.V=document.createElement("span");h.V.innerHTML=pui.getLanguageText("runtimeText","next link text");h.V.href="javascript:void(0)";h.V.style.verticalAlign="top";h.V.Rb="PageDown";h.V.T="0";h.V.bb=h;h.V.nextPage=true;h.V.onmouseover=function(){h.V.disabled||pui.Y(h.V,"paging-link-hover")};h.V.onmouseout=function(){h.V.disabled||pui.Q(h.V,"paging-link-hover")};h.V.onclick=function(){b()};
h.V.className="paging-link";c.appendChild(h.V);h.ga=document.createElement("div");h.ga.className="next-image-icon";h.ga.style.verticalAlign="top";h.ga.style.display="inline-block";h.ga.style.height="16px";h.ga.style.width="16px";h.ga.Rb="PageDown";h.ga.T="0";h.ga.bb=h;h.ga.nextPage=true;h.ga.onmouseover=function(){h.ga.disabled||pui.Y(h.V,"paging-link-hover")};h.ga.onmouseout=function(){h.ga.disabled||pui.Q(h.V,"paging-link-hover")};h.ga.onclick=function(){b()};c.appendChild(h.ga);if(!h.ng||!h.og)pui.nh=
true;if(!h.grid.designMode&&pui.runtimeContainer!=null&&c!=null&&c.parentNode!=null){var o=function(p){if(c==null||c.parentNode==null)eb(pui.runtimeContainer,"keydown",o);else{if(!p)p=window.event;p=p.keyCode;p==33&&a();p==34&&b()}};N(pui.runtimeContainer,"keydown",o)}N(c,"mousedown",function(p){function s(v){var I=Db(v)-z,G=Cb(v)-y;v=h.grid.b.e;if(v!=null){var E=v.designer.selection;if(E.bm){G+=h.grid.b.Ha;I+=h.grid.b.na;G=E.rf(G,pui.ig);I=E.rf(I,pui.jg,M=="genie"?3:0);G-=h.grid.b.Ha;I-=h.grid.b.na}}h.grid.qb(function(C){C.style.top=
C.na+I+"px";C.style.left=C.Ha+G+"px"});if(v!=null)v.moved=true;h.grid.setScrollBar();v=pui.designer.ef;if(v.a==null){v.a=document.body;v.init()}v.set(h.grid.b.e);v.show()}function t(){if(h.grid.b.e!=null)if(h.grid.b.e.moved){h.grid.b.e.designer.fh();M=="dspf"&&pui.ide.Vo()}else h.grid.b.e.designer.M.Zo();h.grid.cb();var v=pui.designer.ef;v!=null&&v.a!=null&&v.hide();eb(document,"mousemove",s);eb(document,"mouseup",t)}if(h.grid.designMode){h.grid.b.e.designer.Zh();h.grid.qc();if(pui.Lc(p)){if(h.grid.b.e){h.grid.b.e.designer.bo.hide();
h.grid.b.e.designer.Lp(p)}designUtils.nc(p);p.stopPropagation&&p.stopPropagation();return false}h.grid.b.e!=null&&h.grid.b.e.designer.Oi!=null&&h.grid.b.e.designer.Oi.hide();if(h.Pc)designUtils.nc(p);else{var y=Cb(p),z=Db(p);h.grid.qb(function(v){v.Ha=parseInt(v.style.left);v.na=parseInt(v.style.top)});N(document,"mousemove",s);N(document,"mouseup",t);Ma(p);if(h.grid.designMode&&h.grid.b.e!=null){h.grid.b.e.moved=false;p=h.grid.b.e.designer;var A=p.selection,B="Move Selection";if(A.ec.length==1)B=
"Move Grid";p.M.start(B);p.M.ri=true;A.gh(["left","top","parent tab panel","parent tab panel"]);p.M.ri=false}}}})};this.position=function(){if((h.Fd||h.je||h.qf||h.Lg)&&h.grid.b.style.display!="none"&&h.grid.b.style.visibility!="hidden"){c.style.left=h.x+"px";c.style.top=h.y+"px";c.style.width=h.width+"px";c.style.display="";c.style.zIndex=h.grid.b.style.zIndex}else c.style.display="none"};this.hide=function(){c.style.display="none"};this.destroy=function(){c.innerHTML="";c.parentNode!=null&&c.parentNode.removeChild(c);
h.ia=null;h.W=null;h.ga=null;h=l=k=g=f=d=c=h.V=null};this.Pl=function(o){if(c!=null){if(o==null)o="";o=bb(o);if(o!="")o+="-paging-bar";o+=" paging-bar";o=bb(o);if(c.className!=o)c.className=o}};this.r=function(){h.Pl(h.grid.b.className);if((h.Fd||h.je||h.qf||h.Lg)&&h.grid.b.style.display!="none"&&h.grid.b.style.visibility!="hidden"){h.position();if(h.Fd){d.style.display="";f.style.display=""}else{d.style.display="none";f.style.display="none"}if(h.je){h.ia.style.display="inline-block";h.W.style.display=
"";h.ga.style.display="inline-block";h.V.style.display="";h.ia.disabled=false;h.W.disabled=false;h.ga.disabled=false;h.V.disabled=false;if(M!="genie"){if(!h.grid.designMode&&h.grid.pb()&&(h.ml=="false"||!h.og)){h.ia.disabled=true;h.W.disabled=true;pui.Y(h.W,"paging-link-disabled");pui.Y(h.ia,"prev-image-icon-disabled")}else{pui.Q(h.W,"paging-link-disabled");pui.Q(h.ia,"prev-image-icon-disabled")}if(!h.grid.designMode&&h.grid.jb()&&(h.grid.em&&pui["page down on subfile end"]!=true||h.ll=="false"||
!h.ng)){h.ga.disabled=true;h.V.disabled=true;pui.Y(h.V,"paging-link-disabled");pui.Y(h.ga,"next-image-icon-disabled")}else{pui.Q(h.V,"paging-link-disabled");pui.Q(h.ga,"next-image-icon-disabled")}}}else{h.ia.style.display="none";h.W.style.display="none";h.ga.style.display="none";h.V.style.display="none"}if(h.qf){l.style.display="";l.innerHTML=pui.getLanguageText("runtimeText","page")+" "+h.wi}else l.style.display="none"}else c.style.display="none"};this.Bd=function(o){h.a=o;c.parentNode.removeChild(c);
h.a.appendChild(c)};this.getHeight=function(){return c.offsetHeight}};pui.Em=function(){function a(G,E){if(k){k=false;h.kg(E)}else setTimeout(function(){G==f&&h.kg(E)},h.interval)}function b(){var G=22;if(pui.is_touch&&!pui.is_mouse_capable&&!h.designMode||pui.Z)G=0;y.style.left=h.x-y.offsetWidth+G+"px";y.style.top=h.y-y.offsetHeight-2+"px"}function c(G){setTimeout(function(){if(G==g)y.style.display="none"},800)}function d(G){function E(){if(t.s==null)t.style.opacity=B;else if(!(t.s.startTime>L)){var S=false,Z=(new Date).getTime(),ea=K+(ba-Z)*Y;K=ea;ba=Z;Y*=0.98;if(Y>
0){Y-=0.001;if(Y<=0){S=true;Y=0}}else{Y+=0.001;if(Y>=0){S=true;Y=0}}Z=parseInt(s.style.top);var aa=Z+parseInt(s.style.height)-parseInt(t.style.height);if(aa<Z)aa=Z;if(ea<Z){ea=Z;S=true}if(ea>aa){ea=aa;S=true}t.od=ea;t.style.top=parseInt(ea)+"px";ea=(ea-Z)/(aa-Z);if(isNaN(ea))ea=0;ea=(h.Pa-h.nb)*ea;ea=Math.round(ea)+1;h.doScroll(ea);if(S){t.s=null;pui.animate({element:t,property:"opacity",from:1,to:B,duration:"1s"})}else setTimeout(E,1E3/60)}}if(G==null)t.style.opacity=B;else{var C=G.duration,u=G.Qf,
K=t.od,ba=G.Td;if(u==null||C==null)t.style.opacity=B;else if(!(C>500)){var Y=u/C,L=(new Date).getTime();E()}}}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=false;this.a=null;this.nb=10;this.Pa=100;this.X=20;this.borderWidth=1;this.kg=this.onchange=null;this.ke=true;this.le=false;this.interval=250;this.type="sliding";this.ff=false;this.Dk=null;var f=0,g=0,k=true,l=false,h=this,o,p,s,t,y,z=25,A=-1,B=0,v,I;this.init=function(G){h.Dk=G;o=document.createElement("div");o.style.position=
"absolute";o.style.width="23px";o.style.overflowY="scroll";o.style.overflowX="hidden";o.style.padding="0px";o.className="pui-scrollbar";p=document.createElement("div");p.style.position="absolute";p.style.left="0px";p.style.top="0px";p.innerHTML="&nbsp;";p.fontSize="0px";y=document.createElement("div");y.style.position="absolute";y.style.border="1px solid #999999";y.style.backgroundColor="#ffffff";y.style.fontFamily="Arial";y.style.fontSize="10px";y.style.fontWeight="bold";y.style.padding="1px";y.style.zIndex=
1E3;y.style.filter="alpha(opacity=75)";y.style.opacity=0.75;y.style.display="none";if(M=="dspf"&&pui.is_touch&&!pui.is_mouse_capable&&!h.designMode||pui.Z){s=document.createElement("div");s.style.position="absolute";s.style.width="3px";s.style.backgroundColor="transparent";t=document.createElement("div");t.style.position="absolute";t.style.width="3px";t.style.height="25px";t.style.top="0px";t.style.backgroundColor="#999999";if(!pui.is_android)t.style.borderRadius="2px";o.style.visibility="hidden";
o.style.display="none";t.style.opacity=B;if(pui.Z){var E=function(C){function u(Y){t.style.opacity=1;var L=Db(Y);Y=(new Date).getTime();t.s.duration=Y-t.s.Td;t.s.Td=Y;var S=h.Pa/h.nb/6;if(S<1)S=1;if(S>40)S=40;t.s.Qf=(L-t.s.Pe)/S;t.s.Pe=L;Y=t.s.na;L=L-t.s.startY;if(t.s.reverse)L=-L;L/=S;Y+=L;L=parseInt(s.style.top);S=L+parseInt(s.style.height)-parseInt(t.style.height);if(S<L)S=L;if(Y<L)Y=L;if(Y>S)Y=S;t.od=Y;t.style.top=parseInt(Y)+"px";Y=(Y-L)/(S-L);if(isNaN(Y))Y=0;Y=(h.Pa-h.nb)*Y;Y=Math.round(Y)+
1;h.doScroll(Y)}function K(){eb(document,"mousemove",u);eb(document,"mouseup",K);d(t.s)}var ba=La(C);if(ba!=null&&ba.row===0||ba!=null&&ba.parentNode!=null&&ba.parentNode.row===0||ba!=null&&ba.parentNode!=null&&ba.parentNode.parentNode!=null&&ba.parentNode.parentNode.row===0)if(G.grid.f)return;if(!(ba!=null&&ba.tagName=="INPUT"||ba.tagName=="SELECT"||ba.tagName=="TEXTAREA")){t.s={};t.s.reverse=ba!=t;t.s.startY=Db(C);t.s.Pe=t.s.startY;t.s.startTime=(new Date).getTime();t.s.Td=(new Date).getTime();
t.s.Qf=null;t.s.duration=null;t.s.na=t.od!=null?t.od:parseInt(t.style.top);N(document,"mousemove",u);N(document,"mouseup",K);Ma(C)}};N(t,"mousedown",E);N(G,"mousedown",E)}if(!pui.Z){E=function(C){if(C.touches.length==1){var u=C.target;if(u!=null&&u.row===0||u!=null&&u.parentNode!=null&&u.parentNode.row===0||u!=null&&u.parentNode!=null&&u.parentNode.parentNode!=null&&u.parentNode.parentNode.row===0)if(G.grid.f)return;if(!(u!=null&&u.tagName=="INPUT"||u.tagName=="SELECT"||u.tagName=="TEXTAREA")){C=
C.touches[0];t.s={};t.s.reverse=u!=t;h.km=u;t.s.startY=C.pageY;t.s.Pe=t.s.startY;t.s.startTime=(new Date).getTime();t.s.Td=(new Date).getTime();t.s.Qf=null;t.s.duration=null;t.s.na=t.od!=null?t.od:parseInt(t.style.top)}}};N(t,"touchstart",E);N(G,"touchstart",E);E=function(C){if(C.touches.length==1)if(t.s!=null){t.style.opacity=1;var u=C.touches[0].pageY,K=(new Date).getTime();t.s.duration=K-t.s.Td;t.s.Td=K;var ba=h.Pa/h.nb/6;if(ba<1)ba=1;if(ba>40)ba=40;t.s.Qf=(u-t.s.Pe)/ba;t.s.Pe=u;K=t.s.na;u=u-t.s.startY;
if(t.s.reverse)u=-u;u/=ba;K+=u;u=parseInt(s.style.top);ba=u+parseInt(s.style.height)-parseInt(t.style.height);if(ba<u)ba=u;if(K<u)K=u;if(K>ba)K=ba;t.od=K;t.style.top=parseInt(K)+"px";K=(K-u)/(ba-u);if(isNaN(K))K=0;K=(h.Pa-h.nb)*K;K=Math.round(K)+1;h.doScroll(K);C.preventDefault()}};N(t,"touchmove",E);N(G,"touchmove",E);N(G,"touchend",function(){h.km=null;d(t.s)})}}if(M=="genie"&&!pui.N)o.onscroll=h.doScroll;o.onmousedown=function(C){if(h.ke||h.le){if(y.innerHTML!="")y.style.display="";b()}h.designMode&&
designUtils.nc(C)};o.onmouseup=function(){c(g)};o.appendChild(p);h.a.appendChild(o);s!=null&&h.a.appendChild(s);t!=null&&h.a.appendChild(t);h.a.appendChild(y)};this.jh=function(){N(o,"scroll",h.doScroll)};this.doScroll=function(G){if(h.ff){var E=Math.floor(o.scrollTop/z)+1;if(v!=null&&I!=null&&G==null&&A>0)G=A;if(G!=null&&typeof G=="number")E=G;if(E!=A){G=E+h.nb-1;if(h.le)y.innerHTML=pui.getLanguageText("runtimeText","rows")+" "+E+" - "+G;if(h.ke)y.innerHTML=pui.getLanguageText("runtimeText","row")+
" "+E;b();h.onchange!=null&&h.onchange(E);if(h.kg!=null){f+=1;if(f>1E4)f=10;a(f,E)}A=E;G=h.Dk;if(G!=null){G=G.grid.Hh.onscroll;if(G!=null&&G!=""&&!h.designMode)try{eval("row = "+E);eval(G)}catch(C){pui.alert(eventName.substr(0,1).toUpperCase()+eventName.substr(1)+" Error:\n"+C.message);return false}}if(h.ke||h.le){y.style.display="";g+=1;if(g>1E4)g=0;b();c(g)}else y.style.display="none"}}};this.tc=function(G,E){if(t!=null){var C=parseInt(s.style.top),u=C+parseInt(s.style.height)-parseInt(t.style.height);
if(u<C)u=C;C=parseInt((u-C)*((G-1)/(h.Pa-h.nb)))+C;t.style.top=C+"px";A=G;return t.style.top!=C+"px"}else{if(E)A=G;C=o.scrollTop;o.scrollTop=(G-1)*z;return C!=o.scrollTop}};this.r=function(){if(pui.is_old_ie){z=25;if(h.Pa>1E3)z=50}else z=19;if(t!=null&&s!=null){s.style.left=h.x-5+"px";s.style.top=h.y+"px";s.style.zIndex=h.zIndex;t.style.left=h.x-5+"px";if(A==-1)t.style.top=h.y+"px";t.style.zIndex=h.zIndex;o.style.visibility="hidden";o.style.display="none";s.style.display="";t.style.display=""}else{o.style.zIndex=
h.zIndex;o.style.visibility="";o.style.display="";o.style.left=h.x+"px";o.style.top=h.y+"px"}var G=h.nb*h.X-h.borderWidth;if(s!=null){s.style.height=G-2+"px";var E=(G-2)*(h.Pa<=0?1:h.nb/h.Pa);E=parseInt(E);if(E<25&&G>27)E=25;if(E>G-2)E=G-2;t.style.height=E+"px"}else{o.style.height=G+"px";E=(h.Pa-h.nb)*z+G;var C=9999990;if(pui.is_old_ie)C=1342177;for(;E>C&&z>1;){z-=1;E=(h.Pa-h.nb)*z+G}if(E<0)E=0;if(E>5&&E==G)E-=5;p.style.height=E+"px"}b();s==null&&h.doScroll();if(!h.designMode&&h.ff&&h.nb==1){p.style.height=
"0px";o.style.overflow="hidden";o.style.overflowX="hidden";o.style.overflowY="hidden";if(v==null&&I==null&&h.Pa>1){v=document.createElement("img");v.style.position="absolute";v.style.top="0px";v.style.right="0px";v.style.cursor="pointer";v.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");v.onclick=function(){if(pui.Nb!=null)pui.Nb.style.display="none";var u=A-1;if(u<1)u=1;if(u>h.Pa)u=h.Pa;h.doScroll(u)};I=document.createElement("img");I.style.position="absolute";I.style.bottom="0px";I.style.right=
"0px";I.style.cursor="pointer";I.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");I.onclick=function(){if(pui.Nb!=null)pui.Nb.style.display="none";if(A==-1)A=1;var u=A+1;if(u<1)u=1;if(u>h.Pa)u=h.Pa;h.doScroll(u)};o.appendChild(v);o.appendChild(I)}}};this.bg=function(G){if(s!=null)s.style.height=parseInt(o.style.height)+G-2+"px";else o.style.height=parseInt(o.style.height)+G+"px"};this.hide=function(){o.style.visibility="hidden";o.style.display="none";y.style.display="none";y.style.visibility=
"hidden";if(t!=null&&s!=null){s.style.display="none";t.style.display="none"}};this.destroy=function(){o.parentNode!=null&&o.parentNode.removeChild(o);p.parentNode!=null&&p.parentNode.removeChild(p);y.parentNode!=null&&y.parentNode.removeChild(y)};this.Bn=function(G){function E(C){var u=0;if(!C)C=window.event;if(C.wheelDelta){u=C.wheelDelta/120;if(window.opera)u=-u}else if(C.detail)u=-C.detail/3;if(u)if(t==null)o.scrollTop-=u*23;C.preventDefault&&C.preventDefault();C.returnValue=false}if(!l){l=true;
G.addEventListener&&G.addEventListener("DOMMouseScroll",E,false);G.onmousewheel=E}};this.Bd=function(G){h.a=G;o.parentNode.removeChild(o);h.a.appendChild(o)}};pui.Cm=function(){this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=this.jb=this.pb=false;this.Ve=this.We=this.a=null;this.type="paging";this.ff=false;var a=this,b=false,c=false,d=false,f=0,g,k;this.init=function(){g=document.createElement("div");g.style.position="absolute";g.style.width="23px";g.style.overflowY="scroll";g.style.overflowX="hidden";g.style.padding="0px";k=document.createElement("div");k.style.position="absolute";k.style.left="0px";k.style.top="0px";k.innerHTML="&nbsp;";
k.fontSize="0px";g.onmousedown=function(l){a.designMode&&designUtils.nc(l)};g.onscroll=function(){var l=parseInt(a.height/2);if(a.designMode||a.pb&&a.jb)g.scrollTop=l;else if(b)b=false;else if(d){b=true;g.scrollTop=a.height*2}else if(c){b=true;g.scrollTop=0}else if(a.jb&&!a.pb){if(a.We!=null){l=a.We();if(l==false){a.r();return}}b=c=true;g.scrollTop=0}else if(a.pb&&!a.jb){if(a.Ve!=null){l=a.Ve();if(l==false){a.r();return}}b=d=true;g.scrollTop=a.height*2}else if(g.scrollTop>l){if(a.Ve!=null){l=a.Ve();
if(l==false){a.r();return}}b=d=true;g.scrollTop=a.height*2}else{if(a.We!=null){l=a.We();if(l==false){a.r();return}}b=true;g.scrollTop=0;c=true}};g.appendChild(k);a.a.appendChild(g)};this.r=function(){b=true;g.style.zIndex=a.zIndex;g.style.visibility="";var l=a.x,h=a.y,o=a.height;if(o<0)o=0;f=parseInt(o/2);g.style.left=l+"px";g.style.top=h+"px";g.style.height=o+"px";k.style.height=o*2+"px";l=a.jb&&!a.pb?o*2:a.pb&&!a.jb?0:f;if(!a.grid.nk)g.scrollTop=l};this.reset=function(){d=c=false};this.hide=function(){g.style.visibility=
"hidden"};this.destroy=function(){g.parentNode!=null&&g.parentNode.removeChild(g);k.parentNode!=null&&k.parentNode.removeChild(k)};this.Bd=function(l){a.a=l;g.parentNode.removeChild(g);a.a.appendChild(g)}};pui.vm=function(){function a(){for(;d.rows.length>0;)d.deleteRow(d.rows.length-1);var f="";if(na=="ON")f="https://"+HTTP_HOST;f+="/profoundui/proddata/images/";var g=[],k=[],l=[];if(b.grid.sortable&&b.Gb.Ng!=null){g.push(pui.getLanguageText("runtimeText","sort ascending text"));k.push("icons/sort_ascending.png");l.push(function(){b.Gb.Sb=true;b.Gb.Ng()});g.push(pui.getLanguageText("runtimeText","sort descending text"));k.push("icons/sort_descending.png");l.push(function(){b.Gb.Sb=false;b.Gb.Ng()})}if(!b.grid.lb()){if(g.length>
0&&(b.grid.Mh||b.grid.Sf)){g.push("-");k.push(null);l.push(null)}if(b.grid.Mh){g.push(pui.getLanguageText("runtimeText","find text")+"...");k.push("icons/search.png");l.push(function(){b.grid.startFind(b.Gb)})}if(b.grid.Sf){g.push(pui.getLanguageText("runtimeText","filter text")+"...");k.push("icons/filter.png");l.push(function(){b.grid.startFilter(b.Gb)})}if(b.grid.Sf&&b.Gb.tb!=null){g.push(pui.getLanguageText("runtimeText","remove filter"));k.push("icons/remove_filter.png");l.push(function(){b.grid.removeFilter(b.Gb)})}if(b.grid.Nn()>
1){g.push(pui.getLanguageText("runtimeText","remove filters text"));k.push("icons/remove_filter.png");l.push(function(){b.grid.removeAllFilters()})}}if(b.grid.Ih==true||b.grid.Ih==null&&b.grid.o!=null&&b.grid.o.Fd){if(g.length>0&&g[g.length-1]!="-"){g.push("-");k.push(null);l.push(null)}g.push(pui.getLanguageText("runtimeText","csv export text")+"...");k.push("grids/excel.gif");l.push(function(){b.grid.exportCSV()})}for(var h=0;h<g.length;h++){var o=d.insertRow(h);o.style.color="#333333";if(g[h]==
"-"){o=o.insertCell(0);o.colSpan=2;var p=document.createElement("div");p.style.backgroundColor="#e0e0e0";p.style.borderBottomColor="#ffffff";p.style.borderBottomWidth="1px";p.style.borderBottomStyle="solid";p.style.height="1px";p.style.lineHeight="1px";p.style.fontSize="1px";p.style.paddingTop="0px";p.style.paddingBottom="0px";p.style.width="100%";o.appendChild(p)}else{o.style.cursor="pointer";o.style.padding="3px";o.onmouseover=function(t){t=La(t).parentNode;t.style.backgroundColor="#3399ff";t.style.color=
"#ffffff"};o.onmouseout=function(t){t=La(t).parentNode;t.style.backgroundColor="";t.style.color="#333333"};o.Eo=l[h];o.onclick=function(t){obj=La(t).parentNode;obj.Eo();b.hide()};p=o.insertCell(0);p.style.width="20px";var s=k[h];if(s!=null){p.style.backgroundImage="url('"+f+s+"')";p.style.backgroundPosition="center";p.style.backgroundRepeat="no-repeat"}p.style.padding="3px";o=o.insertCell(1);o.innerHTML=g[h];o.style.fontFamily="Sans-serif";o.style.fontSize="12px";o.style.padding="3px";o.style.whiteSpace=
"normal"}}return g.length}var b=this,c,d;this.Gb=this.clickEvent=this.grid=null;this.init=function(){N(document,"mousedown",function(f){if(b!=null){for(f=La(f);f!=null;){if(f==c)return;if(f==b.Gb)return;f=f.parentNode}b.hide()}});c=document.createElement("div");c.style.position="absolute";c.style.border="1px solid #718bb7";c.style.backgroundColor="#f0f0f0";c.style.zIndex=b.grid.ck;c.onselectstart=la(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";d=document.createElement("table");
d.border=0;d.cellPadding=3;d.cellSpacing=0;d.style.width="175px";b.hide();c.appendChild(d);b.grid.a.appendChild(c)};this.show=function(){if(a()==0)b.hide();else{var f=0,g=0;if(b.toolbar!=null){f=b.toolbar.t.offsetLeft+119;g=b.toolbar.t.offsetTop+47;if(b.toolbar.t.offsetTop>b.yo.length*22-45)g=g-b.yo.length*22+1}if(b.clickEvent!=null){f=pui.He(b.clickEvent);g=pui.Uf(b.clickEvent);var k=document.body.offsetWidth-185,l={};if(M=="dspf"&&b.grid.b.parentNode.getAttribute("container")=="true"){l=pui.layout.Kb(b.grid.b.parentNode);
l.x+=pui.runtimeContainer.offsetLeft;l.y+=pui.runtimeContainer.offsetTop}else{var h=pui.Od(b.grid.b.parentNode);l.x=h[0];l.y=h[1]}g-=l.y;f-=l.x;if(f>k)f=k}c.style.left=f+"px";c.style.top=g+"px";c.style.display=""}};this.hide=function(){c.style.display="none"};this.destroy=function(){if(c!=null){c.parentNode!=null&&c.parentNode.removeChild(c);d=c=null;b.clickEvent=null;b=b.grid=null}}};pui.tm=function(){var a=this,b,c,d;this.type=this.Yf=this.grid=this.a=null;this.init=function(){b=document.createElement("div");b.className="pui-find-filter";b.style.display="none";c=document.createElement("div");c.className="pui-find-filter-content";d=document.createElement("input");d.className="pui-find-filter-box";N(d,"keyup",function(f){if(!f)f=window.event;if(f.keyCode!=13){f=d.value;typeof a.Xe==="function"&&a.Xe(f)}});N(d,"keydown",function(f){if(!f)f=window.event;var g=f.keyCode;if(g==13){a.type==
"find"&&typeof a.Xe==="function"&&a.Xe(d.value,true);if(a.type=="filter"){a.grid.ua.text="";a.grid.getData();a.hide()}Ma(f)}if(g==27){a.grid.ua.text="";a.grid.getData();a.hide();Ma(f)}});N(d,"blur",function(){a.grid.ua.text="";a.grid.getData();a.hide()});c.appendChild(d);b.appendChild(c);a.a.appendChild(b)};this.show=function(){b.style.display=""};this.hide=function(){b.style.display="none"};this.ql=function(f){var g=f.parentNode;if(g!=null){var k=g.parentNode;if(k!=null){var l;l=g.offsetLeft+f.offsetLeft;
g=g.offsetTop-40;f=f.offsetWidth;if(k.getAttribute("container")=="true"){k=pui.layout.Kb(k);g+=k.y;l+=k.x}a.setPosition(l,g,f)}}};this.setPosition=function(f,g,k){if(k==null)k=200;var l=k-15;if(l<20)l=20;b.style.left=f+"px";b.style.top=g+"px";b.style.width=k+"px";d.style.width=l+"px"};this.Vl=function(f){d.placeholder=f};this.focus=function(){d.focus()};this.clear=function(){d.value=""};this.setText=function(f){d.value=f}};pui.um=function(){function a(m){var q=e.D;if(e.isFiltered())q=e.sa;var r=q[m-1];if(typeof e.wd!="undefined"&&e.wd===true||e.isFiltered()){r=null;for(var w=0;w<q.length;w++)if(q[w].A==m){r=q[w];break}}return r}function b(m){for(var q=null,r=0;r<e.la.length;r++)if(m==e.la[r]){q=r;break}return q}function c(m,q,r){stringValue=String(r);if(m.properties[q]!=stringValue){if(pui.p(m.properties[q])){if(q=="top"||q=="left")m.properties[q].designValue=stringValue}else m.properties[q]=stringValue;m.$a[q]=true;
m.Vb=true;return m.designer.Wb[m.designer.ya.Ua]=true}return false}function d(m){var q=document.createElement("div");q.style.position="absolute";q.style.border="1px solid #0000ff";if(pui.is_old_ie&&pui.is_quirksmode){q.style.height="6px";q.style.width="6px";q.style.padding="0px"}else{q.style.height="3px";q.style.width="3px";q.style.padding="1px"}q.style.fontSize="0px";q.style.backgroundColor="#dddddd";q.style.cursor=m+"-resize";q.style.zIndex=designUtils.tr;q.style.visibility="hidden";q.ii=true;designUtils.yf(q,
"mousedown",function(r){function w(Q){var U=designUtils.getY(Q)-P;Q=designUtils.getX(Q)-H;var X=0,F=0;if(m=="sw"||m=="se")X=e.g.length-1;if(m=="ne"||m=="se")F=e.k.length-1;G(Q,U,X,false,e.g[X].na,e.g[X].Ha);G(Q,U,F,true,e.k[F].na,e.k[F].Ha);if((m=="sw"||m=="se")&&e.g.length>2){U=U;if(U<-e.X+5)U=-e.X+5;typeof e.d.bg=="function"&&e.d.bg(U)}D.set(e.b.e)}function x(){designUtils.Yo(document,"mousemove",w);designUtils.Yo(document,"mouseup",x);if((m=="sw"||m=="se")&&(e.g.length>=3||e.f&&e.g.length==2)){var Q=
parseInt(e.g[e.g.length-1].style.top);if(e.cells.length>(e.f?2:1)){e.hf();if(Q>parseInt(e.g[e.g.length-1].style.top)+e.X-3){for(var U=false;parseInt(e.g[e.g.length-1].style.top)<Q;){e.vc();U=true}U&&e.Wd()}}else e.X=parseInt(e.g[e.g.length-1].style.top)-parseInt(e.g[e.g.length-2].style.top)}e.zb();e.cb();D.hide()}var D=pui.designer.ef;if(D.a==null){D.a=document.body;D.init()}D.set(e.b.e);D.show();e.b.e.designer.Zh();if(!e.Pc)if(!(e.g.length<1||e.k.length<1)){var H=designUtils.getX(r),P=designUtils.getY(r);
e.g[0].na=parseInt(e.g[0].style.top);e.g[0].Ha=parseInt(e.g[0].style.left);e.k[0].na=parseInt(e.k[0].style.top);e.k[0].Ha=parseInt(e.k[0].style.left);e.g[e.g.length-1].na=parseInt(e.g[e.g.length-1].style.top);e.g[e.g.length-1].Ha=parseInt(e.g[e.g.length-1].style.left);e.k[e.k.length-1].na=parseInt(e.k[e.k.length-1].style.top);e.k[e.k.length-1].Ha=parseInt(e.k[e.k.length-1].style.left);designUtils.yf(document,"mousemove",w);designUtils.yf(document,"mouseup",x);var O=e.b.e.designer;O.M.start("Size Grid");
O.selection.gh(["left","top","number of rows","header height","column widths"]);designUtils.nc(r)}});e.a.appendChild(q);return q}function f(){var m="",q=e.$e["padding bottom"];if(q==null||q=="")q="0px";m+="padding-bottom:"+q+";";q=e.$e["padding left"];if(q==null||q=="")q="4px";m+="padding-left:"+q+";";q=e.$e["padding right"];if(q==null||q=="")q="4px";m+="padding-right:"+q+";";q=e.$e["padding top"];if(q==null||q=="")q="0px";m+="padding-top:"+q+";";return m}function g(m){var q=null;if(e.Be.length==
0)return false;q=e.Be.length==1?e.Be[0]:e.Be[m];if(q==null)return false;if(q.length<1)return false;q=q.substr(0,1).toUpperCase();return q=="D"?true:false}function k(){for(var m=e.cells[0],q=0;q<m.length;q++)m[q].Sb=!g(q)}function l(m,q,r){e.ab!=null&&e.ab.hide();if(m!=null){var w=m.dm,x=m.Sb;k();if(x==null)x=true;if(e.va==null){e.va=document.createElement("img");e.va.style.paddingLeft="3px"}else e.va.parentNode!=null&&e.va.parentNode.removeChild(e.va);if(e.b.ye==null&&e.b.Ee==null){va=m.Ca;o();pui.Tc=
{};if(!e.wd)for(var D=0;D<e.D.length;D++)e.D[D].A=D+1;for(D=0;D<e.D.length;D++)e.D[D].an=D;var H=function(Q,U){var X=Q[w],F=U[w];if(m.dataType=="zoned"||m.dataType=="floating"){X=Number(X);F=Number(F)}if(m.dataType=="reference"){var ca=e.ref[m.fieldName];if(ca!=null)if(ca.dataType==7||ca.dataType==9||ca.dataType==10){X=Number(X);F=Number(F)}}if(typeof pui.gridSort=="function"){X=pui.gridSort(X,F);if(typeof X!="number")X=0;if(X>0)return x?-1:1;if(X<0)return x?1:-1;return 0}else return x&&X<F||!x&&
X>F?-1:1};e.D.sort(H);e.isFiltered()&&e.sa.sort(H);H=[];for(D=0;D<e.D.length;D++)H[e.D[D].an]=D;D=pui.jc(e.dc)+".";for(var P in pui.ca)if(P.substr(0,D.length)==D)if(P.substr(D.length).split(".").length==2){var O=pui.ca[P][0];O.Gc=H[O.Gc]}e.wd=true;e.n=1;if(e.Kg>0&&(q||r))for(D=0;D<e.D.length;D++)if(e.D[D].A==e.Kg){e.n=D+1;break}e.d!=null&&e.d.type=="sliding"&&e.d.tc(e.n);e.getData()}x=!x;m.Sb=x;e.va.src=pui.normalizeURL("/profoundui/proddata/images/grids/")+(x?"descending.gif":"ascending.gif");r=
m;if(r.firstChild!=null&&r.firstChild.tagName=="DIV")r=r.firstChild;r.appendChild(e.va);if(J&&!q){q={};q.columnId=m.Ca;q.descending=m.Sb;s(q,"sort")}}}function h(m,q){e.ab!=null&&e.ab.hide();if(m!=null){va=m.Ca;var r=m.Sb;k();if(r==null)r=true;if(e.va==null){e.va=document.createElement("img");e.va.style.paddingLeft="3px"}else e.va.parentNode!=null&&e.va.parentNode.removeChild(e.va);e.me=m.fieldName;if(r=!r)e.me+=" DESC";e.wd=true;e.d!=null&&e.d.type=="sliding"&&e.d.tc(1);e.n=1;e.getData();m.Sb=r;
e.va.src=pui.normalizeURL("/profoundui/proddata/images/grids/")+(r?"descending.gif":"ascending.gif");r=m;if(r.firstChild!=null&&r.firstChild.tagName=="DIV")r=r.firstChild;r.appendChild(e.va);if(J&&!q){r={};r.columnId=m.Ca;r.descending=m.Sb;s(r,"sort")}}}function o(){for(var m={},q=0;q<e.la.length;q++)m[e.la[q]]=q;q=pui.jc(e.dc)+".";for(var r in pui.ca)if(r.substr(0,q.length)==q){var w=r.substr(q.length).split(".");if(w.length==2){w=m[w[0]];if(w!=null){var x=pui.ca[r][0];if(x!=null&&x.Gc!=null){var D=
e.D[x.Gc];if(D!=null){var H=x.value;if(x.comboBoxWidget!=null)H=x.comboBoxWidget.getValue();if(x.z!=null){H="";if(x.z.ac&&x.z.Zd!=null)H=x.z.Zd;else if(!x.z.ac&&x.z.Xd!=null)H=x.z.Xd}if(x.tagName=="INPUT"&&x.type=="checkbox")H=x.checked?x.kb!=null&&x.kb!=""?x.kb:"1":x.hc!=null&&x.hc!=""?x.hc:" ";var P=x.L.value,O=x.L.revert;x.L.value=H;x.L.revert=true;H=pui.oe.format(x.L);x.L.value=P;x.L.revert=O;if(typeof H=="object")H="";D[w]=H}}}}}}function p(){var m;if(pui.nd()&&localStorage[e.tf]!=null)try{m=
JSON.parse(localStorage[e.tf])}catch(q){}return m}function s(m,q){var r;if(q==null)r=m;else{r=p();if(r==null)r={};r[q]=m}r.cols=pa;localStorage[e.tf]=JSON.stringify(r)}function t(m){if(!e.designMode){var q=e.Hh[m];if(q!=null&&q!="")try{pui.temporary_property=e;eval("var grid = pui.temporary_property;");pui.temporary_property=e.b;eval("var dom = pui.temporary_property;");eval("var row = arguments[1];");eval("var rowNumber = arguments[1];");m=="onrowclick"&&eval("var isRightClick = arguments[2];");
arguments.length>=4&&eval("var event = arguments[3]");eval("var column = arguments[4];");var r=arguments[1];if(r!=null){e.f||(r-=1);pui.temporary_property=e.cells[r];eval("var rowCells = pui.temporary_property;")}if(e.n!=null&&!isNaN(e.n)&&e.n>0){var w=eval("row");w+=e.n-1;eval("rowNumber = "+w);var x=e.D;if(e.isFiltered())x=e.sa;if(x[w-1]!=null&&x[w-1].A!=null)w=x[w-1].A;eval("row = "+w);eval("var rrn = "+w)}if(eval(q)==false)return false}catch(D){pui.alert(m.substr(0,1).toUpperCase()+m.substr(1)+
" Error:\n"+D.message);return false}}}function y(m,q){var r=document.createElement("div");r.style.position="absolute";r.style.left="200px";r.style.top="200px";r.style.width="16px";r.style.height="18px";r.style.fontSize="0px";r.style.overflow="hidden";r.style.backgroundImage="url('"+pui.normalizeURL("/profoundui/proddata/images/icons/")+m+".gif')";r.style.backgroundRepeat="no-repeat";r.style.cursor="pointer";r.style.zIndex=e.ko;r.title=q;r.style.color="white";r.style.padding="0px";r.onmousedown=function(w){designUtils.nc(w)};
e.a.appendChild(r);return r}function z(){if(e.designMode)if(ia!=null)if(da!=null){var m=0,q=0;m=e.g.length;if(m>0){q=parseInt(e.g[m-1].style.left);m=parseInt(e.g[m-1].style.top)-20}else{q=e.fb("left");m=e.fb("top")-20}ia.style.left=q+"px";ia.style.top=m+"px";m-=14;da.style.left=q+"px";da.style.top=m+"px";m=e.k.length;if(m>0){q=parseInt(e.k[m-1].style.left)-20;m=parseInt(e.k[m-1].style.top)+5}else{q=e.fb("left")-20;m=e.fb("top")+5}ta.style.left=q+"px";ta.style.top=m+"px";q-=14;Aa.style.left=q+"px";
Aa.style.top=m+"px";q=e.fb("left")-2;m=e.fb("top")-2;ya.style.left=q+"px";ya.style.top=m+"px";q+=e.fb("width")-2;ua.style.left=q+"px";ua.style.top=m+"px";m+=e.fb("height")+1;if(e.o.Fd||e.o.je||e.o.qf||e.o.Lg)m+=25;sa.style.left=q+"px";sa.style.top=m+"px";q=e.fb("left")-2;ja.style.left=q+"px";ja.style.top=m+"px"}}function A(m){var q=false;if(m.selected==null)if(e.Ma!=null){if(e.Eg==null)for(var r=0;r<e.la.length;r++)if(pui.O(e.Ma.fieldName)==e.la[r]){e.Eg=r;break}if(e.Eg!=null)if(m[e.Eg]==e.kf)m.selected=
true}if(m.selected==true)q=true;return q}function B(m,q){if(!(!e.designMode&&q!=true)){if(!e.designMode&&q==true)e.b.parentNode.onselectstart=function(r){if(e.dragging){Ma(r);return false}};m.style.cursor="default";N(m,"mousedown",function(r){function w(U){var X=pui.Uf(U)-H,F=pui.He(U)-D;if(e.f&&m.row==0){if(za==null){za=m.cloneNode(true);za.style.border="1px solid #999999";za.style.zIndex=e.cl;Ia=document.createElement("div");Ia.className=e.b.className;m.parentNode.parentNode.appendChild(Ia);Ia.appendChild(za)}za.style.top=
e.b.na+X+"px";za.style.left=e.b.Ha+parseInt(m.style.left)+F+"px";var ca=null;if(X>-25&&X<parseInt(e.b.style.height))for(U=0;U<e.k.length;U++){var R=e.k[U],ka=parseInt(R.style.left),qa=F+D;qa-=e.designMode?e.b.e.designer.Pn():pui.runtimeContainer.offsetLeft;if(M=="dspf"&&e.b.parentNode.getAttribute("container")=="true")qa-=pui.layout.Kb(e.b.parentNode).x;if(!e.designMode){var ra=e.b.parentNode;if(ra.Bb==true)qa-=parseInt(ra.style.left)}if(Math.abs(ka-qa)<15){if(wa!=null&&wa.parentNode!=R.parentNode){wa.parentNode.removeChild(wa);
wa=null}if(wa==null){wa=document.createElement("img");wa.src=pui.normalizeURL("/profoundui/proddata/images/grids/column-pointer.gif");wa.style.position="absolute";wa.style.zIndex=e.cl+1;e.designMode?Ta.designer.a.appendChild(wa):document.body.appendChild(wa)}ka=R.parentNode;ca=parseInt(R.style.top)-10;R=parseInt(R.style.left)-4;qa={x:0,y:0};if(M=="dspf"&&ka.getAttribute("container")=="true")qa=pui.layout.Kb(ka);else if(ka.Bb){qa.x=ka.offsetLeft;qa.y=ka.offsetTop}if(!e.designMode){ka=pui.Od(pui.runtimeContainer);
qa.x+=ka[0];qa.y+=ka[1]}ca+=qa.y;R+=qa.x;wa.style.display="";wa.style.top=ca+"px";wa.style.left=R+"px";ca=U;wa.gg=ca;break}}if(ca==null&&wa!=null){wa.style.display="none";wa.gg=null}}else{U=e.b.e;if(U!=null){U.designer.Pn();U.designer.Iq();pui.designer.rr({x:F+D,y:X+H,designer:U.designer,Lq:false,Mq:P,dom:U.dom,e:U,pq:D,qq:H,Ac:false,Tj:true});R=U.designer.selection;if(R.bm){F+=e.b.Ha;X+=e.b.na;F=R.rf(F,pui.ig);X=R.rf(X,pui.jg,M=="genie"?3:0);F-=e.b.Ha;X-=e.b.na}}e.qb(function(Ca){Ca.style.top=Ca.na+
X+"px";Ca.style.left=Ca.Ha+F+"px"});if(U!=null)U.moved=true;e.setScrollBar();U=pui.designer.ef;if(U.a==null){U.a=document.body;U.init()}U.set(e.b.e);U.show()}}function x(){e.dragging=false;if(za!=null){za.parentNode.removeChild(za);Ia.parentNode.removeChild(Ia);Ia=za=null}if(wa!=null){wa.style.display="none";if(wa.gg!=null){e.moveColumn(m.col,wa.gg);wa.gg=null;if(J){for(var U=[],X=0;X<e.cells[0].length;X++)U.push(e.cells[0][X].Ca);s(U,"colSequence")}}}if(e.designMode){U=e.b.e;if(U!=null)if(U.moved){var F=
U.designer;if(F.qk!=null){F.M.clear();container=F.qk;var ca;if(F.oc.style.display==""){X=parseInt(F.oc.style.top);ca=parseInt(F.oc.style.left)}else{X=parseInt(U.dom.style.top);ca=parseInt(U.dom.style.left)}var R=pui.layout.Kb(container);ca-=R.x;X-=R.y;if(F.selection.bm){ca=F.selection.rf(ca,pui.ig);X=F.selection.rf(X,pui.jg)}var ka=X-parseInt(U.dom.style.top),qa=ca-parseInt(U.dom.style.left);e.qb(function(ra){ra.parentNode.removeChild(ra);container.appendChild(ra);ra.style.top=parseInt(ra.style.top)+
ka+"px";ra.style.left=parseInt(ra.style.left)+qa+"px"});e.d!=null&&e.d.Bd(container);e.o!=null&&e.o.Bd(container);e.a=container;e.b.sizeMe!=null&&typeof e.b.sizeMe=="function"&&e.b.sizeMe();e.setScrollBar();U.properties.top=X+"px";U.properties.left=ca+"px";F.lq.style.display="none";F.oc.style.display="none";F.qk=null;F.selection.clear();F.selection.add(U);F.fh();pui.ide.zl()}else{if(P)if(F.oc.style.display==""){F.M.clear();ka=parseInt(F.oc.style.top)-parseInt(U.dom.style.top);qa=parseInt(F.oc.style.left)-
parseInt(U.dom.style.left);e.qb(function(ra){ra.parentNode.removeChild(ra);F.a.appendChild(ra);ra.style.top=parseInt(ra.style.top)+ka+"px";ra.style.left=parseInt(ra.style.left)+qa+"px"});e.d!=null&&e.d.Bd(F.a);e.o!=null&&e.o.Bd(F.a);e.a=F.a;e.setScrollBar();U.properties.top=F.oc.style.top;U.properties.left=F.oc.style.left;F.oc.style.display="none";F.selection.clear();F.selection.add(U);F.fh();pui.ide.zl()}F.fh();e.zb();M=="dspf"&&pui.ide.Vo()}}else e.b.e.designer.M.Zo();e.cb();U=pui.designer.ef;U!=
null&&U.a!=null&&U.hide()}eb(document,"mousemove",w);eb(document,"mouseup",x)}if(e.designMode){e.b.e.designer.Zh();M=="dspf"&&Ext.menu.MenuMgr.hideAll();e.qc();pui.layout.template.Mn(e.b.e.designer);if(pui.Lc(r)){if(e.b.e){e.b.e.designer.bo.hide();e.b.e.designer.Lp(r)}designUtils.nc(r);r.stopPropagation&&r.stopPropagation();return false}e.b.e!=null&&e.b.e.designer.Oi!=null&&e.b.e.designer.Oi.hide();if(e.Pc){designUtils.nc(r);return}e.b.e.Rp.left=e.b.style.left;e.b.e.Rp.top=e.b.style.top}else e.ab!=
null&&!pui.Lc(r)&&e.ab.hide();e.dragging=true;var D=pui.He(r),H=pui.Uf(r);e.qb(function(U){U.Ha=pui.qd(U.style.left);U.na=pui.qd(U.style.top)});var P=false;if(M=="dspf"&&e.b.parentNode.getAttribute("container")=="true")P=true;N(document,"mousemove",w);N(document,"mouseup",x);Ma(r);if(e.designMode&&e.b.e!=null){e.b.e.moved=false;r=e.b.e.designer;var O=r.selection,Q="Move Selection";if(O.ec.length==1)Q="Move Grid";r.M.start(Q);r.M.ri=true;O.gh(["left","top","parent tab panel","parent tab panel"]);r.M.ri=
false}})}}function v(m,q){for(var r=[],w=m.firstChild;w!=null;){w.style.position=="absolute"&&!w.ii&&r.push(w);w=w.nextSibling}q.innerHTML="";for(var x=0;x<r.length;x++){w=r[x];w.parentNode.removeChild(w);q.appendChild(w)}}function I(m,q,r,w){if(e.designMode||w){var x=m[q];if(e.borderWidth!==null&&e.borderWidth<W){x.style.borderWidth="2px";if(!r)x.style.width=parseInt(x.style.width)+2+"px"}if(!r)x.style.borderTopStyle=T;if(r)x.style.borderRightStyle=T;if(r)x.style.cursor="w-resize";if(!r)m[q].style.cursor=
"n-resize";e.qc();N(x,"mousedown",function(D){function H(R){var ka=Db(R)-U;G(Cb(R)-Q,ka,q,r,F,X);if(!r&&q==m.length-1&&m.length>2&&e.d!=null&&e.d.type=="sliding"){R=ka;if(R<-e.X+5)R=-e.X+5;typeof e.d.bg=="function"&&e.d.bg(R)}e.designMode?O.set(e.b.e):e.alignColumnTotals()}function P(){x.dragging=false;e.dragging=false;var R=e.borderWidth;if(R===null||R<W)R=W;x.style.borderWidth=R+"px";x.style.borderColor=e.borderColor;if(!r)x.style.borderTopStyle=T;if(r)x.style.borderRightStyle=T;if(!r&&q==m.length-
1&&(q>=2||e.f&&q==1)){R=parseInt(x.style.top);if(e.cells.length>(e.f?2:1)){e.hf();if(R>parseInt(m[m.length-1].style.top)+e.X-3){for(var ka=false;parseInt(m[m.length-1].style.top)<R;){e.vc();ka=true}ka&&e.Wd()}}else e.X=parseInt(m[m.length-1].style.top)-parseInt(m[m.length-2].style.top)}if(e.designMode){e.zb();e.cb();O.hide()}else{e.alignColumnTotals();if(r&&J){R=Array(e.cells[0].length);for(ka=0;ka<e.cells[0].length;ka++){var qa=e.cells[0][ka];R[qa.Ca]=qa.clientWidth}s(R,"colWidths")}}eb(document,
"mousemove",H);eb(document,"mouseup",P)}if(e.designMode){var O=pui.designer.ef;if(O.a==null){O.a=document.body;O.init()}O.set(e.b.e);if(q==0||q==m.length-1)O.show()}if(e.designMode){e.b.e.designer.Zh();if(e.Pc){designUtils.nc(D);return}}else e.ab!=null&&e.ab.hide();x.dragging=true;e.dragging=true;var Q=Cb(D),U=Db(D),X=parseInt(x.style.left),F=parseInt(x.style.top);e.qc();var ca=3;if(e.borderWidth>3)ca=e.borderWidth;x.style.borderWidth=ca+"px";x.style.borderColor="#333333";if(!r)x.style.borderTopStyle=
"solid";if(r)x.style.borderRightStyle="solid";N(document,"mousemove",H);N(document,"mouseup",P);Ma(D);if(e.designMode){D=e.b.e.designer;r&&D.M.start("Size Grid Column");r||D.M.start("Size Grid Rows");D.selection.gh(["left","top","number of rows","row height","header height","column widths"])}});N(x,"mouseover",function(){if(!e.dragging){var D=3;if(e.borderWidth>3)D=e.borderWidth;x.style.borderWidth=D+"px";x.style.borderColor="#333333";if(!r)x.style.borderTopStyle="solid";if(r)x.style.borderRightStyle=
"solid"}});N(x,"mouseout",function(){if(!x.dragging){var D=e.borderWidth;if(D===null||D<W)D=W;x.style.borderWidth=D+"px";x.style.borderColor=e.borderColor;if(!r)x.style.borderTopStyle=T;if(r)x.style.borderRightStyle=T}})}}function G(m,q,r,w,x,D){var H;H=w?e.k:e.g;var P=H[r];if(w)q=0;w||(m=0);q=x+q;m=D+m;if(w){if(r>0&&m<parseInt(H[r-1].style.left)+5)m=parseInt(H[r-1].style.left)+5;if(r<H.length-1&&m>parseInt(H[r+1].style.left)-5)m=parseInt(H[r+1].style.left)-5}if(!w){if(r>0&&q<parseInt(H[r-1].style.top)+
5)q=parseInt(H[r-1].style.top)+5;if(r<H.length-1&&q>parseInt(H[r+1].style.top)-6)q=parseInt(H[r+1].style.top)-6}if(!w)P.style.top=q+"px";if(w)P.style.left=m+"px";if(!w&&(r!=0||!e.f)&&r!=H.length-1){e.X=r<H.length-1?parseInt(H[r+1].style.top)-parseInt(H[r].style.top):parseInt(H[r].style.top)-parseInt(H[r-1].style.top);P=q;for(j=r+1;j<H.length;j++){P+=e.X;H[j].style.top=P+"px"}P=q;D=0;if(e.f)D=1;for(j=r-1;j>=D;j-=1){P-=e.X;H[j].style.top=P+"px"}if(e.f)H[0].style.top=parseInt(H[1].style.top)-e.ub+"px"}if(!w&&
r==0&&e.f&&H.length>1)e.ub=parseInt(H[1].style.top)-parseInt(H[0].style.top);if(!w&&r==1&&!e.f&&H.length==2)e.X=parseInt(H[r].style.top)-parseInt(H[r-1].style.top);if(r==0&&w){e.b.style.left=m+"px";for(P=0;P<e.g.length;P++)e.g[P].style.left=e.b.style.left}if(w&&(H.length-1==r||r==0))w&&C();if(!w){E();u()}w&&e.f&&e.Pb();e.Na();z();e.setScrollBar()}function E(){e.b.style.top=e.g[0].style.top;for(var m=0;m<e.k.length;m++)e.k[m].style.top=e.b.style.top}function C(){var m=0;if(e.k.length>0){m=e.borderWidth;
if(m===null||m<W&&e.designMode)m=W;m=parseInt(e.k[e.k.length-1].style.left)-e.fb("left")+m}for(var q=0;q<e.g.length;q++)e.g[q].style.width=m+"px";e.b.style.width=m+"px"}function u(){var m=0;if(e.g.length>0)m=parseInt(e.g[e.g.length-1].style.top)-e.fb("top");for(var q=0;q<e.k.length;q++)e.k[q].style.height=m+"px";e.b.style.height=m+"px"}function K(m){var q=m.firstChild;if(q!=null){q.style.whiteSpace="normal";q.style.position="absolute";q.style.top="50%";var r=q.offsetHeight;if(r>0)q.style.marginTop=
-parseInt(r/2)+"px";else{q.style.position="relative";q.style.sr="translateY(-50%)";q.style.Xq="translateY(-50%)";q.style.Yq="translateY(-50%)";q.style.transform="translateY(-50%)"}m=parseInt(m.style.width);if(isNaN(m))m=0;m-=8;if(m<0)m=0;q.style.left="0px";q.style.width=m+"px"}}function ba(m,q){var r=document.createElement("div");e.b.appendChild(r);r.style.position="absolute";r.style.overflow="hidden";r.style.padding="0px";r.style.verticalAlign="middle";if(!pui.Z)r.style.cursor=e.jn;if(m>0||!e.f)r.style.bq=
"rgba(0,0,0,0)";var w=m==0&&e.f,x=m%2==1;if(e.f)x=!x;if(w)if(q<e.Xb.length){r.innerHTML='<div style="'+f()+'">'+e.Xb[q]+"</div>";K(r)}e.designMode&&Z(r,w,x,q);r.onmouseover=function(D){D=D||window.event;if(!e.dragging){e.f||t("onrowmouseover",m+1,null,D,q);e.f&&m!=0&&t("onrowmouseover",m,null,D,q);if(e.ci)if(!(pui.is_touch&&!pui.is_mouse_capable&&!e.designMode||pui.Z))if(!(m==0&&e.f)){D=e.cells[m];e.vd(m,true);if(e.$l&&!e.expanded&&(m>0||!e.f)){D=D[0];if(e.Wa==null){e.Wa=document.createElement("img");
e.Wa.setAttribute("isZoomIcon","true");e.Wa.src=pui.normalizeURL("/profoundui/proddata/images/icons/zoom_in.png");e.Wa.style.position="absolute";e.Wa.style.top="6px";e.Wa.style.left="3px";if(!pui.Z)e.Wa.style.cursor="pointer"}if(e.Wa.parentNode!=D){e.Wa.parentNode!=null&&e.Wa.parentNode.removeChild(e.Wa);D.appendChild(e.Wa)}e.Wa.style.display="";e.Wa.onclick=function(H){e.rowZoom(e.cells[m]);Ma(H)}}}}};r.onmouseout=function(D){D=D||window.event;e.f||t("onrowmouseout",m+1,null,D,q);e.f&&m!=0&&t("onrowmouseout",
m,null,D,q);m==0&&e.f||e.vd(m)};r.onmousedown=function(D){D=D||window.event;if(pui.Lc(D))if(!e.designMode){var H=function(X){if(!X)X=window.event;X.preventDefault&&X.preventDefault();X.stopPropagation&&X.stopPropagation();X.cancelBubble=true;return X.returnValue=false};if(e.f&&m==0){if(e.ab==null){e.ab=new pui.vm;e.ab.grid=e;e.ab.init()}e.ab.Gb=r;e.ab.clickEvent=D?D:window.event;e.ab.show();document.body.oncontextmenu=H}else{var P;if(e.Fc)P=Ra(e.Fc);if(P!=null){P.ej=true;document.body.oncontextmenu=
H;r.onclick(D);if(D.Tn&&D.Tn()||D.cancelBubble){P.ej=false;e.Zf()}else{H=pui.He(D);var O=pui.Uf(D),Q=P.parentNode;if(Q!=null&&Q.tagName=="FORM")Q=Q.parentNode;if(Q!=null){var U={x:0,y:0};if(M=="dspf"&&Q.getAttribute("container")=="true")U=pui.layout.Kb(Q);else if(Q.Bb){U.x=Q.offsetLeft;U.y=Q.offsetTop}Q=pui.Od(pui.runtimeContainer);U.x+=Q[0];U.y+=Q[1];if(pui.is_chrome){Q=document.documentElement;U.y+=(window.pageYOffset||Q.scrollTop)-(Q.clientTop||0)}H-=U.x;O-=U.y}if(pui.is_touch&&!pui.is_mouse_capable){H-=
P.clientWidth/2;P.onselectstart=la(false);if(typeof P.style.MozUserSelect!="undefined")P.style.MozUserSelect="none";if(typeof P.style.webkitUserSelect!="undefined")P.style.webkitUserSelect="none"}P.style.zIndex=e.ck;P.style.visibility="";P.style.display="";Q=document.documentElement;U=document.documentElement.clientWidth+((window.pageXOffset||Q.scrollLeft)-(Q.clientLeft||0))-P.clientWidth-10;Q=document.documentElement.clientHeight+((window.pageYOffset||Q.scrollTop)-(Q.clientTop||0))-P.clientHeight-
10;if(H>U)H=U;if(O>Q)O=Q;P.style.left=H+"px";P.style.top=O+"px";Ma(D);D!=null&&D.stopPropagation!=null&&D.stopPropagation();setTimeout(function(){P.ej=false},250);return false}}}}};pui.is_touch&&!pui.is_mouse_capable&&!pui.Uq&&pui.Tp(r,function(D){D.button=3;r.onmousedown(D)});r.onclick=function(D){D=D||window.event;var H=La(D);if(!(H.tagName=="IMG"&&H.sn)){var P=pui.Lc(D);if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="OPTION"){e.f||t("onrowclick",m+1,P,D,q);e.f&&m!=0&&t("onrowclick",m,P,
D,q)}if((M=="dspf"||pui.N)&&!e.designMode){e.Fg(m);var O=(H.tagName=="INPUT"||H.tagName=="SELECT")&&!H.disabled&&!H.readOnly;if(e.rd&&!O&&(m>0||!e.f))if(e.n!=null&&!isNaN(e.n)&&e.n>0){if(!D)D=window.event;if(e.Mg||e.De&&!D.ctrlKey&&!D.shiftKey){var Q=e.g.length-1;for(O=0;O<e.D.length;O++){var U=O-e.n+1+(e.f?1:0);if(!D.ctrlKey||U!=m)if(e.D[O].selected==true){pui.modified=true;e.D[O].selected=false;if(e.Ma!=null&&e.D[O].selection!=null){e.D[O].selection.modified=true;e.D[O].selection.value=e.Ma.dataType==
"indicator"?"0":" "}}if(U>=0&&!e.f||U>=1)U<Q&&e.vd(U)}if(e.isFiltered())for(U=e.f?1:0;U<Q;U++)e.vd(U)}var X=e.D;if(e.isFiltered())X=e.sa;var F=m+e.n-1+(e.f?0:1);if(e.De&&D.shiftKey){if(e.Dg==null)e.Dg=F;P=e.Dg;var ca=F;if(P>ca){O=P;P=ca;ca=O}Q=e.g.length-1;for(O=0;O<X.length;O++){U=O-e.n+1;if(O+1>=P&&O+1<=ca){if(X[O].selected!=true){pui.modified=true;X[O].selected=true;if(e.Ma!=null){if(X[O].selection==null){X[O].selection={type:"grid selection",A:O+1,L:e.Ma};var R=pui.jc(e.dc)+"."+pui.O(e.Ma.fieldName)+
"."+(O+1);if(pui.ca[R]==null){pui.ca[R]=[];pui.ca[R].push(X[O].selection)}}X[O].selection.modified=true;X[O].selection.value=e.kf}}}else if(X[O].selected==true){pui.modified=true;X[O].selected=false;if(e.Ma!=null){if(X[O].selection==null){X[O].selection={type:"grid selection",A:O+1,L:e.Ma};R=pui.jc(e.dc)+"."+pui.O(e.Ma.fieldName)+"."+(O+1);if(pui.ca[R]==null){pui.ca[R]=[];pui.ca[R].push(X[O].selection)}}X[O].selection.modified=true;X[O].selection.value=e.Ma.dataType=="indicator"?"0":" "}}if(U>=0&&
!e.f||U>=1)U<Q&&e.vd(U)}}else if(X[F-1]!=null&&X[F-1].length>0){X[F-1].selected=X[F-1].selected==true&&!P?false:true;if(e.Ma!=null&&X[F-1]!=null&&X[F-1].selection!=null){X[F-1].selection.modified=true;X[F-1].selection.value=X[F-1].selected?e.kf:e.Ma.dataType=="indicator"?"0":" "}pui.modified=true;e.vd(m,true)}e.Dg=F}if(e.aa.length>0&&e.aa[0].id=="_msgsfltext"){X=e.cells[m][0];var ka;if(X!=null)ka=X.firstChild;ka!=null&&H!=ka&&ka.onclick!=null&&typeof ka.onclick=="function"&&ka.onclick()}X=H;if((O=
H.parentNode)&&O.row&&O.col)X=O;if(X.row!=null&&X.col!=null&&X.tagName=="DIV"&&X.parentNode.grid==e){ka=String(X.col);for(O=0;O<e.aa.length;O++){F=e.aa[O];if(F.column==ka&&F["cursor row"]!=null&&F["cursor column"]!=null){Q=e.n+X.row;if(e.f)Q-=1;U=false;for(P=0;P<F.domEls.length;P++){ca=F.domEls[P];if(ca!=null&&ca.Gc==Q-1){pui.pc(D,ca);U=true}}if(U)break}}}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==false)if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="TEXTAREA"){X=
e.cells[m][0];L(X)}}}};r.ondblclick=function(D){D=D||window.event;if(e.designMode){if(e.f&&m==0){var H=e.b.e;if(!pui.p(H.properties["column headings"])&&!pui.mb(H.properties["column headings"])){H.designer.md.jl=function(P){for(;P.indexOf("\n")!=-1;)P=P.replace("\n","<br/>");for(;P.indexOf("\r")!=-1;)P=P.replace("\r","");if(r.firstChild!=null)r.firstChild.innerHTML=P;else r.innerHTML=P;P="";for(var O=0;O<e.cells[0].length;O++){if(O!=0)P+=",";var Q=e.cells[0][O],U=ob(Q);if(Q.firstChild!=null&&Q.firstChild.tagName==
"DIV")U=Q.firstChild.innerHTML;P+=U}H.designer.M.add(H,"column headings");H.properties["column headings"]=P;e.setProperty("column headings",P);H.$a["column headings"]=true;H.Vb=true;H.designer.Wb[H.designer.ya.Ua]=true;H.designer.Ta.fe("column headings")};H.designer.md.Zq=function(P,O,Q){for(var U="",X=0;X<e.cells[0].length;X++){var F=e.cells[0][X].style[O];if(F==null)F="";if(P.indexOf("color")>=0)F=pui.gl(F);if(e.cells[0][X]==r)F=Q;if(X!=0)U+=",";U+=F}H.properties[P]=U;e.setProperty(P,U);H.$a[P]=
Q!="";H.Vb=true;H.designer.Wb[H.designer.ya.Ua]=true;H.designer.Ta.fe(P)};H.designer.md.show(H,r,"grid")}}}else{e.f||t("onrowdblclick",m+1,null,D,q);e.f&&m!=0&&t("onrowdblclick",m,null,D,q)}};e.cells[m]||(e.cells[m]=[]);r.row=m;r.col=q;e.cells[m][q]=r;e.designMode&&ea(m,q);return r}function Y(m){for(var q=0;q<m.length;q++)if(L(m[q]))return}function L(m){if(m==null)return false;m=m.firstChild;for(var q=false;m!=null;){if(m.tagName=="INPUT"||m.tagName=="TEXTAREA"||m.tagName=="SELECT"||m.comboBoxWidget!=
null)if(m.style.visibility!="hidden"&&m.style.display!="none"){q=true;break}m=m.nextSibling}if(!q)return false;if(m.comboBoxWidget!=null)m=m.comboBoxWidget.getBox();q=m.tagName;if(q!="INPUT"&&q!="TEXTAREA"&&q!="SELECT")return false;try{m.focus();if(m.createTextRange!=null){m.select!=null&&m.select();var r=m.createTextRange();if(r!=null&&r.collapse!=null&&r.select!=null){r.collapse();r.select()}}pui["highlight on focus"]&&m.select()}catch(w){}return true}function S(m,q,r,w){var x=w,D=e.u[x];if(D==
null)D="";if(D==""&&x.substr(0,7)=="header "){x=x.substr(7);D=e.u[x];if(D==null)D=""}if(!(pui.p(D)||pui.mb(D))){var H=D.split(",");if(H.length>1)D=q<H.length?H[q]:H[0];if(D==""){if(w.substr(0,7)=="header ")x=w.substr(7);if(e.Bc[w]!=null)D=e.Bc[w];else if(e.Bc[x]!=null)D=e.Bc[x]}try{m.style[r]=D}catch(P){}}}function Z(m,q,r,w){S(m,w,"fontFamily",q?"header font family":"font family");S(m,w,"fontSize",q?"header font size":"font size");S(m,w,"fontStyle",q?"header font style":"font style");S(m,w,"fontVariant",
"font variant");S(m,w,"fontWeight",q?"header font weight":"font weight");S(m,w,"letterSpacing","letter spacing");S(m,w,"textAlign",q?"header text align":"text align");S(m,w,"textDecoration","text decoration");S(m,w,"textTransform","text transform");S(m,w,"wordSpacing","word spacing");var x=e.designMode&&e.u["row font color"]!=null&&e.u["row font color"]!=""&&!pui.p(e.u["row font color"]),D=e.designMode&&e.u["row background"]!=null&&e.u["row background"]!=""&&!pui.p(e.u["row background"]);S(m,w,"color",
q?"header font color":x?"row font color":r?"even row font color":"odd row font color");S(m,w,"backgroundColor",q?"header background":D?"row background":r?"even row background":"odd row background");w="";if(q){q=e.u["header image"];if(q!=null&&q!=""){m.style.backgroundImage="url('"+pui.normalizeURL(q,true)+"')";m.style.backgroundRepeat="repeat-x"}else{m.style.backgroundImage="";m.style.backgroundRepeat=""}w="cell header-cell"}else{m.style.backgroundImage="";m.style.backgroundRepeat="";w="cell";w+=
r?" even":" odd"}m.className=w}function ea(m,q){var r=e.cells[m],w=false;if(e.k.length-2==q)w=true;if(m==0&&e.f)w=false;r=r[q];r.style.top=parseInt(e.g[m].style.top)-e.fb("top")+"px";r.style.left=parseInt(e.k[q].style.left)-e.fb("left")+"px";r.style.height=parseInt(e.g[m+1].style.top)-parseInt(e.g[m].style.top)+"px";var x=parseInt(e.k[q+1].style.left)-parseInt(e.k[q].style.left);if(w&&(e.Rc||e.xb))pui.is_touch&&!pui.is_mouse_capable&&!e.designMode||pui.Z||(x-=16);if(x<0)x=0;r.style.width=x+"px"}function aa(m,
q,r,w,x,D,H){if(q==null)q=99;if(r==null)r=1;if(H){if(pui.Oa==null)pui.Oa={};if(pui.Oa[r]==null)pui.Oa[r]={};if(pui.Oa[r].sql===m&&pui.Oa[r].Ro===U&&pui.Oa[r].fg===q&&pui.Oa[r].wn===D)if(w!=null){w(pui.Oa[r].results,pui.Oa[r].totalRecs);return}else return pui.Oa.results}var P=null,O=Za("PUI0009102.PGM");if(D)O=pui.se(D);O=new pui.Ajax(O);O.method="post";O.async=true;if(w==null)O.async=false;if(M=="genie")O.postData="AUTH="+GENIE_AUTH;if(M=="dspf")O.postData="AUTH="+pui.appJob.auth;if(pui.secLevel>
0){O.postData+="&q="+encodeURIComponent(pui.gd(e.b));var Q=e.R["order by"];if(e.me!=null)Q=e.me;if(Q&&Q!="")O.postData+="&order="+Q;var U=pui.fd(e.R);if(U!="")O.postData+="&"+U}else O.postData+="&q="+pui.Xa.cd(m);O.postData+="&limit="+q+"&start="+r;if(x!=null&&x==true)O.postData+="&getTotal=1";O.onready=function(X){var F;if(e.R["data transform function"]&&X.hd()==200)try{F=eval("window."+e.R["data transform function"])(X.$b())}catch(ca){pui.Xk(ca)}else F=Ua(X,"Run SQL SELECT Query");if(F){if(H){if(pui.Oa[r]==
null)pui.Oa[r]={};pui.Oa[r].sql=m;pui.Oa[r].fg=q;pui.Oa[r].start=r;pui.Oa[r].wn=D;pui.Oa[r].results=F.results;pui.Oa[r].totalRecs=F.totalRecs;pui.Oa[r].Ro=U}if(w!=null)w(F.results,F.totalRecs);else P=F.results}};O.send();if(w==null)return P}if(pui.designer.qm!=null){this.bd=new pui.designer.qm;this.bd.In=true}else{this.bd={};this.bd.In=true;this.bd.dq=ha();this.bd.er=ha();this.bd.cr=ha();this.bd.dr=ha()}this.Hf=true;this.aa=[];this.D=[];this.sa=[];this.la=[];this.ref={};this.dc="";this.k=[];this.g=
[];this.b=null;this.Re="";this.cells=[];this.a=null;this.borderColor="";this.borderWidth=null;this.jn="default";this.Si="row number";this.jk=75;this.X=23;this.ub=46;this.X=26;this.ub=30;this.f=true;this.wd=this.sortable=false;this.me=null;this.ci=false;if(M=="dspf"||pui.N)this.ci=true;this.Rc=true;this.xb=false;if(M=="dspf"||pui.N){this.Rc=false;this.xb=true}this.Xc=this.em=false;this.o=new pui.Bm;this.visibility="";this.Xb=[];this.Vg={};this.kr=null;this.u={};this.u["font family"]="Verdana";this.u["font size"]=
"13px";this.u["text align"]="center";this.u["header font color"]="#ffffff";this.u["header background"]="#6699ff";this.u["header image"]="";this.u["header font weight"]="bold";this.u["header font style"]="normal";this.u["row font color"]="";this.u["row background"]="";this.u["odd row font color"]="#555555";if(M=="genie")this.u["odd row font color"]="";this.u["odd row background"]="#efefef";this.u["even row font color"]="#555555";if(M=="genie")this.u["even row font color"]="";this.u["even row background"]=
"#fcfcfc";this.u["hover font color"]="#555555";this.u["hover background"]="#dfe8f6";this.u["hover image"]="";this.u["selection font color"]="#ffffff";this.u["selection background"]="#6699cc";this.u["selection image"]="";this.Bc={};for(var fa in this.u)this.Bc[fa]=this.u[fa];this.R={};this.$e={};this.Hh={};this.dragging=this.Pc=this.designMode=false;this.co=96;this.hp=this.aq=97;this.ko=99;this.ck=100;this.gp=701;this.cl=702;this.fk=this.totalRecs=this.d=null;this.Sf=this.Mh=this.Jh=false;this.Ih=
null;this.De=this.Mg=this.rd=this.Dh=this.Ce=false;this.Eg=this.Ma=null;this.kf="1";this.yg=this.xg=this.Ag=this.zg=this.Dg=null;this.expanded=true;this.dg=this.cg=null;this.eb=1;this.$l=false;this.pg=this.Lh=null;this.Be=[];this.Fc=this.Kh=this.bk=this.Le=this.Kc=null;this.hk=false;this.Jk=1;this.ka=new pui.tm;this.ka.a=pui.runtimeContainer;if(this.ka.a==null)this.ka.a=document.body;this.ka.init();this.ua={Ca:0,col:0,text:""};var e=this,ia,da,ta,Aa,ya,ua,ja,sa,W=1,T="solid",J=false,V=false,ga=false,
pa,va,za,Ia,wa,Ja=null;this.Fh=function(){e.designMode=true;e.b.destroy=e.destroy;if(e.d!=null)e.d.designMode=true;for(var m=0;m<e.k.length;m++)I(e.k,m,true);for(m=0;m<e.g.length;m++)I(e.g,m,false);for(m=0;m<e.cells.length;m++)for(var q=0;q<e.cells[m].length;q++)B(e.cells[m][q]);if(ia==null){ia=y("plus","Add New Row");ia.onclick=function(){var r=e.b.e;r.designer.M.start("Add Grid Row");r.designer.M.add(r,"number of rows");e.vc();e.Wd();e.zb();e.qc()}}if(da==null){da=y("minus","Remove Row");da.onclick=
function(){if(e.cells.length>(e.f?2:1)){var r=e.b.e;r.designer.M.start("Remove Grid Row");r.designer.M.add(r,"number of rows");e.hf();e.zb();e.qc()}}}if(ta==null){ta=y("plus","Add New Column");ta.onclick=function(){var r=e.b.e;r.designer.M.start("Add Grid Column");r.designer.M.add(r,"column widths");r.designer.M.add(r,"number of columns");e.Fj();e.Na();e.zb();e.qc()}}if(Aa==null){Aa=y("minus","Remove Column");Aa.onclick=function(){var r=e.k.length-2;if(!(r<1))if(e.Yh(r))pui.alert("The column cannot be removed because it contains other elements that must be removed first.");
else{r=e.b.e;r.designer.M.start("Remove Grid Column");r.designer.M.add(r,"column widths");r.designer.M.add(r,"number of columns");r.designer.M.add(r,"column headings");e.Ji();e.zb();e.qc()}}}if(ya==null)ya=d("nw");if(ua==null)ua=d("ne");if(ja==null)ja=d("sw");if(sa==null)sa=d("se");e.b.rq=function(){if(e.designMode){if(ya!=null)ya.style.visibility="";if(ua!=null)ua.style.visibility="";if(ja!=null)ja.style.visibility="";if(sa!=null)sa.style.visibility=""}};e.b.gk=function(){if(ya!=null)ya.style.visibility=
"hidden";if(ua!=null)ua.style.visibility="hidden";if(ja!=null)ja.style.visibility="hidden";if(sa!=null)sa.style.visibility="hidden"};e.clearData();e.visibility=="hidden"&&e.qb(function(r){r.style.visibility=""});z();e.setScrollBar();e.cb()};this.zb=function(m){if(!m)if(e.designMode&&Ta.Vd)return;if(e.Ce){m=e.b.parentNode;if(m.getAttribute("container")=="true"){for(var q=m.offsetWidth,r=e.Qh().split(","),w=0,x=0;x<r.length;x++){var D=r[x];D=Number(D);r[x]=D;w+=D}q=(q-w)/r.length;q=parseInt(q);for(x=
0;x<r.length;x++)r[x]+=q;e.Xi(r);m=m.offsetHeight;if(e.f)m-=e.ub;if(e.o)m-=e.o.getHeight();m=m/e.X;if(e.f)m+=1;m=parseInt(m);if(m<1)m=1;e.Dh=true;r=document.activeElement;q=x=null;w=false;if(e.cells.length<m)w=true;if(r&&r.A&&!w&&pui.is_android){x=document.createElement("input");x.type=r.type;x.style.position="absolute";x.style.left="0px";x.style.top="0px";x.style.opacity=0;x.id="proxyEl";q=r;document.body.appendChild(x);x.focus();D=e.cells[0][0].firstChild.A;e.n=D<=r.A&&D+m>r.A?D:r.A}else e.d!=null&&
e.d.tc(e.n);e.setNumberOfRows(m);e.Dh=false;var H=parseInt(e.b.style.left),P=parseInt(e.b.style.top);e.qb(function(O){O.style.left=parseInt(O.style.left)-H+"px";O.style.top=parseInt(O.style.top)-P+"px"});e.setScrollBar();e.Pb();if(q&&x&&!w&&pui.is_android){q.focus();x.parentNode.removeChild(x)}}}};this.Lk=function(){if(e.eb<=1)return false;var m=e.cg;if(e.dg==true)m=false;if(e.cg==null&&e.dg==false)m=true;if(m==null)m=false;return m};this.collapse=function(m){if(e.expanded)if(!(e.eb<=1)){if(e.oa!=
null)e.oa.style.display="none";e.expanded=false;var q=e.cells.length;if(e.f)q-=1;q*=e.eb-1;if(!e.Xc){e.setProperty("row height",parseInt(e.X/e.eb));for(var r=0;r<q;r++)e.vc();e.Na();e.rc();e.getData();for(q=0;q<e.cells.length;q++)for(r=0;r<e.cells[q].length;r++){var w=e.cells[q][r],x=w.firstChild,D=parseInt(w.style.height);if(!isNaN(D)){for(;x!=null;){var H=parseInt(x.style.top);if(isNaN(H))H=0;if(H>D&&(x.tagName=="INPUT"||x.tagName=="SELECT"||x.tagName=="TEXTAREA")&&!x.disabled){x.Gi=true;x.disabled=
true}x=x.nextSibling}w.scrollTop=0}}}if(m!=null&&m.tagName=="IMG"){m.src=pui.normalizeURL("/profoundui/proddata/images/icons/expandall.gif");m.title=pui.getLanguageText("runtimeText","expandAll")}}};this.expand=function(m){if(!e.expanded)if(!(e.eb<=1)){if(e.oa!=null)e.oa.style.display="none";e.expanded=true;var q=e.cells.length;if(e.f)q-=1;q=parseInt(q/e.eb);q*=e.eb-1;if(!e.Xc){e.setProperty("row height",e.X*e.eb);for(var r=0;r<q;r++)e.hf();e.Na();e.rc();e.getData();for(r=0;r<e.aa.length;r++)if(q=
e.aa[r].domEls)for(var w in q)if(!isNaN(parseInt(w,10))){var x=q[w];if(x.Gi){x.Gi=false;x.disabled=false}}}if(m!=null&&m.tagName=="IMG"){m.src=pui.normalizeURL("/profoundui/proddata/images/icons/collapseall.gif");m.title=pui.getLanguageText("runtimeText","collapseAll")}}};this.toggle=function(m){e.expanded?e.collapse(m):e.expand(m)};this.nr=ha();this.rowZoom=function(m){if(!(M!="dspf"&&!pui.N)){if(typeof m=="number"){m=m-e.n;e.f&&m++;m=e.cells[m];if(m==null)return}if(e.oa==null){e.oa=document.createElement("div");
var q=parseInt(e.b.style.width);if(e.xb||e.Rc)q-=21;e.oa.style.width=q+"px";e.oa.style.height=e.X*e.eb+"px";e.oa.style.border="1px solid #1541c4";e.oa.style.overflow="hidden";e.oa.style.position="absolute";e.oa.style.zIndex=e.gp;e.oa.style.left=parseInt(e.b.style.left)+"px";e.oa.onclick=function(){e.oa.style.display="none"};e.oa.onmouseout=function(H){H=H?H.relatedTarget:event.toElement;try{if(H!=null&&H.parentNode!=null){if(H.parentNode==e.oa)return;if(H.parentNode.parentNode==e.oa)return}}catch(P){}e.oa.style.display=
"none"};e.b.parentNode.appendChild(e.oa)}e.oa.innerHTML="";e.oa.className=e.b.className;e.oa.style.top=parseInt(e.b.style.top)+parseInt(m[0].style.top)-parseInt(e.X*(e.eb-1)/2)+"px";for(q=0;q<m.length;q++){var r=m[q].cloneNode(true);r.style.top="0px";r.style.height=parseInt(e.oa.style.height)+2+"px";if(!pui.Z)r.style.cursor="pointer";for(var w=0;w<r.childNodes.length;w++){var x=r.childNodes[w];if(x.getAttribute("isZoomIcon")=="true")x.style.display="none";if(x.tagName=="INPUT"){var D=x.className;
if(D==null)D=null;D+=" PR";x.className=bb(D);x.readOnly=true}if(x.tagName=="SELECT")x.disabled=true}e.oa.appendChild(r)}e.oa.style.display=""}};this.exportCSV=function(m){var q;if(typeof pui["csv separator"]=="string")q=pui["csv separator"];else{q=",";if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"))q=";"}if(!e.designMode){m=m;if(m==null)m=e.fk;if(m==null||m=="")m=e.b.id;if(e.lb())e.getData(m);else if(M=="genie"&&!pui.N)pui.alert('In 5250 mode, the "csv export" feature requires an SQL-driven subfile.');
else{m=encodeURIComponent(m);for(var r=[],w=[],x=[],D=[],H=0;H<e.k.length-1;H++){r.push(-1);w.push(false);x.push(false);D.push(false)}for(H=0;H<e.aa.length;H++){var P=e.aa[H];if(P.visibility!="hidden"){var O=Number(P.column);if(!isNaN(O)&&O>=0&&O<r.length&&r[O]==-1){if(pui.p(P.visibility))D[O]=P.visibility;var Q=P.value;if(P["field type"]=="html container")Q=P.html;if(pui.p(Q)&&Q.dataType!="indicator"&&Q.dataType!="expression"){var U=pui.O(Q.fieldName);for(P=0;P<e.la.length;P++)if(U==e.la[P]){r[O]=
P;if(Q.formatting=="Number")w[O]=true;if(Q.dataType=="graphic")x[O]=true;break}}}}}O="";if(e.f&&e.Jh)for(H=0;H<r.length;H++){var X=r[H];if(X>-1){P=ob(e.cells[0][H]);P=P.replace(/"/g,'""');P=P.replace("\n","");P=P.replace("\r","");if(O!="")O+=q;O+='"'+P+'"'}}O="\ufeff"+O;Q=e.D;if(e.isFiltered())Q=e.sa;for(H=0;H<Q.length;H++){U="";var F=Q[H],ca={};if(F==null||F.length==0)ca.empty=true;else for(P=0;P<e.la.length;P++)ca[e.la[P]]=F[P];for(P=0;P<r.length;P++){X=r[P];if(X>-1){X=F[X];if(x[P])X=pui.formatting.Kf(X);
if(w[P]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"))X=X.replace(".",",");X=X.replace(/"/g,'""');if(D[P]!==false)if(pui.ba(D[P],ca,e.ref)=="hidden")X="";if(U!="")U+=q;U+='"'+Wa(X)+'"'}}if(O!="")O+="\n";O+=U}pui.pk("text/csv",m+".csv",O)}}};this.Yh=function(m){if(M=="genie"&&!pui.N)return false;var q=m,r=m;if(m==null){q=0;r=e.k.length-2}m=0;if(e.f)m=1;if(r<0)return false;for(q=q;q<=r;q++)for(var w=e.cells[m][q].firstChild;w!=null;){if(w.style.position=="absolute"&&
!w.ii)return true;w=w.nextSibling}return false};this.Kn=function(){for(var m=[],q=e.b.e.designer.items,r=0;r<q.length;r++){var w=q[r];w.Fq()==e&&m.push(w)}return m};this.Yn=function(){var m=e.g.length-1;if(e.f)m-=1;return m};this.Te=function(m){if(!(M=="genie"&&!pui.N))if(e.designMode){var q,r,w=document.createElement("span");if(e.f){r=e.cells[1][m];q=2}else{r=e.cells[0][m];q=1}for(r=r.firstChild;r!=null;){if(r.style.position=="absolute"&&!r.ii&&!r.Qq){var x=r.cloneNode(true);x.id="";x.Xo!=null&&
x.Xo(x);w.appendChild(x)}r=r.nextSibling}for(q=q;q<e.cells.length;q++){e.cells[q][m].innerHTML="";e.cells[q][m].appendChild(w.cloneNode(true))}}};this.Wd=function(){if(!(M=="genie"&&!pui.N))for(var m=e.k.length-1,q=0;q<m;q++)e.Te(q)};this.getCellValue=function(m,q){var r=m,w=1;if(M=="dspf"||e.lb()||pui.N)w=e.n;r-=w;e.f&&r++;r=e.cells[r];if(r==null)return null;r=r[q];if(r==null)return null;return ob(r)};this.getDataValue=function(m,q){if(typeof m!="number")return null;if(typeof q!="string")return null;
var r=a(m);if(r==null)return null;q=pui.O(q);var w=pui.ca[pui.jc(e.dc)+"."+q+"."+m];if(w!=null&&w.length==1){w=w[0];if(w!=null)return w.tagName?xb(w):w.value}w=b(q);if(w==null)return null;return r[w]};this.setDataValue=function(m,q,r){q=pui.O(q);var w=a(m);if(w!=null){var x=b(q);if(x!=null)w[x]=r}w=null;for(x=0;x<e.aa.length;x++){var D=e.aa[x].value;if(pui.p(D)&&pui.O(D.fieldName)==q){w=e.aa[x];break}}if(w==null)return false;m=w.domEls[m-1];if(m==null)return false;zb(m,r);return true};this.pb=function(){return e.n>
1?false:true};this.xi=function(){if(t("onpageup")!=false)if(pui.N&&e.pb()||!pui.N&&M=="genie")Ib("pageup");else{e.mask();var m=e.cells.length;if(e.f)m-=1;e.n-=m;if(e.n<1)e.n=1;if(e.xb){e.d.tc(e.n);if(pui.is_touch&&!pui.is_mouse_capable||pui.Z)e.getData()}else e.getData();setTimeout(function(){e.vf();if(typeof pui.l.cc=="undefined"||pui.l.cc==false){var q=0;e.f&&q++;var r=e.cells[q];setTimeout(function(){Y(r)},100)}},1)}};this.jb=function(){var m=e.cells.length;if(e.f)m-=1;m=e.n+m-1;var q=e.D;if(e.isFiltered())q=
e.sa;return q.length>m?false:true};this.ti=function(){if(t("onpagedown")!=false)if(pui.N&&e.jb()||!pui.N&&M=="genie")Ib("pagedown");else{e.mask();var m=e.cells.length;if(e.f)m-=1;e.n+=m;m=e.n+m-1;var q=e.D;if(e.isFiltered())q=e.sa;if(q.length<m&&e.d!=null){e.n=e.n-m+q.length;if(e.n<1)e.n=1}if(e.xb){e.d.tc(e.n);if(pui.is_touch&&!pui.is_mouse_capable||pui.Z)e.getData()}else e.getData();setTimeout(function(){e.vf();if(typeof pui.l.cc=="undefined"||pui.l.cc==false){var r=0;e.f&&r++;var w=e.cells[r];setTimeout(function(){Y(w)},
100)}},1)}};this.vf=function(){if(Ja!=null)Ja.style.display="none"};this.mask=function(){if(!e.designMode){var m=e.b;if(m.style.visibility!="hidden")if(e.b.parentNode!=null){var q=parseInt(m.style.left),r=parseInt(m.style.top),w=parseInt(m.style.width)-2;m=parseInt(m.style.height);if(Ja==null)Ja=document.createElement("div");else Ja.style.display="";if(e.f){r+=e.ub;m-=e.ub}Ja.style.position="absolute";Ja.style.left=q+"px";Ja.style.top=r+"px";Ja.style.width=w+"px";Ja.style.height=m+"px";Ja.className=
"grid-mask";e.b.parentNode.appendChild(Ja)}}};this.getData=function(m){function q(U,X){if(!(e==null||e.cells==null)){if(X!=null)e.totalRecs=X;for(var F=f(),ca=Array(e.cells[0].length),R=0;R<e.cells[0].length;R++)ca[e.cells[0][R].Ca]=R;for(R=0;R<U.length;R++){var ka=U[R],qa=0;for(var ra in ka){var Ca=e.cells[R+(e.f?1:0)];if(qa<Ca.length){var dc=ka[ra],Rb="",db;db=pui.secLevel>0?ca[qa]:qa;if(Ca[db].style.textAlign!=null&&Ca[db].style.textAlign!="")Rb=" text-align:"+Ca[db].style.textAlign;Ca[db].innerHTML=
'<div style="'+F+Rb+'">'+dc+"</div>"}qa++}}if(e.d!=null){if(e.d.type=="paging"){e.d.jb=false;if(e.totalRecs!=null){F=e.cells.length;if(e.f)F-=1;if(e.n+F>e.totalRecs)e.d.jb=true}e.d.reset()}if(e.d.type=="sliding")if(e.totalRecs!=null)e.d.Pa=e.totalRecs}e.b.style.visibility!="hidden"&&e.d!=null&&e.d.r();e.Hf=false}}if(e.b.disabled!=true)if(!e.designMode){var r=e.cells.length;if(e.f)r-=1;if(!(r<1)){var w=e.R["custom sql"],x="";if(w==null||w==""){var D=e.R["database file"],H=e.R["database fields"],P=
e.R["selection criteria"];x=e.R["order by"];if(e.me!=null)x=e.me;if(H!=null&&H!=""&&D!=null&&D!=""){w="SELECT "+H+" FROM "+D;if(P&&P!="")w+=" WHERE "+P;if(x&&x!="")w+=" ORDER BY "+x}}D=e.R["data url"];if(D=="")D=null;if(w==null)w="";if(w!=""||D!=null)if(m!=null){if(!(w==null||w=="")){r=",";H=".";if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){r=";";H=","}if(typeof pui["csv separator"]=="string")r=pui["csv separator"];var O=document.createElement("form");O.action=
Za("PUI0009107.pgm");O.method="post";D=function(U,X){var F=ab("input",U);F.type="hidden";F.value=X;O.appendChild(F)};D("delimiter",r);D("UTF8","Y");D("decType",H);D("fileName",m+".csv");if(pui.secLevel>0){D("q",encodeURIComponent(pui.gd(e.b)));m={};pui.fd(e.R,m);for(var Q in m)D(Q,encodeURIComponent(m[Q]));x&&x!=""&&D("order",x)}else D("q",pui.Xa.cd(w));D("AUTH",pui.appJob.auth);if(e.f&&e.Jh){Q="";for(x=0;x<e.cells[0].length;x++){m=ob(e.cells[0][x]);m=m.replace(/"/g,'""');if(Q!="")Q+=r;Q+='"'+m+'"'}D("headings",
Q)}document.body.appendChild(O);pui.skipConfirm=true;O.submit();setTimeout(function(){O.parentNode.removeChild(O);pui.skipConfirm=false},0)}}else{if(e.d!=null){if(e.d.type=="paging")e.d.pb=e.n==1;e.b.style.visibility!="hidden"&&e.d.r()}e.clearData();aa(w,r,e.n,q,e.totalRecs==null,D,true)}else if(M=="dspf"||pui.N){Q=e.D;if(e.isFiltered())Q=e.sa;e.b.yb=0;x=e.n;if(Q[e.n-1]&&Q[e.n-1].A!=null)x=Q[e.n-1].A;e.b.Kl=x;if(e.Lh!=null)pui.Sg["toprrn."+e.Lh]=x;e.clearData();m=e.f?1:0;w=e.n+r-1;if(Q.length<w&&
e.d!=null){e.n=e.n-w+Q.length;if(e.n<1)e.n=1;w=Q.length}e.jo();for(x=e.n;x<=w;x++){D={};H=Q[x-1];if(H==null||H.length==0)D.empty=true;else for(P=0;P<e.la.length;P++)D[e.la[P]]=H[P];if(e.rd||e.zg!=null||e.xg!=null)e.vd(m);if(D.empty!=true){H=Q[x-1].A;if(H==null)H=x;pui.Li({designMode:false,name:pui.jc(e.dc),metaData:{items:e.aa},data:D,ref:e.ref,errors:e.errors,pd:m,A:H,Gc:x-1,ua:e.ua});if(e.rd&&e.Ma!=null){D=pui.jc(e.dc)+"."+pui.O(e.Ma.fieldName)+"."+H;if(pui.ca[D]==null){Q[x-1].selection={modified:false,
type:"grid selection",value:e.Ma.dataType=="indicator"?"0":" ",A:H,L:e.Ma};pui.ca[D]=[];pui.ca[D].push(Q[x-1].selection)}}}m++}if(e.d!=null&&e.d.type=="sliding")e.d.Pa=Q.length;e.b.style.visibility!="hidden"&&e.d!=null&&e.d.r();if(e.o!=null){e.o.wi=parseInt((e.n+r*2-2)/r)+e.Jk-1;e.o.r()}e.Hf=false}}}};this.clearData=function(){if(!e.Hf){var m;if(e.d!=null)m=e.d.km;for(var q=e.f?1:0;q<e.cells.length;q++)for(var r=0;r<e.cells[q].length;r++)for(var w=e.cells[q][r],x=w.firstChild;x;){if(x==m){x.style.display=
"none";x.ee=true;e.b.appendChild(x)}else w.removeChild(x);x=w.firstChild}e.Hf=true}};this.jo=function(){for(var m in e.Vg)e.Vg[m].io()};this.destroy=function(){e.Fc&&eb(document,"click",e.Zf);for(var m=e.k.length-1;m>=0;m-=1)e.k[m].parentNode!=null&&e.k[m].parentNode.removeChild(e.k[m]);for(m=e.g.length-1;m>=0;m-=1)e.g[m].parentNode!=null&&e.g[m].parentNode.removeChild(e.g[m]);e.d!=null&&e.d.destroy();e.o!=null&&e.o.destroy();e.ab!=null&&e.ab.destroy();ya!=null&&ya.parentNode.removeChild(ya);ua!=
null&&ua.parentNode.removeChild(ua);ja!=null&&ja.parentNode.removeChild(ja);sa!=null&&sa.parentNode.removeChild(sa);ia!=null&&ia.parentNode.removeChild(ia);da!=null&&da.parentNode.removeChild(da);ta!=null&&ta.parentNode.removeChild(ta);Aa!=null&&Aa.parentNode.removeChild(Aa);wa!=null&&wa.parentNode.removeChild(wa);wa=null;delete e.D;delete e.sa;delete e.aa;delete e.la;delete e.ref;delete e.k;delete e.g;delete e.cells;delete e.Xb;delete e.Vg;delete e.u;delete e};this.Qh=function(){for(var m="",q=1;q<
e.k.length;q++){var r=parseInt(e.k[q].style.left)-parseInt(e.k[q-1].style.left);m+=m==""?String(r):","+String(r)}return m};this.Xi=function(m){if(typeof m=="string")m=m.split(",");if(!(e.k.length<=0)){for(var q=parseInt(e.k[0].style.left),r=1;r<e.k.length;r++){var w=e.jk,x=r-1;if(x<m.length)w=pui.qd(m[x],50);q+=w;e.k[r].style.left=q+"px"}C();e.designMode&&e.Na();z();e.setScrollBar();e.Pb();e.cb(true)}};this.qc=function(){if(!e.Dh)if(e.designMode){var m=e.b.e;if(m!=null){m.designer.md.update();var q=
m.designer.selection;if(q.ec.length==1&&q.ec[0].e==m)e.cb();else{q.clear();q.add(m);e.cb(true)}}}};this.cb=function(m){if(e.designMode)if(!Ta.Vd){var q=e.b.e;if(q!=null){var r=e.g.length-1;if(r<0)r=0;r=String(r);var w=e.k.length-1;if(w<0)w=0;w=String(w);var x=false;x=c(q,"number of rows",r)||x;x=c(q,"number of columns",w)||x;x=c(q,"row height",e.X)||x;x=c(q,"header height",e.ub)||x;x=c(q,"column widths",e.Qh())||x;x=c(q,"left",e.b.style.left)||x;x=c(q,"top",e.b.style.top)||x;x=c(q,"height",e.b.style.height)||
x;(x=c(q,"width",e.b.style.width)||x)&&q.designer.oi();if(x||m)q.designer.Ta.refresh()}}};this.Pb=function(){if(e.f)if(!(e.cells.length<=0))for(var m=f(),q=e.cells[0],r=0;r<q.length;r++){var w=q[r],x=false;if(e.designMode==false&&w.tb!=null){x=true;e.Ii(w)}if(e.Xb.length<=r)w.innerHTML="";else{var D="";if(w.style.textAlign!=null&&w.style.textAlign!="")D=" text-align:"+w.style.textAlign;w.innerHTML='<div style="'+m+D+'">'+e.Xb[r]+"</div>";K(w)}x&&e.Rl(w);x=false;if(e.designMode==false&&e.sortable==
true&&e.va!=null){if(va==w.Ca)x=true;else if(e.b.ye!=null&&e.Kc==w.Ca)x=true;else if(e.b.Ee!=null&&e.Le!=null&&e.Le==e.vk(w.Ca))x=true;if(x){e.va.parentNode!=null&&e.va.parentNode.removeChild(e.va);w=w;if(w.firstChild!=null&&w.firstChild.tagName=="DIV")w=w.firstChild;w.appendChild(e.va)}}}};this.rn=function(){if(e.f)if(!(e.cells.length<=0))for(var m=0;m<e.cells[0].length;m++)e.cells[0][m].innerHTML=""};this.Zk=function(){function m(O){function Q(){h(O)}N(O,"click",Q);O.Ng=Q}function q(O){function Q(){if(e.b.ye!=
null){e.bk=String(O.Ca);pui.ze=e;pui.wb();pui.ze=null}else if(e.b.Ee!=null){e.Kh=e.vk(O.Ca);if(e.Kh!=null){pui.Fe=e;pui.wb();pui.Fe=null}}else l(O)}N(O,"click",Q);O.Ng=Q}if(e.sortable)if(!(M!="dspf"&&!pui.N))if(e.f)if(!(e.cells.length<=0)){var r=e.cells[0];if(e.R["database file"]!=null&&e.R["database file"]!=""&&(e.R["custom sql"]==null||e.R["custom sql"]=="")&&(e.R["data url"]==null||e.R["data url"]=="")&&e.R["database fields"]!=null&&e.R["database fields"]!=""){for(var w=pui.Md(e.R["database fields"]),
x=0;x<w.length;x++){r[x].fieldName=w[x];if(!pui.Z)r[x].style.cursor="pointer";m(r[x]);r[x].Sb=!g(x)}e.Kc!=null&&h(r[e.Kc])}else{for(x=0;x<e.aa.length;x++){var D=e.aa[x];w=Number(D.column);var H=D.value;if(D["field type"]=="html container")H=D.html;if(pui.p(H)&&!isNaN(w)&&w<r.length&&r[w].dm==null){D=pui.O(H.fieldName);for(var P=0;P<e.la.length;P++)if(D==e.la[P]){r[w].dm=P;r[w].fieldName=D;r[w].dataType=H.dataType;if(!pui.Z)r[w].style.cursor="pointer";q(r[w]);r[w].Sb=!g(w);break}}}if(e.Kc!=null)l(r[e.Kc],
false,true);else if(e.Le!=null){x=e.Ln(e.Le);x!=null&&l(r[x],false,true)}}}};this.cp=function(){if(J!=false){var m=p();if(m!=null)if(m.cols==null||m.cols!=pa)s({});else{if(ga==true){var q=m.colWidths;if(q!=null){e.Xi(q);e.Na();e.Pb()}}if(V==true){var r=m.colSequence;if(r!=null){var w=Array(r.length);for(q=0;q<w.length;q++)w[q]=e.cells[0][r[q]];for(q=0;q<w.length;q++)e.moveColumn(w[q].col,q)}}if(e.sortable&&e.b.ye==null&&e.b.Ee==null){m=m.sort;if(m!=null&&m.columnId!=null&&m.descending!=null){var x;
for(q=0;q<e.cells[0].length;q++)if(e.cells[0][q].Ca==m.columnId){x=e.cells[0][q];x.Sb=!m.descending}e.lb()?h(x,true):l(x,true,false)}}}}};this.tn=function(m,q){if(!e.hk){e.hk=true;var r=Number(e.R["starting row"]),w=Number(e.R["ending row"]);if(!(isNaN(r)||isNaN(w)))if(e.R["data columns"]!=null){for(var x=[],D=0;D<m;D++){var H="data columns";if(D>0)H+=" "+(D+1);x[D]=e.R[H].split(",")}H=0;e.f&&H++;for(r=r;r<=w;r+=m){for(D=0;D<m;D++)for(var P=0;P<x[D].length;P++){var O=x[D][P],Q="D_"+(r+D)+"_"+O,U=
e.b.parentNode.id;if(U!=null&&U.substr(0,6)=="window"){var X=parseInt(U.substr(6,1));if(!isNaN(X)&&X>0)Q+="_W"+X}var F=Ra(Q),ca;if(F==null){Q="I_"+(r+D)+"_"+O;F=Ra(Q);if(F==null)if(!isNaN(X)&&X>0)Q+="_W"+X;F=Ra(Q);if(F==null)continue;if(!F.readOnly)continue;O=F.value;O=O.replace(/ /g,"&nbsp;");F.style.display="none";objClass=F.className;Q=parseInt(F.style.left);U=parseInt(F.style.top);ca=F.w}else{O=F.innerHTML;objClass=F.className;Q=parseInt(F.style.left);U=parseInt(F.style.top);ca=F.w;F.parentNode.removeChild(F)}if(objClass==
null||objClass==""||objClass=="A20"||objClass.indexOf("readOnly")!=-1)objClass="";F=P;if(m>1)F=0;if(e.cells.length<=H)break;F=e.cells[H][F];if(F!=null){var R=document.createElement("div");R.className=objClass;R.innerHTML=O;R.style.position="absolute";Q-=parseInt(F.style.left);Q-=parseInt(e.b.style.left);if(q==true||m==1)Q=5;R.style.left=Q+"px";U-=parseInt(F.style.top);U-=parseInt(e.b.style.top);if(q==true||m==1)U=5;R.style.top=U+"px";R.w=ca;N(R,"click",setPos);if(m==1){F.w=ca;N(F,"click",setPos)}F.appendChild(R)}}H++}}}};
this.setScrollBar=function(){if(e.o.a==null){e.o.a=e.a;e.o.grid=e;e.o.init();e.o.r()}e.o.x=parseInt(e.b.style.left);e.o.y=parseInt(e.b.style.top);var m=parseInt(e.b.style.height);if(isNaN(m))m=0;e.o.y+=m;e.o.width=parseInt(e.b.style.width);if(isNaN(e.o.width)||e.o.width<10)e.o.width=10;e.o.width-=2;if(!e.designMode){e.o.width-=2;e.o.r()}e.o.position();var q=true;if(e.g.length<2)q=false;if(e.g.length<3&&e.f)q=false;if(e.k.length<2)q=false;if(!e.Rc&&!e.xb)q=false;m="paging";if(e.xb)m="sliding";if(M==
"genie"&&!e.designMode&&e.lb())m="sliding";if(q&&(e.d==null||e.d!=null&&e.d.type!=m)){e.d!=null&&e.d.destroy();if(m=="paging"){e.d=new pui.Cm;e.d.grid=e}if(m=="sliding"){e.d=new pui.Em;if(M=="genie"&&!pui.N)e.d.ff=true}e.d.a=e.a;e.d.zIndex=e.hp;e.d.designMode=e.designMode;if(m=="sliding"){e.d.kg=function(D){e.n=D;e.getData();e.pl(true)};e.d.onchange=function(){e.lb()&&e.clearData()};e.d.Bn(e.b)}if(m=="paging"){e.d.We=function(){if(t("onpageup")==false)return false;if(e.lb()){if(e.n>1){var D=e.cells.length;
if(e.f)D-=1;e.n-=D;if(e.n<1)e.n=1;e.getData()}return true}else if(M=="dspf"||pui.N){pui.Qd({},"PageUp");e.d.type=="paging"&&pui.Ob&&setTimeout(function(){e.d.destroy();e.d=null;e.setScrollBar()},250)}else if(M=="genie"){Ib("PageUp");return true}};e.d.Ve=function(){if(t("onpagedown")==false)return false;if(e.lb()){var D=e.cells.length;if(e.f)D-=1;e.n+=D;e.getData();return true}else if(M=="dspf"||pui.N){pui.Qd({},"PageDown");e.d.type=="paging"&&pui.Ob&&setTimeout(function(){e.d.destroy();e.d=null;e.setScrollBar()},
250)}else if(M=="genie"){Ib("PageDown");return true}}}e.d.init(e.b)}if(q){q=e.borderWidth;if(q===null||e.designMode&&q<W)q=W;var r=23;if(pui.is_touch&&!pui.is_mouse_capable&&!e.designMode||pui.Z)r=0;e.d.x=parseInt(e.k[e.k.length-1].style.left)-r;if(!e.designMode&&e.a!=null&&e.a.tagName=="DIV"&&e.a.getAttribute("container")=="true"){var w=e.a.parentNode;if(w!=null&&w.tagName=="DIV"&&w.style.overflowX=="scroll"){var x=w.parentNode;if(x!=null&&x.tagName=="DIV"&&x.pui!=null&&x.pui.properties!=null&&x.pui.properties.template==
"simple container"&&x.pui.properties["overflow x"]=="scroll")if(x.offsetWidth<e.b.offsetWidth+e.b.offsetLeft){e.d.x=x.offsetWidth-r+2+w.scrollLeft;w.onscroll=function(){e.d.x=x.offsetWidth-r+2+w.scrollLeft;e.b.style.visibility!="hidden"&&e.d.r()}}}}e.d.y=parseInt(e.b.style.top)+q;if(m=="paging"){e.d.height=e.fb("height")-q;if(e.d.height<0)e.d.height=0}if(m=="sliding"){e.d.interval=e.lb()?250:1;m=e.cells.length;if(e.f)m-=1;e.d.nb=m;e.d.X=e.X;e.d.borderWidth=q;if(e.designMode)e.d.Pa=m*3;if(e.Si=="row number"){e.d.ke=
true;e.d.le=false}else if(e.Si=="row range"){e.d.ke=false;e.d.le=true}else{e.d.ke=false;e.d.le=false}}if(e.f){m=e.ub;e.d.y+=m;m=-m;e.d.height+=m}e.b.style.visibility!="hidden"&&e.d.r()}else if(e.d!=null){e.d.destroy();e.d=null}};this.fb=function(m){m=parseInt(e.b.style[m]);if(isNaN(m))m=0;return m};this.setProperty=function(m,q){if(q==null)q="";if(m.indexOf("parameter value")==0)e.R[m]=q;else switch(m){case "id":case "parent window":case "screen identifier":case "field type":case "value":case "color":case "display subfile":case "display control record":case "initialize subfile":case "subfile records not active":case "delete subfile":case "clear subfile":case "subfile size":case "subfile next changed":case "subfile record number":case "position at top":case "place cursor":case "cursor record number":case "cursor progression":case "subfile return rrn":case "subfile changed":case "subfile message key":case "subfile program message queue":case "subfile control program message queue":case "allow drag":case "ondragstart":case "drop targets":case "ondragenter":case "ondragleave":case "ondrop":case "return mode":case "selection field":case "column sort response":case "right":case "bottom":break;
case "field name sort response":break;case "record format name":e.dc=q;if(M=="dspf"){var r=e.b.e;if(r!=null){r.properties[m]=q;recordFormats.refresh()}}break;case "description":if(M=="dspf"){r=e.b.e;if(r!=null){r.properties[m]=q;recordFormats.refresh()}}break;case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":case "header font color":case "header background":case "header image":case "row font color":case "row background":case "odd row font color":case "odd row background":case "even row font color":case "even row background":case "hover font color":case "hover background":case "hover image":case "selection font color":case "selection background":case "selection image":case "header font family":case "header font size":case "header font weight":case "header font style":case "header text align":e.u[m]=
q==""&&e.Bc[m]!=null?e.Bc[m]:q;if(e.designMode){e.rc();if(m=="text align"||m=="header text align"||m=="header font family"||m=="header font size"||m=="header font style"||m=="header font weight")e.Pb()}break;case "row selection":if(q=="single"||q=="multiple (simple)"||q=="multiple (extended)"){e.rd=true;if(q=="single"){e.Mg=true;e.De=false}else{e.Mg=false;e.De=q=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==false){e.b.onselectstart=
la(false);if(typeof e.b.style.MozUserSelect!="undefined")e.b.style.MozUserSelect="none"}}else{e.rd=false;e.Mg=false;e.De=false}break;case "selection value":if(q!=null&&q!="")e.kf=q;break;case "number of rows":r=e.g.length-1;if(r<0)r=0;var w=parseInt(q);if(isNaN(w))w=r;if(w<1)w=1;if(e.f&&w<2)w=2;if(w>99&&e.designMode)w=99;if(w>r){for(;w>e.g.length-1;)e.vc();e.Wd()}if(w<r)for(;w<e.g.length-1;)e.hf();if(e.b.e!=null)e.b.e.properties[m]=q;e.cb();break;case "number of columns":w=e.k.length-1;if(w<0)w=0;
r=parseInt(q);if(isNaN(r))r=w;if(r<1)r=1;if(r>99)r=99;if(r>w)for(;r>e.k.length-1;)e.Fj();if(r<w)for(;r<e.k.length-1;){w=e.k.length-2;if(e.designMode&&e.Yh(w))break;e.Ji()}e.designMode&&e.Na();if(e.b.e!=null)e.b.e.properties[m]=q;e.cb();break;case "row height":if(isNaN(parseInt(q))||parseInt(q)<=0){e.cb(true);break}e.X=parseInt(q);w=e.f?1:0;if(e.g.length<=w)return;r=parseInt(e.g[w].style.top);for(w=w+1;w<e.g.length;w++){r+=e.X;e.g[w].style.top=r+"px"}u();e.designMode&&e.Na();z();e.setScrollBar();e.cb();
break;case "header height":if(isNaN(parseInt(q))||parseInt(q)<=0){e.cb(true);break}e.ub=parseInt(q);if(!e.f||e.g.length<2)return;e.g[0].style.top=parseInt(e.g[1].style.top)-e.ub+"px";E();u();e.designMode&&e.Na();z();e.setScrollBar();e.cb();break;case "has header":if(e.f&&(q==false||q=="false")){e.rn();e.f=false;if(M=="dspf"||pui.N){w=e.k.length-1;for(r=0;r<w;r++)v(e.cells[1][r],e.cells[0][r]);e.Wd()}if(e.g.length>1){e.g[0].style.top=parseInt(e.g[1].style.top)-e.X+"px";E();u();e.designMode&&e.Na();
z();e.setScrollBar()}e.designMode&&e.rc()}if(!e.f&&(q==true||q=="true"||q=="")){e.cells.length<=1&&e.vc();e.f=true;if(M=="dspf"||pui.N){w=e.k.length-1;for(r=0;r<w;r++)v(e.cells[0][r],e.cells[1][r]);e.Wd()}if(e.g.length>1){e.g[0].style.top=parseInt(e.g[1].style.top)-e.ub+"px";E();u();e.designMode&&e.Na();z();e.setScrollBar()}e.rc();e.Pb()}break;case "column widths":e.Xi(q);break;case "column headings":if(!pui.p(q)&&!pui.mb(q))e.Xb=pui.ha(q);e.Pb();break;case "sortable columns":e.sortable=q=="true";
M=="genie"&&e.Zk();break;case "default sort order":if(!e.designMode)e.Be=q==null?[]:q.split(",");break;case "initial sort column":if(!e.designMode){e.Kc=parseInt(q);if(isNaN(e.Kc))e.Kc=null}break;case "initial sort field":if(!e.designMode)e.Le=q;break;case "resizable columns":if(!e.designMode&&(q==true||q=="true")){ga=true;for(w=0;w<e.k.length;w++)I(e.k,w,true,true)}break;case "movable columns":if(!e.designMode&&e.f&&(q==true||q=="true")){V=true;w=e.cells[0];if(w==null){e.vc();w=e.cells[0];if(w==
null){e.vc();w=e.cells[0]}}for(r=0;r<w.length;r++)B(w[r],true)}break;case "persist state":J=e.designMode==false&&pui.nd()&&(q==true||q=="true");break;case "expand to layout":r=q==true||q=="true";if(r!=e.Ce){e.Ce=r;if(e.Ce)if(e.designMode){e.zb();e.b.e.properties["expand to layout"]="true";e.b.e.$a["expand to layout"]=true;e.b.e.designer.Ta.fe("expand to layout")}}break;case "find option":e.Mh=q==true||q=="true";break;case "filter option":e.Sf=q==true||q=="true";break;case "export option":e.Ih=q==
true||q=="true"?true:q==false||q=="false"?false:null;break;case "context menu id":if(!e.designMode){eb(document,"click",e.Zf);r=bb(q);if(r!="")e.Fc=r;if(pui.is_touch){e.b.onselectstart=la(false);if(typeof e.b.style.MozUserSelect!="undefined")e.b.style.MozUserSelect="none";if(typeof e.b.style.webkitUserSelect!="undefined")e.b.style.webkitUserSelect="none"}N(document,"click",e.Zf)}break;case "show paging controls":e.o.je=q==true||q=="true";if(e.designMode){e.o.r();z()}break;case "show page number":e.o.qf=
q==true||q=="true";if(e.designMode){e.o.r();z()}break;case "initial page number":r=Number(q);if(isNaN(r))r=1;e.o.wi=r;e.Jk=r;if(e.designMode){e.o.r();z()}break;case "show bar":e.o.Lg=q==true||q=="true";if(e.designMode){e.o.r();z()}break;case "page down condition":e.o.ll=q;break;case "subfile end":e.em=q==true||q=="true";break;case "page up condition":e.o.ml=q;break;case "page up response":if(q!=null&&q!=""){e.o.og=true;e.o.yi=true}break;case "page down response":if(q!=null&&q!=""){e.o.ng=true;e.o.vi=
true}break;case "csv export":e.o.Fd=q==true||q=="true";if(e.designMode){e.o.r();z()}break;case "csv file name":e.fk=q;break;case "export with headings":e.Jh=q==true||q=="true";break;case "fold multiple":e.eb=parseInt(q);if(isNaN(e.eb)||e.eb<1)e.eb=1;break;case "expanded":if(!e.designMode){if(q=="true")e.dg=true;if(q=="false")e.dg=false}break;case "collapsed":if(!e.designMode){if(q=="true")e.cg=true;if(q=="false")e.cg=false}break;case "single row zoom":if(q=="true")e.$l=true;break;case "scrollbar":if(M==
"genie"&&!pui.N){e.Rc=q==true||q=="true"||q==""?true:false;e.Na()}else{e.xb=true;e.Rc=false;if(q=="none"){e.xb=false;e.Rc=false}if(q=="paging"){e.xb=false;e.Rc=true}e.designMode&&e.Na()}e.setScrollBar();break;case "scroll tool tip":e.Si=q;e.setScrollBar();case "database file":case "database fields":case "selection criteria":case "order by":case "sortable":case "custom sql":case "data url":case "data transform function":case "starting row":case "ending row":case "data columns":case "data columns 2":case "data columns 3":case "data columns 4":e.R[m]=
q;break;case "hover effect":e.ci=q==true||q=="true";break;case "top":r=q;if(pui.p(r))r=r.designValue;var x=parseInt(e.b.style.top)-pui.qd(r);e.qb(function(H){H.style.top=parseInt(H.style.top)-x+"px"});e.setScrollBar();break;case "left":w=q;if(pui.p(w))w=w.designValue;x=parseInt(e.b.style.left)-pui.qd(w);e.qb(function(H){H.style.left=parseInt(H.style.left)-x+"px"});e.setScrollBar();break;case "width":if(!e.designMode||!Ta.Vd){r=e.k.length;r-=1;if(r>0){w=pui.qd(q);w=e.fb("left")+w;if(parseInt(e.k[r-
1].style.left)+5>w)w=parseInt(e.k[r-1].style.left)+5;e.k[r].style.left=w+"px";C();e.designMode&&e.Na();z();e.setScrollBar();e.cb()}}break;case "height":w=e.g.length-1;if(w!=0||!e.f){x=pui.qd(q)-parseInt(e.b.style.height);r=parseInt(x/(w-(e.f?1:0)))+parseInt(e.g[w].style.top);e.g[w].style.top=r+"px";e.X=r-parseInt(e.g[w-1].style.top);if(e.X<5)e.X=5;var D=0;if(e.f)D=1;for(j=w-1;j>=D;j-=1){r-=e.X;e.g[j].style.top=r+"px"}if(e.f)e.g[0].style.top=parseInt(e.g[1].style.top)-e.ub+"px"}E();u();e.designMode&&
e.Na();z();e.setScrollBar();e.cb();break;case "z index":q=parseInt(q);if(isNaN(q))q="";e.b.style.zIndex=q;e.o!=null&&e.o.position();break;case "border color":e.qp(q);break;case "border width":e.rp(q);break;case "padding bottom":case "padding left":case "padding right":case "padding top":e.$e[m]=q;e.Pb();break;case "visibility":e.visibility=q;if(!e.designMode){e.qb(function(H){H.style.visibility=q});if(e.d!=null)q=="hidden"?e.d.hide():e.d.r()}if(e.designMode)if(q=="hidden"){e.b.style.filter="alpha(opacity=30)";
e.b.style.opacity=0.3}else{e.b.style.filter="";e.b.style.opacity=""}break;case "locked in place":e.Pc=q==true||q=="true"?true:false;break;case "css class":e.o!=null&&e.o.Pl(q);break;case "css class 2":case "css class 3":case "css class 4":case "css class 5":case "css class 6":case "css class 7":case "css class 8":case "css class 9":break;case "tool tip":e.b.title=q;break;case "parent tab panel":case "parent tab":case "parent field set":break;case "onrowclick":case "onrowdblclick":case "onrowmouseover":case "onrowmouseout":case "onpagedown":case "onpageup":case "onscroll":e.Hh[m]=
q;break;default:pui.alert("Grid property not handled: "+m)}};this.qb=function(m){for(var q=0;q<e.k.length;q++){var r=e.k[q];m(r)}for(q=0;q<e.g.length;q++){r=e.g[q];m(r)}m(e.b);ia!=null&&m(ia);da!=null&&m(da);ta!=null&&m(ta);Aa!=null&&m(Aa);ya!=null&&m(ya);ua!=null&&m(ua);ja!=null&&m(ja);sa!=null&&m(sa)};this.Fg=function(m){if(e.n!=null&&!isNaN(e.n)&&e.n>0){e.b.yb=m+e.n;if(e.f)e.b.yb-=1;m=e.D;if(e.isFiltered())m=e.sa;if(m[e.b.yb-1]==null||m[e.b.yb-1].length==0)e.b.yb=0;else if(m[e.b.yb-1].A!=null)e.b.yb=
m[e.b.yb-1].A}};this.setCursorRecordNumber=function(m){if(typeof m=="number"&&m>0&&m<9999)e.b.yb=m};this.pl=function(m){var q=e.pg;e.pg=null;if(q!=null){q=q-e.n;if(!(q<0)){e.f&&q++;if(!(q>e.cells.length-1)){var r=e.cells[q];m==true?setTimeout(function(){Y(r)},1):Y(r)}}}};this.isRowSelected=function(m){m=a(m);return A(m)};this.getSelectedRows=function(){var m=[],q=e.D;if(e.isFiltered())q=e.sa;for(var r=e.f?0:1;r<q.length;r++)if(A(q[r])){var w=r+1;if(typeof e.wd!="undefined"&&e.wd===true||e.isFiltered())w=
q[r].A;m.push(w)}return m};this.vd=function(m,q){function r(X,F,ca){if(F==null)F="";var R=F.split(",");if(R.length>1)F=ca<R.length?R[ca]:R[0];X.style.color=F;if(M=="genie"&&!pui.N)for(ca=0;ca<X.childNodes.length;ca++)X.childNodes[ca].style.color=F}var w=m%2==1;if(e.f)w=!w;if(e.cells!=null){var x=e.cells[m],D=false;if(e.rd)if(e.n!=null&&!isNaN(e.n)&&e.n>0){var H=m+e.n-1+(e.f?0:1),P=e.D;if(e.isFiltered())P=e.sa;if(P[H-1]!=null&&P[H-1].length>0)D=A(P[H-1])}var O=null;if(e.xg!=null)if(e.n!=null&&!isNaN(e.n)&&
e.n>0){H=m+e.n-1+(e.f?0:1);P=e.D;if(e.isFiltered())P=e.sa;if(P[H-1]!=null&&P[H-1].length>0){if(e.yg==null)for(var Q=0;Q<e.la.length;Q++)if(pui.O(e.xg.fieldName)==e.la[Q]){e.yg=Q;break}if(e.yg!=null)O=P[H-1][e.yg]}}if(!pui.p(e.u["row background"])&&e.u["row background"]!=null&&e.u["row background"]!="")O=e.u["row background"];var U=null;if(e.zg!=null)if(e.n!=null&&!isNaN(e.n)&&e.n>0){H=m+e.n-1+(e.f?0:1);P=e.D;if(e.isFiltered())P=e.sa;if(P[H-1]!=null&&P[H-1].length>0){if(e.Ag==null)for(Q=0;Q<e.la.length;Q++)if(pui.O(e.zg.fieldName)==
e.la[Q]){e.Ag=Q;break}if(e.Ag!=null)U=P[H-1][e.Ag]}}if(!pui.p(e.u["row font color"])&&e.u["row font color"]!=null&&e.u["row font color"]!="")U=e.u["row font color"];for(Q=0;Q<x.length;Q++){pui.Q(x[Q],"selected");pui.Q(x[Q],"hover");if(D){r(x[Q],e.u["selection font color"],Q);x[Q].style.backgroundColor=e.u["selection background"]==null?"":e.u["selection background"];H=e.u["selection image"];x[Q].style.backgroundImage=H==null||H==""?"":"url('"+pui.normalizeURL(H,true)+"')";pui.Y(x[Q],"selected")}else if(q==
true){r(x[Q],e.u["hover font color"],Q);x[Q].style.backgroundColor=e.u["hover background"];if(e.u["hover image"]!=null&&e.u["hover image"]!=""){x[Q].style.backgroundImage="url('"+pui.normalizeURL(e.u["hover image"],true)+"')";x[Q].style.backgroundRepeat="repeat-x"}pui.Y(x[Q],"hover")}else{if(U==null||U=="")U=e.u[(w?"even":"odd")+" row font color"];if(O==null||O=="")O=e.u[(w?"even":"odd")+" row background"];r(x[Q],U,Q);x[Q].style.backgroundColor=O==null?"":O;x[Q].style.backgroundImage=""}}if(q!=true&&
e.Wa!=null)e.Wa.style.display="none";if(q==true&&e.Wa!=null)e.Wa.style.display=""}};this.rc=function(){for(var m=0;m<e.cells.length;m++)for(var q=0;q<e.cells[m].length;q++){var r=e.cells[m][q],w=m==0&&e.f,x=m%2==1;if(e.f)x=!x;Z(r,w,x,q)}};this.Na=function(){for(var m=0;m<e.cells.length;m++)for(var q=0;q<e.cells[m].length;q++)ea(m,q);if(pa==null)pa=e.Qh()};this.lb=function(){return e.R["custom sql"]!=null&&e.R["custom sql"]!=""||e.R["data url"]!=null&&e.R["data url"]!=""||e.R["database file"]!=null&&
e.R["database file"]!=""?true:false};this.qp=function(m){if(!m)m=e.borderColor;for(var q=0;q<e.k.length;q++)e.k[q].style.borderRightColor=m;for(q=0;q<e.g.length;q++)e.g[q].style.borderTopColor=m;e.borderColor=m};this.rp=function(m){if(!m)m=e.borderWidth;m=parseInt(m);if(!m||m<W&&e.designMode)m=W;for(var q=0;q<e.k.length;q++)e.k[q].style.borderRightWidth=m+"px";for(q=0;q<e.g.length;q++)e.g[q].style.borderTopWidth=m+"px";e.borderWidth=m;C();e.setScrollBar()};this.hide=function(){e.qb(function(m){m.style.visibility=
"hidden"});e.d!=null&&e.d.hide();e.o!=null&&e.o.hide()};this.$h=function(){e.Xc=true;if(e.f){for(var m=1;m<e.cells.length;m++)for(var q=0;q<e.cells[m].length;q++)e.cells[m][q].style.display="none";for(m=2;m<e.g.length;m++)e.g[m].style.display="none";for(m=0;m<e.k.length;m++)e.k[m].style.display="none";e.d!=null&&e.d.hide();e.o!=null&&e.o.hide()}else e.hide()};this.show=function(){e.qb(function(w){w.style.visibility=""});var m=false,q=e.b.e;if(q!=null){var r=q.designer.selection;if(r.ec.length==1&&
r.ec[0].e==q)m=true}!m&&e.b.gk&&e.b.gk();e.setScrollBar()};this.Fj=function(){var m=e.k.length,q=document.createElement("div");q.className="grid-vline";if(e.Re!="")q.className+=" "+e.Re+"-vline";if(!e.designMode)q.gf=e;q.style.position="absolute";var r=parseInt(e.b.style.left);if(m>0)r=parseInt(e.k[m-1].style.left)+e.jk;q.style.left=r+"px";q.style.top=e.b.style.top;r=0;if(e.g.length>0)r=parseInt(e.g[e.g.length-1].style.top)-parseInt(e.b.style.top);q.style.height=r+"px";r=e.borderWidth;if(r===null||
r<W&&e.designMode)r=W;q.style.borderRightStyle="solid";q.style.borderRightWidth=r+"px";q.style.borderRightColor=e.borderColor;q.style.fontSize="0px";q.style.padding="0px";q.style.zIndex=e.aq;e.a.appendChild(q);e.k[m]=q;C();I(e.k,m,true);if(m>0){m=m-1;for(q=1;q<e.g.length;q++){r=ba(q-1,m);r.Ca=m;B(r)}}z();e.setScrollBar()};this.removeColumn=function(m){if(e.k.length-2<1)pui.alert("You cannot remove the last column.");else{e.moveColumn(m,e.cells[0].length);e.Ji();e.zb();e.qc()}};this.Ji=function(){n=
e.k.length;if(!(n<=0)){n-=1;e.k[n].parentNode.removeChild(e.k[n]);e.k[n]=null;e.k.splice(n,1);if(n>0)for(var m=0;m<e.cells.length;m++){e.cells[m][n-1].parentNode.removeChild(e.cells[m][n-1]);e.cells[m][n-1]=null;e.cells[m].splice(n-1,1)}C();z();e.setScrollBar()}};this.moveColumn=function(m,q){for(var r=0;r<e.cells.length;r++){var w=e.cells[r][m];e.cells[r].splice(q,0,w);var x=m;q<=m&&x++;e.cells[r].splice(x,1);for(x=0;x<e.cells[r].length;x++){w=e.cells[r][x];w.col=x}}for(r=1;r<e.k.length-1;r++)e.k[r].style.left=
parseInt(e.k[r-1].style.left)+parseInt(e.cells[0][r-1].style.width)+"px";if(e.designMode){var D=false,H=e.b.e;H.designer.M.clear();x=function(P){var O=H.properties[P];if(!(O==null||O==""||pui.p(O)||pui.mb(O))){arr=O.split(",");if(!(arr.length==1&&P!="column headings"&&P!="column widths")){for(var Q=e.cells[0].length;arr.length>Q;)arr.pop();for(;arr.length<Q;)arr.push("");arr.splice(q,0,arr[m]);Q=m;q<=m&&Q++;arr.splice(Q,1);Q=arr.join(",");if(O!=Q){H.properties[P]=Q;H.$a[P]=true;H.Vb=true;D=H.designer.Wb[H.designer.ya.Ua]=
true}}}};x("font family");x("font size");x("font style");x("font weight");x("letter spacing");x("text align");x("text decoration");x("text transform");x("word spacing");x("header font family");x("header font size");x("header font style");x("header font weight");x("header text align");x("header font color");x("header background");x("column headings");r=e.b.e.properties["column headings"];if(r==null||typeof r!="string")r="";e.Xb=r.split(",");x("odd row font color");x("odd row background");x("even row font color");
x("even row background");x("row font color");x("row background");x("column widths");if(D){H.designer.oi();H.designer.Ta.refresh()}}e.Na();if(!e.designMode){if(e.lb()){r=e.R["database fields"];if(r!=null&&r!=""){r=r.split(",");r.splice(q,0,r[m]);x=m;q<=m&&x++;r.splice(x,1);e.R["database fields"]=r.join(",")}}else for(r=0;r<e.aa.length;r++){H=e.aa[r];w=x=Number(H.column);if(q>m){if(x>m&&x<q)w-=1;if(x==m)w=q-1}if(m>q){if(x>=q&&x<m)w+=1;if(x==m)w=q}if(x!=w)H.column=String(w)}e.Xb.splice(q,0,e.Xb[m]);
x=m;q<=m&&x++;e.Xb.splice(x,1);e.alignColumnTotals()}};this.vc=function(){var m=e.g.length,q=document.createElement("div");q.className="grid-hline";if(e.Re!="")q.className+=" "+e.Re+"-hline";if(!e.designMode)q.gf=e;q.style.position="absolute";q.style.left=e.b.style.left;var r=parseInt(e.b.style.top);if(m>0){r=e.X;if(m==1&&e.f)r=e.ub;r=parseInt(e.g[m-1].style.top)+r}q.style.top=r+"px";r=0;if(e.k.length>0){r=e.borderWidth;r=parseInt(e.k[e.k.length-1].style.left)-parseInt(e.b.style.left)+r}q.style.width=
r+"px";r=e.borderWidth;if(r<W&&e.designMode)r=W;if(r!==null)q.style.borderTopWidth=r+"px";q.style.zIndex=e.co;if(e.b.style.visibility=="hidden")q.style.visibility="hidden";e.a.appendChild(q);e.g[m]=q;u();I(e.g,m,false);if(m>0)for(q=1;q<e.k.length;q++){r=q-1;var w=ba(m-1,r);w.Ca=r;B(w)}z();e.setScrollBar()};this.hf=function(){n=e.g.length;if(!(n<=0)){n-=1;e.g[n].parentNode.removeChild(e.g[n]);e.g[n]=null;e.g.splice(n,1);var m=e.cells.length-1;if(m>=0){for(var q=e.cells[m].length-1;q>=0;q-=1){e.cells[m][q].parentNode.removeChild(e.cells[m][q]);
e.cells[m][q]=null;e.cells[m].splice(q,1)}e.cells.splice(m,1)}u();z();e.setScrollBar()}};this.alignColumnTotals=function(){var m=0;if(e.f)m=1;m=e.cells[m];for(var q=0;q<m.length;q++)for(var r=m[q],w=r.children,x=0;x<w.length;x++){var D=w[x],H=D.id;H=H.split(".")[0]+"_total";H=Ra(H);if(H!=null)H.style.left=parseInt(e.b.style.left)+parseInt(r.style.left)+parseInt(D.style.left)+"px"}};this.scrollToRow=function(m){if(e.xb)e.d.tc(m);else{e.n=m;e.getData()}};this.setNumberOfRows=function(m){e.setProperty("number of rows",
String(m));e.Na();e.rc();e.getData()};this.render=function(){e.Na();e.rc();e.Pb();e.Xc&&e.$h()};this.refresh=function(){e.n=1;e.totalRecs=null;if(e.xb)e.d.Pa=e.totalRecs;e.getData()};this.getRecordCount=function(){var m;m=e.lb()?e.totalRecs:e.D.length;if(m==null)m=0;return m};this.clearState=function(m){var q=p();if(q!=null)if(typeof m=="string"){m=m.toLowerCase();for(var r in q)if(r.toLowerCase()==m){delete q[r];s(q);break}}else delete localStorage[e.tf]};this.getSelectedCount=function(){var m=0;
if(e.rd&&e.Ma){for(var q,r=0;r<e.la.length;r++)if(pui.O(e.Ma.fieldName)==e.la[r]){q=r;break}if(q)for(r=0;r<e.D.length;r++)if(e.D[r].selection&&e.D[r].selection.modified)e.D[r].selected&&m++;else e.D[r][q]==e.kf&&m++}return m};this.Zf=function(){if(e.Fc){var m=Ra(e.Fc);if(m)if(!m.ej){m.style.visibility="hidden";m.style.display="none"}}};this.vk=function(m){if(m==null||isNaN(m))return null;for(var q=0;q<e.aa.length;q++){var r=e.aa[q],w=r.value;if(r["field type"]=="html container")w=r.html;if(w!=null&&
typeof w=="object"&&w.fieldName!=null)if(Number(r.column)==m)return w.fieldName.toUpperCase()}return null};this.Ln=function(m){m=pui.O(m);for(var q=0;q<e.aa.length;q++){var r=e.aa[q],w=r.value;if(r["field type"]=="html container")w=r.html;if(w!=null&&typeof w=="object"&&w.fieldName!=null&&pui.O(w.fieldName)==m){r=Number(r.column);if(r!=null&&!isNaN(r))return r}}return null};this.Ig=function(m){if(m.Cg==null){m.Cg=[];for(var q=0;q<e.aa.length;q++){var r=e.aa[q],w=Number(r.column),x=r.value;if(r["field type"]==
"html container")x=r.html;if(pui.p(x)&&!isNaN(w)&&w==m.col){r=pui.O(x.fieldName);for(w=0;w<e.la.length;w++)r==e.la[w]&&m.Cg.push(w)}}}};this.startFind=function(m){if(typeof m=="number")m=e.cells[0][m];if(m!=null){e.ka.grid=e;e.ka.Yf=m;e.ka.type="find";e.ka.Xe=e.find;e.ka.Vl(pui.getLanguageText("runtimeText","find text")+"...");e.ka.ql(m);e.Ig(m);e.ua.Ca=m.Ca;e.ua.col=m.col;e.ka.show();e.ka.clear();e.ka.focus()}};this.clearHighlighting=function(){e.ua.text="";e.getData()};this.find=function(m,q,r){var w;
w=e.ka.Yf;var x=m,D=q;if(typeof m=="number"){w=e.cells[0][m];x=q;D=r;e.Ig(w)}e.ua.text="";if(x=="")e.getData();else{q=0;if(D)q=e.n;D=x.toLowerCase();w=w.Cg;r=false;m=e.D;if(e.isFiltered())m=e.sa;for(q=q;q<m.length;q++){for(var H=0;H<w.length;H++)if(m[q][w[H]].toLowerCase().indexOf(D)>=0){if(e.d!=null&&e.d.type=="sliding"){e.ua.text=x;r=q+1;if(e.n!=r)e.d.tc(r,false)===false&&e.getData();else e.getData()}r=true;break}if(r)break}r||e.getData()}};this.startFilter=function(m){if(typeof m=="number")m=e.cells[0][m];
if(m!=null){e.ka.grid=e;e.ka.Yf=m;e.ka.type="filter";e.ka.Xe=e.zn;e.ka.Vl(pui.getLanguageText("runtimeText","filter text")+"...");e.ka.ql(m);e.Ig(m);e.ua.Ca=m.Ca;e.ua.col=m.col;e.ka.show();e.ka.clear();if(m.Jb!=null&&m.Jb!=""){e.ka.setText(m.Jb);e.ua.text=m.Jb;e.getData()}e.ka.focus()}};this.zn=function(m){var q=e.ka.Yf;m==""?e.removeFilter(q):e.setFilter(q,m)};this.setFilter=function(m,q){if(typeof m=="number")m=e.cells[0][m];if(m!=null){e.Ig(m);e.ua.text=q;e.Rl(m);m.Jb=q;var r=m.Cg,w=m.Ca;e.sa=
[];for(var x=0;x<e.D.length;x++){var D=e.D[x];if(D.A==null)D.A=x+1;for(var H=0;H<r.length;H++){var P=D[r[H]];if(D.ic==null)D.ic=[];D.ic[w]=true;if(e.Up(P,q)){D.ic[w]=false;break}}e.Sl(D);D.Tf||e.sa.push(D)}e.getData()}};this.getFilter=function(m){if(typeof m=="number")m=e.cells[0][m];if(m==null)return null;return m.Jb};this.Up=function(m,q){if(q.substr(0,8).toLowerCase()=="between "){var r=q.substr(8).toLowerCase().split(" ");if(r.length==3&&r[1]=="and"){var w=r[0];r=r[2];if(!isNaN(Number(w))&&!isNaN(Number(r))){w=
Number(w);r=Number(r);m=Number(m)}else m=m.toLowerCase();return m>=w&&m<=r}}if(q.substr(0,7).toLowerCase()=="values "){q=q.substr(7).toLowerCase();if(q=="")return true;w=q.split(",");for(r=0;r<w.length;r++){q=bb(w[r]).toLowerCase();if(m==q)return true}return false}else if(q.substr(0,12).toLowerCase()=="starts with "){q=q.substr(12).toLowerCase();return q==m.substr(0,q.length).toLowerCase()}else if(q.substr(0,2)=="=="){q=q.substr(2);if(q=="")return true;return q.toLowerCase()==m.toLowerCase()}else if(q.substr(0,
2)==">="){q=q.substr(2);if(q=="")return true;return isNaN(Number(q))?m.toLowerCase()>=q.toLowerCase():Number(m)>=Number(q)}else if(q.substr(0,2)=="<="){q=q.substr(2);if(q=="")return true;return isNaN(Number(q))?m.toLowerCase()<=q.toLowerCase():Number(m)<=Number(q)}else if(q.substr(0,2)=="!="||q.substr(0,2)=="<>"){q=q.substr(2);if(q=="")return true;return isNaN(Number(q))?m.toLowerCase().indexOf(q.toLowerCase())<0:Number(q)!=Number(m)}else if(q.substr(0,1)=="="){q=q.substr(1);if(q=="")return true;
return q.toLowerCase()==m.toLowerCase()}else if(q.substr(0,1)==">"){q=q.substr(1);if(q=="")return true;return isNaN(Number(q))?m.toLowerCase()>q.toLowerCase():Number(m)>Number(q)}else if(q.substr(0,1)=="<"){q=q.substr(1);if(q=="")return true;return isNaN(Number(q))?m.toLowerCase()<q.toLowerCase():Number(m)<Number(q)}else return m.toLowerCase().indexOf(q.toLowerCase())>=0};this.Sl=function(m){m.Tf=false;if(m.ic!=null)for(var q=0;q<m.ic.length;q++)if(m.ic[q]===true){m.Tf=true;break}};this.removeFilter=
function(m){if(typeof m=="number")m=e.cells[0][m];if(m!=null){e.ua.text="";e.Ii(m);m.Jb=null;m=m.Ca;e.sa=[];for(var q=0;q<e.D.length;q++){var r=e.D[q];if(r.ic!=null)r.ic[m]=false;e.Sl(r);r.Tf||e.sa.push(r)}e.getData()}};this.removeAllFilters=function(){for(var m=e.cells[0],q=0;q<m.length;q++){var r=m[q];e.Ii(r);r.Jb=null}for(q=0;q<e.D.length;q++){m=e.D[q];m.ic=null;m.Tf=false}e.sa=[];e.getData()};this.Nn=function(){for(var m=0,q=e.cells[0],r=0;r<q.length;r++){var w=q[r];w.Jb!=null&&w.Jb!=""&&m++}return m};
this.isFiltered=function(){var m=e.cells[0];if(m==null)return false;for(var q=0;q<m.length;q++){var r=m[q];if(r.Jb!=null&&r.Jb!="")return true}return false};this.Rl=function(m){if(m.tb==null){m.tb=document.createElement("img");m.tb.style.paddingLeft="3px";m.tb.src=pui.normalizeURL("/profoundui/proddata/images/grids/filter.png");m.style.cursor="pointer";m.tb.onclick=function(r){if(!pui.Lc(r)){e.startFilter(m);Ma(r)}};var q=m;if(q.firstChild!=null&&q.firstChild.tagName=="DIV")q=q.firstChild;e.va!=null&&
e.va.parentNode===q?q.insertBefore(m.tb,e.va):q.appendChild(m.tb)}};this.Ii=function(m){m.tb!=null&&m.tb.parentNode!=null&&m.tb.parentNode.removeChild(m.tb);m.tb=null};this.Ke=function(){return[{name:"Identification",category:true},{name:"id",maxLength:75,J:"id",help:"Sets the ID of the grid.",bind:false,xa:false},{name:"record format name",help:"Identifies the record format that is used to access this grid from server code.",maxLength:pui.viewdesigner?null:10,bind:false,c:"dspf",xa:false},{name:"description",
help:"Describes the record format.",bind:false,c:"dspf"},{name:"parent window",J:"parentWindow",help:"Sets the window that this field belongs to.",c:"genie"},{name:"screen identifier",choices:["true","false"],$c:false,help:"If set to true, this element will be used to detect the screen.  The identifier element should be a static output field that is unique to this screen.  For example, if the screen has a unique heading, it can be used as the identifier.  At least one element on the screen must be marked as an identifier before you can save the screen.  When appropriate, you can use a combination of several elements to uniquely identify the screen.",
c:"genie"},{name:"field type",choices:["grid"],$c:false,help:"Determines the type of control that is used to render the element.",bind:false,xa:false},{name:"value",help:"Sets the initialization value for the current element."},{name:"Subfile Settings",category:true,c:"dspf"},{name:"display subfile",choices:["true","false"],i:true,j:["indicator","expression"],help:"This property tells the system when to display grid records.  It represents the SFLDSP keyword.",c:"dspf",viewdesigner:false},{name:"display control record",
choices:["true","false"],i:true,j:["indicator","expression"],help:"This property tells the system when to display the subfile control record.  It represents the SFLDSPCTL keyword.",c:"dspf",viewdesigner:false},{name:"initialize subfile",choices:["true","false"],i:true,j:["indicator","expression"],help:"This property tells the system to initialize all records within the subfile.  It represents the SFLINZ keyword.",c:"dspf",viewdesigner:false},{name:"subfile records not active",choices:["true","false"],
bind:false,help:'This property can be used together with the "initialize subfile" property to initialize a subfile with no active records.  It represents the SFLRNA keyword.',c:"dspf",viewdesigner:false},{name:"delete subfile",choices:["true","false"],i:true,j:["indicator","expression"],help:"This property tells the system when to delete the subfile area.  It represents the SFLDLT keyword.",c:"dspf",viewdesigner:false},{name:"clear subfile",choices:["true","false"],i:true,j:["indicator","expression"],
help:"This property tells the system when to clear all records from the subfile.  It represents the SFLCLR keyword.",c:"dspf",viewdesigner:false},{name:"subfile size",format:"number",i:true,j:["zoned"],help:'This property represents the SFLSIZ keyword, which specifies the number of records that can be placed into the subfile. However, if your program places a record with a relative record number larger than the SFLSIZ value into the subfile, the subfile is automatically extended to contain it (up to a maximum of 9999 records).  If this property is not specified, the subfile page value plus one is used.  The subfile page value is determined from the "number of rows" property minus the header row if it is present.',
c:"dspf",viewdesigner:false},{name:"subfile record number",format:"number",i:true,j:["zoned","reference"],help:"This property identifies the scrollbar position when the subfile is first displayed."+(pui.viewdesigner?"":"  It represents the SFLRCDNBR keyword."),c:"dspf"},{name:"position at top",choices:["true","false"],bind:false,help:'When this property is set to true, the subfile record identified by the "subfile record number" property will display in the top row of the grid.'+(pui.viewdesigner?
"":"  This property is equivalent to the SFLRCDNBR(*TOP) keyword."),c:"dspf"},{name:"place cursor",choices:["true","false"],bind:false,help:'When this property is set to true, the cursor is placed in the subfile record identified by the contents of the "subfile record number" property. The cursor is positioned at the first input-capable field in the subfile record.'+(pui.viewdesigner?"":"  This property is equivalent to the SFLRCDNBR(CURSOR) keyword."),c:"dspf"},{name:"subfile end",choices:["true",
"false"],i:true,j:["indicator","expression"],help:"This property is used to indicate that a subfile with a paging bar has loaded all of its records."+(pui.viewdesigner?"":"  It represents the SFLEND keyword."),c:"dspf"},{name:"subfile next changed",choices:["true","false"],i:true,j:["indicator","expression"],help:"This property represents the SFLNXTCHG keyword, which forces the user to correct program-detected typing errors in subfile records.  The program can cause a record to be changed so that a get-next-changed operation must read the record again.",
c:"dspf",viewdesigner:false},{name:"cursor record number",readOnly:true,format:"number",i:true,j:["zoned"],help:"This property can be bound to a numeric field, which will return the relative record number of the record on which the cursor is located."+(pui.viewdesigner?"":"  It represents the SFLCSRRRN keyword."),c:"dspf"},{name:"cursor progression",choices:["left to right","top to bottom"],help:"This property determines the tab order for input elements within the subfile."+(pui.viewdesigner?"":"  It represents the SFLCSRPRG keyword."),
c:"dspf"},{name:"subfile return rrn",readOnly:true,format:"number",i:true,j:["zoned","reference"],help:"This property can be bound to a numeric field, which will return the relative record number of the top visible record within a grid."+(pui.viewdesigner?"":"  It represents the SFLSCROLL keyword."),c:"dspf"},{name:"subfile changed",format:"1 / 0",readOnly:true,i:true,j:["indicator"],help:"Specifies a response indicator that is set on if the input data within the subfile is modified.",c:"dspf"},{name:"Message Subfile Settings",
category:true,c:"dspf",viewdesigner:false},{name:"subfile message key",readOnly:true,i:true,j:["char"],Lf:4,help:"This property specifies a field that is used to select messages from a program message queue for display.  Your program places a message reference key in this field. The property represents the SFLMSGKEY keyword on a subfile record format.",c:"dspf",viewdesigner:false},{name:"subfile program message queue",readOnly:true,i:true,j:["char"],help:"This property specifies a field that contains the name of the program message queue used to build a message subfile.  It represents the SFLPGMQ keyword on a subfile record format.",
c:"dspf",viewdesigner:false},{name:"subfile control program message queue",readOnly:true,i:true,j:["char"],help:"This property specifies a field that contains the name of the program message queue used to build a message subfile when used in conjunction with the <i>subfile initialize</i> property.  It represents the SFLPGMQ keyword on a subfile control record format.",c:"dspf",viewdesigner:false},{name:"Font and Text",category:true},{name:"font family",choices:["Arial","Consolas","Courier New","Fantasy",
"Georgia","Monospace","Tahoma","Times New Roman","Sans-Serif","Serif","Trebuchet MS","Verdana","Other..."],help:"The font face for the text inside the grid.  To define a different font for each grid column, select <i>Other...</i> and specify a comma separated list of fonts."},{name:"font size",format:"px",choices:["8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","26px","27px","28px","29px","30px","Other..."],help:"The size of the text inside the grid.  To specify a different font size for each grid column, select <i>Other...</i> and specify a comma separated list of font sizes."},
{name:"font style",format:"italic / normal",choices:["normal","italic","oblique","Other..."],help:"The style of the font in the grid.  To specify a different font style for each grid column, select <i>Other...</i> and specify a comma separated list of font styles."},{name:"font variant",choices:["normal","small-caps","Other..."],help:"Normal or <span style='font-variant:small-caps;'>small caps</span>. Small caps shows the text with all caps but same height as a lower case letter."},{name:"font weight",
format:"bold / normal",choices:["normal","bolder","bold","lighter","100","200","300","400","500","600","700","800","900","Other..."],help:"Specifies the weight of the font inside the grid. To specify a different font weight for each grid column, select <i>Other...</i> and specify a comma separated list of font weights."},{name:"letter spacing",format:"px",choices:["normal","-3px","-2px","-1px","0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","10px","11px","12px","13px","14px","15px","16px",
"17px","18px","19px","20px","Other..."],help:"Spacing between each letter of a word. To specify a different value for each grid column, select <i>Other...</i> and specify a comma separated list of values."},{name:"text align",choices:["left","right","center","justify","Other..."],help:"Alignment of text inside cells of the grid element.  To specify a different alignment option for each grid column, select <i>Other...</i> and specify a comma separated list of values."},{name:"text decoration",format:"underline / none",
choices:["none","underline","overline","line-through","Other..."],help:"Decoration of the text inside the grid. To specify a different value for each grid column, select <i>Other...</i> and specify a comma separated list of values."},{name:"text transform",choices:["capitalize","uppercase","lowercase","none","Other..."],help:"Transforms the default formatting of the text inside the grid. To specify a different value for each grid column, select <i>Other...</i> and specify a comma separated list of values."},
{name:"word spacing",format:"px",choices:["normal","-3px","-2px","-1px","0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","Other..."],help:"Spacing between each word in the cells of the grid.  To specify a different value for each grid column, select <i>Other...</i> and specify a comma separated list of values."},{name:"Header",category:true},{name:"has header",choices:["true",
"false"],type:"boolean",j:["indicator","expression"],i:true,help:"Determines whether the grid has a header row."},{name:"header height",help:"Specifies the height of the header row.  This can also be specified by dragging the grid's top border with the mouse.",bind:false,xa:false},{name:"header font family",choices:["Arial","Consolas","Courier New","Fantasy","Georgia","Monospace","Tahoma","Times New Roman","Sans-Serif","Serif","Trebuchet MS","Verdana","Other..."],help:"The font face for the text inside the grid header row.  To define a different font for each grid column, select <i>Other...</i> and specify a comma separated list of fonts."},
{name:"header font size",format:"px",choices:["8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","26px","27px","28px","29px","30px","Other..."],help:"The size of the text inside the grid header row.  To specify a different font size for each grid column, select <i>Other...</i> and specify a comma separated list of font sizes."},{name:"header font style",format:"bold / normal",choices:["normal","italic","oblique","Other..."],
help:"Specifies the style of the font inside the grid header row. To specify a different font style for each grid column, select <i>Other...</i> and specify a comma separated list of font styles."},{name:"header font weight",format:"italic / normal",choices:["normal","bolder","bold","lighter","100","200","300","400","500","600","700","800","900","Other..."],help:"Specifies the weight of the font inside the grid header row. To specify a different font weight for each grid column, select <i>Other...</i> and specify a comma separated list of font weights."},
{name:"header text align",choices:["left","right","center","justify","Other..."],help:"Alignment of text inside the cells of the grid header row.  To specify a different alignment option for each cell, select <i>Other...</i> and specify a comma separated list of values."},{name:"header font color",type:"color",help:"Defines the color of the text inside the header row.  To define a different color for each grid cell in the header row, specify a comma separated list of color values."},{name:"header background",
type:"color",help:"Defines the background color of the header row.  To define a different color for each grid cell in the header row, specify a comma separated list of color values."},{name:"header image",type:"image",help:"Defines a repeating background image for the header row."},{name:"column headings",type:"list",help:"Specifies a comma separated list of heading text for each column of the grid.",translate:true},{name:"Colors",category:true},{name:"odd row font color",type:"color",help:"Defines the color of text inside the odd rows of the grid.  To define a different color for each grid column, specify a comma separated list of color values."},
{name:"odd row background",type:"color",help:"Defines the background color of the odd rows in the grid.  To define a different color for each grid column, specify a comma separated list of color values."},{name:"even row font color",type:"color",help:"Defines the color of text inside the even rows of the grid.  To define a different color for each grid column, specify a comma separated list of color values."},{name:"even row background",type:"color",help:"Defines the background color of the even rows in the grid.  To define a different color for each grid column, specify a comma separated list of color values."},
{name:"row font color",type:"color",help:"Defines the color of text in an individual row. You can define a dynamic color for each record by binding this property to a field.",c:"dspf"},{name:"row background",type:"color",help:"Defines the background color of an individual row. You can define a dynamic background color for each record by binding this property to a field.",c:"dspf"},{name:"hover font color",type:"color",help:"Defines the color of text when the user hovers the mouse cursor over a grid row.  To define a different color for each grid column, specify a comma separated list of color values."},
{name:"hover background",type:"color",help:"Defines the background color of a grid row when the user hovers the mouse cursor over it.  To define a different color for each grid column, specify a comma separated list of color values."},{name:"selection font color",type:"color",help:"Defines the color of text when the user selects a grid row.",c:"dspf"},{name:"selection background",type:"color",help:"Defines the background color of a grid row when the user selects it.",c:"dspf"},{name:"Grid Settings",
category:true},{name:"number of rows",help:"Specifies the number of rows in the grid, including the header row.",bind:false,xa:false},{name:"number of columns",help:"Specifies the number of columns in the grid.",bind:false,xa:false},{name:"row height",help:"Specifies the height that will be applied to each row, not including the header row.  This can also be controlled by resizing the grid with the mouse.",bind:false,xa:false},{name:"hover effect",choices:["true","false"],type:"boolean",j:["indicator",
"expression"],i:true,help:"Determines whether the grid rows will be highlighted when the user hovers the mouse over them."},{name:"hover image",type:"image",help:"Defines a repeating cell background image for the hover effect."},{name:"row selection",choices:["none","single","multiple (simple)","multiple (extended)"],help:"Determines if rows within the grid can be selected by the user with a click of the mouse.  <br/><br/>Possible values are: <br/><br/><b>none</b> - rows cannot be selected <br/><br/><b>single</b> - only one row can be selected <br/><br/><b>multiple (simple)</b> - multiple rows can be selected by simply clicking on the rows <br/><br/><b>multiple (extended)</b> - multiple rows can be selected with the use of the Shift and Ctrl keys",
c:"dspf"},{name:"selection field",format:"1 / 0",readOnly:true,i:true,j:["char","indicator"],Lf:1,help:"This property must be bound to an indicator or a character field, which will be used to both set and return the selected state on each record.  If a character field is specified, the selection value property will be used to populate the field when a row is selected.",c:"dspf"},{name:"selection value",help:"Specifies the value used to populate the selection field when a grid row is selected.",bind:false,
c:"dspf"},{name:"selection image",type:"image",help:"Defines a repeating cell background image for row selection.",c:"dspf"},{name:"column widths",type:"list",help:"Specifies a comma separated list of column widths for this grid.",bind:false,xa:false},{name:"scrollbar",choices:M=="genie"&&!pui.N?["true","false"]:["none","sliding","paging"],help:M=="genie"&&!pui.N?"Determines whether a vertical scrollbar for paging through data records will appear within the grid.  If the grid is not a database-driven grid, the scrollbar will automatically send the PageUp/PageDown keys to the underlying application.":
"Determines the type of vertical scrollbar used to scroll through records within the grid.  A sliding scrollbar scrolls freely, while a paging scrollbar scrolls one page of records at a time only."},{name:"scroll tool tip",choices:["none","row number","row range"],help:"Determines if the row number or the row number range should be displayed in a tool tip when the user scrolls through the data in the grid.",c:"dspf"},{name:"sortable columns",choices:["true","false"],type:"boolean",j:["indicator",
"expression"],i:true,help:"Enables column sorting.  If set to true, the user will be able to click on the column headings to resort the data.",c:"dspf"},{name:"default sort order",choices:["Ascending","Descending","Other..."],help:"Specifies the default order for sortable columns.  When the user clicks a column, the default sort order is used initially.  To provide a different sort order for each grid column, select <i>Other...</i> and specify a comma separated list.  Entries in the list can be abbreviated using the letter A for Ascending and D for Descending.",
c:"dspf"},{name:"initial sort column",format:"number",help:'This property specifies the column used to for inital sorting.  Each grid column is identified by a sequential index, starting with 0 for the first column, 1 for the second column, and so on.  If this property and the "initial sort field" property are omitted or set to blanks, sorting is not initiated when the grid is first rendered.',c:"dspf"},{name:"initial sort field",help:'This property specifies the field name used to identify the column for inital sorting.  If this property and the "inital sort column" property are omitted or set to blanks, sorting is not initiated when the grid is first rendered.',
i:true,j:["char"],c:"dspf"},{name:"column sort response",format:"number",i:true,readOnly:true,j:["zoned"],help:'Specifies a response variable to receive a column number for server-side sorting.  If omitted, client-side sorting is used.  The response is a numeric value that represents a column in the grid.  Each grid column is identified by a sequential index, starting with 0 for the first column, 1 for the second column, and so on.  It is the responsibility of the program to keep track of the sort direction, and to display an up or down arrow in the appropriate column using the "initial sort column" and "default sort order" properties.',
c:"dspf"},{name:"field name sort response",readOnly:true,help:'Specifies a response variable to receive a field name used for server-side sorting.  If omitted, client-side sorting is used.  The response represents the name of the field bound to the first widget in a column of the grid. It is the responsibility of the program to keep track of the sort direction, and to display an up or down arrow in the appropriate column using the "initial sort field" and "default sort order" properties.',i:true,
j:["char"],c:"dspf"},{name:"resizable columns",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Allows the user to resize grid columns at run time.",c:"dspf"},{name:"movable columns",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Allows the user to rearrange grid columns at run time.",c:"dspf"},{name:"persist state",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Specifies whether the grid state should be saved when the user sorts, moves, or resizes columns.  When set to true, the state is saved to browser local storage with each user action, and automatically restored the next time the grid is dislpayed.",
c:"dspf"},{name:"find option",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Presents an option to search grid data when the grid heading is right-clicked.",c:"dspf"},{name:"filter option",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Presents an option to filter grid data when the grid heading is right-clicked.",c:"dspf"},{name:"export option",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Presents an option to export grid data to Excel using the CSV format when the grid heading is right-clicked.",
c:"dspf"},{name:"context menu id",help:"Specifies the id of a Menu widget used to display a context menu when the user right-clicks a grid row.",i:true,j:["char"],c:"dspf"},{name:"Paging Bar",category:true,c:"dspf"},{name:"show paging controls",choices:["true","false"],i:true,j:["indicator","expression"],help:"Displays links for navigating to the previous page and the next page of records."},{name:"show page number",choices:["true","false"],i:true,j:["indicator","expression"],help:"This property determines whether the page number should display within the paging bar.",
c:"dspf"},{name:"initial page number",format:"number",i:true,j:["zoned"],help:"Specifies the initial page number to use when the page number is displayed within the paging bar.  If not specified, page number 1 is used.",c:"dspf"},{name:"show bar",choices:["true","false"],i:true,j:["indicator","expression"],help:"Displays a bar at the bottom of the grid even if no paging bar elements are selected to be displayed.  This can be used to show miscellaneous information such as column totals.",c:"dspf"},
{name:"page down condition",j:["indicator","expression"],i:true,readOnly:true,format:"true / false",type:"boolean",help:"Determines if the next page link is enabled.",c:"dspf"},{name:"page down response",format:"1 / 0",readOnly:true,i:true,j:["indicator"],help:"Specifies a response indicator that is returned to your program when the next page link is clicked.",c:"dspf"},{name:"page up condition",j:["indicator","expression"],i:true,readOnly:true,format:"true / false",type:"boolean",help:"Determines if the previous page link is enabled.",
c:"dspf"},{name:"page up response",format:"1 / 0",readOnly:true,i:true,j:["indicator"],help:"Specifies a response indicator that is returned to your program when the previous page link is clicked.",c:"dspf"},{name:"csv export",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Displays a link allowing the user to export grid data to Excel using the CSV format."+(M=="genie"&&!pui.N?" <br /><b>Note:</b> In 5250 mode, this option only works with SQL-driven subfiles.":"")},
{name:"csv file name",help:"Defines the name of the download file used to export grid data to CSV format.  The .csv extension is automatically appended to the name.  If omitted, the record format name is used."+(M=="genie"&&!pui.N?" <br /><b>Note:</b> In 5250 mode, this option only works with SQL-driven subfiles.":""),translate:true},{name:"export with headings",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"Specifies whether subfile headings should be exported as the first row of the CSV file."+
(M=="genie"&&!pui.N?" <br /><b>Note:</b> In 5250 mode, this option only works with SQL-driven subfiles.":"")},{name:"Row Folding",category:true,c:"dspf"},{name:"fold multiple",choices:["2","3","4","Other..."],help:"The property determines the height of a collapsed row, which is calculated at by taking the row height property and dividing it by the fold multiple.   The multiple represents the number of collapsed rows that can fit into one expanded row.",bind:false,c:"dspf"},{name:"expanded",choices:["true",
"false"],i:true,j:["indicator","expression"],help:"Determines if the rows are first displayed in expanded (also known as folded) mode."+(pui.viewdesigner?"":"  This property is similar to the SFLFOLD keyword."),c:"dspf"},{name:"collapsed",choices:["true","false"],i:true,j:["indicator","expression"],help:"Determines if the rows are first displayed in collapsed (also known as truncated) mode."+(pui.viewdesigner?"":"  This property is similar to the SFLDROP keyword."),c:"dspf"},{name:"return mode",format:"1 / 0",
readOnly:true,i:true,j:["char","indicator"],help:"This property can be bound to a field that will provide an indication of whether the grid rows were in expanded (also known as folded) mode or in collapsed (also known as truncated) mode on input."+(pui.viewdesigner?"":"  It represents the SFLMODE keyword.  The bound field will contain a value of 0 if the grid rows are in expanded mode and a value of 1 if the grid rows are in collapsed mode."),c:"dspf"},{name:"single row zoom",choices:["true","false"],
i:true,j:["indicator","expression"],help:"Determines if a zoom icon is shown on collapsed rows.  Once the user clicks the icon, the row is expanded.  All other rows remain collapsed.",c:"dspf"},{name:"Grid Data",category:true},{name:"database file",type:"file",uppercase:true,help:"Database file to use for a grid that is tied directly to a database.  You can specify a 'database file' or 'library/database file'.  If library is omitted, the session's library list is used."},{name:"database fields",type:"field",
multiple:true,uppercase:true,help:"A set of database field names to use to retrieve the data for a database-driven grid. The field names should be comma separated.",sq:function(m){if(confirm("Use field descriptions as column headings?")){e.setProperty("column headings",m);var q=e.b.e;c(q,"column headings",m);q.designer.Ta.fe("column headings")}}},{name:"selection criteria",type:"long",help:"Optional expression identifying which records should be retrieved from the database file."},{name:"order by",
type:"field",multiple:true,uppercase:true,help:"Optional expression identifying which fields determine the order of the records retrieved from the database file."},{name:"custom sql",type:"long",help:"Specifies an sql statement to use to retrieve the records for a database-driven grid."},{name:"parameter value",type:"long",Nl:1,fa:true,help:'Value for parameter marker in "selection criteria" or "custom sql" property. Parameter markers are specified using a question mark. Profound UI will accept values from the client for any parameter marker values which are not bound to program fields. Parameter markers are numbered in order of occurence, from left to right. To specify multiple parameter marker values, right-click the property and select Add Another Parameter Value.'},
{name:"data url",type:"long",help:"Sets the url to a Web service that returns JSON data for a database-driven grid."},{name:"data transform function",type:"long",help:'The name of a JavaScript function to be called to process the results of the "data url" program. This can be used to transform data from the program into the format expected by the grid widget.'},{name:"Grid Data from Screen",category:true,c:"genie-nohandler"},{name:"starting row",help:"Specifies the starting subfile row for retrieving data from the screen.",
c:"genie-nohandler"},{name:"ending row",help:"Specifies the ending subfile row for retrieving data from the screen.",c:"genie-nohandler"},{name:"data columns",type:"list",help:"Specifies a comma separated list of column numbers for retrieving data from the screen.",c:"genie-nohandler"},{name:"Position",category:true},{name:"left",format:"px",help:"Represents the x-coordinate of the current element.",xa:false},{name:"top",format:"px",help:"Represents the y-coordinate of the current element.",xa:false},
{name:"height",help:"Height of the grid.",bind:false,xa:false},{name:"width",help:"Width of the grid.",bind:false,xa:false},{name:"expand to layout",choices:["true","false"],help:"If set to true, the grid will automatically expand to the full size of a layout container.",c:"dspf",bind:false},{name:"z index",format:"number",help:"The stacking order of the current element, expressed as an integer value. The element with the higher z index will overlay lesser elements."},{name:"locked in place",choices:["true",
"false"],help:"If set to true, the grid cannot be moved or sized in the Visual Designer.",bind:false},{name:"Drag and Drop",category:true,c:"dspf"},{name:"allow drag",choices:["true","false"],type:"boolean",j:["indicator","expression"],i:true,help:"This property determines if rows within the grid can be drag and dropped.",c:"dspf"},{name:"ondragstart",type:"js",help:"Initiates a client-side script when the user first starts to drag a row within the grid. Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",
c:"dspf"},{name:"drop targets",type:"list",help:"Specifies a list of target element id's, which indentify where the row can be dropped.",c:"dspf"},{name:"ondragenter",type:"js",help:"Initiates a client-side script when the user drags a row over a valid drop target.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",c:"dspf"},{name:"ondragleave",type:"js",help:"Initiates a client-side script when the user moves a row out of a valid drop target during a drag operation.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",
c:"dspf"},{name:"ondrop",type:"js",help:"Initiates a client-side script when the mouse is released during a drag and drop operation.  Information about the drag and drop operation is provided using the global pui.dragDropInfo object.",c:"dspf"},{name:"Tabs",category:true},{name:"parent tab panel",help:"This property specifies the id of the Tab Panel to which this element belongs.  The property is set automatically when you drag and drop the element onto a Tab Panel.",bind:false},{name:"parent tab",
help:"This property specifies the tab index of the specific tab to which this element belongs.  Each tab within a Tab Panel is identified by a sequential index, starting with 0 for the first tab, 1 for the second tab, and so on.  The property is set automatically when you drag and drop the element onto a Tab Panel.",bind:false},{name:"parent field set",help:"This property specifies the if of the Field Set Panel to which this element belongs.  The property is set automatically when you drag and drop the element onto a Field Set Panel.",
bind:false},{name:"Borders",category:true},{name:"border color",type:"color",help:"The color of the grid's outer borders and inner separators."},{name:"border width",format:"px",choices:["0px","1px","2px","3px","4px","5px","Other..."],help:"The thickness of the grid's outer borders and inner separators."},{name:"Padding",category:true},{name:"padding bottom",format:"px",choices:["0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","Other..."],help:"Sets the distance between the bottom edge of a grid cell and the cell's content."},
{name:"padding left",format:"px",choices:["0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","Other..."],help:"Sets the distance between the left edge of a grid cell and the cell's content."},{name:"padding right",format:"px",choices:["0px","1px","2px","3px","4px","5px","6px","7px","8px","9px","Other..."],help:"Sets the distance between the right edge of a grid cell and the cell's content."},{name:"padding top",format:"px",choices:["0px","1px","2px","3px","4px","5px","6px","7px","8px","9px",
"Other..."],help:"Sets the distance between the top edge of a grid cell and the cell's content."},{name:"Misc",category:true},{name:"css class",fa:M=="dspf"?true:false,J:"class",help:"Defines a custom cascading style sheet class to assign to the element."+(M=="dspf"?"  To specify multiple classes, right-click the property and select Add Another CSS Class.":"")},{name:"tool tip",type:"long",help:"Defines the text to appear in a tool tip when the user hovers the mouse over this element.",translate:true},
{name:"visibility",format:"visible / hidden",choices:["hidden","visible"],help:"Determines whether the element is visible or hidden."},{name:"Events",category:true},{name:"onrowclick",type:"js",help:"Initiates a client-side script when a row within the grid is clicked.  The script can determine the row number using the <b>row</b> variable.",bind:false},{name:"onrowdblclick",type:"js",help:"Initiates a client-side script when a row within the grid is double-clicked.  The script can determine the row number using the <b>row</b> variable.",
bind:false},{name:"onrowmouseover",type:"js",help:"Initiates a client-side script when the mouse is moved over a row within the grid.  The script can determine the row number using the <b>row</b> variable.",bind:false},{name:"onrowmouseout",type:"js",help:"Initiates a client-side script when the mouse is moved off of a row within the grid.  The script can determine the row number using the <b>row</b> variable.",bind:false},{name:"onpagedown",type:"js",help:"Initiates a client-side script when the user pages down using the grid's scrollbar or the grid's paging bar.  To prevent the grid's default paging action, the script must evaluate to <i>false</i>.",
bind:false},{name:"onpageup",type:"js",help:"Initiates a client-side script when the user pages up using the grid's scrollbar or the grid's paging bar.  To prevent the grid's default paging action, the script must evaluate to <i>false</i>.",bind:false},{name:"onscroll",type:"js",help:"Initiates a client-side script when the user scrolls using the grid's scrollbar.  The <b>row</b> variable in the script provides the top row of the grid.",bind:false}]}};pui.widgets.add({name:"grid",wh:true,Ac:false,defaults:{"number of rows":"7","number of columns":"3","column widths":"150,150,150","column headings":"Heading 1,Heading 2,Heading 3"},Pd:function(a){if(a.dom.grid==null){a.dom.grid=new pui.um;a.dom.grid.a=a.dom.parentNode;a.dom.grid.b=a.dom;if(a.design&&!a.dom.grid.designMode){a.dom.grid.Fh();a.dom.grid.setProperty("show paging controls",a.properties["show paging controls"]);a.dom.grid.setProperty("csv export",a.properties["csv export"])}if((pui.is_old_ie||
pui.is_opera)&&!a.design&&a.properties.scrollbar=="paging"&&M=="dspf"){a.dom.grid.nk=true;setTimeout(function(){a.dom.grid.nk=false;a.dom.grid.d!=null&&a.dom.grid.d.r()},0)}if(a.properties["css class"]!=null&&a.properties["css class"]!=""){a.dom.className=a.dom.grid.Re=a.properties["css class"];a.dom.grid.u={};a.dom.grid.Bc={}}if(!a.dom.style.top)a.dom.style.top="0px";if(!a.dom.style.left)a.dom.style.left="0px";a.dom.Di=a.dom.grid.Ke();a.dom.df=lb(a.dom.Di);a.dom.grid.setProperty("has header",a.properties["has header"]);
if(a.design){a.e.qi=false;a.dom.grid.setProperty("number of rows",a.properties["number of rows"]);a.dom.grid.setProperty("number of columns",a.properties["number of columns"]);a.dom.grid.setProperty("column widths",a.properties["column widths"]);a.dom.grid.setProperty("column headings",a.properties["column headings"]);a.dom.grid.rc();a.dom.grid.Na();a.dom.grid.Pb()}else{if((M=="dspf"||pui.N)&&a.properties["cursor progression"]!="top to bottom")a.dom.grid.setProperty("number of columns",a.properties["number of columns"]);
if((M=="dspf"||pui.N)&&a.properties["cursor progression"]=="top to bottom")a.dom.grid.setProperty("number of rows",a.properties["number of rows"])}}if(a.propertyName=="field type"){a.dom.sizeMe=function(){a.dom.grid.Ce&&a.dom.grid.zb();a.dom.grid.alignColumnTotals()};if(a.design){var b=parseInt(a.properties["row height"]);if(!isNaN(b)&&b>0)a.dom.grid.X=b;a.dom.e=a.e;a.e.qi=false}a.dom.style.borderWidth="0px";a.dom.style.padding="0px";a.dom.Ik=a.properties.top;var c=function(d){a.properties[d]!=null&&
a.properties[d]!=""&&a.dom.grid.setProperty(d,a.properties[d])};c("header image");c("header background");c("header font color");c("header font size");c("header height");c("header font weight");c("header font family");c("odd row background");c("even row background");c("hover effect");c("hover image");c("hover background");c("hover font color");c("header text align");c("row height");c("border color");c("border width");a.design&&setTimeout(function(){c("expand to layout")},0)}a.dom.grid.setProperty(a.propertyName,
a.value)},initialize:function(a){if(!a.design&&a.dom!=null&&a.dom.grid!=null){a.dom.grid.rc();a.dom.grid.Na();a.dom.grid.Pb();if(a.dom.grid.o!=null){a.dom.grid.o.r();a.dom.grid.o.position()}if(a.properties["expand to layout"]=="true"||a.properties["expand to layout"]==true)a.dom.grid.zb()}a.dom.Ik&&a.dom.grid.setProperty("top",a.dom.Ik);a.dom.Nq=a.properties.left;M=="genie"&&!pui.N&&!a.design&&a.dom!=null&&a.dom.grid!=null&&a.dom.grid.tn(1,true)}});pui.widgets.add({name:"html container",Lb:true,defaults:{html:"<i>HTML Content</i>","white space":"normal",width:"200px",height:"100px"},propertySetters:{"field type":function(a){a.dom.innerHTML=a.evalProperty("html")},html:function(a){a.dom.innerHTML=a.value}}});pui["encode hyperlink spaces"]=null;
pui.Sj=function(a,b,c,d,f){a.innerHTML="";var g=document.createElement("a"),k=false;if(c==true||d==null){d="javascript:void(0)";k=true}g.href=d;if(!c&&f!=null)g.target=f;b=b;if(M=="genie"&&pui["encode hyperlink spaces"]!=false||pui["encode hyperlink spaces"]==true)b=b.replace(/ /g,"\u00a0");if(a.style.color!=null)g.style.color=a.style.color;if(a.style.textDecoration!=null)g.style.textDecoration=a.style.textDecoration;g.appendChild(document.createTextNode(b));if(pui.is_old_ie&&k&&(M=="dspf"||M=="genie"))N(g,
"click",function(l){l.preventDefault&&l.preventDefault();return l.returnValue=false});a.appendChild(g)};
pui.widgets.add({name:"hyperlink",newValue:"Click Here",Lb:true,defaults:{color:"#0066CC"},propertySetters:{"field type":function(a){pui.Sj(a.dom,a.evalProperty("value"),a.design,a.properties["hyperlink reference"],a.properties.target);if(a.design){designUtils.yf(a.dom,"mouseover",function(){setTimeout(a.e.designer.selection.rg,0)});designUtils.yf(a.dom,"mouseout",function(){setTimeout(a.e.designer.selection.rg,0)})}},value:function(a){pui.Sj(a.dom,a.value,a.design,a.properties["hyperlink reference"],
a.properties.target)}}});pui.widgets.add({name:"iframe",newId:"IFrame",menuName:"IFrame",defaults:{width:"400px",height:"300px","z index":"25","background color":"#FFFFFF","frame border":"true"},propertySetters:{"field type":function(a){if(a.design){a.dom.innerHTML="IFrame content will appear here.";a.dom.style.overflow="hidden"}else{a.dom.innerHTML="";url=a.evalProperty("iframe url");if(url==null||url=="")a.dom.innerHTML="IFrame URL property not specified.";else{var b="",c=parseInt(a.properties.width),d=parseInt(a.properties.height);
if(c>0)b+=' width="'+a.properties.width+'"';if(d>0)b+=' height="'+a.properties.height+'"';c='<iframe src="'+url;c+='" frameborder="';c+=a.properties["frame border"]=="true"?"1":"0";c+='"'+b+">";a.dom.innerHTML=c}}},visibility:function(a){if(!a.design){var b=a.dom.getElementsByTagName("iframe");if(b&&b.length==1){b=b[0];if(a.value=="hidden"){b.style.visibility="hidden";b.style.display="none"}else{b.style.visibility="";b.style.display=""}}}}}});pui.Hk=function(a){a=La(a);if(a.tagName=="IMG")if(a.mc!=null&&a.mc!=""){a.Mk=true;if(a.fi!=true)a.src=a.mc}};pui.Gk=function(a){a=La(a);if(a.tagName=="IMG"){a.Mk=false;if(a.$d!=null)if(a.fi!=true)a.src=a.$d}};pui.$f=function(a){a=La(a);if(a.tagName=="IMG")if(a.Dc!=null&&a.Dc!=""){a.fi=true;a.src=a.Dc}};pui.ag=function(a){if(a.$d!=null){a.fi=false;a.src=a.Mk==true?a.mc:a.$d}};
pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(a){a.dom.onselectstart=la(false);a.dom.ondragstart=la(false);if(typeof a.dom.style.MozUserSelect!="undefined")a.dom.style.MozUserSelect="none";a.dom.$d=a.evalProperty("image source");a.dom.src=a.dom.$d;var b=a.evalProperty("hover image source");a.dom.mc=b;if(b!=null&&b!=""){a.dom.mc=pui.normalizeURL(a.dom.mc,true);N(a.dom,"mouseover",pui.Hk);N(a.dom,"mouseout",pui.Gk);(new Image).src=b}b=a.evalProperty("click image source");
a.dom.Dc=b;if(b!=null&&b!=""){a.dom.Dc=pui.normalizeURL(a.dom.Dc,true);N(a.dom,"mousedown",pui.$f);N(document,"mouseup",function(){pui.ag(a.dom)});N(a.dom,"touchstart",pui.$f);N(document,"touchend",function(){pui.ag(a.dom)});(new Image).src=b}},"image source":function(a){a.dom.$d=pui.normalizeURL(a.value,true)},"hover image source":function(a){a.dom.mc=a.value;if(a.value!=null&&a.value!=""){a.dom.mc=pui.normalizeURL(a.dom.mc,true);N(a.dom,"mouseover",pui.Hk);N(a.dom,"mouseout",pui.Gk);(new Image).src=
a.value}},"click image source":function(a){a.dom.Dc=a.value;if(a.value!=null&&a.value!=""){a.dom.Dc=pui.normalizeURL(a.dom.Dc,true);N(a.dom,"mousedown",pui.$f);N(document,"mouseup",function(){pui.ag(a.dom)});N(a.dom,"touchstart",pui.$f);N(document,"touchend",function(){pui.ag(a.dom)});(new Image).src=a.value}}}});pui.ym=function(){function a(g){var k=g.a,l=g.Io;k.innerHTML="";pui.Y(k,"pui-menu");g.orientation=="horizontal"&&pui.Y(k,"pui-horizontal");var h=document.createElement("table"),o=k.style.width;if(o!=null&&o!=""&&g.orientation!="horizontal")h.style.width="100%";h.cellPadding=0;h.cellSpacing=0;o=b(g.Ph);var p,s=d.borderColor;if(s!=""&&s!=null){s=pui.gl(s);h.style.borderTop="1px solid "+s;h.style.borderLeft="1px solid "+s}for(var t=g.Ph;t<=g.jm;t++)if(b(t)==o){for(var y=d.choices[t];y.substr(0,1)=="-";)y=
y.substr(1);var z=d.Gf[t];if(z==null)z=y;p=p==null||g.orientation=="vertical"?h.insertRow(h.rows.length):p;var A=p.insertCell(p.cells.length);if(y==null||y==""||bb(y)=="")y="&nbsp;";A.innerHTML=y;A.Ed=z;A.Ud=o;if(Sa())A.Yj=t;A.xo=d.a.id;A.orientation=g.orientation;if(d.padding!=null&&d.padding.length>0)A.style.paddingTop=A.style.paddingBottom=A.style.paddingRight=d.padding;if(d.paddingLeft!=null&&d.paddingLeft.length>0)A.style.paddingLeft=d.paddingLeft;if(s!=""&&s!=null){A.style.borderRight="1px solid "+
s;A.style.borderBottom="1px solid "+s}if(d.animate){A.style.filter="alpha(opacity=100)";A.style.opacity=1}if(d.Sa!=null&&d.Sa!=""){A.Sa=d.Sa;if(d.Ze.length>1)A.Sa=d.Ze[t]!=null?d.Ze[t]:"";if(A.Sa!="")A.style.backgroundImage="url('"+pui.normalizeURL(A.Sa,true)+"')";if(d.repeat!=null&&d.repeat.length>0){A.style.backgroundRepeat=d.repeat;if(d.repeat=="no-repeat")A.style.backgroundPosition="left center"}}else A.style.backgroundImage="";if(c(t)){A.uf=t+1;A.Qg=t+1;for(y=b(t+1);A.Qg<d.choices.length-1&&
b(A.Qg+1)>=y;)A.Qg+=1;if(g.orientation=="vertical"){y=document.createElement("img");y.src=pui.normalizeURL("/profoundui/proddata/images/menus/submenu-arrow.gif");y.style.position="absolute";y.style.right="3px";y.style.paddingTop="3px";y.Pk=true;z=document.createElement("span");z.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";z.Pk=true;A.appendChild(z);A.appendChild(y)}}(function(B){B.onmouseover=function(){B.qe=true;if(d.jd!=null&&d.jd!="")B.style.backgroundColor=d.jd;else B.className="menu-hover";
if(d.kd!=null&&d.kd!="")B.style.color=d.kd;if(d.Ye!=null&&d.Ye!=""){B.style.backgroundImage="url('"+d.Ye+"')";if(d.repeat!=null&&d.repeat.length>0){B.style.backgroundRepeat=d.repeat;if(d.repeat=="no-repeat")B.style.backgroundPosition="left center"}}else B.style.backgroundImage=B.Sa!=null&&B.Sa!=""?"url('"+B.Sa+"')":"";for(var v=[],I=0;I<f.length;I++)f[I].Ud>=B.Ud&&v.push(f[I]);for(I=0;I<v.length;I++)d.Ki(v[I]);d.Mp(B)};B.onmouseout=function(v){if(!v)v=window.event;var I=v.relatedTarget;if(I==null)I=
v.toElement;for(;I!=null&&(I.tagName=="TABLE"||I.tagName=="TBODY"||I.tagName=="TR");){if(I.firstChild==null)break;I=I.firstChild}if(I==null||I.Ud==null||I.tagName!="TD"||I.xo!=d.a.id){v=false;if(I!=null){if(I==h)v=true;if(l!=null&&I==l)v=true;if(I.Pk)v=true}v||d.Cl()}else if(B.Ra!=null){for(v=true;I!=null;){if(B.Ra==I){v=false;break}I=I.parentNode}v&&d.Ki(B)}if(d.kd!=null&&d.kd!="")B.style.color="";if(B.Sa!=null&&B.Sa!=""){B.style.backgroundImage="url('"+B.Sa+"')";B.style.backgroundRepeat=d.repeat}else B.style.backgroundImage=
"";if(d.jd!=null&&d.jd!=""){B.qe=false;if(d.animate){var G=function(E){E-=10;if(E<40){if(!B.qe)B.style.backgroundColor="";B.qe=true}if(B.qe)E=100;B.style.filter="alpha(opacity="+E+")";B.style.opacity=E/100;B.qe||setTimeout(function(){G(E)},60)};G(100)}else B.style.backgroundColor=""}else B.className=""};B.onclick=function(){B.Ud>0&&B.uf==null&&d.Cl();if(d.a.onoptionclick!=null)Sa()||B.uf==null&&d.a.onoptionclick(B.Ed,ob(B));else if(M=="dspf")if(B.uf==null){var v=d.a;if(v.T!=null)if(v.disabled!=true){v.T=
B.Ed;if(v.C=="true"||v.C=="send data")pui.C=v.C;if(pui.wb()==false)v.T=""}}};B.ondblclick=function(v){if(Sa()&&B.orientation=="vertical"&&B.Ud==0){var I=designUtils.getTarget(v);for(v=I.parentNode;v.tagName!="DIV";)v=v.parentNode;var G=Ta.designer.Ge(v);if(!pui.p(G.properties.choices)&&!pui.mb(G.properties.choices)&&typeof I.Yj==="number"){G.designer.md.jl=function(E){var C=G.properties.choices;if(C=="")C="Option 1,Option 2,Option 3";C=C.split(",");C[I.Yj]=E;C=C.join(",");E=mb().choices;G.designer.M.add(G,
E.name);pb(E,G.properties,G.dom,C,true,G,null);G.$a.choices=true;G.Vb=true;G.designer.Wb[G.designer.ya.Ua]=true;G.designer.Ta.fe("choices")};G.designer.md.show(G,I,"menu")}}}})(A);p=p}k.appendChild(h)}function b(g){g=d.choices[g];var k=0;if(g==null)return k;for(var l=0;l<g.length;l++)if(g.substr(l,1)=="-")k+=1;else break;return k}function c(g){if(g>=d.choices.length-1)return false;if(b(g)+1==b(g+1))return true;return false}var d=this,f=[];this.a=null;this.choices=[];this.Gf=[];this.kd=this.jd=null;
this.animate=true;this.Sa=this.paddingLeft=this.padding=this.borderColor=this.repeat=null;this.Ze=[];this.Ye=null;this.orientation="vertical";this.r=function(){d.sg>0&&clearTimeout(d.sg);d.sg=setTimeout(function(){a({a:d.a,orientation:d.orientation,Ph:0,jm:d.choices.length-1});d.sg=null;try{delete d.sg}catch(g){}},0)};this.Mp=function(g){if(g.uf!=null){for(var k=g;k.tagName!="TABLE";)k=k.parentNode;var l=k.parentNode;if(g.Ra==null){g.Ra=document.createElement("div");g.Ra.className=l.className;var h=
g.Ra.style,o=l.style;h.backgroundColor=o.backgroundColor;h.letterSpacing=o.letterSpacing;h.wordSpacing=o.wordSpacing;h.textAlign=o.textAlign;h.textDecoration=o.textDecoration;h.textTransform=o.textTransform;h.fontVariant=o.fontVariant;h.fontWeight=o.fontWeight;h.fontSize=o.fontSize;h.fontFamily=o.fontFamily;h.color=o.color;h.zIndex=o.zIndex;h.position="absolute";if(!pui.Z)h.cursor=o.cursor;d.a.parentNode.appendChild(g.Ra)}if(g.orientation=="vertical"){g.Ra.style.top=l.offsetTop+g.offsetTop+"px";g.Ra.style.left=
l.offsetLeft+l.offsetWidth-1+"px"}else{g.Ra.style.top=l.offsetTop+g.offsetTop+g.offsetHeight-1+"px";g.Ra.style.left=l.offsetLeft+g.offsetLeft+"px"}g.Ra.style.display="";l.style.display="";a({a:g.Ra,orientation:"vertical",Ph:g.uf,jm:g.Qg,Io:k});k=100;if(g.orientation=="horizontal"&&g.Ud==0&&g.offsetWidth>k)k=g.offsetWidth;if(g.Ra.offsetWidth<k){g.Ra.style.width=k+"px";k=g.Ra.firstChild;k.style.width="100%"}k=true;for(l=0;l<f.length;l++)if(f[l]==g){k=false;break}k&&f.push(g)}};this.Ki=function(g){if(g.Ra!=
null){for(var k=0;k<f.length;k++)if(f[k]==g){f.splice(k,1);break}g.Ra.parentNode.removeChild(g.Ra);g.Ra=null}};this.Cl=function(){for(var g=[],k=0;k<f.length;k++)g.push(f[k]);for(k=0;k<g.length;k++)d.Ki(g[k])}};
pui.widgets.add({name:"menu",Ac:false,defaults:{width:"200px",height:"200px",choices:"Option 1,Option 2,Option 3,Option 4,Option 5",color:"#333366","border color":"#EEEEEE","font family":"Arial","font size":"12px","background color":"#FFFFFF","hover background color":"#6699FF","hover text color":"#FFFFFF",animate:"true"},propertySetters:{"field type":function(a){a.dom.v=new pui.ym;var b=a.evalProperty("choices");a.dom.v.choices=b!=null&&b!=""?pui.ha(b):["Option 1","Option 2","Option 3"];a.dom.v.a=
a.dom;a.dom.v.kd=a.properties["hover text color"];a.dom.v.jd=a.properties["hover background color"];a.dom.v.borderColor=a.properties["border color"];a.dom.v.Sa=a.properties["option image"];a.dom.v.Ze=a.dom.v.Sa==null||a.dom.v.Sa==""?[]:pui.ha(a.dom.v.Sa);a.dom.v.Ye=a.properties["option hover image"];a.dom.v.repeat=a.properties["background repeat"];a.dom.v.padding=a.properties["menu option padding"];a.dom.v.paddingLeft=a.properties["menu option indent"];a.dom.v.animate=a.properties.animate!="false";
b=a.properties.orientation;if(b!="horizontal"&&b!="vertical")b="vertical";a.dom.v.orientation=b;a.dom.v.r()},choices:function(a){if(a.dom.v!=null){var b=a.value;a.dom.v.choices=b!=null&&b!=""?pui.ha(b):["Option 1","Option 2","Option 3"];a.dom.v.r()}},"choice values":function(a){if(a.dom.v!=null){var b=a.value;a.dom.v.Gf=b!=null&&b!=""?pui.ha(b):[]}},"hover background color":function(a){if(a.dom.v!=null)a.dom.v.jd=a.value},"hover text color":function(a){if(a.dom.v!=null)a.dom.v.kd=a.value},animate:function(a){if(a.dom.v!=
null){a.dom.v.animate=a.value=="false"?false:true;a.dom.v.r()}},"border color":function(a){if(a.dom.v!=null){a.dom.v.borderColor=a.value;a.dom.v.r()}},"menu option padding":function(a){if(a.dom.v!=null){a.dom.v.padding=a.value;a.dom.v.r()}},"menu option indent":function(a){if(a.dom.v!=null){a.dom.v.paddingLeft=a.value;a.dom.v.r()}},"option image":function(a){if(a.dom.v!=null){a.dom.v.Sa=a.value;a.dom.v.Ze=a.value==null||a.value==""?[]:pui.ha(a.value);a.dom.v.r()}},"option hover image":function(a){if(a.dom.v!=
null){a.dom.v.Ye=a.value;a.dom.v.r()}},"background repeat":function(a){if(a.dom.v!=null){a.dom.v.repeat=a.value;a.dom.v.r()}},orientation:function(a){if(a.dom.v!=null){var b=a.value;if(b!="horizontal"&&b!="vertical")b="vertical";a.dom.v.orientation=b;a.dom.v.r()}}},Pd:function(a){switch(a.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":case "background color":case "css class":case "css class 2":case "css class 3":case "css class 4":a.dom.v!=
null&&a.dom.v.r();break}}});function cc(a,b){if(!a.design){var c=ob(a.Za);if(c!=null&&c!=""&&a.dom.originalValue==null)a.dom.originalValue=c}a.dom.innerHTML="";c=b;c=c.replace(/ /g,"\u00a0");a.dom.appendChild(document.createTextNode(c));if(M=="dspf"&&a.design){c=a.properties["overflow x"];if(c==null)c="";var d=a.properties["overflow y"];if(d==null)d="";if(a.propertyName=="value"&&pui.p(a.newValue)||a.propertyName!="value"&&pui.p(a.properties.value)){if(c=="")a.dom.style.overflowX="hidden";if(d=="")a.dom.style.overflowY="hidden"}else a.dom.style.overflowX=
c}}pui.widgets.add({name:"output field",newValue:"New Output Field",Lb:true,propertySetters:{"field type":function(a){cc(a,a.evalProperty("value"))},value:function(a){if(a.design||a.properties.value!="script: value")cc(a,a.value)},"overflow x":function(a){if(M=="dspf"&&a.design&&pui.p(a.properties.value)&&(a.value==""||a.value==null)){a.properties["overflow x"]="";a.dom.style.overflowX="hidden";return false}}}});pui.widgets.add({name:"password field",tag:"input",inputType:"password",newId:"Password",propertySetters:{"field type":function(a){a.dom.value=a.evalProperty("value");if(!a.design&&pui.Z&&!pui.Ic){N(a.dom,"focus",function(){Ra("ipadKeyboard").style.display=""});N(a.dom,"blur",function(){Ra("ipadKeyboard").style.display="none"})}},value:function(a){a.dom.value=a.value}}});pui.widgets.add({name:"radio button",tag:"input",inputType:"radio",ji:"label",resizable:false,defaults:{label:"Radio Button"},propertySetters:{"field type":function(a){if(a.design&&!pui.is_quirksmode)if(!pui.is_old_ie)a.dom.style.margin="2px";if(!a.design){var b=a.evalProperty("label");if(b!=""){if(a.properties.left!=null)a.dom.style.left=a.properties.left;if(a.properties.top!=null)a.dom.style.top=a.properties.top;Va(a.dom,b)}if(M=="dspf"){var c=a.evalProperty("value");b=a.evalProperty("radio button group");
if(c!=null&&b!=null)if(c==b||!isNaN(Number(c))&&!isNaN(Number(b))&&Number(c)==Number(b)){if(pui.is_old_ie)a.dom.name="radio";a.dom.checked=true}N(a.dom,"click",function(){if(a.dom.readOnly)if(a.dom.checked==false)a.dom.checked=true;else if(a.dom.checked==true)a.dom.checked=false})}else if(M=="genie"){b=a.evalProperty("related field");var d=false;if(a.dom.w)c=a.dom.w;else if(b!="")if(a.dom.Wo){if(a.dom.Wo.w)c=related.w}else d=true;if(c)if(c.bypass){a.dom.disabled=true;c=c.attr;d=c=="27"||c=="2F"||
c=="37"||c=="3F"}if(d){a.dom.style.visibility="hidden";if(a.dom.Nc)a.dom.Nc.style.visibility="hidden"}}}},visibility:function(a){if(!a.design&&a.dom.Nc)a.dom.Nc.style.visibility=a.value=="hidden"?"hidden":""}}});pui.ni=function(a,b,c){a=pui.ha(a);var d=pui.ha(b);c.choices={};for(var f=0;f<a.length;f++){var g=a[f],k=d[f];if(k==null||b=="")k=g;if(c.tagName=="SELECT"){var l=new Option(g,k);c.options[c.options.length]=l}c.choices[k]=g}};
pui.ie=function(a,b){if(b.w!=null&&b.w.shift!=null)if(b.w.shift=="2"||b.w.shift=="3"||b.w.shift=="5"||b.w.shift=="7"){a=bb(a);b.pui.properties.value=a}if(b.tagName=="INPUT"){b.value=b.choices!=null&&b.choices[a]!=null?b.choices[a]:a;b.pui.properties.value=a}else{var c=false;if(b.getAttribute("multiple")!=null)c=true;if(!c){b.value=a;b.pui.properties.value=a}if(c){c=a.split(",");for(var d=0;d<b.options.length;d++)for(var f=b.options[d],g=0;g<c.length;g++)if(c[g]==f.value){f.selected=true;break}}}};
pui.widgets.add({name:"select box",tag:"select",menuName:["Dropdown Box","List Box"],propertySetters:{"field type":function(a){if(a.dom.tagName=="SELECT")a.dom.options.length=0;a.dom.choices={};var b=a.evalProperty("choices url");if(b!=""&&!a.design){var c=new pui.Ajax(pui.se(b));c.async=true;c.suppressAlert=true;c.onready=function(){if(a.dom.tagName=="SELECT")a.dom.options.length=0;a.dom.choices={};var s=Ua(c,"Generate Dropdown Box Options");if(s){for(var t=0;t<s.length;t++){if(a.dom.tagName=="SELECT")try{a.dom.add(s[t])}catch(y){a.dom.add(s[t],
null)}a.dom.choices[s[t].value]=s[t].text}pui.ie(a.evalProperty("value"),a.dom)}};if(a.dom.tagName=="SELECT"){a.dom.options.length=0;a.dom.options[0]=new Option("Loading...","")}c.send()}else if(a.evalProperty("choices database file")!=""){if(!a.design){var d=a.evalProperty("max choices"),f=a.evalProperty("choices database file"),g=pui.Md(a.evalProperty("choice options field")),k=a.evalProperty("choice values field");if(k==null||k=="")k=g[0];b=a.evalProperty("choices selection criteria");var l=pui.Md(a.evalProperty("order by"));
if(l[0]!="")for(var h=0;h<l.length;h++){var o=l[h];pui.xc(g,o)==-1&&g.push(o)}k=g[0]+", "+k;g.splice(0,1);if(g.length>0)k+=", "+g.join();f="SELECT DISTINCT "+k+" FROM "+f;if(b&&b!="")f+=" WHERE "+b;if(l[0]!="")f+=" ORDER BY "+l.join();b=Za("PUI0009103.PGM");var p=new pui.Ajax(b);p.method="post";p.async=true;p.suppressAlert=true;if(M=="genie")p.postData="AUTH="+GENIE_AUTH;if(M=="dspf")p.postData="AUTH="+pui.appJob.auth;if(pui.secLevel>0){p.postData+="&q="+encodeURIComponent(pui.gd(a.dom));b=pui.fd(a.properties);
if(b!="")p.postData+="&"+b}else p.postData+="&q="+pui.Xa.cd(f);if(d!=null&&d!="")p.postData+="&maxcount="+encodeURIComponent(d);p.onsuccess=function(){var s=Ua(p,"Generate Dropdown Box Options");if(a.dom.tagName=="SELECT")a.dom.options.length=0;if(s){if(a.properties["blank option"]=="true"){var t=a.evalProperty("blank option label");if(t==null)t="";if(a.dom.tagName=="SELECT")a.dom.options[0]=new Option(t,"")}for(t=0;t<s.length;t++){if(a.dom.tagName=="SELECT")try{a.dom.add(s[t])}catch(y){a.dom.add(s[t],
null)}a.dom.choices[s[t].value]=s[t].text}pui.ie(a.evalProperty("value"),a.dom)}};if(a.dom.tagName=="SELECT"){a.dom.options.length=0;a.dom.options[0]=new Option("Loading...","")}p.send()}}else{d=a.evalProperty("choices");b=a.evalProperty("choice values");pui.ni(d,b,a.dom);pui.ie(a.evalProperty("value"),a.dom)}},value:function(a){pui.ie(a.value,a.dom)},choices:function(a){var b=a.evalProperty("choices database file"),c=a.evalProperty("choices url");if(!(b!=""||c!="")){if(a.dom.tagName=="SELECT")a.dom.options.length=
0;b=a.value;c=a.evalProperty("choice values");pui.ni(b,c,a.dom);pui.ie(a.evalProperty("value"),a.dom)}},"choice values":function(a){var b=a.evalProperty("choices database file"),c=a.evalProperty("choices url");if(!(b!=""||c!="")){if(a.dom.tagName=="SELECT")a.dom.options.length=0;b=a.evalProperty("choices");pui.ni(b,a.value,a.dom);pui.ie(a.evalProperty("value"),a.dom)}},"select box height":function(a){if(a.design&&pui.is_old_ie&&pui.ie_mode==6){var b=mb();pb(b["field type"],a.properties,a.dom,"select box",
a.design,a.e,a.Hl)}}}});pui.Slider=function(){this.t=null;this.orientation="horizontal";this.value=2;this.minValue=0;this.maxValue=10;this.Jc=1;this.disabled=this.readOnly=this.design=false;var a=this,b,c,d,f=pui.is_touch&&!pui.is_mouse_capable||pui.Z;this.init=function(){function g(k){function l(A){var B=Db(A)-t,v=Cb(A)-s,I=a.maxValue-a.minValue,G=0;G=o?parseInt(b.style.height):parseInt(b.style.width);var E=0;E=o?parseInt(b.style.top):parseInt(b.style.left);var C=0;C=o?parseInt(c.style.height)/2:parseInt(c.style.width)/
2;B=I*(((o?z+B:y+v)-E+C)/G)+a.minValue;if(B<a.minValue)B=a.minValue;if(B>a.maxValue)B=a.maxValue;B=a.Pi(B);if(B!=a.value){a.setValue(B);a.t.modified=true;if(M=="genie"&&a.t.w!=null&&a.t.w.idx!=null)pui.response[a.t.w.idx]=a.t;!a.design&&typeof a.t.onchange=="function"&&a.t.onchange(A)}p&&A.preventDefault()}function h(){if(p){eb(document,"touchmove",l);eb(document,"touchend",h)}else{eb(document,"mousemove",l);eb(document,"mouseup",h)}}if(!a.readOnly)if(!a.disabled){var o=a.orientation=="vertical",
p=false;if(k!=null&&k.touches!=null){if(k.touches.length!=1)return;p=true}var s=Cb(k),t=Db(k),y=parseInt(c.style.left),z=parseInt(c.style.top);if(p){N(document,"touchmove",l);N(document,"touchend",h)}else{N(document,"mousemove",l);N(document,"mouseup",h)}Ma(k);return false}}b=document.createElement("div");b.style.backgroundColor="#D7D7D7";b.style.position="absolute";b.style.fontSize="0px";b.style.border="1px solid #898989";if(!a.design&&M=="genie"){d=ab("input",a.t.name);d.type="hidden";document.forms.main.appendChild(d)}c=
document.createElement("div");c.style.border="1px solid #94c9ff";c.style.backgroundColor="#d7f0ff";c.style.position="absolute";c.style.fontSize="0px";if(f&&!a.design){c.style.MozBorderRadius="15px";c.style.borderRadius="15px";c.style.WebkitBorderRadius="15px"}else{c.style.MozBorderRadius="5px";c.style.borderRadius="5px";c.style.WebkitBorderRadius="5px"}a.t.onselectstart=la(false);b.onselectstart=la(false);c.onselectstart=la(false);N(c,"mousedown",g);N(c,"touchstart",g);a.t.appendChild(b);a.t.appendChild(c);
a.r()};this.Pi=function(g,k){var l=a.Jc/2;if(k==true)l=0;newValue=parseInt((g+a.minValue+l)/a.Jc)*a.Jc-a.minValue;return newValue=Math.round(newValue*1E6)/1E6};this.r=function(){if(a.orientation=="vertical"){b.style.left="6px";b.style.top="10px";var g=parseInt(a.t.style.height)-24;if(isNaN(g))g=0;if(g<0)g=0;b.style.height=g+"px";b.style.width="5px";b.style.borderRight="1px solid #B7B7B7"}else{b.style.left="10px";b.style.top="6px";b.style.height="5px";g=parseInt(a.t.style.width)-24;if(isNaN(g))g=0;
if(g<0)g=0;b.style.width=g+"px";b.style.borderBottom="1px solid #B7B7B7"}if(a.orientation=="vertical")if(f&&!a.design){c.style.height="32px";c.style.width="37px";c.style.left="-11px"}else{c.style.height="10px";c.style.width="15px";c.style.left="1px"}else if(f&&!a.design){c.style.height="37px";c.style.width="32px";c.style.top="-11px"}else{c.style.height="15px";c.style.width="10px";c.style.top="1px"}a.setValue(a.value)};this.sj=function(){if(isNaN(a.Jc))a.Jc=1;if(a.Jc<=0)a.Jc=1;if(isNaN(a.minValue))a.minValue=
0;if(isNaN(a.maxValue))a.maxValue=10;if(isNaN(a.value))a.value=0;if(a.value<a.minValue)a.value=a.minValue;if(a.value>a.maxValue)a.value=a.maxValue;a.value=a.Pi(a.value);a.t.value=a.value;if(!a.design&&M=="genie")d.value=a.value};this.setValue=function(g){g=Number(g);if(isNaN(g))g=a.minValue;if(g<a.minValue)g=a.minValue;if(g>a.maxValue)g=a.Pi(a.maxValue,true);var k=a.maxValue-a.minValue,l=a.orientation=="vertical",h=0,o=0;h=l?parseInt(b.style.height):parseInt(b.style.width);o=l?parseInt(c.style.height)/
2:parseInt(c.style.width)/2;k=parseInt(h/k*(g-a.minValue)-o)+10;if(isNaN(k))k=0;if(l)c.style.top=k+"px";else c.style.left=k+"px";a.value=g;a.t.value=g;if(!a.design&&M=="genie")d.value=a.value}};
pui.widgets.add({name:"slider",defaults:{width:"150px",height:"20px"},propertySetters:{"field type":function(a){if(a.dom.G==null)a.dom.G=new pui.Slider;a.dom.G.t=a.dom;a.dom.G.design=a.design;a.dom.G.value=a.evalProperty("value");a.dom.G.init()},value:function(a){a.dom.G!=null&&a.dom.G.setValue(a.value)},orientation:function(a){if(a.dom.G!=null){a.dom.G.orientation=a.value;a.dom.G.r()}},"min value":function(a){if(!a.design&&a.dom.G!=null){a.dom.G.minValue=Number(a.value);a.dom.G.maxValue=Number(a.evalProperty("min value"));
a.dom.G.value=Number(a.evalProperty("value"));a.dom.G.sj();a.dom.G.r()}},"max value":function(a){if(!a.design&&a.dom.G!=null){a.dom.G.maxValue=Number(a.value);a.dom.G.minValue=Number(a.evalProperty("min value"));a.dom.G.value=Number(a.evalProperty("value"));a.dom.G.sj();a.dom.G.r()}},"increment value":function(a){if(!a.design&&a.dom.G!=null){a.dom.G.Jc=Number(a.value);a.dom.G.value=Number(a.evalProperty("value"));a.dom.G.sj();a.dom.G.r()}},"read only":function(a){if(a.dom.G!=null&&!a.design)a.dom.G.readOnly=
a.value==true||a.value=="true"?true:false},disabled:function(a){if(a.dom.G!=null&&!a.design)a.dom.G.disabled=a.value==true||a.value=="true"?true:false},width:function(a){a.dom.style.width=a.value;a.dom.G!=null&&a.dom.G.r()},height:function(a){a.dom.style.height=a.value;a.dom.G!=null&&a.dom.G.r()}}});pui.Am=function(){function a(){var p=b.a.offsetWidth;if(p==0){p=parseInt(b.a.style.width);if(isNaN(p))p=0;p+=2}return onPoint=b.Wg?parseInt((p+3)/2):p-6}this.a=null;this.readOnly=this.disabled=false;this.Wg=this.ac=true;this.designMode=false;var b=this,c=document.createElement("label"),d=document.createElement("span"),f=document.createElement("label"),g=document.createElement("span"),k=document.createElement("div"),l=document.createElement("div"),h=document.createElement("div"),o=false;this.init=
function(){function p(s){function t(I){o=true;var G=v+Cb(I)-B;if(G<0)G=0;if(G>z)G=z;b.Bi(G);A&&I.preventDefault()}function y(I){if(A){eb(document,"touchmove",t);eb(document,"touchend",y)}else{eb(document,"mousemove",t);eb(document,"mouseup",y)}var G=Math.abs(v-parseInt(k.style.left)),E=b.a.offsetWidth;if(E==0){E=parseInt(b.a.style.width);if(isNaN(E))E=0;E+=2}E=E/2;if(b.Wg)E=E/2-4;if(o){if(G<=5||G>=E){b.toggle(true);b.Ul(I)}else b.refresh(true);setTimeout(function(){o=false},0)}}if(!b.readOnly)if(!b.disabled)if(!b.designMode){var z=
a(),A=false;if(s!=null&&s.touches!=null){if(s.touches.length!=1)return;A=true}var B=Cb(s),v=parseInt(k.style.left);if(A){N(document,"touchmove",t);N(document,"touchend",y)}else{N(document,"mousemove",t);N(document,"mouseup",y)}Ma(s);return false}}c.className="off-label";c.style.background="url('"+pui.normalizeURL("/profoundui/proddata/images/onoff/off.png")+"') no-repeat right 0";d.innerHTML="OFF";c.appendChild(d);f.className="on-label";f.style.background="url('"+pui.normalizeURL("/profoundui/proddata/images/onoff/on.png")+
"') no-repeat";g.innerHTML="ON";f.appendChild(g);k.className="onoff-handle-left";k.style.background="url('"+pui.normalizeURL("/profoundui/proddata/images/onoff/handle_left.png")+"') no-repeat";l.className="onoff-handle-right";l.style.background="url('"+pui.normalizeURL("/profoundui/proddata/images/onoff/handle_right.png")+"') no-repeat right 0";h.className="onoff-handle-center";h.style.background="url('"+pui.normalizeURL("/profoundui/proddata/images/onoff/handle_center.png")+"')";l.appendChild(h);
k.appendChild(l);pui.Y(b.a,"onoff-switch");b.a.appendChild(c);b.a.appendChild(f);b.a.appendChild(k);b.a.onclick=function(s){if(!b.readOnly)if(!b.disabled)if(!b.designMode)if(!o){b.toggle(true);b.Ul(s)}};N(b.a,"mousedown",p);N(b.a,"touchstart",p);b.size()};this.size=function(){var p=b.a.offsetWidth;if(p==0){p=parseInt(b.a.style.width);if(isNaN(p))p=0;p+=2}offLabelWidth=p-5;if(offLabelWidth<0)offLabelWidth=0;c.style.width=offLabelWidth+"px";b.Xl(b.Wg)};this.Xl=function(p){if(p){var s=b.a.offsetWidth;
if(s==0){s=parseInt(b.a.style.width);if(isNaN(s))s=0;s+=2}s=parseInt((s-14)/2);if(s<0)s=0;k.style.width=s+"px"}else k.style.width="";b.Wg=p;b.refresh()};this.Bi=function(p,s){for(var t=["transition","MozTransition","WebkitTransition","msTransition","OTransition"],y=" 0.3s ease",z=0;z<t.length;z++){var A=t[z];if(s){y=" 0.2s ease";f.style[A]="width"+y;g.style[A]="margin-left"+y;d.style[A]="margin-right"+y;k.style[A]="left"+y}else{f.style[A]="";g.style[A]="";d.style[A]="";k.style[A]=""}}t=a();f.style.width=
p+4+"px";g.style.marginLeft=p-t+"px";d.style.marginRight=-p+"px";k.style.left=p+"px"};this.Cp=function(p){var s=a();b.Bi(s,p);b.ac=true};this.Bp=function(p){b.Bi(0,p);b.ac=false};this.set=function(p,s){p?b.Cp(s):b.Bp(s)};this.toggle=function(p){b.set(!b.ac,p)};this.refresh=function(p){b.set(b.ac,p)};this.mn=function(p){g.innerHTML=p};this.ln=function(p){d.innerHTML=p};this.disable=function(){b.disabled=true;pui.Y(b.a,"onoff-switch-disabled")};this.enable=function(){b.disabled=false;pui.Q(b.a,"onoff-switch-disabled")};
this.xp=function(p,s){var t=p.split(" "),y=p;if(t.length==2)y=t[0]+t[1].substr(0,1).toUpperCase()+t[1].substr(1);g.style[y]=s;d.style[y]=s};this.Ap=function(p){b.a.style.cursor=p;f.style.cursor=p;c.style.cursor=p;k.style.cursor=p};this.Ul=function(p){b.a.modified=true;if(M=="genie"&&b.a.w!=null&&b.a.w.idx!=null)pui.response[b.a.w.idx]=b.a;!b.designMode&&typeof b.a.onchange=="function"&&b.a.onchange(p)}};
pui.widgets.add({name:"on off switch",defaults:{width:"100px",height:"27px"},propertySetters:{"field type":function(a){if(a.dom.z==null)a.dom.z=new pui.Am;a.dom.style.border="0px none";a.dom.z.a=a.dom;a.dom.z.designMode=a.design;a.dom.z.init();a.dom.z.set(a.evalProperty("value")==a.evalProperty("on value"));if(a.design)a.dom.z.Ap("default");else{a.dom.z.Zd=a.evalProperty("on value");a.dom.z.Xd=a.evalProperty("off value")}a.dom.sizeMe=function(){a.dom.z.size()}},value:function(a){a.dom.z!=null&&a.dom.z.set(a.value==
a.evalProperty("on value"))},"on value":function(a){a.dom.z!=null&&a.dom.z.set(a.evalProperty("value")==a.value)},"read only":function(a){if(a.dom.z!=null)a.dom.z.readOnly=a.value==true||a.value=="true"},disabled:function(a){if(a.dom.z!=null)a.value==true||a.value=="true"?a.dom.z.disable():a.dom.z.enable()},"wide handle":function(a){a.dom.z!=null&&a.dom.z.Xl(a.value!==false&&a.value!=="false")},"on text":function(a){a.dom.z!=null&&a.dom.z.mn(a.value)},"off text":function(a){a.dom.z!=null&&a.dom.z.ln(a.value)},
width:function(a){if(a.dom.z!=null){a.dom.style.width=a.value;a.dom.z.size()}},height:function(a){if(a.dom.z!=null){a.dom.style.height=a.value;a.dom.z.size()}}},ao:function(a){a.propertyName.substr(0,9)=="css class"&&a.dom.z!=null&&pui.Y(a.dom,"onoff-switch");switch(a.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":a.dom.z!=
null&&a.dom.z.xp(a.propertyName,a.value);break}}});pui.Fm=function(a,b,c,d,f){var g=this,k=document.createElement("img"),l=document.createElement("img");if(b!=null&&b!=""){b=Number(b);if(isNaN(b))b=null}else b=null;if(c!=null&&c!=""){c=Number(c);if(isNaN(c))c=null}else c=null;if(d!=null){d=Number(d);if(isNaN(d))d=1;if(d==0)d=1}else d=1;k.style.position="absolute";k.className="input";k.style.borderStyle="none";k.style.backgroundColor="transparent";k.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");k.style.cursor="pointer";k.onclick=function(){g.Og(d)};
if(pui.is_old_ie)k.ondblclick=function(){g.Og(d)};l.style.position="absolute";l.className="input";l.style.borderStyle="none";l.style.backgroundColor="transparent";l.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");l.style.cursor="pointer";l.onclick=function(){g.Og(-d)};if(pui.is_old_ie)l.ondblclick=function(){g.Og(-d)};if(a.pui==null||a.pui.properties==null||a.pui.properties.visibility==null||a.pui.properties.visibility=="")if(M=="genie"&&a.w!=null&&a.w.attr!=null){var h=a.w.attr;if(h==
"27"||h=="2F"||h=="37"||h=="3F")g.hide()}if(f){a.style.paddingRight="16px";a.style.boxSizing="border-box";a.style.MozBoxSizing="border-box";a.style.WebkitBoxSizing="border-box";if(pui.is_old_ie&&pui.ie_mode==7&&(typeof(document.documentMode==7)=="undefined"||document.documentMode==7)){f=a.offsetWidth;f-=36;if(f<16)f=16;a.style.width=f+"px"}}a.Yb=[k,l];if(a.parentNode!=null){a.parentNode.appendChild(k);a.parentNode.appendChild(l)}this.rl=function(){var o;o=a.style.left;o=o!=null&&typeof o=="string"&&
o.length>=3&&o.substr(o.length-2,2)=="px"?parseInt(o):a.offsetLeft;if(isNaN(o))o=0;var p;p=a.style.top;p=p!=null&&typeof p=="string"&&p.length>=3&&p.substr(p.length-2,2)=="px"?parseInt(p):a.offsetTop;if(isNaN(p))p=0;k.style.left=o+a.offsetWidth-15+"px";p+=parseInt((a.offsetHeight-18)/2);if(pui.is_quirksmode)p-=1;k.style.top=p+"px";k.style.zIndex=a.style.zIndex;k.style.visibility=a.style.visibility;o=a.style.left;o=o!=null&&typeof o=="string"&&o.length>=3&&o.substr(o.length-2,2)=="px"?parseInt(o):
a.offsetLeft;if(isNaN(o))o=0;p=a.style.top;p=p!=null&&typeof p=="string"&&p.length>=3&&p.substr(p.length-2,2)=="px"?parseInt(p):a.offsetTop;if(isNaN(p))p=0;l.style.left=o+a.offsetWidth-15+"px";p+=9;p+=parseInt((a.offsetHeight-18)/2);if(a.offsetHeight%2==1)if(a.offsetHeight<18)p-=1;else p+=1;l.style.top=p+"px";l.style.zIndex=a.style.zIndex;l.style.visibility=a.style.visibility};g.rl();this.hide=function(){k.style.visibility="hidden";l.style.visibility="hidden"};this.show=function(){k.style.visibility=
"";l.style.visibility=""};this.Og=function(o){if(!a.disabled)if(!a.readOnly){var p=Number(a.value);if(isNaN(p))p=0;p+=o;p=Math.round(p*1E4)/1E4;if(b!=null&&p<b)p=b;if(c!=null&&p>c)p=c;var s=Number(a.getAttribute("maxLength"));if(s!=null&&!isNaN(s)&&s>0){if(s==1&&p<0)p=0;if(String(p).length>s)return}s=a.onspin;if(s!=null){o=s(a.value,o,a);if(typeof o=="string"||typeof o=="number")p=o}a.value=p;a.modified=true;if(M=="genie"&&a.w!=null&&a.w.idx!=null)pui.response[a.w.idx]=a;pui.Cc(a)}}};
pui.widgets.add({name:"spinner",tag:"input",Ai:pui.normalizeURL("/profoundui/proddata/images/up.gif"),ol:pui.normalizeURL("/profoundui/proddata/images/down.gif"),defaults:{"css class":"input"},propertySetters:{"field type":function(a){a.dom.value=a.evalProperty("value");if(a.design)a.dom.sizeMe=function(){var b=a.e;b.Rf();b.Te()};else setTimeout(function(){a.dom.ne=new pui.Fm(a.dom,a.evalProperty("min value"),a.evalProperty("max value"),a.evalProperty("increment value"),!a.design);a.dom.sizeMe=function(){a.dom.ne.rl()}},
1);if(a.design)a.dom.readOnly=true},value:function(a){a.dom.value=a.value},visibility:function(a){if(!a.design&&a.dom.ne)a.value=="hidden"?a.dom.ne.hide():a.dom.ne.show()}}});pui.widgets.buttonStyles={"Ice Blue":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#cee7ff"},Apricot:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#ffe7ce"},"Royal Blue":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#a5c0ff"},"Bright Gold":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#ffd880"},
Glass:{left:6,right:6,top:11,bottom:11,hasOverState:false,hasClickState:false,editBackgroundColor:"#c9dff3"},"Black Marble":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",editBackgroundColor:"#666666"},"Classic Style":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:false,editBackgroundColor:"#d8dbd8"},Cherry:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:false,editBackgroundColor:"#e3c9ec"},Simplistic:{left:5,
right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#f6f2ed"},"Silver Accent":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#f7f7ff"},Caramel:{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c0a254"},"Lime Green":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",
hiColor:"#000000",editBackgroundColor:"#54c07e"},"Raspberry Red":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c05469"},"Steel Blue":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#526fbf"},Violet:{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,
textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c054c0"},"Flash Style":{left:5,right:5,top:5,bottom:5,hasOverState:false,hasClickState:false,editBackgroundColor:"#efefef"},"Blue Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#3072ee",width:125},"Red Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#ec352f",width:125},"Brown Gel":{left:23,right:23,
top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#eca430",width:125},"Purple Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#712be9",width:125},"Green Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#6eec2f",width:125}};
pui.widgets.getStyledButtonProxy=function(a){var b=a["button style"],c={};c.dom=document.createElement("div");c.dom.style.position="relative";c.dom.style.width="100px";if(a.width!=null)c.dom.style.width=a.width;c.dom.style.height="23px";c.Ne=true;c.properties={};c.properties.width="100px";if(a.width!=null)c.properties.width=a.width;c.properties.height="23px";c.properties.value="Click Here";c.properties["button style"]=b;c.evalProperty=function(d){return c.properties[d]};pui.widgets["styled button"].propertySetters["field type"](c);
b=pui.widgets.buttonStyles[b].textColor;if(b!=null)c.dom.button.h.style.color=b;if(a["font size"]!=null)c.dom.button.h.style.fontSize=a["font size"];if(a["font family"]!=null)c.dom.button.h.style.fontFamily=a["font family"];if(a["font weight"]!=null)c.dom.button.h.style.fontWeight=a["font weight"];if(a["text align"]!=null)c.dom.button.h.style.textAlign=a["text align"];return c.dom};
pui.widgets.pf=function(a,b,c){var d=pui.normalizeURL("/profoundui/proddata/images/buttons/"+a+"/");b.ea.style.backgroundImage="url('"+d+"topleft"+c+".png')";b.Ja.style.backgroundImage="url('"+d+"topmiddle"+c+".png')";b.wa.style.backgroundImage="url('"+d+"topright"+c+".png')";b.Ea.src=d+"left"+c+".png";b.bc.src=d+"middle"+c+".png";b.Ga.src=d+"right"+c+".png";b.Ea.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"left"+c+".png', sizingMethod='scale')";b.bc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
d+"middle"+c+".png', sizingMethod='scale')";b.Ga.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"right"+c+".png', sizingMethod='scale')";b.za.style.backgroundImage="url('"+d+"bottomleft"+c+".png')";b.Aa.style.backgroundImage="url('"+d+"bottommiddle"+c+".png')";b.Ba.style.backgroundImage="url('"+d+"bottomright"+c+".png')";a=pui.widgets.buttonStyles[a];if(a!=null&&a.gn!=true){b=function(f){(new Image).src=d+f+".png"};if(a.hasOverState==true&&c!="-hi"){b("topleft-hi");b("topmiddle-hi");
b("topright-hi");b("left-hi");b("middle-hi");b("right-hi");b("bottomleft-hi");b("bottommiddle-hi");b("bottomright-hi")}if(a.hasClickState==true&&a.clickStateIsNormalState!=true&&c!="-click"){b("topleft-click");b("topmiddle-click");b("topright-click");b("left-click");b("middle-click");b("right-click");b("bottomleft-click");b("bottommiddle-click");b("bottomright-click")}a.gn=true}};
pui.widgets.vg=function(a,b,c,d,f){if(typeof c=="string"){if(c!=""&&!isNaN(c))c+="px";c=c.length>=3&&c.substr(c.length-2)=="px"?parseInt(c):a.ea.parentNode.offsetWidth}if(typeof d=="string"){if(d!=""&&!isNaN(d))d+="px";d=d.length>=3&&d.substr(d.length-2)=="px"?parseInt(d):a.ea.parentNode.offsetHeight}if(typeof c!="number")c=parseInt(c);if(isNaN(c))c=100;if(typeof d!="number")d=parseInt(d);if(isNaN(d))d=23;var g=false;if(d<b.top+b.bottom){d=b.top+b.bottom;a.h.parentNode.style.height=d+"px";g=true}if(c<
b.left+b.right){c=b.left+b.right;a.h.parentNode.style.width=c+"px";g=true}g&&f!=null&&f.design==true&&f.e.designer.selection.rg();a.ea.style.width=b.left+"px";a.ea.style.height=b.top+"px";a.Ja.style.left=b.left+"px";a.Ja.style.height=b.top+"px";a.Ja.style.width=c-b.left-b.right+"px";a.wa.style.left=c-b.right+"px";a.wa.style.height=b.top+"px";a.wa.style.width=b.right+"px";a.Ea.style.top=b.top+"px";a.Ea.style.width=b.left+"px";a.Ea.style.height=d-b.top-b.bottom+"px";a.bc.style.left=b.left+"px";a.bc.style.top=
b.top+"px";a.bc.style.width=c-b.left-b.right+"px";a.bc.style.height=d-b.top-b.bottom+"px";a.Ga.style.left=c-b.right+"px";a.Ga.style.top=b.top+"px";a.Ga.style.width=b.right+"px";a.Ga.style.height=d-b.top-b.bottom+"px";a.za.style.top=d-b.bottom+"px";a.za.style.width=b.left+"px";a.za.style.height=b.bottom+"px";a.Aa.style.left=b.left+"px";a.Aa.style.top=d-b.bottom+"px";a.Aa.style.height=b.bottom+"px";a.Aa.style.width=c-b.left-b.right+"px";a.Ba.style.left=c-b.right+"px";a.Ba.style.top=d-b.bottom+"px";
a.Ba.style.height=b.bottom+"px";a.Ba.style.width=b.right+"px";a.h.style.left=b.left+"px";a.h.style.top="0px";a.h.style.width=c-b.left-b.right+"px";a.h.style.height=d+"px";a.h.style.lineHeight=d+"px"};
pui.widgets.add({name:"styled button",newValue:"Click Here",Lb:true,defaults:{width:"100px",height:"23px","button style":"Ice Blue"},propertySetters:{"field type":function(a){function b(){if(!(a.dom.getAttribute!=null&&a.dom.getAttribute("disabled")=="true"||a.dom.disabled!=null&&a.dom.disabled==true)){a.dom.bl=true;if(a.dom.sh!=true){var l=a.dom.button.Bf,h=pui.widgets.buttonStyles[l];if(h==null){l=pui.widgets.kc()[0];h=pui.widgets.buttonStyles[l]}h.hasOverState&&pui.widgets.pf(l,a.dom.button,"-hi");
if(h.hiColor!=null)a.dom.button.h.style.color=h.hiColor}}}function c(l){a.dom.bl=false;if(a.dom.sh!=true){if(pui.is_old_ie){if((l=l.relatedTarget||l.toElement)&&l!=a.dom)l=l.parentNode;if(l==a.dom)return}var h=a.dom.button.Bf;l=pui.widgets.buttonStyles[h];if(l==null){h=pui.widgets.kc()[0];l=pui.widgets.buttonStyles[h]}l.hasOverState&&pui.widgets.pf(h,a.dom.button,"");if(l.hiColor!=null){h=a.properties.color;if(h==null)h=l.textColor;a.dom.button.h.style.color=h}}}function d(l){if(!(a.dom.getAttribute!=
null&&a.dom.getAttribute("disabled")=="true"||a.dom.disabled!=null&&a.dom.disabled==true))if(!pui.Lc(l)){a.dom.sh=true;l=a.dom.button.Bf;var h=pui.widgets.buttonStyles[l];if(h==null){l=pui.widgets.kc()[0];h=pui.widgets.buttonStyles[l]}a.dom.button.h.style.left=h.left+1+"px";a.dom.button.h.style.top="1px";if(h.hasClickState){var o="-click";if(h.clickStateIsNormalState==true)o="";pui.widgets.pf(l,a.dom.button,o)}}}function f(){a.dom.sh=false;var l=a.dom.button.Bf,h=pui.widgets.buttonStyles[l];if(h==
null){l=pui.widgets.kc()[0];h=pui.widgets.buttonStyles[l]}a.dom.button.h.style.left=h.left+"px";a.dom.button.h.style.top="0px";if(h.hasClickState){var o="";g.h.style.color=a.properties.color;if(h.hasOverState&&a.dom.bl==true){o="-hi";if(h.hiColor!=null)a.dom.button.h.style.color=h.hiColor}pui.widgets.pf(l,a.dom.button,o)}}a.dom.sizeMe=function(){var l=a.properties["button style"];l=pui.widgets.buttonStyles[l];if(l==null){l=pui.widgets.kc()[0];l=pui.widgets.buttonStyles[l]}pui.widgets.vg(a.dom.button,
l,a.dom.offsetWidth,a.dom.offsetHeight,a)};a.dom.style.textAlign="center";if(a.properties.color!=null)a.dom.style.color=a.properties.color;a.dom.innerHTML="";var g={};g.ea=document.createElement("div");g.Ja=document.createElement("div");g.wa=document.createElement("div");g.Ea=document.createElement("img");g.bc=document.createElement("img");g.Ga=document.createElement("img");g.za=document.createElement("div");g.Aa=document.createElement("div");g.Ba=document.createElement("div");g.h=document.createElement("div");
g.ea.style.position="absolute";g.ea.style.padding="0px";g.ea.style.margin="0px";g.Ja.style.position="absolute";g.Ja.style.padding="0px";g.Ja.style.margin="0px";g.wa.style.position="absolute";g.wa.style.padding="0px";g.wa.style.margin="0px";g.Ea.style.position="absolute";g.Ea.style.padding="0px";g.Ea.style.margin="0px";g.bc.style.position="absolute";g.bc.style.padding="0px";g.bc.style.margin="0px";g.Ga.style.position="absolute";g.Ga.style.padding="0px";g.Ga.style.margin="0px";g.za.style.position="absolute";
g.za.style.padding="0px";g.za.style.margin="0px";g.Aa.style.position="absolute";g.Aa.style.padding="0px";g.Aa.style.margin="0px";g.Ba.style.position="absolute";g.Ba.style.padding="0px";g.Ba.style.margin="0px";g.ea.style.top="0px";g.ea.style.left="0px";g.ea.style.backgroundRepeat="no-repeat";g.Ja.style.top="0px";g.Ja.style.backgroundRepeat="repeat-x";g.wa.style.top="0px";g.wa.style.backgroundRepeat="no-repeat";g.Ea.style.left="0px";g.za.style.left="0px";g.za.style.backgroundRepeat="no-repeat";g.Aa.style.backgroundRepeat=
"repeat-x";g.Ba.style.backgroundRepeat="no-repeat";g.h.style.position="absolute";g.h.style.verticalAlign="middle";g.h.style.display="";g.h.style.overflow="hidden";g.h.onselectstart=la(false);if(typeof g.h.style.MozUserSelect!="undefined")g.h.style.MozUserSelect="none";g.h.style.textAlign="center";if(a.properties["text align"]!=null)g.h.style.textAlign=a.properties["text align"];if(a.properties["font family"]!=null)g.h.style.fontFamily=a.properties["font family"];if(a.properties.color!=null)g.h.style.color=
a.properties.color;if(a.properties["font size"]!=null)g.h.style.fontSize=a.properties["font size"];if(a.properties["font weight"]!=null)g.h.style.fontWeight=a.properties["font weight"];a.Ne!=true&&N(a.dom,"mouseover",b);a.Ne!=true&&N(a.dom,"mouseout",c);a.Ne!=true&&N(a.dom,"mousedown",d);a.Ne!=true&&N(document,"mouseup",f);a.dom.appendChild(g.ea);a.dom.appendChild(g.Ja);a.dom.appendChild(g.wa);a.dom.appendChild(g.Ea);a.dom.appendChild(g.bc);a.dom.appendChild(g.Ga);a.dom.appendChild(g.za);a.dom.appendChild(g.Aa);
a.dom.appendChild(g.Ba);a.dom.appendChild(g.h);a.dom.button=g;var k=a.value;a.value=a.properties["button style"];pui.widgets["styled button"].propertySetters["button style"](a);a.value=k;a.dom.button.h.innerHTML=a.evalProperty("value")},"button style":function(a){var b=a.value,c=pui.widgets.buttonStyles[b];if(c==null){b=pui.widgets.kc()[0];c=pui.widgets.buttonStyles[b]}pui.normalizeURL("/profoundui/proddata/images/buttons/"+b+"/");a.dom.button.Bf=b;var d=a.dom.button;pui.widgets.pf(b,d,"");d.h.className=
"styled-button "+b.split(" ").join("-").toLowerCase()+"-button";pui.widgets.vg(d,c,a.properties.width,a.properties.height)},value:function(a){a.dom.button.h.innerHTML=a.value},width:function(a){a.dom.style.width=pui.Me(a.value)?a.value+"px":a.value;var b=a.properties["button style"];b=pui.widgets.buttonStyles[b];if(b==null){b=pui.widgets.kc()[0];b=pui.widgets.buttonStyles[b]}pui.widgets.vg(a.dom.button,b,a.value,a.properties.height,a)},height:function(a){a.dom.style.height=pui.Me(a.value)?a.value+
"px":a.value;var b=a.properties["button style"];b=pui.widgets.buttonStyles[b];if(b==null){b=pui.widgets.kc()[0];b=pui.widgets.buttonStyles[b]}pui.widgets.vg(a.dom.button,b,a.properties.width,a.value,a)},color:function(a){a.dom.button.h.style.color=a.value},"font family":function(a){a.dom.button.h.style.fontFamily=a.value},"font size":function(a){a.dom.button.h.style.fontSize=a.value},"font style":function(a){a.dom.button.h.style.fontStyle=a.value},"font variant":function(a){a.dom.button.h.style.fontVariant=
a.value},"font weight":function(a){a.dom.button.h.style.fontWeight=a.value},"letter spacing":function(a){a.dom.button.h.style.letterSpacing=a.value},"text align":function(a){var b=a.value;if(b==null||b=="")b="center";a.dom.button.h.style.textAlign=b},"text decoration":function(a){a.dom.button.h.style.textDecoration=a.value},"text transform":function(a){a.dom.button.h.style.textTransform=a.value},"word spacing":function(a){a.dom.button.h.style.wordSpacing=a.value}}});pui.widgets.tabStyles={Simple:{useImages:false,height:15,defaultBackColor:"#eeeeff",hiColor:"#666699"},Classic:{useImages:true,hiImages:true,height:19,leftWidth:5,rightWidth:5,defaultBackColor:"#fcfcfe"},Glass:{useImages:true,hiImages:true,height:21,leftWidth:3,rightWidth:3,defaultBackColor:"#deecfd",hiColor:"#15428b",selColor:"#15428b",borderColor:"#8db2e3",leftMargin:3},Angle:{useImages:true,hiImages:false,height:21,leftWidth:9,rightWidth:25,defaultBackColor:"#ffffff",hiColor:"#ffffff",selColor:"#013572",
hiUnderline:true,selBold:true,separated:true,borderColor:"#5977b3"},Glow:{useImages:true,hiImages:false,height:19,leftWidth:7,rightWidth:7,defaultBackColor:"#ffffff",hiColor:"#666699"},Smooth:{useImages:true,hiImages:true,height:25,leftWidth:6,rightWidth:6,defaultBackColor:"#f8f2e4",backBar:true},Delicate:{useImages:true,hiImages:false,height:27,leftWidth:2,rightWidth:2,defaultBackColor:"#ffffff",hiColor:"#999999",borderColor:"#dedede",leftMargin:0},Concrete:{useImages:true,hiImages:false,height:23,
leftWidth:5,rightWidth:5,defaultBackColor:"#ffffff",hiColor:"#666699",selColor:"#ffffff",separated:true,leftMargin:2},Sky:{useImages:true,hiImages:true,height:22,leftWidth:4,rightWidth:4,defaultBackColor:"#ffffff",hiColor:"#627ec1",selColor:"#627ec1",separated:true,backBar:true,backBarColor:"#f4f7fb",borderColor:"#bcd2e6",borderSize:2},Block:{useImages:true,hiImages:true,height:23,leftWidth:4,rightWidth:4,defaultBackColor:"#87c2f2",hiColor:"#ffffff",selColor:"#ffffff",borderColor:"#2763a5",separated:true}};
pui.widgets.Oo=function(a){tabStyleSettings=pui.widgets.tabStyles[a];if(tabStyleSettings!=null)if(tabStyleSettings.Po!=true){if(tabStyleSettings.useImages){var b=tabStyleSettings.imageFileExtension;if(b==null)b="gif";if(b.substr(0,1)==".")b=b.substr(1);var c=function(d){(new Image).src=d};a=pui.normalizeURL("/profoundui/proddata/images/tabs/"+a.toLowerCase()+"/");if(tabStyleSettings.hiImages){c(a+"left-hi."+b);c(a+"middle-hi."+b);c(a+"right-hi."+b)}c(a+"left-sel."+b);c(a+"middle-sel."+b);c(a+"right-sel."+
b)}tabStyleSettings.Po=true}};
function ec(){var a=this;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.Rg=[];this.selectedTab=0;this.a=null;this.yc="#eeeeff";this.gc="Simple";this.Ql=function(){var b=pui.widgets.tabStyles[a.gc];if(b!=null&&b.defaultBackColor!=null)a.yc=b.defaultBackColor};this.r=function(){function b(A){elems=(M=="dspf"&&!z?pui.runtimeContainer:document.getElementById(ma)).getElementsByTagName(A);for(A=0;A<elems.length;A++){var B=elems[A];if(B.hb!=
null&&B.gb!=null&&B.hb==a.a.id){if(B.gb==a.selectedTab){B.style.visibility="";applyProperty(B,"visibility","");if(B.grid&&B.grid.setProperty)B.grid.f||!B.grid.Xc?B.grid.show():B.grid.hide();!Sa()&&B.pui.properties["field type"]=="chart"&&!B.chart&&applyProperty(B,"field type","chart")}else{B.style.visibility="hidden";applyProperty(B,"visibility","hidden");B.grid&&B.grid.setProperty&&B.grid.hide();B.B!=null&&B.B.hide()}if(z&&B.tagName=="INPUT"&&(B.type=="text"||pui.eg(B.type)||B.type=="checkbox"||
B.type=="radio"))Ta.designer.Ge(B).Rf()}}}if(a.gc==null||a.gc=="")a.gc="Simple";var c=pui.widgets.tabStyles[a.gc];if(c==null)c=pui.widgets.tabStyles.Simple;var d=pui.normalizeURL("/profoundui/proddata/images/tabs/"+a.gc.toLowerCase()+"/"),f=c.imageFileExtension;if(f==null)f="gif";if(f.substr(0,1)==".")f=f.substr(1);var g="#aaaaaa";if(c.borderColor!=null)g=c.borderColor;a.a.innerHTML="";a.a.style.backgroundColor="";if(!a.a.style.fontFamily)a.a.style.fontFamily=a.defaults.fontFamily;if(!a.a.style.fontSize)a.a.style.fontSize=
a.defaults.fontSize;if(!a.a.style.color)a.a.style.color=a.defaults.color;var k=7;if(c.useImages)k=1;var l=document.createElement("div");l.style.position="absolute";l.style.left="0px";l.style.top="0px";l.style.height=c.height+k+1+"px";l.style.padding="0px";l.style.whiteSpace="nowrap";l.style.overflow="hidden";if(c.backBar){a.a.style.overflowX="hidden";a.a.style.overflowY="hidden";if(c.backBarColor!=null)l.style.backgroundColor=c.backBarColor;else{l.style.backgroundImage="url("+d+"middle."+f+")";l.style.backgroundRepeat=
"repeat-x"}}l.style.width="100%";var h=document.createElement("div");h.style.position="absolute";h.style.left="0px";h.style.top=c.height+k+"px";h.className="content-area";var o=a.a.style.width,p=0;if(typeof o=="string"&&o!=""&&!isNaN(o))o+="px";if(o!=null&&o!=""&&o.length>=3&&o.substr(o.length-2)=="px"){p=parseInt(o);if(isNaN(p))p=0;p+=2}else p=a.a.offsetWidth;o=a.a.style.height;if(typeof o=="string"&&o!=""&&!isNaN(o))o+="px";var s=0;if(o!=null&&o!=""&&o.length>=3&&o.substr(o.length-2)=="px"){s=parseInt(o);
if(isNaN(s))s=0;s+=2}else s=a.a.offsetHeight;h.style.height=Math.abs(s-c.height-k-4)+"px";h.style.width=Math.abs(p-4)+"px";k=1;if(c.borderSize)k=c.borderSize;h.style.border=k+"px solid "+g;h.style.backgroundColor=a.yc;for(k=0;k<a.Rg.length;k++){p=document.createElement("span");p.style.display="inline-block";if(k==a.selectedTab){if(a.a.pui.properties["css class"])p.className=a.a.pui.properties["css class"]+"-";p.className+="selected-tab"}if(c.leftWidth!=null){var t=document.createElement("span");t.style.backgroundImage=
"url("+d+"left"+(k==a.selectedTab?"-sel":"")+"."+f+")";t.style.backgroundRepeat="no-repeat";t.style.height=c.height+2+"px";t.style.width=c.leftWidth+"px";t.style.cssFloat="left";t.style.styleFloat="left";t.style.display="inline-block"}if(c.rightWidth!=null){var y=document.createElement("span");y.style.backgroundImage="url("+d+"right"+(k==a.selectedTab?"-sel":"")+"."+f+")";y.style.backgroundRepeat="no-repeat";y.style.height=c.height+2+"px";y.style.width=c.rightWidth+"px";y.style.cssFloat="left";y.style.styleFloat=
"left";y.style.display="inline-block"}o=document.createElement("span");o.Fb=k;o.innerHTML=a.Rg[k];o.style.display="block";o.style.cssFloat="left";o.style.styleFloat="left";o.style.height=c.height+"px";o.style.lineHeight=c.height+"px";o.setAttribute("isTab","true");o.style.display="inline-block";if(c.useImages){o.style.backgroundImage="url("+d+"middle"+(k==a.selectedTab?"-sel":"")+"."+f+")";o.style.backgroundRepeat="repeat-x";s=1;if(c.leftMargin)s=c.leftMargin;t.style.marginLeft=s+"px";t.style.paddingTop=
"2px";o.style.padding="2px 0.5em";y.style.paddingTop="2px";if(k!=a.selectedTab)o.style.cursor="pointer";else{if(c.separated!=true){t.style.backgroundColor=a.yc;y.style.backgroundColor=a.yc;o.style.backgroundColor=a.yc}o.style.cursor="default";if(c.selColor!=null)o.style.color=c.selColor;if(c.selBold==true)o.style.fontWeight="bold"}}else{o.style.marginLeft="3px";o.style.padding="3px 0.5em";o.style.borderTop="1px solid "+g;o.style.borderLeft="1px solid "+g;o.style.borderRight="1px solid "+g;if(k!=a.selectedTab){o.style.borderBottom=
"1px solid "+g;o.style.backgroundColor="#B7C8F6";if(M=="genie")o.style.filter="progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=white,endColorStr=#B7C8F6)";o.style.cursor="pointer"}else{o.style.backgroundColor=a.yc;o.style.borderBottom="1px solid "+a.yc;o.style.cursor="default"}}o.onmouseover=function(A){A=La(A);if(A.Fb==null&&A.parentNode.Fb!=null)A=A.parentNode;if(A.Fb!=a.selectedTab){if(c.useImages&&c.hiImages){A.style.backgroundImage="url("+d+"middle-hi."+f+")";A.previousSibling.style.backgroundImage=
"url("+d+"left-hi."+f+")";A.nextSibling.style.backgroundImage="url("+d+"right-hi."+f+")"}if(c.hiColor!=null)A.style.color=c.hiColor;if(c.hiUnderline==true)A.style.textDecoration="underline"}};o.onmouseout=function(A){A=La(A);if(A.Fb==null&&A.parentNode.Fb!=null)A=A.parentNode;if(A.Fb!=a.selectedTab){if(c.useImages&&c.hiImages){A.style.backgroundImage="url("+d+"middle."+f+")";A.previousSibling.style.backgroundImage="url("+d+"left."+f+")";A.nextSibling.style.backgroundImage="url("+d+"right."+f+")"}if(c.hiColor!=
null)A.style.color="";if(c.hiUnderline==true)A.style.textDecoration=""}};o.ondblclick=function(A){if(Sa()){var B=designUtils.getTarget(A);if(B.Fb==null&&B.parentNode.Fb!=null)B=B.parentNode;var v=Ta.designer.Ge(B.parentNode.parentNode.parentNode);if(!pui.p(v.properties["tab names"])&&!pui.mb(v.properties["tab names"])){v.designer.md.jl=function(I){var G=B.Fb,E=v.properties["tab names"];if(E=="")E="Tab 1,Tab 2,Tab 3";E=pui.ha(E);E[G]=I;E=E.join(",");I=mb()["tab names"];v.designer.M.add(v,I.name);pb(I,
v.properties,v.dom,E,true,v,null);v.$a["tab names"]=true;v.Vb=true;v.designer.Wb[v.designer.ya.Ua]=true;v.designer.Ta.fe("tab names")};v.designer.md.show(v,B,"tab")}}};o.onclick=function(A){A=La(A);if(A.Fb==null&&A.parentNode.Fb!=null)A=A.parentNode;A=A.Fb;if(a.a.ontabclick!=null){var B=a.a.ontabclick(A);if(B==false)return}if(a.a.fm!=null){B=a.a.fm.split(",");if(B.length-1>=A){B=B[A];B=bb(B);if(B!=""){Ib(B);return}}}B=false;if(a.selectedTab!=A)B=true;if(B)a.selectedTab=A;if(Sa()){var v=Ta.designer.selection;
v.ec.length>1&&v.clear()}if(B){v=a.a;if(v.disabled!=true)if(M=="dspf"&&v.lp==true){v.T=A;if(v.C=="true"||v.C=="send data")pui.C=v.C;if(v.Il)pui.Qa=v.Il;B=pui.wb();if(B==false)v.T=null}else{a.r();if(M=="dspf"&&v.kp==true)v.T=A}}};l.appendChild(p);c.leftWidth!=null&&p.appendChild(t);p.appendChild(o);c.rightWidth!=null&&p.appendChild(y)}a.a.appendChild(h);a.a.appendChild(l);var z=Sa();if(z){l=function(A,B){var v=document.createElement("div");v.style.position="absolute";v.style.width="16px";v.style.height=
"18px";v.style.fontSize="0px";v.style.overflow="hidden";v.style.backgroundImage="url('"+pui.normalizeURL("/profoundui/proddata/images/icons/")+A+".gif')";v.style.backgroundRepeat="no-repeat";v.style.cursor="pointer";v.title=B;v.style.color="white";v.style.padding="0px";v.onmousedown=function(I){designUtils.nc(I)};a.a.appendChild(v);return v};g=l("plus","Add New Tab");l=l("minus","Remove Tab");h=a.a.offsetWidth-20;g.style.left=h+"px";g.style.top="2px";h-=14;l.style.left=h+"px";l.style.top="2px";g.onclick=
function(){var A=Ta.designer.Ge(a.a),B=A.properties["tab names"];if(!pui.mb(B)){if(pui.p(B)){var v=B.designValue;if(v==null||v=="")v="Tab 1,Tab 2,Tab 3";v=pui.ha(v);v.push("Tab "+(v.length+1));B.designValue=v.join(",")}else{if(B=="")B="Tab 1,Tab 2,Tab 3";B=pui.ha(B);B.push("New Tab");B=B.join(",")}v=mb()["tab names"];A.designer.M.start("Add New Tab");A.designer.M.add(A,v.name);pb(v,A.properties,A.dom,B,true,A,null);A.$a["tab names"]=true;A.Vb=true;A.designer.Wb[A.designer.ya.Ua]=true;A.designer.selection.clear();
A.designer.selection.add(A);A.designer.Ta.refresh();A=!pui.p(B)&&!pui.mb(B)?pui.ha(B):pui.ha(B.designValue);a.selectedTab=A.length-1;a.r()}};l.onclick=function(){var A=Ta.designer.Ge(a.a),B=A.properties["tab names"],v;if(!pui.mb(B)){if(pui.p(B)){v=B.designValue;if(v==null||v=="")v="Tab 1,Tab 2,Tab 3";B.designValue=v;v=pui.ha(v)}else{if(B=="")B="Tab 1,Tab 2,Tab 3";v=pui.ha(B)}if(v.length>1){for(var I=true,G=0;G<A.designer.items.length;G++){var E=A.designer.items[G].dom;if(E.hb!=null&&E.gb!=null&&E.hb==
a.a.id)if(E.gb==v.length-1){I=false;break}}if(I){v.pop();if(a.selectedTab>v.length-1)a.selectedTab=v.length-1;if(pui.p(B)||pui.mb(B))B.designValue=v.join(",");else B=v.join(",");v=mb()["tab names"];A.designer.M.start("Remove Tab");A.designer.M.add(A,v.name);pb(v,A.properties,A.dom,B,true,A,null);A.$a["tab names"]=true;A.Vb=true;A.designer.Wb[A.designer.ya.Ua]=true;A.designer.Ta.fe("tab names")}else{A.designer.selection.clear();A.designer.selection.add(A);A.designer.Ta.refresh();a.selectedTab=v.length-
1;a.r();pui.alert("The tab cannot be removed because it contains other elements that must be removed first.")}}}}}b("div");b("input");b("select");b("textarea");b("button");b("img")}}
pui.widgets.add({name:"tab panel",Ac:false,a:true,defaults:{width:"300px",height:"200px","tab names":"Tab 1,Tab 2,Tab 3","z index":"8",color:"#333366","font family":"Arial","font size":"12px"},propertySetters:{"field type":function(a){a.dom.sizeMe=function(){a.dom.tabPanel.r()};a.dom.tabPanel=new ec;var b=a.evalProperty("tab names");a.dom.tabPanel.Rg=b!=null&&b!=""?pui.ha(b):["Tab 1","Tab 2","Tab 3"];a.dom.tabPanel.selectedTab=0;a.dom.tabPanel.a=a.dom;a.dom.tabPanel.gc=a.properties["tab panel style"];
if(a.design&&pui.p(a.dom.tabPanel.gc))a.dom.tabPanel.gc="Simple";if(a.properties["background color"]==null||a.properties["background color"]=="")a.dom.tabPanel.Ql();if(M=="genie"||a.design)a.dom.tabPanel.r();if(!a.design){a.dom.aj=function(c){a.dom.tabPanel.selectedTab=c;a.dom.tabPanel.r()};a.dom.Ak=function(){return a.dom.tabPanel.selectedTab};a.dom.refresh=function(){a.dom.aj(a.dom.Ak())}}},"tab names":function(a){if(a.dom.tabPanel!=null){var b=a.value;a.dom.tabPanel.Rg=b!=null&&b!=""?pui.ha(b):
["Tab 1","Tab 2","Tab 3"];if(M=="genie"||a.design)a.dom.tabPanel.r()}},"tab keys":function(a){a.dom.fm=a.value},"tab panel style":function(a){a.dom.tabPanel.gc=a.value;if(a.properties["background color"]==null||a.properties["background color"]=="")a.dom.tabPanel.Ql();if(M=="genie"||a.design)a.dom.tabPanel.r();pui.widgets.Oo(a.value)},width:function(a){a.design&&pui.Cb(a.value)&&a.dom.tabPanel.r()},height:function(a){a.design&&pui.Cb(a.value)&&a.dom.tabPanel.r()},"response AID":function(a){a.dom.Il=
a.value&&a.value!=""?a.value:null}}});pui.widgets.add({name:"text area",tag:"textarea",propertySetters:{"field type":function(a){a.dom.value=a.evalProperty("value");if(a.Za.maxLength&&a.dom.maxLength!=a.Za.maxLength)a.dom.maxLength=a.Za.maxLength;if(a.Za.kl)a.dom.kl=a.Za.kl;if(a.Za.Al)a.dom.Al=a.Za.Al;if(a.Za.Wk)a.dom.Wk=a.Za.Wk;M=="dspf"&&!a.design&&N(a.dom,"keydown",function(b){b=b||window.event;if(b.keyCode==13)b.cancelBubble=true});if(a.design)a.dom.fj=false;else if(typeof pui["allow spellcheck"]=="boolean")a.dom.fj=pui["allow spellcheck"]},
value:function(a){a.dom.value=a.value}}});pui.widgets.add({name:"textbox",tag:"input",newId:"TextBox",defaults:{"css class":"input"},propertySetters:{"field type":function(a){a.dom.value=a.evalProperty("value");if(!a.design){Kb(a.properties,a.originalValue,a.dom);if(pui.Z&&!pui.Ic&&a.dom.id.indexOf(".")==-1){N(a.dom,"focus",function(){Ra("ipadKeyboard").style.display=""});N(a.dom,"blur",function(){Ra("ipadKeyboard").style.display="none"})}if(typeof pui["allow spellcheck"]=="boolean")a.dom.fj=pui["allow spellcheck"]}if(a.design){a.dom.readOnly=
true;a.dom.fj=false}},value:function(a){if(a.dom.Pj)a.dom.Pj=false;else a.dom.value=a.value},"input type":function(a){if(!a.design)try{a.dom.setAttribute("type",a.value)}catch(b){}}}});pui.widgets.panelStyles={Simple:{left:10,right:10,top:33,bottom:9,background:"#bad3e9",textBackground:"#004eae",textTopPadding:"7px"},Evergreen:{left:10,right:10,top:30,bottom:30,background:"#edeef0",textBackground:"#288e28",textTopPadding:"7px"},Ruby:{left:6,right:6,top:25,bottom:25,background:"#e1e0e0",textBackground:"#cc3333",textTopPadding:"7px",fontSize:"14px"},Sapphire:{left:9,right:9,top:30,bottom:30,background:"#edeef0",textBackground:"#2570cb",textTopPadding:"7px"},Polished:{left:10,right:10,
top:30,bottom:30,background:"#edeef0",textBackground:"#4f6592",textTopPadding:"7px"},Contemporary:{left:6,right:6,top:28,bottom:28,background:"#a7a9ac",textBackground:"#387adc",textTopPadding:"7px"},Slate:{left:11,right:11,top:30,bottom:30,background:"#a5a7ac",textBackground:"#3568ce",textTopPadding:"7px"},Smoke:{left:11,right:11,top:34,bottom:34,background:"#7a7a7b",textBackground:"#7479a0",textTopPadding:"10px"},Pine:{left:6,right:6,top:25,bottom:25,background:"#d2d2d2",textBackground:"#288e28",
textTopPadding:"7px"},"Ice Blue":{left:10,right:10,top:13,bottom:13,background:"#92c0f4",textBackground:"#92c0f4",textTopPadding:"7px",noTitle:true},Glass:{left:6,right:6,top:11,bottom:11,background:"#c9dff3",textBackground:"#c9dff3",textTopPadding:"7px",noTitle:true},Navy:{left:11,right:11,top:24,bottom:24,background:"#1c325f",textBackground:"#1c325f",textTopPadding:"7px",noTitle:true},"Steel Blue":{left:7,right:7,top:9,bottom:9,background:"#5d7ac5",textBackground:"#5d7ac5",textTopPadding:"7px",
noTitle:true},Harvest:{left:8,right:8,top:18,bottom:18,background:"#e68b2c",textBackground:"#e68b2c",textTopPadding:"7px",noTitle:true},"Professional Dialog":{left:8,right:8,top:33,bottom:33,background:"#d7e5f7",textBackground:"#0055e5",textTopPadding:"7px",width:400,height:200,dialog:true},"Classic Dialog":{left:10,right:10,top:34,bottom:34,background:"#ffffff",textBackground:"#0d89b8",textTopPadding:"7px",width:400,height:200,dialog:true},"Simple Dialog":{left:4,right:4,top:30,bottom:30,background:"#ebf0f5",
textBackground:"#bad0ee",textTopPadding:"7px",width:400,height:200,dialog:true},"Polished Dialog":{left:10,right:10,top:44,bottom:44,background:"#ffffff",textBackground:"#f1f3f3",textTopPadding:"7px",width:400,height:200,dialog:true},"Modern Dialog":{left:13,right:13,top:70,bottom:70,background:"#e8e7e2",textBackground:"#7d9ccd",textTopPadding:"14px",width:400,height:300,dialog:true},"Glass Dialog":{left:7,right:7,top:44,bottom:44,background:"#ffffff",textBackground:"#d7e5f7",textTopPadding:"7px",
width:400,height:250,dialog:true},"Crimson Dialog":{left:2,right:2,top:32,bottom:32,background:"#ffffff",textBackground:"#b83c3d",textTopPadding:"7px",width:400,height:200,dialog:true}};pui.widgets.Nf=200;pui.widgets.Mf=100;
pui.widgets.getPanelProxy=function(a){a=a["panel style"];var b=pui.widgets.panelStyles[a],c={};c.dom=document.createElement("div");c.dom.style.position="relative";c.dom.style.width=pui.widgets.Nf+"px";if(b.width!=null)c.dom.style.width=b.width+"px";c.dom.style.height=pui.widgets.Mf+"px";if(b.height!=null)c.dom.style.height=b.height+"px";c.Ne=true;c.properties={};c.properties.width=pui.widgets.Nf+"px";if(b.width!=null)c.properties.width=b.width;c.properties.height=pui.widgets.Mf+"px";if(b.height!=
null)c.properties.height=b.height;c.properties.value="Panel Title";if(b.dialog==true)c.properties.value="Dialog Title";if(b.noTitle==true)c.properties.value="";c.properties["panel style"]=a;c.evalProperty=function(d){return c.properties[d]};pui.widgets.panel.propertySetters["field type"](c);if(b.textColor!=null)c.dom.panel.h.style.color=b.textColor;if(b.textAlign!=null)c.dom.panel.h.style.textAlign=b.textAlign;if(b.fontSize!=null)c.dom.panel.h.style.fontSize=b.fontSize;c.dom.style.color=c.dom.panel.h.style.color;
c.dom.style.textAlign=c.dom.panel.h.style.textAlign;c.dom.style.fontSize=c.dom.panel.h.style.fontSize;return c.dom};
pui.widgets.ug=function(a,b,c,d,f){if(typeof c=="string"){if(c!=""&&!isNaN(c))c+="px";c=c.length>=3&&c.substr(c.length-2)=="px"?parseInt(c):a.ea.parentNode.offsetWidth}if(typeof d=="string"){if(d!=""&&!isNaN(d))d+="px";d=d.length>=3&&d.substr(d.length-2)=="px"?parseInt(d):a.ea.parentNode.offsetHeight}if(typeof c!="number")c=parseInt(c);if(isNaN(c))c=pui.widgets.Nf;if(typeof d!="number")d=parseInt(d);if(isNaN(d))d=pui.widgets.Mf;var g=0,k=false;if(typeof f!="undefined"&&typeof f.design!="undefined")k=
f.design;if(pui.is_touch&&!pui.is_mouse_capable&&!k)g=1;k=false;if(d<b.top+b.bottom){d=b.top+b.bottom;a.h.parentNode.style.height=d+"px";k=true}if(c<b.left+b.right){c=b.left+b.right;a.h.parentNode.style.width=c+"px";k=true}k&&f!=null&&f.design==true&&f.e.designer.selection.rg();a.ea.style.width=b.left+"px";a.ea.style.height=b.top+"px";a.Ja.style.left=b.left-g+"px";a.Ja.style.height=b.top+"px";a.Ja.style.width=c-b.left-b.right+g*2+"px";a.wa.style.left=c-b.right+"px";a.wa.style.height=b.top+"px";a.wa.style.width=
b.right+"px";a.Ea.style.top=b.top-g+"px";a.Ea.style.width=b.left+"px";a.Ea.style.height=d-b.top-b.bottom+g*2+"px";a.Db.style.left=b.left-g+"px";a.Db.style.top=b.top-g+"px";a.Db.style.width=c-b.left-b.right+g*2+"px";a.Db.style.height=d-b.top-b.bottom+g*2+"px";a.Ga.style.left=c-b.right+"px";a.Ga.style.top=b.top-g+"px";a.Ga.style.width=b.right+"px";a.Ga.style.height=d-b.top-b.bottom+g*2+"px";a.za.style.top=d-b.bottom+"px";a.za.style.width=b.left+"px";a.za.style.height=b.bottom+"px";a.Aa.style.left=b.left-
g+"px";a.Aa.style.top=d-b.bottom+"px";a.Aa.style.height=b.bottom+"px";a.Aa.style.width=c-b.left-b.right+g*2+"px";a.Ba.style.left=c-b.right+"px";a.Ba.style.top=d-b.bottom+"px";a.Ba.style.height=b.bottom+"px";a.Ba.style.width=b.right+"px";a.h.style.left=b.left+"px";a.h.style.top="0px";a.h.style.width=c-b.left-b.right+"px";a.h.style.height=b.top<15?"15px":b.top+"px"};
pui.widgets.add({name:"panel",newValue:"Panel Title",Ac:false,Lb:true,a:true,defaults:{width:pui.widgets.Nf+"px",height:pui.widgets.Mf+"px","panel style":"Simple","z index":"8"},propertySetters:{"field type":function(a){a.dom.sizeMe=function(){var f=a.properties["panel style"];f=pui.widgets.panelStyles[f];if(f==null){f=pui.widgets.Je()[0];f=pui.widgets.panelStyles[f]}pui.widgets.ug(a.dom.panel,f,a.dom.offsetWidth,a.dom.offsetHeight,a)};if(a.properties.color!=null)a.dom.style.color=a.properties.color;
a.dom.innerHTML="";if(typeof a.dom.style.MozUserSelect!="undefined")a.dom.style.MozUserSelect="none";var b={};b.ea=document.createElement("div");b.Ja=document.createElement("div");b.wa=document.createElement("div");b.Ea=document.createElement("div");b.Db=document.createElement("div");b.Ga=document.createElement("div");b.za=document.createElement("div");b.Aa=document.createElement("div");b.Ba=document.createElement("div");b.h=document.createElement("div");b.ea.style.position="absolute";b.ea.style.padding=
"0px";b.ea.style.margin="0px";b.Ja.style.position="absolute";b.Ja.style.padding="0px";b.Ja.style.margin="0px";b.wa.style.position="absolute";b.wa.style.padding="0px";b.wa.style.margin="0px";b.Ea.style.position="absolute";b.Ea.style.padding="0px";b.Ea.style.margin="0px";b.Db.style.position="absolute";b.Db.style.padding="0px";b.Db.style.margin="0px";b.Db.className="content-area";b.Ga.style.position="absolute";b.Ga.style.padding="0px";b.Ga.style.margin="0px";b.za.style.position="absolute";b.za.style.padding=
"0px";b.za.style.margin="0px";b.Aa.style.position="absolute";b.Aa.style.padding="0px";b.Aa.style.margin="0px";b.Ba.style.position="absolute";b.Ba.style.padding="0px";b.Ba.style.margin="0px";b.ea.style.top="0px";b.ea.style.left="0px";b.ea.style.backgroundRepeat="no-repeat";b.Ja.style.top="0px";b.Ja.style.backgroundRepeat="repeat-x";b.wa.style.top="0px";b.wa.style.backgroundRepeat="no-repeat";b.Ea.style.left="0px";b.za.style.left="0px";b.za.style.backgroundRepeat="no-repeat";b.Aa.style.backgroundRepeat=
"repeat-x";b.Ba.style.backgroundRepeat="no-repeat";b.Ea.style.backgroundRepeat="repeat-y";b.Ga.style.backgroundRepeat="repeat-y";b.h.style.position="absolute";b.h.style.verticalAlign="middle";b.h.style.display="";if(!pui.Z)b.h.style.cursor="default";b.h.style.overflow="hidden";b.h.style.bq="rgba(0,0,0,0)";if(a.properties.color!=null)b.h.style.color=a.properties.color;if(a.properties["text align"]!=null)b.h.style.textAlign=a.properties["text align"];if(a.properties["font size"]!=null)b.h.style.fontSize=
a.properties["font size"];a.dom.style.fontFamily=b.h.style.fontFamily;a.dom.style.color=b.h.style.color;a.dom.style.fontSize=b.h.style.fontSize;a.dom.style.fontWeight=b.h.style.fontWeight;a.dom.style.textAlign=b.h.style.textAlign;a.dom.appendChild(b.ea);a.dom.appendChild(b.Ja);a.dom.appendChild(b.wa);a.dom.appendChild(b.Ea);a.dom.appendChild(b.Db);a.dom.appendChild(b.Ga);a.dom.appendChild(b.za);a.dom.appendChild(b.Aa);a.dom.appendChild(b.Ba);a.dom.appendChild(b.h);var c=a.dom.parentNode;if(!a.design&&
c!=null&&c.Bb==true){var d=function(f){function g(s){var t=Cb(s);s=Db(s);if(t<0)t=0;if(s<0)s=0;c.style.top=p-h+s+"px";c.style.left=o-l+t+"px"}function k(){eb(document,"mousemove",g);eb(document,"mouseup",k)}var l=Cb(f),h=Db(f),o=parseInt(c.style.left),p=parseInt(c.style.top);N(document,"mousemove",g);N(document,"mouseup",k);Ma(f)};N(b.h,"mousedown",d);N(b.ea,"mousedown",d);N(b.wa,"mousedown",d);N(b.h,"touchstart",function(f){if(f.touches.length==1){f=f.touches[0];c.s={};c.s.startX=f.pageX;c.s.startY=
f.pageY;c.s.Ha=parseInt(c.style.left);c.s.na=parseInt(c.style.top)}});N(b.h,"touchmove",function(f){if(f.touches.length==1){var g=f.touches[0],k=g.pageY;c.style.left=c.s.Ha-c.s.startX+g.pageX+"px";c.style.top=c.s.na-c.s.startY+k+"px";f.preventDefault()}});b.h.style.cursor="move";b.ea.style.cursor="move";b.wa.style.cursor="move"}a.dom.panel=b;b=a.value;a.value=a.properties["panel style"];pui.widgets.panel.propertySetters["panel style"](a);a.value=b;a.dom.panel.h.innerHTML=a.evalProperty("value")},
"panel style":function(a){var b=a.value,c=pui.widgets.panelStyles[b];if(c==null){b=pui.widgets.Je()[0];c=pui.widgets.panelStyles[b]}var d=pui.normalizeURL("/profoundui/proddata/images/panels/"+b+"/");a.dom.panel.ar=b;var f=a.dom.panel;f.ea.style.backgroundImage="url('"+d+"topleft.png')";f.Ja.style.backgroundImage="url('"+d+"topmiddle.png')";f.wa.style.backgroundImage="url('"+d+"topright.png')";f.Ea.style.backgroundImage="url('"+d+"left.png')";f.Db.style.backgroundColor=c.background;f.Ga.style.backgroundImage=
"url('"+d+"right.png')";f.za.style.backgroundImage="url('"+d+"bottomleft.png')";f.Aa.style.backgroundImage="url('"+d+"bottommiddle.png')";f.Ba.style.backgroundImage="url('"+d+"bottomright.png')";f.h.style.paddingTop=c.textTopPadding;f.h.className="panel "+b.split(" ").join("-").toLowerCase()+"-panel";pui.widgets.ug(f,c,a.properties.width,a.properties.height)},value:function(a){a.dom.panel.h.innerHTML=a.value},width:function(a){a.dom.style.width=pui.Me(a.value)?a.value+"px":a.value;var b=a.properties["panel style"];
b=pui.widgets.panelStyles[b];if(b==null){b=pui.widgets.Je()[0];b=pui.widgets.panelStyles[b]}pui.widgets.ug(a.dom.panel,b,a.value,a.properties.height,a)},height:function(a){a.dom.style.height=pui.Me(a.value)?a.value+"px":a.value;var b=a.properties["panel style"];b=pui.widgets.panelStyles[b];if(b==null){b=pui.widgets.Je()[0];b=pui.widgets.panelStyles[b]}pui.widgets.ug(a.dom.panel,b,a.properties.width,a.value,a)},color:function(a){a.dom.panel.h.style.color=a.value;a.dom.style.color=a.dom.panel.h.style.color},
"font family":function(a){a.dom.panel.h.style.fontFamily=a.value;a.dom.style.fontFamily=a.dom.panel.h.style.fontFamily},"font size":function(a){a.dom.panel.h.style.fontSize=a.value;a.dom.style.fontSize=a.dom.panel.h.style.fontSize},"font style":function(a){a.dom.panel.h.style.fontStyle=a.value},"font variant":function(a){a.dom.panel.h.style.fontVariant=a.value},"font weight":function(a){a.dom.panel.h.style.fontWeight=a.value;a.dom.style.fontWeight=a.dom.panel.h.style.fontWeight},"letter spacing":function(a){a.dom.panel.h.style.letterSpacing=
a.value},"text align":function(a){a.dom.panel.h.style.textAlign=a.value},"text decoration":function(a){a.dom.panel.h.style.textDecoration=a.value},"text transform":function(a){a.dom.panel.h.style.textTransform=a.value},"word spacing":function(a){a.dom.panel.h.style.wordSpacing=a.value}}});pui.layout={};pui.layout.template={};pui.layout.template.vn=function(a){var b=a.properties,c=a.Ei,d=a.dom;if(a.Ni)return pui.layout.al([{name:"has header",choices:["true","false"],help:"Determines whether the panel has a header."},{name:"header height",format:"number",help:"Specifies the height of the panel header."},{name:"header text",help:"Specifies the text that will appear in the panel header.",translate:true},{name:"header theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],
help:"Specifies the jQuery Mobile theme to use for the panel header.  The theme is associated with a set of cascading style sheet rules."},{name:"body theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],help:"Specifies the jQuery Mobile theme to use for the panel body.  The theme is associated with a set of cascading style sheet rules."},{name:"straight edge",choices:["all","left","right","top","bottom"],help:"Determines which parts of the element will have a straight edge instead of rounded corners."},
{name:"color",m:"color",type:"color",help:"Defines the color of the text inside the given element."},{name:"font family",m:"fontFamily",choices:["Arial","Consolas","Courier New","Georgia","Monospace","Tahoma","Times New Roman","Sans-Serif","Serif","Trebuchet MS","Verdana","Other..."],help:"The font face for the text of the current element.<br>Ex: <span style='font-family:arial;'>Arial</span>, <span style='font-family:times new roman;'>Times New Roman</span>, <span style='font-family:verdana;'>Verdana</span>, etc."},
{name:"font size",m:"fontSize",format:"px",choices:["8px","9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","26px","27px","28px","29px","30px","0.75em","1.00em","1.25em","1.50em","1.75em","2.00em","Other..."],help:"The size of the text for the current element.<br>Ex: <span style='font-size:12px;'>12px</span> <span style='font-size:14px;'>14px</span> <span style='font-size:16px;'>16px</span>"},{name:"font style",m:"fontStyle",format:"italic / normal",
choices:["normal","italic","oblique"],help:"The style of the font: Normal, <span style='font-style:italic;'>Italic</span>, or <span style='font-style:oblique;'>Oblique</span> (oblique and italic are the same for most fonts)."},{name:"font weight",m:"fontWeight",format:"bold / normal",choices:["normal","bolder","bold","lighter","100","200","300","400","500","600","700","800","900"],help:"Font's weight. Most common used are <span style='font-weight:bold;'>bold</span> and <span style='font-weight:lighter;'>lighter</span>."},
{name:"text align",m:"textAlign",choices:["left","right","center","justify"],help:"Alignment of the text in the current element.(Left, Right, Center, Justify).<br><table cellpadding='0' cellspacing='2'><tr><td><div style='text-align:left;width:125px;border:1px solid black;'>Left</div></td></tr><tr><td><div style='text-align:right;width:125px;border:1px solid black;'>Right</div></td></tr><tr><td><div style='text-align:center;width:125px;border:1px solid black;'>Center</div></td></tr><tr><td><div style='text-align:justify;width:125px;border:1px solid black;'>Justify</div></td></tr></table>"},
{name:"text decoration",m:"textDecoration",format:"underline / none",choices:["none","underline","overline","line-through"],help:"Decoration on the text of the current element. <br><br>None, <span style='text-decoration:underline;'>Underline</span>, <span style='text-decoration:overline;'>Overline</span>, <span style='text-decoration:line-through;'>Line-through</span>. "},{name:"text transform",m:"textTransform",choices:["capitalize","uppercase","lowercase","none"],help:"Transforms the default formatting of the text. <br><br>Capitalize(first character only),UPPERCASE(all), lowercase(all)."}]);
dom=d!=null?d.cloneNode(false):document.createElement("div");dom.innerHTML="";a=new pui.ah;a.Hc=true;a.a=dom;a.init();dom.panel=a;dom.sizeMe=function(){dom.panel.resize()};d=b["header text"];d!=null&&a.setText(d);d=b["header theme"];d!=null&&a.Vc(d);d=b["body theme"];d!=null&&a.Uc(d);a.F(b["straight edge"]);d=b["has header"];d=d!=="false"&&d!==false;a.nf(d);d=b["header height"];d!=null&&a.of(d);a.sd(b);b=b.height;if(b==null)b="300px";a.setHeight(b);if(c)dom.style.position="relative";return dom};pui.om=function(){this.a=null;this.designMode=this.Ld=false;var a=[],b=[],c=[],d=[],f="none",g="b",k="c",l=-1,h=false,o=this;this.init=function(){o.a.style.overflow="hidden"};this.Ep=function(p){if(p==null||p==""||pui.p(p))p=["Section 1","Section 2","Section 3"];p=pui.ha(p);if(p.length!=a.length){o.a.innerHTML="";a=[];b=[];c=[];d=[];for(var s=0;s<p.length;s++){var t=document.createElement("div");t.style.width="100%";t.style.padding="0";t.jp=s;t.onclick=function(B){B=La(B);for(var v=null;v==null&&
B!=null;){v=B.jp;B=B.parentNode}if(v!=null)if(l==v){v=-1;h&&!o.designMode&&o.Kd(v)}else{if(o.a.onsectionclickevent!=null)if(o.a.onsectionclickevent(v)==false)return;o.Kd(v)}};var y=document.createElement("div");y.style.width="100%";y.style.height="175px";y.style.padding="0";if(s<p.length-1)y.style.overflow="hidden";var z=new pui.$g;z.a=t;z.Ld=o.Ld;z.init();z.Qb(g);z.setIcon("plus");z.Gg("left");var A=new pui.bh;A.type="body";A.Hc=true;A.a=y;A.init();A.Qb(k);A.setHeight("100%");o.a.appendChild(t);
o.a.appendChild(y);a.push(t);b.push(y);c.push(z);d.push(A)}}for(s=0;s<p.length;s++)c[s].setText(p[s]);o.Kd(0);o.resize()};this.Kd=function(p){for(var s=0;s<b.length;s++){var t=b[s],y=c[s];if(s==p){y.setIcon("minus");y.setDisabled(!h);t.style.display=""}else{y.setIcon("plus");y.setDisabled(false);t.style.display="none"}}o.F(f);l=p;o.resize()};this.mp=function(p){h=p=="true"||p==true;o.Kd(l)};this.F=function(p){if(!(p==null||pui.p(p))){f=p;var s=c.length;if(!(s<=0)){for(var t=0;t<s;t++){c[t].F("all");
d[t].F("all")}t=c[0];var y=d[s-1];if(b[s-1].style.display=="none")y=c[s-1];if(t==y)t.F(p);else switch(p){case "left":t.F("left");t.Zb().style.borderBottomRightRadius="0";t.lc().style.borderBottomRightRadius="0";y.F("left");y.Zb().style.borderTopRightRadius="0";y.lc().style.borderTopRightRadius="0";break;case "right":t.F("right");t.Zb().style.borderBottomLeftRadius="0";t.lc().style.borderBottomLeftRadius="0";y.F("right");y.Zb().style.borderTopLeftRadius="0";y.lc().style.borderTopLeftRadius="0";break;
case "top":t.F("all");y.F("top");break;case "bottom":t.F("bottom");y.F("all");break;case "all":t.F("all");y.F("all");break;default:t.F("bottom");y.F("top");break}}}};this.setStyle=function(p,s){for(var t=0;t<c.length;t++)c[t].setStyle(p,s)};this.sd=function(p){for(var s=0;s<c.length;s++)c[s].sd(p)};this.ud=function(p){for(var s=0;s<c.length;s++)c[s].ud(p);o.resize()};this.Vc=function(p){for(var s=0;s<c.length;s++)c[s].Qb(p);g=p};this.Uc=function(p){for(var s=0;s<d.length;s++)d[s].Qb(p);k=p};this.resize=
function(p){if(typeof p=="string")if(p.length<3||p.substr(p.length-2,2)!="px")p=null;p=p!=null&&!isNaN(parseInt(p))?parseInt(p):o.a.offsetHeight;var s=0;if(a.length>0)s=a[0].offsetHeight;if(s==0)s=42;p=p-s*a.length;if(p<0)p=0;s=b[l];if(s!=null)s.style.height=p+"px";o.a.layout!=null&&o.a.layout.am()};this.setHeight=function(p){o.a.style.height=p;o.resize(p)}};pui.layout.template.Km=function(a){var b=a.properties,c=a.designMode,d=a.Ei,f=a.dom;if(a.Ni)return pui.layout.al([{name:"section names",type:"list",help:"Specifies a comma separate list of section names for the accordion.",translate:true},{name:"active section",format:"number",help:"This property specifies the initial active section on an Accordion Layout. Each section within an Accordion is identified by a sequential index, starting with 0 for the first section, 1 for the second section, and so on.  The default value is 0."},
{name:"header theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],help:"Specifies the jQuery Mobile theme to use for the accordion headers.  The theme is associated with a set of cascading style sheet rules."},{name:"body theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],help:"Specifies the jQuery Mobile theme to use for the content body of the accordion.  The theme is associated with a set of cascading style sheet rules."},
{name:"small sections",choices:["true","false"],help:"This property uses CSS to provide a smaller, more compact version of the header sections."},{name:"allow collapse",choices:["true","false"],help:"Determines if the accordion can be fully collapsed."},{name:"straight edge",choices:["all","left","right","top","bottom"],help:"Determines which parts of the element will have a straight edge instead of rounded corners."},{name:"color",m:"color",type:"color",help:"Defines the color of the text inside the given element."},
{name:"font family",m:"fontFamily",choices:["Arial","Consolas","Courier New","Georgia","Monospace","Tahoma","Times New Roman","Sans-Serif","Serif","Trebuchet MS","Verdana","Other..."],help:"The font face for the text of the current element.<br>Ex: <span style='font-family:arial;'>Arial</span>, <span style='font-family:times new roman;'>Times New Roman</span>, <span style='font-family:verdana;'>Verdana</span>, etc."},{name:"font size",m:"fontSize",format:"px",choices:["8px","9px","10px","11px","12px",
"13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px","25px","26px","27px","28px","29px","30px","0.75em","1.00em","1.25em","1.50em","1.75em","2.00em","Other..."],help:"The size of the text for the current element.<br>Ex: <span style='font-size:12px;'>12px</span> <span style='font-size:14px;'>14px</span> <span style='font-size:16px;'>16px</span>"},{name:"font style",m:"fontStyle",format:"italic / normal",choices:["normal","italic","oblique"],help:"The style of the font: Normal, <span style='font-style:italic;'>Italic</span>, or <span style='font-style:oblique;'>Oblique</span> (oblique and italic are the same for most fonts)."},
{name:"font weight",m:"fontWeight",format:"bold / normal",choices:["normal","bolder","bold","lighter","100","200","300","400","500","600","700","800","900"],help:"Font's weight. Most common used are <span style='font-weight:bold;'>bold</span> and <span style='font-weight:lighter;'>lighter</span>."},{name:"text align",m:"textAlign",choices:["left","right","center","justify"],help:"Alignment of the text in the current element.(Left, Right, Center, Justify).<br><table cellpadding='0' cellspacing='2'><tr><td><div style='text-align:left;width:125px;border:1px solid black;'>Left</div></td></tr><tr><td><div style='text-align:right;width:125px;border:1px solid black;'>Right</div></td></tr><tr><td><div style='text-align:center;width:125px;border:1px solid black;'>Center</div></td></tr><tr><td><div style='text-align:justify;width:125px;border:1px solid black;'>Justify</div></td></tr></table>"},
{name:"text decoration",m:"textDecoration",format:"underline / none",choices:["none","underline","overline","line-through"],help:"Decoration on the text of the current element. <br><br>None, <span style='text-decoration:underline;'>Underline</span>, <span style='text-decoration:overline;'>Overline</span>, <span style='text-decoration:line-through;'>Line-through</span>. "},{name:"text transform",m:"textTransform",choices:["capitalize","uppercase","lowercase","none"],help:"Transforms the default formatting of the text. <br><br>Capitalize(first character only),UPPERCASE(all), lowercase(all)."},
{name:"onsectionclick",type:"js",help:'Initiates a client-side script when an accordion section is expanded.  The section index is passed to the event as a parameter named "section".  If the client-side script evaluates to false, the section will not be expanded.'}]);dom=f!=null?f.cloneNode(false):document.createElement("div");dom.innerHTML="";a=new pui.om;if(d)a.Ld=true;a.a=dom;a.designMode=c;a.init();dom.Tb=a;dom.sizeMe=function(){dom.Tb.resize()};a.Ep(b["section names"]);f=b["header theme"];f!=
null&&a.Vc(f);f=b["body theme"];f!=null&&a.Uc(f);a.F(b["straight edge"]);f=b["small sections"];f=f==="true"||f===true;a.ud(f);a.sd(b);f=b.height;if(f==null)f="300px";a.setHeight(f);if(!c){b=b["active section"];if(b!=null){b=Number(b);!isNaN(b)&&b!=0&&a.Kd(b)}}if(d)dom.style.position="relative";return dom};pui.layout.ob={};pui.layout.gr=function(a){$a({url:"/profoundui/userdata/layouts/"+a+".html",method:"post",handler:function(b){pui.layout.ob[a]=b}})};
pui.maximizeLayout=function(a){var b=La(a).parentNode,c=Ta.designer,d=c.Ge(b);c.M.start("Maximize Layout");c.M.add(d,"left");c.M.add(d,"top");c.M.add(d,"width");c.M.add(d,"height");b.style.left="0px";d.properties.left="0px";d.$a.left=true;b.style.top="0px";d.properties.top="0px";d.$a.top=true;b.style.width="100%";d.properties.width="100%";d.$a.width=true;b.style.height="100%";d.properties.height="100%";d.$a.height=true;c.Wb[c.ya.Ua]=true;c.oi();c.selection.clear();b.layout.stretch();c.selection.add(d);
c.Ta.refresh();Ma(a)};pui.layout.$k='<div condition="{ designValue: \'true\', runtimeValue: \'false\', proxyValue: \'false\' }" title="Maximize" style="position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; cursor: pointer; background-image: url(/profoundui/proddata/images/icons/maximize.png)" onmousedown="pui.maximizeLayout(event)" />';pui.layout.ob["simple container"]="<div style=\"position: relative; width: 100%; height: 100%; overflow: hidden; overflow-x: { property: 'overflow x', help: 'Determines whether a horizontal scrollbar should be displayed.', choices: ['visible', 'hidden', 'scroll', 'auto'] }; overflow-y: { property: 'overflow y', help: 'Determines whether a vertical scrollbar should be displayed.', choices: ['visible', 'hidden', 'scroll', 'auto'] };\"><div stretch=\"true\" container=\"true\" style=\"overflow: hidden; { designValue: 'border: 2px dashed #666666;' } { proxyValue: 'width: 97px; height: 97px;' } \"></div></div>";
pui.layout.ob.table='<table style="empty-cells: show; overflow: hidden;" width="100%" height="100%"><tr repeat="{ property: \'rows\', help: \'Specifies the number of table rows for this layout.\' }"><td style="border: { designValue: \'1\', runtimeValue: 0 }px dashed #666666;" repeat="{ property: \'columns\', help: \'Specifies the number of table columns for this layout.\' }"><div stretch="true" container="true" style="position: relative; width: 100%; overflow: hidden;"></div></td></tr></table>';
pui.layout.ob.table+=pui.layout.$k;pui.layout.ob["mobile device"]='<table cellpadding="0" cellspacing="0">';pui.layout.ob["mobile device"]+='<tr condition="{ property: \'top bar\', choices: [\'true\',\'false\'], help: \'Determines whether the mobile layout should have a top bar.\' }"><td class="top-bar"><div container="true" class="top-bar" style="position: relative; width: 100%; overflow: hidden;"></div></td></tr>';pui.layout.ob["mobile device"]+='<tr><td class="content-section"><div class="content-section" stretch="true" container="true"></div></td></tr>';
pui.layout.ob["mobile device"]+='<tr condition="{ property: \'bottom bar\', choices: [\'true\',\'false\'], help: \'Determines whether the mobile layout should have a bottom bar.\' }"><td class="bottom-bar"><div container="true" class="bottom-bar" style="position: relative; width: 100%; overflow: hidden;"></div></td></tr>';pui.layout.ob["mobile device"]+="</table>";pui.layout.ob["mobile device"]+=pui.layout.$k;pui.layout.ob["css panel"]=pui.layout.template.vn;pui.layout.ob.accordion=pui.layout.template.Km;
pui.layout.$n=function(){var a=pui.layout.ob,b=[];for(var c in a)b.push(c);return b};pui.layout.al=function(a){for(var b=[],c=pui.layout.Ke(),d=0;d<c.length;d++)if(c[d].im==true)for(var f=0;f<a.length;f++)b.push(a[f]);else b.push(c[d]);return b};pui.layout.template.Ci=function(a){function b(){var z=g.indexOf("{");if(z==-1)return null;for(var A=null,B=false,v=false,I=0,G=z;G<g.length;G++){var E=g.substr(G,1);if(E=="'")B=!B;else if(E=='"')v=!v;else if(!(B||v)){if(E=="{")I+=1;if(E=="}")I-=1;if(I==0){A=G;break}}}if(A==null)return null;return{start:z,end:A}}function c(z){if(z==null)return"";if(typeof z=="string")return z;if(typeof z=="number"||typeof z=="boolean")return String(z);if(typeof z=="object"){var A=z.property;if(o){if(A!=null){z.name=
A;z.bind=false;p[A]=z}return""}var B=null;if(A!=null)B=k[A];if(B==null)B=z.defaultValue;if(B==null)B="";if(typeof B=="object")return c(B);return B}return""}function d(z){var A="("+g.substring(z.start,z.end+1)+")";z=null;try{z=eval(A)}catch(B){}if(z==null)return"";var v;z=z;if(z.designValue!=null||z.runtimeValue!=null||z.proxyValue!=null){var I;if(l||o)I=c(z.designValue);if(!l||o)I=c(z.runtimeValue);if(h&&z.proxyValue!=null)I=z.proxyValue;v=I}else if(z.property!=null)v=c(z);return v}function f(z,A){g=
g.substr(0,z.start)+A+g.substr(z.end+1)}var g=pui.layout.ob[a.template];if(typeof g=="function")return g(a);var k=a.properties,l=a.designMode,h=a.Ei,o=a.Ni;a=a.dom;for(var p={},s=b();s!=null;){var t=d(s);f(s,t);s=b()}if(o){a=[];s=pui.layout.Ke();for(t=0;t<s.length;t++)if(s[t].im==true)for(var y in p)a.push(p[y]);else a.push(s[t]);return a}else{y=a!=null?a.cloneNode(false):document.createElement("div");y.innerHTML=g;return y}};pui.layout.template.tl=function(a){function b(d){if(d!=null){if(d.getAttribute!=null){if(d.getAttribute("condition")=="false"&&d.parentNode!=null){d.parentNode.removeChild(d);return}var f=d.getAttribute("repeat");if(f!=null){d.removeAttribute("repeat");f=parseInt(f);if(!isNaN(f)){if(f<=0)d.style.display="none";f>1&&c.push({el:d,ap:f})}}if(d.getAttribute("container")=="true")if(d.innerHTML==null)d.removeAttribute("container");else d.innerHTML=""}d=d.childNodes;if(!(d==null||d.length==null))for(f=0;f<
d.length;f++)b(d[f])}}var c=[];b(a);(function(){for(var d;(d=c.pop())!=null;){var f=d.el;d=d.ap-1;for(var g=0;g<d;g++){var k=f.cloneNode(true);f.parentNode.insertBefore(k,f)}}})()};pui.layout.Ke=function(){return[{name:"Identification",category:true},{name:"id",maxLength:75,J:"id",help:"Sets the ID of the layout element.",bind:false,xa:false},{name:"field type",choices:["layout"],$c:false,help:"Determines the type of control that is used to render the element.",bind:false,xa:false},{name:"Template Settings",category:true,c:"dspf"},{name:"template",choices:pui.layout.$n(),$c:false,help:"Specifies the name of the template used to render the layout.",bind:false,xa:false},{im:true},
{name:"Position",category:true},{name:"left",format:"px",help:"Represents the x-coordinate of the current layout."},{name:"top",format:"px",help:"Represents the y-coordinate of the current layout."},{name:"right",format:"px",help:"Position of the layout from the right of the screen or another layout container."},{name:"bottom",format:"px",help:"Position of the layout from the bottom of the screen or another layout container."},{name:"center horizontally",choices:["true","false"],type:"boolean",help:"Centers the layout horizontally within its parent container.",
i:true,j:["indicator","expression"]},{name:"center vertically",choices:["true","false"],type:"boolean",help:"Centers the layout vertically within its parent container.",i:true,j:["indicator","expression"]},{name:"height",vq:"px",help:"Height of the layout.",bind:false,xa:false},{name:"width",format:"px",help:"Width of the layout.",bind:false,xa:false},{name:"min height",format:"px",help:"Minimum height of the layout."},{name:"min width",format:"px",help:"Minimum width of the layout."},{name:"max height",
format:"px",help:"Maximum height of the layout."},{name:"max width",format:"px",help:"Maximum width of the layout."},{name:"z index",format:"number",help:"The stacking order of the current element, expressed as an integer value. The element with the higher z index will overlay lesser elements."},{name:"locked in place",choices:["true","false"],help:"If set to true, the element cannot be moved or sized.",bind:false},{name:"Tabs",category:true},{name:"parent tab panel",help:"This property specifies the id of the Tab Panel to which this element belongs.  The property is set automatically when you drag and drop the element onto a Tab Panel.",
bind:false},{name:"parent tab",help:"This property specifies the tab index of the specific tab to which this element belongs.  Each tab within a Tab Panel is identified by a sequential index, starting with 0 for the first tab, 1 for the second tab, and so on.  The property is set automatically when you drag and drop the element onto a Tab Panel.",bind:false},{name:"parent field set",help:"This property specifies the id of the Field Set Panel to which this element belongs.  The property is set automatically when you drag and drop the element onto a Field Set Panel.",
bind:false},{name:"Misc",category:true},{name:"css class",fa:true,J:"class",help:"Defines a custom cascading style sheet class to assign to the element. To specify multiple classes, right-click the property and select Add Another CSS Class."},{name:"tool tip",type:"long",help:"Defines the text to appear in a tool tip when the user hovers the mouse over this element.",translate:true},{name:"visibility",format:"visible / hidden",choices:["hidden","visible"],help:"Determines whether the element is visible or hidden."},
{name:"inline style",type:"long",J:"style",help:'This property lets you define CSS properties that will be applied to the widget.  These properties are applied inline, and therefore take precedence over those defined in a CSS class. Multiple properties may be provided, separated by a semi-colon.  You can learn more about CSS properties at the following link: http://www.w3schools.com/cssref/. If you define CSS properties that are defined by other widget properties, the widget properties overrule the CSS inline properties. These CSS properties are ignored and should be set using the widget properties: "position", "visibility", "display", "left", "right", "top", "bottom", "width", "height", "overflow"'},
{name:"Events",category:true},{name:"onclick",type:"js",help:"Initiates a client-side script when the element is clicked."},{name:"ondblclick",type:"js",help:"Initiates a client-side script when the element is double-clicked."},{name:"onmousedown",type:"js",help:"Initiates a client-side script when the mouse is pressed down on this element."},{name:"onmousemove",type:"js",help:"Initiates a client-side script when the mouse is moving within this element."},{name:"onmouseout",type:"js",help:"Initiates a client-side script when the mouse is moved off this element."},
{name:"onmouseover",type:"js",help:"Initiates a client-side script when the mouse is moved over this element."},{name:"onmouseup",type:"js",help:"Initiates a client-side script when the mouse button is released off this element."}]};pui.layout.Un=function(a){return pui.layout.template.Ci({template:a,Ni:true})};pui.layout.template.Rh=function(a){function b(d,f){if(d!=null)if(!(!f&&d.layout!=null)){if(d.getAttribute!=null)if(d.getAttribute("container")=="true"){c.push(d);d.mq=c.length}var g=d.childNodes;if(!(g==null||g.length==null))for(var k=0;k<g.length;k++)b(g[k],false)}}var c=[];b(a,true);return c};
pui.layout.template.Mn=function(a){var b=[],c=a.vo;c.sort(function(z,A){if(pui.designer.mo(z.dom,A.dom,a.a))return 1;if(pui.designer.mo(A.dom,z.dom,a.a))return-1;return 0});for(var d=0;d<c.length;d++)for(var f=c[d],g=pui.layout.template.Rh(f.dom),k=0;k<g.length;k++){var l=g[k],h=pui.layout.Kb(l),o=h.x;h=h.y;var p=l.offsetHeight,s=l.offsetWidth,t=h+p,y=o+s;p-=2;if(p<1)p=1;s-=2;if(s<1)s=1;b.push({layout:f,a:l,top:h,left:o,bottom:t,right:y,height:p,width:s})}return a.Vq=b};
pui.layout.Kb=function(a){for(var b=0,c=0,d=a;d!=null&&(d.layout==null||d.parentNode.getAttribute("container")=="true");){b+=d.offsetLeft+d.clientLeft-d.scrollLeft;c+=d.offsetTop+d.clientTop-d.scrollTop;if(d==a.parentNode){var f=pui.getComputedStyle(d);if(f){if(f["padding-left"])b-=parseInt(f["padding-left"],10);else if(f.paddingLeft)b-=parseInt(f.paddingLeft,10);if(f["padding-top"])c-=parseInt(f["padding-top"],10);else if(f.paddingTop)c-=parseInt(f.paddingTop,10)}}d=d.offsetParent}if(d!=null){b+=
d.offsetLeft+d.clientLeft-d.scrollLeft;c+=d.offsetTop+d.clientTop-d.scrollTop;if(d==a.parentNode)if(f=pui.getComputedStyle(d)){if(f["padding-left"])b-=parseInt(f["padding-left"],10);else if(f.paddingLeft)b-=parseInt(f.paddingLeft,10);if(f["padding-top"])c-=parseInt(f["padding-top"],10);else if(f.paddingTop)c-=parseInt(f.paddingTop,10)}}return{x:b,y:c}};pui.layout.template.applyTemplate=function(a){var b=a.dom,c=pui.layout.template.Rh,d=pui.layout.template.Ci,f=pui.layout.template.tl,g=c(b);a=d(a);f(a);c=c(a);f=[];for(d=g.length-1;d>=0;d-=1)if(g[d].firstChild!=null)break;d+=1;if(d>c.length)return{success:false,msg:"The property cannot be applied because it removes a layout section that contains other widgets.  \n\nYou must remove the contained widgets first."};for(var k=0;k<d;k++)for(var l=g[k],h=c[k],o=l.firstChild;o!=null;){l.removeChild(o);h.appendChild(o);
o=l.firstChild}for(k=0;k<c.length;k++){h=c[k];h.getAttribute("stretch")=="true"&&f.push(h)}b.innerHTML="";for(o=a.firstChild;o!=null;){b.appendChild(a.removeChild(o));o=a.firstChild}if(a.panel!=null){b.panel=a.panel;b.sizeMe=function(){b.panel.resize()};b.panel.a=b}if(a.Tb!=null){b.Tb=a.Tb;b.sizeMe=function(){b.Tb.resize()};b.Tb.a=b}return{success:true,fc:f,Ec:c}};
pui.layout.template.getProxy=function(a){var b=pui.layout.template.Ci({template:a.template,properties:a,designMode:true,Ei:true});pui.layout.template.tl(b);if(a.width!=null)b.style.width=a.width;if(a.height!=null)b.style.height=a.height;if(a["css class"]!=null)b.className=a["css class"];return b};pui.layout.wm=function(){this.H=null;this.designMode=false;this.template="test";this.ib={};this.Pc=false;this.fc=[];this.Ec=[];this.Wj=this.Vj=false;var a=this;this.Fh=function(){a.designMode=true;a.H.destroy=a.destroy;a.H.onclick=function(b){if(a.Pc){b=La(b);if(b==a.H||b.getAttribute!=null&&b.getAttribute("container")=="true"){b=a.e;if(b!=null){var c=b.designer.selection;if(!(c.ec.length==1&&c.ec[0].e==b)){c.clear();c.add(b);b.designer.Ta.refresh()}}}}}};this.Yh=function(){for(var b=pui.layout.template.Rh(a.H),
c=0;c<b.length;c++)if(b[c].firstChild!=null)return true;return false};this.Kn=function(b){if(b==null)b={};b.fo=false;b.eo=false;for(var c=[],d=a.H.e.designer.items,f=0;f<d.length;f++){var g=d[f];if(g.Gq()==a){if(g.properties["field type"]=="tab panel")b.fo=true;if(g.properties["field type"]=="field set panel")b.eo=true;c.push(g)}}return c};this.Dp=function(){a.H.Di=pui.layout.Un(a.template);a.H.df=lb(a.H.Di)};this.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:a.H,template:a.template,
properties:a.ib,designMode:a.designMode});if(b.success){a.fc=b.fc;a.Ec=b.Ec;a.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}a.Dp();return b};this.lm=function(b,c){if(!a.designMode)return false;var d=a.e;if(d.properties[b]!=c){if(pui.p(d.properties[b]))d.properties[b].designValue=c;else d.properties[b]=c;d.$a[b]=true;d.Vb=true;d.designer.Wb[d.designer.ya.Ua]=true;d.designer.Ta.refresh();return true}return false};this.stretch=function(){for(var b=[],c=0;c<a.fc.length;c++){var d=
a.fc[c];d.style.width="";d.style.height="";d.style.display="none"}for(c=0;c<a.fc.length;c++){d=a.fc[c];d=d.parentNode;b.push({width:d.offsetWidth,height:d.offsetHeight})}for(c=0;c<a.fc.length;c++){d=a.fc[c];var f=b[c];f.width-=4;if(f.width<0)f.width=0;f.height-=4;if(f.height<0)f.height=0;d.style.width=f.width+"px";d.style.height=f.height+"px";d.style.display=""}a.am();a.center()};this.am=function(){for(var b=0;b<a.Ec.length;b++)for(var c=a.Ec[b],d=0;d<c.childNodes.length;d++){var f=c.childNodes[d];
if(f.layout!=null){f.layout.stretch();f.layout.iScroll!=null&&f.layout.iScroll.refresh()}if(f.sizeMe!=null&&typeof f.sizeMe=="function")if(pui.Cb(f.style.width)||pui.Cb(f.style.height)||f.grid!=null)f.sizeMe();f.be!=null&&typeof f.be=="function"&&f.be()}};this.center=function(){var b=a.Vj,c=a.Wj;if(b||c){var d={},f=false,g=a.H.parentNode;if(g!=null&&g.tagName=="DIV"&&g.offsetWidth>0&&g.offsetHeight>0&&(g.parentNode!=document.body||g.style.width!=null&&g.style.height!=null&&g.style.width!=""&&g.style.height!=
"")){d.width=g.offsetWidth;d.height=g.offsetHeight}else{f=pui.getWindowSize();d.width=f.width;d.height=f.height;f=true}if(b){b=parseInt((d.width-a.H.offsetWidth)/2);if(b<0){if(f)document.body.scrollLeft=Math.abs(b);b=0}a.H.style.left=b+"px"}if(c){c=parseInt((d.height-a.H.offsetHeight)/2);if(c<0)c=0;a.H.style.top=c+"px"}}};this.setProperty=function(b,c){if(c==null)c="";var d=a.H.panel,f=a.H.Tb;switch(b){case "id":a.H.id=c;break;case "field type":break;case "template":if(a.designMode){a.e.properties.template=
c;a.e.$a.template=true;a.e.Vb=true;a.e.designer.Wb[a.e.designer.ya.Ua]=true;a.e.designer.Ta.refresh()}break;case "left":case "top":case "right":case "bottom":a.H.style[b]=c;break;case "height":case "width":case "min height":case "min width":case "max height":case "max width":var g=b.split(" "),k=b;if(g.length>1)k=g[0]+g[1].substr(0,1).toUpperCase()+g[1].substr(1);a.H.style[k]=c;d!=null&&d.resize();f!=null&&f.resize();a.stretch();if(a.designMode)c.length==0?pui.Hi(a.H,k):pui.Df(a.H,k,c);break;case "z index":a.H.style.zIndex=
c;if(a.designMode)c.length==0?pui.Hi(a.H,"z-index"):pui.Df(a.H,"z-index",c);break;case "center horizontally":if(!a.designMode)a.Vj=c=="true"||c==true;break;case "center vertically":if(!a.designMode)a.Wj=c=="true"||c==true;break;case "locked in place":a.Pc=c=="true"||c==true;break;case "css class":break;case "overflow x":a.H.firstChild.style.overflowX=c;break;case "tool tip":a.H.title=c;break;case "visibility":if(!a.designMode)a.H.style.visibility=c;if(a.designMode)if(c=="hidden"){a.H.style.filter=
"alpha(opacity=30)";a.H.style.opacity=0.3}else{a.H.style.filter="";a.H.style.opacity=""}break;case "onclick":case "ondblclick":case "onmousedown":case "onmousemove":case "onmouseout":case "onmouseover":case "onmouseup":a.designMode||(a.H[b]=function(h){try{var o=eval(c);if(typeof o=="function"){if(!h)h=window.event;o(h,this)}}catch(p){pui.alert(b.substr(0,1).toUpperCase()+b.substr(1)+" Error:\n"+p.message)}});break;case "has header":d!=null&&d.nf(c!="false"&&c!=false);a.ib[b]=c;break;case "small sections":if(f!=
null)f.ud(c=="true"||c==true);a.ib[b]=c;break;case "allow collapse":f!=null&&f.mp(c);a.ib[b]=c;break;case "header height":d!=null&&d.of(c);a.ib[b]=c;break;case "header text":d!=null&&d.setText(c);a.ib[b]=c;break;case "header theme":d!=null&&d.Vc(c);f!=null&&f.Vc(c);a.ib[b]=c;break;case "body theme":d!=null&&d.Uc(c);f!=null&&f.Uc(c);a.ib[b]=c;break;case "straight edge":d!=null&&d.F(c);f!=null&&f.F(c);a.ib[b]=c;break;case "color":case "font family":case "font size":case "font style":case "font weight":case "text align":case "text decoration":case "text transform":d!=
null&&d.setStyle(b,c);if(f!=null){f.setStyle(b,c);if(b=="font family"||b=="font size")f.resize()}a.ib[b]=c;break;case "onsectionclick":a.designMode||(a.H[b+"event"]=function(){eval("var section = arguments[0];");try{return eval(c)}catch(h){pui.alert("Onexpand Error:\n"+h.message)}});break;default:var l=a.ib[b];a.ib[b]=c;if(a.designMode&&!Ta.Vd&&!Ta.Ko){d=a.applyTemplate();a.H.Tb!=null&&a.H.Tb.resize();if(d.success==false){a.ib[b]=l;setTimeout(function(){a.lm(b,l)},0)}}break}};this.Sm=function(){function b(){var f=
a.H.parentNode;if(f!=null&&f.tagName=="DIV")a.iScroll=new iScroll(f,{onBeforeScrollStart:function(g){for(var k=La(g);k.nodeType!=1;)k=k.parentNode;for(;k.tagName=="SPAN";)k=k.parentNode;k.tagName!="SELECT"&&k.tagName!="INPUT"&&k.tagName!="TEXTAREA"&&k.tagName!="A"&&g.preventDefault()}})}function c(){d++;d>100||setTimeout(function(){typeof iScroll=="function"?b():c()},200)}var d=0;if(typeof iScroll=="function")b();else pui.loadJS({path:pui.normalizeURL("/iscroll/iscroll.js"),callback:function(){b()}})==
false&&c()};this.onresize=function(){if(a.Tm==true){var b=window.orientation,c=window.screen.width;if(b==0||b==180)c=window.screen.height;c-=18;c+="px";a.H.parentNode.style.height=c;document.body.style.height=c;document.body.parentNode.style.height=c;a.H.style.height=c;a.setProperty("height",c)}a.stretch()};this.destroy=function(){eb(window,"resize",a.onresize);eb(document,"orientationchange",a.onresize);if(a.iScroll!=null){a.iScroll.destroy();a.iScroll=null;delete a.iScroll}a.H=null;a.ib=null;a=
a.fc=null}};pui.widgets.add({name:"layout",Ac:false,defaults:{},Pd:function(a){if(a.dom.layout==null){a.dom.layout=new pui.layout.wm;a.dom.layout.H=a.dom;a.dom.layout.e=a.e;if(a.design)a.e.qi=false}if(!a.design&&a.propertyName=="field type"){a.dom.layout.setProperty("center vertically",a.properties["center vertically"]);a.dom.layout.setProperty("center horizontally",a.properties["center horizontally"])}var b=true;if(a.propertyName=="field type"||a.propertyName=="template"){a.dom.style.padding="0px";a.dom.style.borderWidth=
"0px";if(!a.design&&a.properties.height=="100%"&&a.dom.parentNode.id=="pui"){var c=pui.getComputedStyle(a.dom.parentNode);if(c!=null&&(c.height=="0px"||c.height=="auto")){pui.ge.padding=document.body.style.padding;document.body.style.padding="0";pui.ge.height=document.body.style.height;document.body.style.height="100%";document.body.parentNode.style.padding="0";document.body.parentNode.style.height="100%";pui.ge.overflow=document.body.style.overflow;document.body.style.overflow="hidden";a.dom.parentNode.style.padding=
"0";a.dom.parentNode.style.height="100%"}if(window.cordova&&window.device.platform=="iOS"){a.dom.layout.Tm=true;c=window.orientation;var d=window.screen.width;if(c==0||c==180)d=window.screen.height;d-=18;d+="px";a.dom.parentNode.style.height=d;a.dom.parentNode.style.overflowX="hidden";a.dom.parentNode.style.overflowY="hidden";document.body.style.height=d;document.body.parentNode.style.height=d;a.dom.style.height=d}}else if(!a.design&&a.dom.parentNode.Bb&&(pui.Cb(a.properties.height)||pui.Cb(a.properties.width))){a.dom.parentNode.style.width=
"100%";a.dom.parentNode.style.height="100%"}if(a.design){a.dom.layout.designMode||a.dom.layout.Fh();a.dom.e=a.e;a.e.qi=false;if(a.propertyName=="field type"){a.dom.layout.setProperty("width",a.properties.width);a.dom.layout.setProperty("height",a.properties.height)}}a.dom.layout.template=a.properties.template;c=null;if(a.propertyName=="template"){c=a.dom.layout.template;a.dom.layout.template=a.value}else if(!a.design){N(window,"resize",a.dom.layout.onresize);N(document,"orientationchange",a.dom.layout.onresize)}nmodel=
lb(pui.layout.Ke());for(var f in a.properties)nmodel[f]||(a.dom.layout.ib[f]=a.properties[f]);f=a.dom.layout.applyTemplate();if(f.success==false&&c!=null){a.dom.layout.template=c;a.dom.layout.lm("template",c);b=false}if(f.success==true&&(!a.design||Ta.Vd||Ta.Ko))a.dom.layout.Ec=f.Ec}b&&a.dom.layout.setProperty(a.propertyName,a.value)},initialize:function(a){if(!a.design){a=a.dom;var b=a.id;if(b==null)b="";var c=a.className;if(c==null)c="";if(b.toLowerCase()=="scroller"||c.toLowerCase()=="scroller")pui.is_old_ie||
a.layout.Sm()}}});window.Atrium||(window.Atrium={});Atrium.launchURL=function(a,b,c){var d=Atrium.getAtriumWindow();if(d!=null)return d.Atrium.api.launchURL(a,b,c)};Atrium.closeTab=function(a){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.closeTab(window,a)};Atrium.launchItem=function(a,b,c){var d=Atrium.getAtriumWindow();if(d!=null)return d.Atrium.api.launchItem(a,b,c)};Atrium.activateTab=function(a){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.activateTab(a)};
Atrium.closeAllTabs=function(a){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.closeAllTabs(window,a)};Atrium.getCurrentTab=function(){var a=Atrium.getAtriumWindow();if(a!=null)return a.Atrium.api.getCurrentTab(window)};Atrium.getToken=function(){var a=Atrium.getAtriumWindow();if(a!=null)return a.Atrium.api.getToken()};Atrium.getUser=function(){var a=Atrium.getAtriumWindow();if(a!=null)return a.Atrium.api.getUser()};Atrium.runPCCommand=function(a){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.runPCCommand(a)};
Atrium.refreshNavPanel=function(){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.refreshNavPanel()};Atrium.setMenuFilter=function(a){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.setMenuFilter(a)};Atrium.breakMessagesShow=function(a,b){var c=Atrium.getAtriumWindow();c!=null&&c.Atrium.api.breakMessagesShow(a,b)};Atrium.breakMessagesOnStorage=function(a){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.breakMessagesOnStorage(a)};
Atrium.getAtriumWindow=function(){for(var a=window.parent;a!=null&&a!=a.parent&&(a.Atrium==null||a.Atrium.api==null);)a=a.parent;if(a==null||a.Atrium==null||a.Atrium.api==null)return null;return a};window.hideElement=tb;window.hideElements=ub;window.removeElement=vb;window.removeElements=wb;window.getElementValue=xb;window.get=yb;window.getObj=Ra;
window.postToNewWindow=function(a){a||pui.alert("postToNewWindow Error: URL not specified.");var b=document.forms.postToForm;if(b==null){b=document.createElement("form");document.body.appendChild(b)}b.innerHTML="";b.action=a;b.method="post";b.target="_blank";for(var c=1;c<arguments.length;c+=2){var d=arguments[c],f="";if(c+1<arguments.length)f=arguments[c+1];d=ab("input",d);d.type="hidden";d.value=f;b.appendChild(d)}b.submit()};
window.postTo=function(a){a||pui.alert("postTo Error: URL not specified.");var b=document.forms.postToForm;if(b==null){b=document.createElement("form");document.body.appendChild(b)}b.innerHTML="";b.action=a;b.method="post";b.target="";for(var c=1;c<arguments.length;c+=2){var d=arguments[c],f="";if(c+1<arguments.length)f=arguments[c+1];d=ab("input",d);d.type="hidden";d.value=f;b.appendChild(d)}b.submit()};window.changeElementValue=zb;
window.changeElementClass=function(a,b){var c=document.getElementById(a);if(c==null)return"";c.className=b};window.newElement=Ab;window.preventEvent=Ma;window.setTab=function(a,b){var c=Ra(a);if(c==null||c.aj==null)Bb[a]=b;else c.aj(b)};window.ltrim=Ya;window.rtrim=Wa;window.trim=bb;window.attachCalendar=function(a,b){var c=document.getElementById(a);c!=null&&ac(c,b)};window.createNamedElement=ab;window.getInnerText=ob;
window.setDOMAttribute=function(a,b,c){a=typeof a=="string"?document.getElementById(a):a;if(a!=null)try{a[b]=c}catch(d){}};
window.getActualStyle=function(a,b){for(var c=b.replace(/ /g,"-"),d="",f=false,g=0;g<b.length;g++){var k=b.substr(g,1);if(f){k=k.toUpperCase();f=false}if(k==" ")f=true;else d+=k}f="";if(a.currentStyle)f=a.currentStyle[d];else if(window.getComputedStyle)f=document.defaultView.getComputedStyle(a,null).getPropertyValue(c);if(b.indexOf("color")>=0){if(f.substr(0,1)=="#")f=f.toUpperCase();if(f.substr(0,4)=="rgb("&&f.substr(f.length-1,1)==")"){f=f.substr(4,f.length-5);f=f.replace(/ /g,"");c=f.split(",");
f="#";for(g=0;g<c.length;g++){d=Number(c[g]).toString(16).toUpperCase();if(d.length==1)d="0"+d;f+=d}}}return f};window.addEvent=N;window.removeEvent=eb;window.getMouseX=Cb;window.getMouseY=Db;window.showErrors=function(){if(Da.length==0)alert("No errors have been reported.");else for(var a,b=0;b<Da.length;b++){a=Da[b];a="Operation: "+a.Do+"\nId: "+a.id+"\n\nMessage: "+a.text+"\n"+a.Vp;alert(a)}};window.presskey=function(a){Ib(a)};window.pressKey=Ib;window.pressKEY=function(a){Ib(a)};
window.Presskey=function(a){Ib(a)};window.PressKey=function(a){Ib(a)};window.PRESSKEY=function(a){Ib(a)};window.applyProperty=nb;window.show_calendar=Vb;window.hide_calendar=Pb;
window.calendar_select=function(){pui.currentDateField.modified=true;if(pui.currentDateField.id!=null&&pui.currentDateField.id.indexOf(".")==-1&&pui.currentDateField.Ib!=null)pui.Gd[pui.currentDateField.Ib]=true;if(M=="genie"&&pui.currentDateField.w!=null&&pui.currentDateField.w.idx!=null)pui.response[pui.currentDateField.w.idx]=pui.currentDateField;Pb();var a=pui.currentDateField.B;if(a!=null){a.hide();a.U=true;pui.Q(pui.currentDateField,a.ed())}try{pui.currentDateField.focus()}catch(b){}pui.currentDateField.onchange!=
null&&pui.currentDateField.onchange();pui.Cc(pui.currentDateField)};
window.currentDate=function(a,b){if(a==null||a=="Y")slashes=true;if(Sa()){var c;c=slashes?"DD/DD/DD":"DDDDDD";if(b)c+="DD";return c}else{c="";if(pui&&pui.appJob){if(pui.appJob.sysTime==0)return"";c=new Date(pui.appJob.sysTime*1E3);var d=pui.appJob.dateFormat;if(b){if(d=="*MDY")d="*USA";if(d=="*DMY")d="*EUR";if(d=="*YMD")d="*ISO"}d=pui.formatting.keywords.DATFMT[d].Fa.replace(/\B/g,pui.appJob.dateSeparator);c=c.format(d,"en_US")}else{c=new Date;d=2E3;if(b)d=0;c=(parseInt(c.getMonth(),10)+1<10?"0":
"")+(parseInt(c.getMonth(),10)+1)+"/"+(parseInt(c.getDate(),10)<10?"0":"")+c.getDate()+"/"+(parseInt(c.getFullYear(),10)-d<10?"0":"")+(parseInt(c.getFullYear(),10)-d)}if(a!=null&&a!="Y"){d="/";if(pui!=null&&pui.appJob!=null&&pui.appJob.dateSeparator!=null)d=pui.appJob.dateSeparator;c=c.replace(d,"");c=c.replace(d,"");if(c.substr(0,1)=="0")c=" "+c.substr(1)}return c}};
window.currentTime=function(){if(Sa())return"TT:TT:TT";else{var a;if(pui&&pui.appJob){if(pui.appJob.sysTime==0)return"";a=new Date(pui.appJob.sysTime*1E3);var b=pui.formatting.keywords.zd["*HMS"].Fa.replace(/\B/g,pui.appJob.timeSeparator);return a.format(b,"en_US")}else{a=new Date;return(a.getHours()<10?"0":"")+a.getHours()+":"+(a.getMinutes()<10?"0":"")+a.getMinutes()+":"+(a.getSeconds()<10?"0":"")+a.getSeconds()}}};
window.currentUser=function(){return Sa()?"UUUUUUUUUU":pui.appJob==null||pui.appJob.user==null?"":pui.appJob.user};window.currentFormatNames=Eb;window.getQueryStringParms=Fb;window.setCursor=function(a,b){if(arguments.length==1){var c=Ra(a);if(c)if(M=="genie"){if(c.w){pui.response.crow=c.w.row;pui.response.ccol=c.w.col}}else c.Ae&&c.Hd&&pui.pc(null,c)}if(arguments.length==2)if(M=="genie"){pui.response.crow=a;pui.response.ccol=b}else{pui.l.row=a;pui.l.column=b}};window.getTarget=La;
window.inDesignMode=Sa;window.loadPCCommandApplet=Hb;window.runPCCommand=Gb;window.copyToClipboard=function(a){var b=document.getElementById("PCCommandApplet");if(b)b.copyToClipboard(a);else{pui.Kj=a;Hb("copyToClipboardCb")}};window.pui.UTF8=pui.pe;window.pui.UTF8.encode=pui.pe.encode;window.pui.UTF8.decode=pui.pe.decode;window.$=ha();window.id=window.id;window.pui=pui;window.pui.locales=pui.locales;window.pui.formatting=pui.formatting;window.pui.formatting.leftPad=pui.formatting.leftPad;window.pui.formatting.Date=pui.formatting.Date;window.pui.formatting.Date.y2k=pui.formatting.Date.cq;window.pui.formatting.Date.getSuffix=pui.formatting.Date.getSuffix;window.pui.formatting.Date.getMonthNum=pui.formatting.Date.Qn;window.pui.formatting.Date.isMidnight=pui.formatting.Date.po;
window.getSystemName=function(){return Sa()?"SSSSSSSS":pui.appJob==null||pui.appJob.sysName==null?"":pui.appJob.sysName};if(pui.runtimeMsg==null)pui.runtimeMsg={};if(pui.runtimeText==null)pui.runtimeText={};if(pui.runtimeMessages==null)pui.runtimeMessages={};
pui.getLanguageText=function(a,b,c){var d=pui[a][pui.language||"en_US"][b];if(typeof d=="undefined")d=pui[a].en_US[b];if(a=="runtimeMsg"&&typeof pui.runtimeMessages[b]!="undefined")d=pui.runtimeMessages[b];if((a=="runtimeMsg"||a=="runtimeText")&&b.substr(0,7)=="upload "&&typeof pui.fileupload[b.substr(8)]!="undefined"){d=pui.fileupload[b.substr(8)];if(b=="upload file limit")d=d.replace("{FILE_LIMIT}","&1")}if(a=="runtimeText")for(var f=["close browser text","csv export text","filter text","next link text",
"previous link text","remove filters text","session ended text","sort ascending text","sort descending text"],g=0;g<f.length;g++)if(b==f[g]&&typeof pui[f[g]]!="undefined")d=pui[f[g]];if(a=="runtimeMsg"){a=["closeMessage","no connection message"];for(g=0;g<a.length;g++)if(b==a[g]&&typeof pui[a[g]]!="undefined")d=pui[a[g]]}if(c!=null)for(g=1;g<=c.length;g++)d=d.replace("&"+g,c[g-1]);return d};pui.dk=function(a,b,c){if(pui[a][c]==null)pui[a][c]={};for(msg in pui[a][b])pui[a][c][msg]=pui[a][b][msg]};
pui.Hb=function(a,b){pui.dk("runtimeMsg",a,b);pui.dk("runtimeText",a,b)};pui.runtimeMsg.en_US={};pui.runtimeMsg.en_US.closeMessage="This will end your session.";pui.runtimeMsg.en_US["no connection message"]="Unable to reach server.  Check your connection and try again.";pui.runtimeMsg.en_US["upload file limit"]="Limit of &1 file(s) exceeded.";pui.runtimeMsg.en_US["upload size limit"]="Limit of &1MB per file exceeded";pui.runtimeMsg.en_US["upload no files"]="No files selected.";
pui.runtimeMsg.en_US["upload duplicate file"]="Duplicate files selected.";pui.runtimeMsg.en_US["upload file exists"]="One or more files already exist on the file system.";pui.runtimeMsg.en_US["upload prevented"]="Operation prevented by exit program.";pui.runtimeMsg.en_US["upload input limit"]="Total input size limit exceeded.";pui.runtimeMsg.en_US["upload no session"]="Not connected to a valid session.";pui.runtimeMsg.en_US["upload timeout"]="Transaction timed out.";
pui.runtimeMsg.en_US["upload invalid response"]="The server response is missing or invalid.";pui.runtimeMsg.en_US["upload cancelled"]="Upload cancelled.";pui.runtimeMsg.en_US["close browser text"]="To complete the log off process, please close your browser window.";pui.runtimeMsg.en_US["session ended text"]="Your session has ended.";pui.runtimeMsg.en_US["outside ucs2"]="Characters are outside of UCS-2 range.";pui.runtimeMsg.en_US["invalid number"]="&1 is not a valid number.";
pui.runtimeMsg.en_US["invalid length"]="&1 has an incorrect data length or decimal position.";pui.runtimeMsg.en_US["invalid decimal"]="&1 has too many decimal places. (max: &2)";pui.runtimeMsg.en_US["invalid choice"]='"&1" is invalid. Valid choices are: "&2" or "&3".';pui.runtimeMsg.en_US["invalid date"]='"&1" is not a valid date. Example format: &2';pui.runtimeMsg.en_US["invalid time"]='"&1" is not a valid time. Example format: &2';pui.runtimeMsg.en_US["invalid time stamp"]='"&1" is not a valid time stamp. Example format: &2';
pui.runtimeMsg.en_US["invalid percent"]="&1 is not a valid decimal.";pui.runtimeMsg.en_US["invalid digits"]='"&1" contains too many digits. Max: &2';pui.runtimeMsg.en_US["exceeds whole"]='"&1" exceeds the maximum number of digits for the whole number portion (&2 digits).';pui.runtimeMsg.en_US["exceeds decimal"]='"&1" exceeds the maximum number of digits for the decimal portion (&2 digits).';pui.runtimeMsg.en_US["zip too long"]="Zip code is too long. (Maximum: &1 digits)";
pui.runtimeMsg.en_US["phone too long"]="Phone number is too long. (Maximum: &1 digits)";pui.runtimeMsg.en_US["ssno too long"]="Social security number is too long. (Maximum: &1 digits)";pui.runtimeMsg.en_US["invalid custom val"]="Invalid custom validation function.";pui.runtimeMsg.en_US["error custom val"]="Error in custom validation function.";pui.runtimeMsg.en_US.ME="Mandatory entry field. You must enter data.";pui.runtimeMsg.en_US.MF="Mandatory fill field. You must fill the input box completely.";
pui.runtimeMsg.en_US.required="The value cannot be blank. This field is required.";pui.runtimeMsg.en_US["file required"]="You must select at least one file.";pui.runtimeMsg.en_US["signature overflow"]="The signature drawing size exceeds the maximum number of bytes available for storing the signature.  Please clear the signature pad and try again.";pui.runtimeMsg.en_US.validValues="Value entered is not valid. Valid values are: ";pui.runtimeMsg.en_US["upload invalid type"]="One or more files are of invalid type.";
pui.runtimeMsg.en_US["invalid email"]="Invalid email address.";pui.runtimeMsg.en_US["session timed out"]="Your session has timed out.";pui.runtimeMsg.en_US["invalid low range"]="Value must be greater than or equal to &1.";pui.runtimeMsg.en_US["invalid high range"]="Value must be less than or equal to &1.";pui.runtimeMsg.en_US["invalid range"]="Valid range is &1 to &2.";pui.runtimeMsg.en_US["unmonitored exception"]="The program has encountered an unmonitored exception. Please contact the system administrator for assistance.";
pui.runtimeText.en_US={};pui.runtimeText.en_US["upload select text"]="Select Files";pui.runtimeText.en_US["upload clear text"]="Clear";pui.runtimeText.en_US["upload remove text"]="Remove";pui.runtimeText.en_US["upload upload text"]="Upload";pui.runtimeText.en_US["upload drophere text"]="Drop files here";pui.runtimeText.en_US["upload browser unsupported"]="Drag/drop files requires Internet Explorer 10 or higher, Chrome, or Firefox";pui.runtimeText.en_US["upload finished text"]="Finished";
pui.runtimeText.en_US["csv export text"]="Export to Excel";pui.runtimeText.en_US["filter text"]="Filter";pui.runtimeText.en_US["find text"]="Find";pui.runtimeText.en_US["remove filters text"]="Remove All Filters";pui.runtimeText.en_US["next link text"]="Next";pui.runtimeText.en_US["previous link text"]="Previous";pui.runtimeText.en_US["sort ascending text"]="Sort Ascending";pui.runtimeText.en_US["sort descending text"]="Sort Descending";pui.runtimeText.en_US.row="row";pui.runtimeText.en_US.rows="rows";
pui.runtimeText.en_US.page="Page";pui.runtimeText.en_US.collapseAll="Collapse All";pui.runtimeText.en_US.expandAll="Expand All";pui.runtimeText.en_US.user="User";pui.runtimeText.en_US.password="Password";pui.runtimeText.en_US.pui="Profound UI";pui.runtimeText.en_US["pui sign on"]="Profound UI Sign On";pui.runtimeText.en_US["sign on"]="Sign On";pui.runtimeText.en_US["message id"]="Message Id";pui.runtimeText.en_US.severity="Severity";pui.runtimeText.en_US.date="Date";pui.runtimeText.en_US.time="Time";
pui.runtimeText.en_US.program="Program";pui.runtimeText.en_US.procedure="Procedure";pui.runtimeText.en_US.lines="Line(s)";pui.runtimeText.en_US.message="Message";pui.runtimeText.en_US["new session"]="New Session";pui.runtimeText.en_US.close="Close";pui.runtimeText.en_US["current password"]="Current Password";pui.runtimeText.en_US["new password"]="New Password";pui.runtimeText.en_US["repeat new password"]="Repeat New Password";pui.runtimeText.en_US.submit="Submit";pui.runtimeText.en_US.exit="Exit";
pui.runtimeText.en_US.warning="Warning";pui.runtimeText.en_US["change password"]="Change Password";pui.runtimeText.en_US.cancel="Cancel";pui.runtimeText.en_US["find text"]="Find";pui.runtimeText.en_US["remove filter"]="Remove Filter";pui.Hb("en_US","en_UK");pui.Hb("en_US","de_DE");pui.runtimeMsg.de_DE.closeMessage="Die Sitzung wird beendet.";pui.runtimeMsg.de_DE["no connection message"]="System i5 ist nicht erreichbar, bitte die Kommunikation pr\u00fcfen und erneut versuchen.";
pui.runtimeMsg.de_DE["upload file limit"]="Maximum von &1 Datei(en) ist erreicht.";pui.runtimeMsg.de_DE["upload size limit"]="Maximum von &1MB je Datei ist erreicht";pui.runtimeMsg.de_DE["upload no files"]="Keine Datei(en) ausgew\u00e4hlt.";pui.runtimeMsg.de_DE["upload duplicate file"]="Doppelte Dateien ausgew\u00e4hlt.";pui.runtimeMsg.de_DE["upload file exists"]="Eine oder mehrere Datei(en) existieren bereits im Dateisystem.";pui.runtimeMsg.de_DE["upload prevented"]="Operation untersagt durch Pr\u00fcfprogramm.";
pui.runtimeMsg.de_DE["upload input limit"]="Gesamte Eingabegr\u00f6\u00dfe ist \u00fcberschritten.";pui.runtimeMsg.de_DE["upload no session"]="Keine Verbindung zu einer g\u00fcltigen Sitzung.";pui.runtimeMsg.de_DE["upload timeout"]="Zeit\u00fcberschreitung Vorgang.";pui.runtimeMsg.de_DE["upload invalid response"]="Die Server Antwort fehlt oder ist ung\u00fcltig.";pui.runtimeMsg.de_DE["close browser text"]="Bitten das Browserfenster schlie\u00dfen, um die Abmeldung zu vervollst\u00e4ndigen.";
pui.runtimeMsg.de_DE["session ended text"]="Die Sitzung ist beendet.";pui.runtimeMsg.de_DE["outside ucs2"]="Buchstaben au\u00dferhalb des UCS-2 Bereichs.";pui.runtimeMsg.de_DE["invalid number"]="&1 ist keine g\u00fcltige Nummer.";pui.runtimeMsg.de_DE["invalid length"]="&1 hat ung\u00fcltige Datenl\u00e4nge oder Dezimalstelle.";pui.runtimeMsg.de_DE["invalid decimal"]="&1 hat zu viele Dezimalstellen. (max: &2)";pui.runtimeMsg.de_DE["invalid choice"]='"&1" ist ung\u00fcltig. G\u00fcltige Werte sind "&2" oder "&3".';
pui.runtimeMsg.de_DE["invalid date"]='"&1" ist kein g\u00fcltiges Datum. Beispielformat: &2';pui.runtimeMsg.de_DE["invalid time"]='"&1" ist keine g\u00fcltige Zeit. Beispielformat: &2';pui.runtimeMsg.de_DE["invalid time stamp"]='"&1" ist kein g\u00fcltiger Zeitstempel. Beispielformat: &2';pui.runtimeMsg.de_DE["invalid percent"]="&1 ist kein g\u00fcltige Zahl.";pui.runtimeMsg.de_DE["invalid digits"]='"&1" enth\u00e4lt zu viele Ziffern. Max: &2';pui.runtimeMsg.de_DE["exceeds whole"]='"&1" \u00fcberschreitet die maximale Anahl von Ziffern der gesamten Zahl (&2 Stellen).';
pui.runtimeMsg.de_DE["exceeds decimal"]='"&1" \u00fcberschreitet die maximale Anzahl von Ziffern f\u00fcr den Nachkommateil (&2 Stellen).';pui.runtimeMsg.de_DE["zip too long"]="Postleitzahl ist zu lang. (Max.: &1 Ziffern)";pui.runtimeMsg.de_DE["phone too long"]="Telefonnummer ist zu lang. (Max.: &1 Ziffern)";pui.runtimeMsg.de_DE["ssno too long"]="Sozialversicherungsnummer ist zu lang. (Max.: &1 Ziffern)";pui.runtimeMsg.de_DE["invalid custom val"]="ung\u00fcltige benutzerdefinierte Pr\u00fcffunktion.";
pui.runtimeMsg.de_DE["error custom val"]="Fehler in benutzerdefinierter Pr\u00fcffunktion.";pui.runtimeMsg.de_DE.ME="Pflichtfeld, bitte Daten eingeben.";pui.runtimeMsg.de_DE.MF="Pflichtfeld, eine vollst\u00e4ndige Eingabe ist notwendig.";pui.runtimeMsg.de_DE.required="Der Wert kann nicht leer sein, Eingabe erforderlich.";pui.runtimeMsg.de_DE["file required"]="Bitte mindestens eine Datei ausw\u00e4hlen.";pui.runtimeMsg.de_DE["signature overflow"]="Die Gr\u00f6\u00dfe der Signatur \u00fcberschreitet die maximale Speichergr\u00f6\u00dfe. Bitte l\u00f6schen und erneut versuchen.";
pui.runtimeMsg.de_DE.validValues="Eingegebener Wert ist nicht g\u00fcltig. G\u00fcltige Werte sind: ";pui.runtimeMsg.de_DE["upload invalid type"]="Eine oder mehrere Dateien haben den falschen Typcode.";pui.runtimeMsg.de_DE["invalid email"]="ung\u00fcltige E-Mail-Adresse.";pui.runtimeMsg.de_DE["session timed out"]="Ihre Sitzung ist abgelaufen.";pui.runtimeMsg.de_DE["invalid low range"]="Wert muss gr\u00f6\u00dfer sein als &1";pui.runtimeMsg.de_DE["invalid high range"]="Wert muss kleiner oder gleich &1 sein";
pui.runtimeMsg.de_DE["invalid range"]="G\u00fcltiger Bereich ist zwischen &1 und &2";pui.runtimeMsg.de_DE["unmonitored exception"]="Das Programm hat einen nicht \u00fcberwachten Fehler gefunden. Bitte kontaktieren Sie ihren Systemadministrator.";pui.runtimeText.de_DE["upload select text"]="Dateiauswahl";pui.runtimeText.de_DE["upload clear text"]="L\u00f6schen";pui.runtimeText.de_DE["upload remove text"]="Entfernen";pui.runtimeText.de_DE["upload upload text"]="Heraufladen";
pui.runtimeText.de_DE["csv export text"]="Export nach Excel";pui.runtimeText.de_DE["filter text"]="Filter";pui.runtimeText.de_DE["remove filters text"]="Alle Filter entfernen";pui.runtimeText.de_DE["next link text"]="N\u00e4chste";pui.runtimeText.de_DE["previous link text"]="Vorige";pui.runtimeText.de_DE["sort ascending text"]="Sortierung aufsteigend";pui.runtimeText.de_DE["sort descending text"]="Sortierung absteigend";pui.runtimeText.de_DE.row="Zeile";pui.runtimeText.de_DE.rows="Zeilen";
pui.runtimeText.de_DE.page="Seite";pui.runtimeText.de_DE.collapseAll="alles zuklappen";pui.runtimeText.de_DE.expandAll="alles aufklappen";pui.runtimeText.de_DE.user="Benutzer";pui.runtimeText.de_DE.password="Passwort";pui.runtimeText.de_DE.pui="Profound UI";pui.runtimeText.de_DE["pui sign on"]="Profound UI Anmeldung";pui.runtimeText.de_DE["sign on"]="Aanmelding";pui.runtimeText.de_DE["message id"]="Nachrichten Id";pui.runtimeText.de_DE.severity="Schwere";pui.runtimeText.de_DE.date="Datum";
pui.runtimeText.de_DE.time="Zeit";pui.runtimeText.de_DE.program="Programm";pui.runtimeText.de_DE.procedure="Prozedur";pui.runtimeText.de_DE.lines="Zeile(n)";pui.runtimeText.de_DE.message="Nachricht";pui.runtimeText.de_DE["new session"]="Neue Sitzung";pui.runtimeText.de_DE.close="Schlie\u00dfen";pui.runtimeText.de_DE["current password"]="Aktuelles Passwort";pui.runtimeText.de_DE["new password"]="Neues Passwort";pui.runtimeText.de_DE["repeat new password"]="Wiederholung neues Passwort";
pui.runtimeText.de_DE.submit="Best\u00e4tigen";pui.runtimeText.de_DE.exit="Ende";pui.runtimeText.de_DE.warning="Warnung";pui.runtimeText.de_DE["change password"]="\u00c4ndern Passwort";pui.runtimeText.de_DE.cancel="Abbrechen";pui.runtimeText.de_DE["find text"]="Finden";pui.runtimeText.de_DE["remove filter"]="Filter entfernen";pui.Hb("en_US","pt_PT");pui.runtimeMsg.pt_PT.closeMessage="Isto terminar\u00e1 a sua sess\u00e3o.";pui.runtimeMsg.pt_PT["no connection message"]="N\u00e3o \u00e9 poss\u00edvel estabelecer liga\u00e7\u00e3o com o servidor. Verifique a liga\u00e7\u00e3o e tente de novo.";
pui.runtimeMsg.pt_PT["upload file limit"]="Limite de &1 ficheiro(s) excedido.";pui.runtimeMsg.pt_PT["upload size limit"]="Limite de &1MB por ficheiro excedido";pui.runtimeMsg.pt_PT["upload no files"]="N\u00e3o h\u00e1 ficheiros selecionados.";pui.runtimeMsg.pt_PT["upload duplicate file"]="Foram selecionados ficheiros em duplicado.";pui.runtimeMsg.pt_PT["upload file exists"]="Um ou mais ficheiros j\u00e1 existem no sistema de ficheiros.";pui.runtimeMsg.pt_PT["upload prevented"]="Opera\u00e7\u00e3o impedida por 'exit program'.";
pui.runtimeMsg.pt_PT["upload input limit"]="Foi excedido o limite do tamanho total do 'input'.";pui.runtimeMsg.pt_PT["upload no session"]="N\u00e3o est\u00e1 conectado a uma sess\u00e3o v\u00e1lida.";pui.runtimeMsg.pt_PT["upload timeout"]="Foi excedido o tempo limite para a transac\u00e7\u00e3o.";pui.runtimeMsg.pt_PT["upload invalid response"]="N\u00e3o existe resposta do servidor ou a mesma \u00e9 inv\u00e1lida.";pui.runtimeMsg.pt_PT["close browser text"]="A fim de completar o processo de encerramento da sess\u00e3o, por favor feche a janela do browser.";
pui.runtimeMsg.pt_PT["session ended text"]="A sua sess\u00e3o foi encerrada.";pui.runtimeMsg.pt_PT["outside ucs2"]="Caract\u00e9res fora do \u00e2mbito UCS-2.";pui.runtimeMsg.pt_PT["invalid number"]="&1 n\u00e3o \u00e9 um n\u00famero v\u00e1lido.";pui.runtimeMsg.pt_PT["invalid length"]="&1 tem comprimento ou casas d\u00e9cimais incorrectos.";pui.runtimeMsg.pt_PT["invalid decimal"]="&1 tem demasiadas casas d\u00e9cimais. (max: &2)";pui.runtimeMsg.pt_PT["invalid choice"]='"&1" \u00e9 inv\u00e1lido. Escolhas v\u00e1lidas s\u00e3o: "&2" ou "&3".';
pui.runtimeMsg.pt_PT["invalid date"]='"&1" n\u00e3o \u00e9 uma data v\u00e1lida. Exemplo de formato correcto: &2';pui.runtimeMsg.pt_PT["invalid time"]='"&1" n\u00e3o \u00e9 um valor de tempo correcto. Exemplo de formato correcto: &2';pui.runtimeMsg.pt_PT["invalid time stamp"]='"&1" n\u00e3o \u00e9 um registo de tempo v\u00e1lido. Exemplo de formato correcto: &2';pui.runtimeMsg.pt_PT["invalid percent"]="&1 n\u00e3o \u00e9  um valor d\u00e9cimal.";pui.runtimeMsg.pt_PT["invalid digits"]='"&1" cont\u00e9m demasiados d\u00edgitos. Max: &2';
pui.runtimeMsg.pt_PT["exceeds whole"]='"&1" excede o n\u00famero m\u00e1ximo de d\u00edgitos para a parte num\u00e9rica do campo (&2 digits).';pui.runtimeMsg.pt_PT["exceeds decimal"]='"&1" excede o n\u00famero m\u00e1ximo de d\u00edgitos para a parte d\u00e9cimal do campo (&2 digits).';pui.runtimeMsg.pt_PT["zip too long"]="O c\u00f3digo postal \u00e9 demasiado grande. (Maximum: &1 digits)";pui.runtimeMsg.pt_PT["phone too long"]="O n\u00famero de telefone \u00e9 demasiado grande. (Maximum: &1 digits)";
pui.runtimeMsg.pt_PT["ssno too long"]="O c\u00f3digo da seguran\u00e7a social \u00e9 demasiado grande. (Maximum: &1 digits)";pui.runtimeMsg.pt_PT["invalid custom val"]="Valida\u00e7\u00e3o de fun\u00e7\u00e3o customizada inv\u00e1lida.";pui.runtimeMsg.pt_PT["error custom val"]="Erro na valida\u00e7\u00e3o de fun\u00e7\u00e3o costumizada.";pui.runtimeMsg.pt_PT.ME="Campo obrigat\u00f3rio. Tem que introduzir dados.";pui.runtimeMsg.pt_PT.MF="Campo de preenchimento total obrigat\u00f3rio. Deve preencher completamente a caixa de entrada.";
pui.runtimeMsg.pt_PT.required="O valor n\u00e3o pode estar em branco. Este campo \u00e9 requerido.";pui.runtimeMsg.pt_PT["file required"]="Deve seleccionar pelo menos um ficheiro.";pui.runtimeMsg.pt_PT["signature overflow"]="A imagem da assinatura excede o n\u00famero m\u00e1ximo de bytes dispon\u00edveis para o seu armazenamento. Por favor limpe a caixa da assinatura e tente de novo.";pui.runtimeMsg.pt_PT.validValues="O valor introduzido n\u00e3o \u00e9 v\u00e1lido. Valores v\u00e1lidos: ";
pui.runtimeMsg.pt_PT["upload invalid type"]="Um ou mais ficheiros s\u00e3o de tipo inv\u00e1lido.";pui.runtimeMsg.pt_PT["invalid email"]="inv\u00e1lido e-mail.";pui.runtimeMsg.pt_PT["session timed out"]="A sua sess\u00e3o expirou.";pui.runtimeMsg.pt_PT["invalid low range"]="O valor deve ser maior ou igual a &1";pui.runtimeMsg.pt_PT["invalid high range"]="O valor deve ser menor ou igual a &1";pui.runtimeMsg.pt_PT["invalid range"]="O Intervalo v\u00e1lido \u00e9 de &1 a &2";
pui.runtimeMsg.pt_PT["unmonitored exception"]="A aplica\u00e7\u00e3o encontrou uma excep\u00e7\u00e3o n\u00e3o monitorizada. Por favor conte o administrador de systema.";pui.runtimeText.pt_PT["upload select text"]="Ficheiros Selecionados";pui.runtimeText.pt_PT["upload clear text"]="Limpar";pui.runtimeText.pt_PT["upload remove text"]="Remover";pui.runtimeText.pt_PT["upload upload text"]="Enviar";pui.runtimeText.pt_PT["csv export text"]="Exportar para Excel";pui.runtimeText.pt_PT["filter text"]="Filtrar";
pui.runtimeText.pt_PT["remove filters text"]="Remover Todos os  Filtros";pui.runtimeText.pt_PT["next link text"]="Pr\u00f3ximo";pui.runtimeText.pt_PT["previous link text"]="Anterior";pui.runtimeText.pt_PT["sort ascending text"]="Ordenar Ascendentemente";pui.runtimeText.pt_PT["sort descending text"]="Ordenar Descendentemente";pui.runtimeText.pt_PT.row="linha";pui.runtimeText.pt_PT.rows="linhas";pui.runtimeText.pt_PT.page="P\u00e1gina";pui.runtimeText.pt_PT.collapseAll="Recolher tudo";
pui.runtimeText.pt_PT.expandAll="Expandir tudo";pui.runtimeText.pt_PT.user="Utilizador";pui.runtimeText.pt_PT.password="Palavra Passe";pui.runtimeText.pt_PT.pui="Profound UI";pui.runtimeText.pt_PT["pui sign on"]="Entrar em Profound UI";pui.runtimeText.pt_PT["sign on"]="Entrar";pui.runtimeText.pt_PT["message id"]="Id da mensagem";pui.runtimeText.pt_PT.severity="Severidade";pui.runtimeText.pt_PT.date="Data";pui.runtimeText.pt_PT.time="Hora";pui.runtimeText.pt_PT.program="Programa";
pui.runtimeText.pt_PT.procedure="Procedimento";pui.runtimeText.pt_PT.lines="Linha(s)";pui.runtimeText.pt_PT.message="Mensagem";pui.runtimeText.pt_PT["new session"]="Nova Sess\u00e3o";pui.runtimeText.pt_PT.close="Fechar";pui.runtimeText.pt_PT["current password"]="Palavra Chave Actual";pui.runtimeText.pt_PT["new password"]="Palavra Chave Nova";pui.runtimeText.pt_PT["repeat new password"]="Repetir Palavra Chave";pui.runtimeText.pt_PT.submit="Submeter";pui.runtimeText.pt_PT.exit="Sair";
pui.runtimeText.pt_PT.warning="Aviso";pui.runtimeText.pt_PT["change password"]="Alterar Palavra Chave";pui.runtimeText.pt_PT.cancel="Cancelar";pui.runtimeText.pt_PT["find text"]="Encontrar";pui.runtimeText.pt_PT["remove filter"]="Retirar filtro";pui.Hb("pt_PT","pt_BR");pui.runtimeMsg.pt_BR["upload file limit"]="Limite de &1 arquivo(s) excedido.";pui.runtimeMsg.pt_BR["upload size limit"]="Limite de &1MB por arquivo excedido";pui.runtimeMsg.pt_BR["upload no files"]="N\u00e3o h\u00e1 arvquivos selecionados.";
pui.runtimeMsg.pt_BR["upload duplicate file"]="Foram selecionados arvquivos em duplicado.";pui.runtimeMsg.pt_BR["upload file exists"]="Um ou mais arquivos j\u00e1 existem no sistema de arquivos.";pui.runtimeMsg.pt_BR["file required"]="Deve seleccionar pelo menos um arquivo.";pui.runtimeText.pt_BR["upload select text"]="Arquivos Selecionados";pui.runtimeText.pt_BR.row="fileira";pui.runtimeText.pt_BR.rows="fileiras";pui.runtimeMsg.pt_BR["upload invalid type"]="Um ou mais arquivos s\u00e3o de tipo inv\u00e1lido.";
pui.runtimeMsg.pt_BR["session timed out"]="A sua sess\u00e3o expirou.";pui.Hb("en_US","es_ES");pui.runtimeMsg.es_ES.closeMessage="Esto cerrar\u00e1 su sesi\u00f3n.";pui.runtimeMsg.es_ES["no connection message"]="No es posible establecer ligaci\u00f3n al servidor. Verifique la ligaci\u00f3n y \u00e9l intente de nuevo.";pui.runtimeMsg.es_ES["upload file limit"]="L\u00edmite de &1 archivo(s) excedido.";pui.runtimeMsg.es_ES["upload size limit"]="L\u00edmite de &1MB por archivo excedido";
pui.runtimeMsg.es_ES["upload no files"]="No hay archivos seleccionados.";pui.runtimeMsg.es_ES["upload duplicate file"]="Archivos seleccionados en duplicado.";pui.runtimeMsg.es_ES["upload file exists"]="Uno o m\u00e1s archivos ya existen en lo sistema de archivos.";pui.runtimeMsg.es_ES["upload prevented"]="Operaci\u00f3n embargada por 'exit program'.";pui.runtimeMsg.es_ES["upload input limit"]="El l\u00edmite del tama\u00f1o total del 'input' fue excedido.";
pui.runtimeMsg.es_ES["upload no session"]="No est\u00e1 conectado con una sesi\u00f3n v\u00e1lida.";pui.runtimeMsg.es_ES["upload timeout"]="El tiempo l\u00edmite por la transacci\u00f3n fue excedido.";pui.runtimeMsg.es_ES["upload invalid response"]="No hay contestaci\u00f3n del servidor o ella es inv\u00e1lida.";pui.runtimeMsg.es_ES["close browser text"]="Para terminar el proceso de cierre de la sesi\u00f3n, por favor cierre el browser.";pui.runtimeMsg.es_ES["session ended text"]="Su sesi\u00f3n fue cerrada.";
pui.runtimeMsg.es_ES["outside ucs2"]="Caracteres fuera de la gama UCS-2.";pui.runtimeMsg.es_ES["invalid number"]="&1 no es un numero v\u00e1lido.";pui.runtimeMsg.es_ES["invalid length"]="&1 tiene longitud o casas decimales incorrectos.";pui.runtimeMsg.es_ES["invalid decimal"]="&1 tiene excesivas casas decimales. (max: &2)";pui.runtimeMsg.es_ES["invalid choice"]='"&1" es inv\u00e1lido. Las opciones v\u00e1lidas son: "&2" ou "&3".';pui.runtimeMsg.es_ES["invalid date"]='"&1" no es una fecha v\u00e1lida. Ejemplo del formato correcto: &2';
pui.runtimeMsg.es_ES["invalid time"]='"&1" no es un valor de tiempo correcto. Ejemplo del formato correcto: &2';pui.runtimeMsg.es_ES["invalid time stamp"]='"&1" no es un registro del tiempo v\u00e1lido. Ejemplo del formato correcto: &2';pui.runtimeMsg.es_ES["invalid percent"]="&1 no es un valor decimal.";pui.runtimeMsg.es_ES["invalid digits"]='"&1" contiene demasiado d\u00edgitos. Max: &2';pui.runtimeMsg.es_ES["exceeds whole"]='"&1" excede el n\u00famero m\u00e1ximo de d\u00edgitos para la parte num\u00e9rica del campo (&2 digits).';
pui.runtimeMsg.es_ES["exceeds decimal"]='"&1" excede el n\u00famero m\u00e1ximo de d\u00edgitos para la parte decimal del campo (&2 digits).';pui.runtimeMsg.es_ES["zip too long"]="El c\u00f3digo postal es demasiado grande. (M\u00e1ximo: &1 digits)";pui.runtimeMsg.es_ES["phone too long"]="El n\u00famero de tel\u00e9fono es demasiado grande. (M\u00e1ximo: &1 digits)";pui.runtimeMsg.es_ES["ssno too long"]="El c\u00f3digo de la Seguridad Social es demasiado grande. (M\u00e1ximo: &1 digits)";
pui.runtimeMsg.es_ES["invalid custom val"]="Validaci\u00f3n de funci\u00f3n custom inv\u00e1lida.";pui.runtimeMsg.es_ES["error custom val"]="Error en la validaci\u00f3n de funci\u00f3n costum.";pui.runtimeMsg.es_ES.ME="Campo de entrada obligatorio. Usted debe incorporar datos.";pui.runtimeMsg.es_ES.MF="Campo de introducci\u00f3n total obligatoria. Usted debe llenar la caja de entrada totalmente .";pui.runtimeMsg.es_ES.required="El valor no puede estar en blanco. Se requiere este campo.";
pui.runtimeMsg.es_ES["file required"]="Debe seleccionar al menos un archivo.";pui.runtimeMsg.es_ES["signature overflow"]="La imagen de la firma excede el n\u00famero m\u00e1ximo de los bytes disponibles para su almacenaje. Por favor borre la caja de la firma e intente de nuevo .";pui.runtimeMsg.es_ES.validValues="El valor introducido es inv\u00e1lido. Valores v\u00e1lidos son: ";pui.runtimeMsg.es_ES["upload invalid type"]="Uno o m\u00e1s archivos son de tipo inv\u00e1lido.";
pui.runtimeMsg.es_ES["invalid email"]="direcci\u00f3n de correo electr\u00f3nico no es v\u00e1lida.";pui.runtimeMsg.es_ES["session timed out"]="El tiempo de su sesi\u00f3n ha expirado.";pui.runtimeMsg.es_ES["invalid low range"]="El valor debe ser mayor o igual a &1";pui.runtimeMsg.es_ES["invalid high range"]="El valor debe ser menor o igual a &1";pui.runtimeMsg.es_ES["invalid range"]="El valor debe estar comprendido entre &1 y &2";pui.runtimeMsg.es_ES["unmonitored exception"]="Este programa ha encontrado algunas excepciones no monitorieadas. Favor contactar al administrador del sistema para su ayuda.";
pui.runtimeText.es_ES["upload select text"]="Archivos Seleccionados";pui.runtimeText.es_ES["upload clear text"]="Borrar";pui.runtimeText.es_ES["upload remove text"]="Remover";pui.runtimeText.es_ES["upload upload text"]="Cargar";pui.runtimeText.es_ES["csv export text"]="Exportar para Excel";pui.runtimeText.es_ES["filter text"]="Filtrar";pui.runtimeText.es_ES["remove filters text"]="Remover Todos os  Filtros";pui.runtimeText.es_ES["next link text"]="Pr\u00f3ximo";
pui.runtimeText.es_ES["previous link text"]="Anterior";pui.runtimeText.es_ES["sort ascending text"]="Ordenaci\u00f3n Ascendente";pui.runtimeText.es_ES["sort descending text"]="Ordenaci\u00f3n Descendente";pui.runtimeText.es_ES.row="l\u00ednea";pui.runtimeText.es_ES.rows="l\u00edneas";pui.runtimeText.es_ES.page="P\u00e1gina";pui.runtimeText.es_ES.collapseAll="Contraer todo";pui.runtimeText.es_ES.expandAll="Expandir todo";pui.runtimeText.es_ES.user="Usuario";pui.runtimeText.es_ES.password="Contrase\u00f1a";
pui.runtimeText.es_ES.pui="Profound UI";pui.runtimeText.es_ES["pui sign on"]="Profound UI Ingreso";pui.runtimeText.es_ES["sign on"]="Ingreso";pui.runtimeText.es_ES["message id"]="Identificacion de mensaje";pui.runtimeText.es_ES.severity="Severidad";pui.runtimeText.es_ES.date="Fecha";pui.runtimeText.es_ES.time="Hora";pui.runtimeText.es_ES.program="Programa";pui.runtimeText.es_ES.procedure="Procedimiento";pui.runtimeText.es_ES.lines="Linea(s)";pui.runtimeText.es_ES.message="Mensaje";
pui.runtimeText.es_ES["new session"]="Nueva sesi\u00f3n";pui.runtimeText.es_ES.close="Cerrar";pui.runtimeText.es_ES["current password"]="Contrase\u00f1a Actual";pui.runtimeText.es_ES["new password"]="Nueva contrase\u00f1a";pui.runtimeText.es_ES["repeat new password"]="Repetir nueva contrase\u00f1a";pui.runtimeText.es_ES.submit="Enviar";pui.runtimeText.es_ES.exit="Salir";pui.runtimeText.es_ES.warning="Advertencia";pui.runtimeText.es_ES["change password"]="Cambiar contrase\u00f1a";
pui.runtimeText.es_ES.cancel="Cancelar";pui.runtimeText.es_ES["find text"]="Encontrar";pui.runtimeText.es_ES["remove filter"]="Quitar filtro";pui.Hb("es_ES","es_MX");pui.runtimeMsg.es_MX.closeMessage="Esto finalizar\u00e1 su sesi\u00f3n.";pui.runtimeMsg.es_MX["no connection message"]="No se puede accesar el servidor. Verifique su conexi\u00f3n y trate de nuevo.";pui.runtimeMsg.es_MX["upload file limit"]="L\u00edmite de &1 archivo(s) excedido.";pui.runtimeMsg.es_MX["upload size limit"]="L\u00edmite de &1MB por archivo excedido";
pui.runtimeMsg.es_MX["upload no files"]="No hay archivos seleccionados.";pui.runtimeMsg.es_MX["upload duplicate file"]="Archivos duplicados seleccionados.";pui.runtimeMsg.es_MX["upload file exists"]="Uno a m\u00e1s archivos ya existen en el sistema de archivos.";pui.runtimeMsg.es_MX["upload prevented"]="Operaci\u00f3n evitada por programa de salida.";pui.runtimeMsg.es_MX["upload input limit"]="L\u00edmite de tama\u00f1o total de entrada excedido";pui.runtimeMsg.es_MX["upload no session"]="No est\u00e1 conectado en una sesi\u00f3n v\u00e1lida.";
pui.runtimeMsg.es_MX["upload timeout"]="La transacci\u00f3n excedi\u00f3 el l\u00edmite de tiempo.";pui.runtimeMsg.es_MX["upload invalid response"]="La respuesta del servidor es inv\u00e1lida o no se encuentra.";pui.runtimeMsg.es_MX["close browser text"]="Para completar el proceso de cierre de sesi\u00f3n, favor cerrar la ventana de su navegador.";pui.runtimeMsg.es_MX["session ended text"]="Su sesi\u00f3n ha terminado.";pui.runtimeMsg.es_MX["outside ucs2"]="Los caracteres est\u00e1n fuera del rango del UCS-2.";
pui.runtimeMsg.es_MX["invalid number"]="&1 no es un n\u00famero v\u00e1lido.";pui.runtimeMsg.es_MX["invalid length"]="&1 tiene un largo de datos, o posici\u00f3n decimal incorrectos.";pui.runtimeMsg.es_MX["invalid decimal"]="&1 tiene demasiadas posiciones decimales. (M\u00e1x.: &2)";pui.runtimeMsg.es_MX["invalid choice"]='"&1" es inv\u00e1lido. Las opciones v\u00e1lidas son: "&2" o "&3".';pui.runtimeMsg.es_MX["invalid date"]='"&1" no es una fecha  v\u00e1lida. Ejemplo del formato : &2';
pui.runtimeMsg.es_MX["invalid time"]='"&1" no es una la hora v\u00e1lida. Ejemplo del formato : &2';pui.runtimeMsg.es_MX["invalid time stamp"]='"&1" no es una fecha-hora v\u00e1lida. Ejemplo del formato: &2';pui.runtimeMsg.es_MX["invalid percent"]="&1 no es un decimal v\u00e1lido.";pui.runtimeMsg.es_MX["invalid digits"]='"&1"contiene demasiados d\u00edgitos. M\u00e1x: &2';pui.runtimeMsg.es_MX["exceeds whole"]='"&1" excede el n\u00famero m\u00e1ximo de d\u00edgitos para la porci\u00f3n del n\u00famero entero (&2 d\u00edgitos).';
pui.runtimeMsg.es_MX["exceeds decimal"]='"&1" excede el n\u00famero m\u00e1ximo de d\u00edgitos para la porci\u00f3n decimal (&2 d\u00edgitos).';pui.runtimeMsg.es_MX["zip too long"]="C\u00f3digo de \u00e1rea es demasiado largo. (M\u00e1ximo: &1 d\u00edgitos)";pui.runtimeMsg.es_MX["phone too long"]="N\u00famero de Tel\u00e9fono es demasiado largo. (M\u00e1ximo: &1 d\u00edgitos)";pui.runtimeMsg.es_MX["ssno too long"]="N\u00famero de Seguro Social muy largo. (M\u00e1ximo: &1 d\u00edgitos)";
pui.runtimeMsg.es_MX["invalid custom val"]="Funci\u00f3n de validaci\u00f3n personalizada es inv\u00e1lida.";pui.runtimeMsg.es_MX["error custom val"]="Error en la validaci\u00f3n de la funci\u00f3n personalizada.";pui.runtimeMsg.es_MX["invalid email"]="direcci\u00f3n de correo electr\u00f3nico no es v\u00e1lida.";pui.runtimeMsg.es_MX.ME="Campo de entrada obligatorio. Debe ingresar los datos.";pui.runtimeMsg.es_MX.MF="Campo de relleno obligatorio. Debe rellenar el cuadro de entrada completamente.";
pui.runtimeMsg.es_MX.required="El valor no puede ser blanco. Este campo es requerido.";pui.runtimeMsg.es_MX["file required"]="Debe seleccionar al menos un archivo.";pui.runtimeMsg.es_MX["signature overflow"]="El tama\u00f1o del dibujo de la firma excede el n\u00famero m\u00e1ximo de bytes disponible para almacenar la firma. Por favor borre el \u00e1rea de firma y trate de nuevo.";pui.runtimeMsg.es_MX.validValues="El valor ingresado es invalido. Los valores v\u00e1lidos son: ";
pui.runtimeMsg.es_MX["session timed out"]="El tiempo de su sesi\u00f3n ha expirado.";pui.runtimeText.es_MX["upload select text"]="Seleccionar Archivos";pui.runtimeText.es_MX["upload clear text"]="Limpiar";pui.runtimeText.es_MX["upload remove text"]="Eliminar";pui.runtimeText.es_MX["upload upload text"]="Subir";pui.runtimeText.es_MX["csv export text"]="Exportar a Excel";pui.runtimeText.es_MX["filter text"]="Filtrar";pui.runtimeText.es_MX["remove filters text"]="Eliminar todos los filtros";
pui.runtimeText.es_MX["next link text"]="Siguiente";pui.runtimeText.es_MX["previous link text"]="Anterior";pui.runtimeText.es_MX["sort ascending text"]="Orden Ascendente";pui.runtimeText.es_MX["sort descending text"]="Orden Descendente";pui.runtimeText.es_MX.row="fila";pui.runtimeText.es_MX.rows="filas";pui.runtimeText.es_MX.page="P\u00e1gina";pui.Hb("en_US","fr_FR");pui.runtimeMsg.fr_FR.closeMessage="Ceci terminera votre session.";pui.runtimeMsg.fr_FR["no connection message"]="Impossible d'\u00e9tablir une connexion au serveur. S'il vous pla\u00eet, v\u00e9rifiez la connexion et essayez \u00e0 nouveau.";
pui.runtimeMsg.fr_FR["upload file limit"]="Limite de &1 fichier(s) d\u00e9pass\u00e9e.";pui.runtimeMsg.fr_FR["upload size limit"]="Limite de &1MB par fichier d\u00e9pass\u00e9e.";pui.runtimeMsg.fr_FR["upload no files"]="Pas de fichiers s\u00e9lectionn\u00e9s.";pui.runtimeMsg.fr_FR["upload duplicate file"]="Fichiers s\u00e9lectionn\u00e9s en double.";pui.runtimeMsg.fr_FR["upload file exists"]="Un ou plusieurs fichiers existent d\u00e9j\u00e0 dans le syst\u00e8me de fichiers.";
pui.runtimeMsg.fr_FR["upload prevented"]="Op\u00e9ration emp\u00each\u00e9e par \u00abexit program\u00bb.";pui.runtimeMsg.fr_FR["upload input limit"]="Limite de taille totale des donn\u00e9es d\u00e9pass\u00e9e.";pui.runtimeMsg.fr_FR["upload no session"]="Vous n'\u00eates pas connect\u00e9(e) \u00e0 une session valide.";pui.runtimeMsg.fr_FR["upload timeout"]="Le temps limite pour la transaction a \u00e9t\u00e9 d\u00e9pass\u00e9.";pui.runtimeMsg.fr_FR["upload invalid response"]="Le serveur ne r\u00e9pond pas ou n'est pas joignable.";
pui.runtimeMsg.fr_FR["close browser text"]="Pour terminer la session, veuillez fermez la fen\u00eatre du navigateur.";pui.runtimeMsg.fr_FR["session ended text"]="Votre session est termin\u00e9e.";pui.runtimeMsg.fr_FR["outside ucs2"]="Caract\u00e8res en dehors de la norme UCS-2.";pui.runtimeMsg.fr_FR["invalid number"]="&1 n'est pas un nombre valide.";pui.runtimeMsg.fr_FR["invalid length"]="&1 a une longueur ou une position de d\u00e9cimale incorrecte.";pui.runtimeMsg.fr_FR["invalid decimal"]="&1 comporte trop de d\u00e9cimales. (max: &2)";
pui.runtimeMsg.fr_FR["invalid choice"]='"&1" est incorrect. Les choix possibles sont: "&2" ou "&3".';pui.runtimeMsg.fr_FR["invalid date"]='"&1" n\'est pas une date valide. Exemple de format correct: &2';pui.runtimeMsg.fr_FR["invalid time"]='"&1" n\'est pas une heure valide. Exemple de format correct: &2';pui.runtimeMsg.fr_FR["invalid time stamp"]='"&1" n\'est pas un horodatage valide. Exemple de format correct: &2';pui.runtimeMsg.fr_FR["invalid percent"]="&1 n'est pas une d\u00e9cimale valide.";
pui.runtimeMsg.fr_FR["invalid digits"]='"&1" contient un nombre de chiffres trop \u00e9l\u00e9v\u00e9. Max: &2';pui.runtimeMsg.fr_FR["exceeds whole"]='"&1" d\u00e9passe le nombre maximum de chiffres pour la partie num\u00e9rique du champ (&2 digits).';pui.runtimeMsg.fr_FR["exceeds decimal"]='"&1" d\u00e9passe le nombre maximum de chiffres pour la partie d\u00e9cimale du champ (&2 digits).';pui.runtimeMsg.fr_FR["zip too long"]="Le code postal est trop long. (Maximum: &1 digits)";
pui.runtimeMsg.fr_FR["phone too long"]="Le num\u00e9ro de t\u00e9l\u00e9phone est trop long. (Maximum: &1 digits)";pui.runtimeMsg.fr_FR["ssno too long"]="Le code de s\u00e9curit\u00e9 sociale est trop long. (Maximum: &1 digits)";pui.runtimeMsg.fr_FR["invalid custom val"]="La fonction de validation personnalis\u00e9e est invalide.";pui.runtimeMsg.fr_FR["error custom val"]="Erreur dans la fonction de validation personnalis\u00e9e.";pui.runtimeMsg.fr_FR.ME="Ce champ est obligatoire.";
pui.runtimeMsg.fr_FR.MF="Tous les caract\u00e8res de ce champ doivent \u00eatre saisis.";pui.runtimeMsg.fr_FR.required="Ce champ est obligatoire et ne peut \u00eatre \u00e0 blanc.";pui.runtimeMsg.fr_FR["file required"]="Vous devez s\u00e9lectionner au moins un fichier.";pui.runtimeMsg.fr_FR["signature overflow"]="L'image de la signature d\u00e9passe le nombre maximum de bytes disponibles pour son stockage. S'il vous pla\u00eet, effacez la signature et essayez \u00e0 nouveau.";
pui.runtimeMsg.fr_FR.validValues="La valeur saisie n'est pas valide. Les valeurs valides sont :";pui.runtimeMsg.fr_FR["upload invalid type"]="Un ou plusieurs fichiers sont de type invalide.";pui.runtimeMsg.fr_FR["invalid email"]="Adresse email invalide.";pui.runtimeMsg.fr_FR["session timed out"]="Votre session a expir\u00e9.";pui.runtimeMsg.fr_FR["invalid low range"]="La valeur doit \u00eatre sup\u00e9rieure ou \u00e9gale \u00e0 &1";pui.runtimeMsg.fr_FR["invalid high range"]="La valeur doit \u00eatre inf\u00e9rieure ou \u00e9gale \u00e0 &1";
pui.runtimeMsg.fr_FR["invalid range"]="La valeur doit \u00eatre comprise entre &1 et &2.";pui.runtimeMsg.fr_FR["unmonitored exception"]="Le programme a rencontr\u00e9 une erreur non pr\u00e9vue. Pri\u00e8re de contacter l'administrateur syst\u00e8me pour toute assistance.";pui.runtimeText.fr_FR["upload select text"]="Fichiers s\u00e9lectionn\u00e9s ";pui.runtimeText.fr_FR["upload clear text"]="Effacer ";pui.runtimeText.fr_FR["upload remove text"]="Retirer ";
pui.runtimeText.fr_FR["upload upload text"]="Envoyer ";pui.runtimeText.fr_FR["csv export text"]="Exporter vers Excel ";pui.runtimeText.fr_FR["filter text"]="Filtrer ";pui.runtimeText.fr_FR["remove filters text"]="Supprimer tous les filtres ";pui.runtimeText.fr_FR["next link text"]="Suivante ";pui.runtimeText.fr_FR["previous link text"]="Pr\u00e9c\u00e9dente ";pui.runtimeText.fr_FR["sort ascending text"]="Trier dans l'ordre croissant";pui.runtimeText.fr_FR["sort descending text"]="Trier dans l'ordre d\u00e9croissant";
pui.runtimeText.fr_FR.row="ligne";pui.runtimeText.fr_FR.rows="lignes";pui.runtimeText.fr_FR.page="Page";pui.runtimeText.fr_FR.collapseAll="Tout replier";pui.runtimeText.fr_FR.expandAll="Tout d\u00e9plier";pui.runtimeText.fr_FR.user="Utilisateur";pui.runtimeText.fr_FR.password="Mot de passe";pui.runtimeText.fr_FR.pui="Profound UI";pui.runtimeText.fr_FR["pui sign on"]="Identification Profound UI";pui.runtimeText.fr_FR["sign on"]="Identification";pui.runtimeText.fr_FR["message id"]="N\u00b0 du message";
pui.runtimeText.fr_FR.severity="S\u00e9v\u00e9rit\u00e9";pui.runtimeText.fr_FR.date="Date";pui.runtimeText.fr_FR.time="Heure";pui.runtimeText.fr_FR.program="Programme";pui.runtimeText.fr_FR.procedure="Proc\u00e9dure";pui.runtimeText.fr_FR.lines="Ligne(s)";pui.runtimeText.fr_FR.message="Message";pui.runtimeText.fr_FR["new session"]="Nouvelle session";pui.runtimeText.fr_FR.close="Fermer";pui.runtimeText.fr_FR["current password"]="Mot de passe actuel";pui.runtimeText.fr_FR["new password"]="Nouveau mot de passe";
pui.runtimeText.fr_FR["repeat new password"]="R\u00e9p\u00e9ter le nouveau mot de passe";pui.runtimeText.fr_FR.submit="Soumettre";pui.runtimeText.fr_FR.exit="Quitter";pui.runtimeText.fr_FR.warning="Avertissement";pui.runtimeText.fr_FR["change password"]="Modifier le mot de passe";pui.runtimeText.fr_FR.cancel="Annuler";pui.runtimeText.fr_FR["find text"]="Trouver";pui.runtimeText.fr_FR["remove filter"]="Supprimer le filtre";pui.Hb("en_US","fr_CA");pui.runtimeMsg.fr_CA.closeMessage="Votre session sera ferm\u00e9e.";
pui.runtimeMsg.fr_CA["no connection message"]="Impossible d'acc\u00e9der le serveur.  Veuillez v\u00e9rifier votre connexion et r\u00e9essayer.";pui.runtimeMsg.fr_CA["upload file limit"]="La limite de &1 fichier(s) est d\u00e9pass\u00e9e.";pui.runtimeMsg.fr_CA["upload size limit"]="La limite de &1MB par fichier est d\u00e9pass\u00e9e.";pui.runtimeMsg.fr_CA["upload no files"]="Aucun fichier s\u00e9lectionn\u00e9.";pui.runtimeMsg.fr_CA["upload duplicate file"]="Doublon(s) dans les fichiers s\u00e9lectionn\u00e9s.";
pui.runtimeMsg.fr_CA["upload file exists"]="Un ou plusieurs fichier(s) existe d\u00e9j\u00e0 sur le syst\u00e8me.";pui.runtimeMsg.fr_CA["upload prevented"]="L'op\u00e9ration est bloqu\u00e9e par le programme de sortie.";pui.runtimeMsg.fr_CA["upload input limit"]="L'entr\u00e9e de donn\u00e9es d\u00e9passe la limite.";pui.runtimeMsg.fr_CA["upload no session"]="Il n'y a aucune connection \u00e0 une session valide.";pui.runtimeMsg.fr_CA["upload timeout"]="La transaction a expir\u00e9e.";
pui.runtimeMsg.fr_CA["upload invalid response"]="La r\u00e9ponse du serveur est manquante ou invalide.";pui.runtimeMsg.fr_CA["close browser text"]="Veuillez fermer votre navigateur pour compl\u00e9ter le processus de d\u00e9connection.";pui.runtimeMsg.fr_CA["session ended text"]="Votre session s'est termin\u00e9e.";pui.runtimeMsg.fr_CA["outside ucs2"]="Caract\u00e8res non-permis parmi les valeurs permises dans le UCS-2.";pui.runtimeMsg.fr_CA["invalid number"]="&1 n'est pas un num\u00e9ro valide.";
pui.runtimeMsg.fr_CA["invalid length"]="&1 n'a pas le bon nombre de caract\u00e8res ou de d\u00e9cimales.'";pui.runtimeMsg.fr_CA["invalid decimal"]="&1 contient trop de d\u00e9cimales. (max: &2)";pui.runtimeMsg.fr_CA["invalid choice"]='"&1" est invalide. Les choix valides sont: "&2" ou "&3".';pui.runtimeMsg.fr_CA["invalid date"]='"&1" est une date invalide. Exemple de format: &2';pui.runtimeMsg.fr_CA["invalid time"]='"&1" est une heure invalide. Exemple de format: &2';
pui.runtimeMsg.fr_CA["invalid time stamp"]='"&1" est une date et heure invalide. Exemple de format: &2';pui.runtimeMsg.fr_CA["invalid percent"]="&1 n'est pas une d\u00e9cimale valide.";pui.runtimeMsg.fr_CA["invalid digits"]='"&1" contient trop de caract\u00e8res. Max: &2';pui.runtimeMsg.fr_CA["exceeds whole"]='"&1" d\u00e9passe le nombre de caract\u00e8res maximum pour le nombre avant les d\u00e9cimales (&2 caract\u00e8res).';pui.runtimeMsg.fr_CA["exceeds decimal"]='"&1" d\u00e9passe le nombre de caract\u00e8res maximum pour les d\u00e9cimales (&2 caract\u00e8res).';
pui.runtimeMsg.fr_CA["zip too long"]="Le code postal est trop long. (Maximum: &1 caract\u00e8res)";pui.runtimeMsg.fr_CA["phone too long"]="Le num\u00e9ro de t\u00e9l\u00e9phone est trop long. (Maximum: &1 caract\u00e8res)";pui.runtimeMsg.fr_CA["ssno too long"]="Le num\u00e9ro d'assurance sociale est trop long. (Maximum: &1 caract\u00e8res)";pui.runtimeMsg.fr_CA["invalid custom val"]="La fonction de validation est invalide.";pui.runtimeMsg.fr_CA["error custom val"]="Erreur dans la fonction de validation.";
pui.runtimeMsg.fr_CA.ME="Le champ est obligatoire.";pui.runtimeMsg.fr_CA.MF="Chaque caract\u00e8re doit \u00eatre remplit pour ce champ.";pui.runtimeMsg.fr_CA.required="Le champ doit \u00eatre remplit.";pui.runtimeMsg.fr_CA["file required"]="Au moins un fichier doit \u00eatre choisi.";pui.runtimeMsg.fr_CA["signature overflow"]="La grosseur de la signature d\u00e9passe l'espace de stockage permis. Veuillez effacer la signature et r\u00e9essayer.";pui.runtimeMsg.fr_CA.validValues="La valeur entr\u00e9e est invalide. Les valeurs valides sont: ";
pui.runtimeMsg.fr_CA["upload invalid type"]="Un ou plusieurs fichiers sont de type invalide.";pui.runtimeMsg.fr_CA["invalid email"]="L'adresse courriel est invalide.";pui.runtimeMsg.fr_CA["session timed out"]="Votre session est expir\u00e9e.";pui.runtimeMsg.fr_CA["invalid low range"]="La valeur doit \u00eatre sup\u00e9rieure ou \u00e9gale \u00e0 &1";pui.runtimeMsg.fr_CA["invalid high range"]="La valeur doit \u00eatre inf\u00e9rieure ou \u00e9gale \u00e0 &1";pui.runtimeMsg.fr_CA["invalid range"]="La valeur doit se situer entre &1 et &2";
pui.runtimeMsg.fr_CA["unmonitored exception"]="Le programme a rencontr\u00e9 une erreur non control\u00e9e. Veuillez contacter l'administrateur du syst\u00e8me.";pui.runtimeText.fr_CA["upload select text"]="S\u00e9lection de fichiers";pui.runtimeText.fr_CA["upload clear text"]="Effacer";pui.runtimeText.fr_CA["upload remove text"]="Supprimer";pui.runtimeText.fr_CA["upload upload text"]="T\u00e9l\u00e9versement";pui.runtimeText.fr_CA["csv export text"]="Exporter vers Excel ";
pui.runtimeText.fr_CA["filter text"]="Filtrer";pui.runtimeText.fr_CA["remove filters text"]="Enlever les filtres";pui.runtimeText.fr_CA["next link text"]="Suivante";pui.runtimeText.fr_CA["previous link text"]="Pr\u00e9c\u00e9dente";pui.runtimeText.fr_CA["sort ascending text"]="Tri ascendant";pui.runtimeText.fr_CA["sort descending text"]="Tri descendant";pui.runtimeText.fr_CA.row="rang\u00e9e";pui.runtimeText.fr_CA.rows="rang\u00e9es";pui.runtimeText.fr_CA.page="Page";
pui.runtimeText.fr_CA.collapseAll="R\u00e9duire tout";pui.runtimeText.fr_CA.expandAll="Ouvrir tout";pui.runtimeText.fr_CA.user="Utilisateur";pui.runtimeText.fr_CA.password="Mot de passe";pui.runtimeText.fr_CA.pui="Profound UI";pui.runtimeText.fr_CA["pui sign on"]="Connection Profound UI";pui.runtimeText.fr_CA["sign on"]="Connection";pui.runtimeText.fr_CA["message id"]="Identifiant de message";pui.runtimeText.fr_CA.severity="S\u00e9v\u00e9rit\u00e9";pui.runtimeText.fr_CA.date="Date";
pui.runtimeText.fr_CA.time="Heure";pui.runtimeText.fr_CA.program="Programme";pui.runtimeText.fr_CA.procedure="Proc\u00e9dure";pui.runtimeText.fr_CA.lines="Ligne(s)";pui.runtimeText.fr_CA.message="Message";pui.runtimeText.fr_CA["new session"]="Nouvelle Session";pui.runtimeText.fr_CA.close="Fermer";pui.runtimeText.fr_CA["current password"]="Mot de passe actuel";pui.runtimeText.fr_CA["new password"]="Nouveau mot de passe";pui.runtimeText.fr_CA["repeat new password"]="R\u00e9p\u00e9ter le mot de passe";
pui.runtimeText.fr_CA.submit="Soumettre";pui.runtimeText.fr_CA.exit="Quitter";pui.runtimeText.fr_CA.warning="Avertissement";pui.runtimeText.fr_CA["change password"]="Changer mot de passe";pui.runtimeText.fr_CA.cancel="Annuler";pui.runtimeText.fr_CA["find text"]="Trouver";pui.runtimeText.fr_CA["remove filter"]="Supprimer le filtre";pui.Hb("en_US","it_IT");pui.runtimeMsg.it_IT.closeMessage="Questo terminer\u00e0 la sessione.";pui.runtimeMsg.it_IT["no connection message"]="Impossibile raggiungere il server. Controllare la connessione e riprovare.";
pui.runtimeMsg.it_IT["upload file limit"]="Limite di &1 file superato.";pui.runtimeMsg.it_IT["upload size limit"]="Limite di &1MB per file superato.";pui.runtimeMsg.it_IT["upload no files"]="Nessun file selezionato.";pui.runtimeMsg.it_IT["upload duplicate file"]="Sono stati selezionati file duplicati.";pui.runtimeMsg.it_IT["upload file exists"]="Uno o pi\u00f9 file sono gi\u00e0 presenti nel file system.";pui.runtimeMsg.it_IT["upload prevented"]="Operazione impedita da exit program.";
pui.runtimeMsg.it_IT["upload input limit"]="Superato limite della dimensione totale input.";pui.runtimeMsg.it_IT["upload no session"]="Non collegato ad una sessione valida.";pui.runtimeMsg.it_IT["upload timeout"]="Scaduto il tempo per la transazione.";pui.runtimeMsg.it_IT["upload invalid response"]="La risposta del server \u00e8 mancante o non \u00e8 valida.";pui.runtimeMsg.it_IT["close browser text"]="Per completare la chiusura della sessione, chiudere la finestra del browser.";
pui.runtimeMsg.it_IT["session ended text"]="La sessione si \u00e8 conclusa.";pui.runtimeMsg.it_IT["outside ucs2"]="Caratteri fuori dall'ambito UCS-2.";pui.runtimeMsg.it_IT["invalid number"]="&1 non \u00e8 un numero valido.";pui.runtimeMsg.it_IT["invalid length"]="&1 ha lunghezza dati o posizione decimale errata.";pui.runtimeMsg.it_IT["invalid decimal"]="&1 ha troppe cifre decimali. (max: &2) ";pui.runtimeMsg.it_IT["invalid choice"]='"&1" non \u00e8 valido. Scelte valide sono: "&2" o "&3".';
pui.runtimeMsg.it_IT["invalid date"]='"&1" non \u00e8 una data valida. Esempio di formato corretto: &2';pui.runtimeMsg.it_IT["invalid time"]='"&1" non \u00e8 un valore di tempo corretto. Esempio di formato corretto: &2';pui.runtimeMsg.it_IT["invalid time stamp"]='"&1" non \u00e8 un riferimento di tempo valido.  Esempio di formato corretto: &2';pui.runtimeMsg.it_IT["invalid percent"]="&1 non \u00e8 un decimale valido.";pui.runtimeMsg.it_IT["invalid digits"]='"&1" contiene troppe cifre. Max: &2';
pui.runtimeMsg.it_IT["exceeds whole"]='"&1" supera il numero massimo di cifre per la parte intera del numero (&2 digits).';pui.runtimeMsg.it_IT["exceeds decimal"]='"&1" supera il numero massimo di cifre per la parte decimale (&2 digits).';pui.runtimeMsg.it_IT["zip too long"]="CAP \u00e8 troppo lungo. (Massimo: &1 cifre)";pui.runtimeMsg.it_IT["phone too long"]="Numero di telefono \u00e8 troppo lungo. (Massimo: &1 cifre)";pui.runtimeMsg.it_IT["ssno too long"]="Codice fiscale \u00e8 troppo lungo. (Massimo: &1 cifre)";
pui.runtimeMsg.it_IT["invalid custom val"]="Non valida funzione di validazione personalizzata.";pui.runtimeMsg.it_IT["error custom val"]="Errore nella funzione di convalida personalizzata.";pui.runtimeMsg.it_IT.ME="Campo con obbligo di riempimento. \u00c8 necessario immettere dati.";pui.runtimeMsg.it_IT.MF="Campo con obbligo di riempimento. \u00c8 necessario riempire completamente la casella dati.";pui.runtimeMsg.it_IT.required="Il valore non pu\u00f2 essere vuoto. Questo campo \u00e8 obbligatorio.";
pui.runtimeMsg.it_IT["file required"]="\u00c8 necessario selezionare almeno un file.";pui.runtimeMsg.it_IT["signature overflow"]="La dimensione del testo firma supera il numero massimo di byte disponibili per memorizzare la firma.  Si prega di cancellare la pad per la firma elettronica e provare di nuovo.";pui.runtimeMsg.it_IT.validValues="Valore inserito non \u00e8 valido. I valori validi sono: ";pui.runtimeMsg.it_IT["upload invalid type"]="Uno o pi\u00f9 file sono di tipo non valido.";
pui.runtimeMsg.it_IT["invalid email"]="mail non valido.";pui.runtimeMsg.it_IT["session timed out"]="La tua sessione \u00e9 scaduta.";pui.runtimeMsg.it_IT["invalid low range"]="Il valore deve essere maggiore o uguale a &1";pui.runtimeMsg.it_IT["invalid high range"]="Il valore deve essere minore o uguale a &1";pui.runtimeMsg.it_IT["invalid range"]="Intervallo valido da &1 a &2";pui.runtimeMsg.it_IT["unmonitored exception"]="Il programma ha raggiunto un'eccezione non gestita. Per assistenza, si prega di contattare l'amministratore di sistema.";
pui.runtimeText.it_IT["upload select text"]="Seleziona File";pui.runtimeText.it_IT["upload clear text"]="Cancella";pui.runtimeText.it_IT["upload remove text"]="Rimuovi";pui.runtimeText.it_IT["upload upload text"]="Carica";pui.runtimeText.it_IT["csv export text"]="Esporta in Excel";pui.runtimeText.it_IT["filter text"]="Filtra";pui.runtimeText.it_IT["remove filters text"]="Rimuovi tutti i filtri";pui.runtimeText.it_IT["next link text"]="Successivo";pui.runtimeText.it_IT["previous link text"]="Precedente";
pui.runtimeText.it_IT["sort ascending text"]="Ordinare in Senso Ascendente";pui.runtimeText.it_IT["sort descending text"]="Ordinare in Senso Discendente";pui.runtimeText.it_IT.row="riga";pui.runtimeText.it_IT.rows="righe";pui.runtimeText.it_IT.page="Pagina";pui.runtimeText.it_IT.collapseAll="Comprimi tutto";pui.runtimeText.it_IT.expandAll="Espandi tutto";pui.runtimeText.it_IT.user="Utente";pui.runtimeText.it_IT.password="Password";pui.runtimeText.it_IT.pui="Profound UI";
pui.runtimeText.it_IT["pui sign on"]="Accesso Profound UI";pui.runtimeText.it_IT["sign on"]="Accesso";pui.runtimeText.it_IT["message id"]="Id Messaggio";pui.runtimeText.it_IT.severity="Gravit\u00e0";pui.runtimeText.it_IT.date="Data";pui.runtimeText.it_IT.time="Ora";pui.runtimeText.it_IT.program="Programma";pui.runtimeText.it_IT.procedure="Procedura";pui.runtimeText.it_IT.lines="Linea(e)";pui.runtimeText.it_IT.message="Messaggio";pui.runtimeText.it_IT["new session"]="Nuova Sessione";
pui.runtimeText.it_IT.close="Chiudi";pui.runtimeText.it_IT["current password"]="Password attuale";pui.runtimeText.it_IT["new password"]="Nuova Password";pui.runtimeText.it_IT["repeat new password"]="Ripeti Nuova Password";pui.runtimeText.it_IT.submit="Invia";pui.runtimeText.it_IT.exit="Esci";pui.runtimeText.it_IT.warning="Attenzione";pui.runtimeText.it_IT["change password"]="Cambia Password";pui.runtimeText.it_IT.cancel="Cancella";pui.runtimeText.it_IT["find text"]="Trovare";
pui.runtimeText.it_IT["remove filter"]="Rimuovi Filtro";pui.Hb("en_US","he_IL");pui.runtimeMsg.he_IL.closeMessage=" \u05d6\u05d4 \u05de\u05e1\u05d9\u05d9\u05dd \u05d0\u05ea \u05d4\u05e4\u05e2\u05dc\u05ea \u05d4\u05de\u05d7\u05e9\u05d1 \u05e9\u05dc\u05da.";pui.runtimeMsg.he_IL["no connection message"]=" \u05d0\u05d9\u05df \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05d4\u05d2\u05d9\u05e2 \u05dc\u05e9\u05e8\u05ea. \u05d1\u05d3\u05d5\u05e7 \u05d0\u05ea \u05d4\u05d7\u05d9\u05d1\u05d5\u05e8 \u05e9\u05dc\u05da \u05d5\u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1.";
pui.runtimeMsg.he_IL["upload file limit"]=" \u05de\u05d2\u05d1\u05dc\u05d4 \u05e9\u05dc &1 \u05e7\u05d5\u05d1\u05e5 (\u05d9\u05dd) \u05d7\u05e8\u05d2\u05d5.";pui.runtimeMsg.he_IL["upload size limit"]=' \u05de\u05d2\u05d1\u05dc\u05d4 \u05e9\u05dc \u05de"\u05d1 &1 \u05dc\u05e7\u05d5\u05d1\u05e5 \u05d7\u05e8\u05d2\u05d5.';pui.runtimeMsg.he_IL["upload no files"]=" \u05dc\u05d0 \u05e0\u05d1\u05d7\u05e8\u05d5 \u05e7\u05d1\u05e6\u05d9\u05dd.";pui.runtimeMsg.he_IL["upload duplicate file"]=" \u05e7\u05d1\u05e6\u05d9\u05dd \u05db\u05e4\u05d5\u05dc\u05d9\u05dd \u05e0\u05d1\u05d7\u05e8\u05d5.";
pui.runtimeMsg.he_IL["upload file exists"]=" \u05d0\u05d7\u05d3 \u05d0\u05d5 \u05d9\u05d5\u05ea\u05e8 \u05d4\u05e7\u05d1\u05e6\u05d9\u05dd \u05db\u05d1\u05e8 \u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e7\u05d1\u05e6\u05d9\u05dd.";pui.runtimeMsg.he_IL["upload prevented"]=" \u05d4\u05de\u05d1\u05e6\u05e2 \u05dc\u05de\u05e0\u05d5\u05e2 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05ea\u05db\u05e0\u05d9\u05ea \u05d4\u05d9\u05e6\u05d9\u05d0\u05d4.";
pui.runtimeMsg.he_IL["upload input limit"]=" \u05de\u05d2\u05d1\u05dc\u05ea \u05d2\u05d5\u05d3\u05dc \u05e7\u05dc\u05d8 \u05d4\u05db\u05d5\u05dc\u05dc \u05d7\u05e8\u05d2\u05d5.";pui.runtimeMsg.he_IL["upload no session"]=" \u05d0\u05d9\u05e0\u05d4 \u05de\u05d7\u05d5\u05d1\u05e8 \u05dc\u05d4\u05e4\u05e2\u05dc\u05ea \u05de\u05e1\u05d5\u05e3 \u05d1\u05ea\u05d5\u05e7\u05e3.";pui.runtimeMsg.he_IL["upload timeout"]=" \u05e2\u05e1\u05e7\u05d4 \u05ea\u05dd \u05d4\u05d6\u05de\u05df \u05e9\u05d4\u05d5\u05e7\u05e6\u05d1.";
pui.runtimeMsg.he_IL["upload invalid response"]=" \u05ea\u05d2\u05d5\u05d1\u05ea \u05d4\u05e9\u05e8\u05ea \u05d4\u05d9\u05d0 \u05d7\u05e1\u05e8\u05d4 \u05d0\u05d5 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9\u05ea.";pui.runtimeMsg.he_IL["close browser text"]=" \u05db\u05d3\u05d9 \u05dc\u05d4\u05e9\u05dc\u05d9\u05dd \u05d0\u05ea \u05ea\u05d4\u05dc\u05d9\u05da \u05d4\u05ea\u05e0\u05ea\u05e7\u05d5\u05ea, \u05d1\u05d1\u05e7\u05e9\u05d4 \u05dc\u05e1\u05d2\u05d5\u05e8 \u05d0\u05ea \u05d7\u05dc\u05d5\u05df \u05d4\u05d3\u05e4\u05d3\u05e4\u05df \u05e9\u05dc\u05da.";
pui.runtimeMsg.he_IL["session ended text"]=" \u05d4\u05e4\u05e2\u05dc\u05ea \u05d4\u05de\u05e1\u05d5\u05e3 \u05e9\u05dc\u05da \u05d4\u05e1\u05ea\u05d9\u05d9\u05de\u05d4.";pui.runtimeMsg.he_IL["outside ucs2"]=" \u05d4\u05ea\u05d5\u05d5\u05d9\u05dd \u05d4\u05df \u05de\u05d7\u05d5\u05e5 \u05dc\u05d8\u05d5\u05d5\u05d7 \u05e9\u05dc UCS-2.";pui.runtimeMsg.he_IL["invalid number"]=" \u05de\u05e1\u05e4\u05e8 &1 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9 ";pui.runtimeMsg.he_IL["invalid length"]=" \u05d0\u05d5\u05e8\u05da &1 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05d2\u05d5\u05d9 \u05d0\u05d5 \u05e2\u05de\u05d3\u05d4 \u05e2\u05e9\u05e8\u05d5\u05e0\u05d9\u05ea";
pui.runtimeMsg.he_IL["invalid decimal"]=" \u05de\u05e7\u05d5\u05de\u05d5\u05ea \u05e2\u05e9\u05e8\u05d5\u05e0\u05d9\u05d9\u05dd \u05e8\u05d1\u05d9\u05dd \u05de\u05d3\u05d9 &1(\u05de\u05e7\u05e1 &2)";pui.runtimeMsg.he_IL["invalid choice"]=' \u05d0\u05d9\u05e0\u05d5 \u05d7\u05d5\u05e7\u05d9\u05ea. \u05d0\u05e4\u05e9\u05e8\u05d5\u05d9\u05d5\u05ea \u05d7\u05d5\u05e7\u05d9\u05d5\u05ea \u05d4\u05df: "&2" \u05d0\u05d5 "&3" "&1"';pui.runtimeMsg.he_IL["invalid date"]=' \u05ea\u05d0\u05e8\u05d9\u05da "&1" \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9. \u05e4\u05d5\u05e8\u05de\u05d8 \u05d3\u05d5\u05d2\u05de\u05d4: &2 ';
pui.runtimeMsg.he_IL["invalid time"]=" \u05d6\u05de\u05df &1 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9. \u05e4\u05d5\u05e8\u05de\u05d8 \u05d3\u05d5\u05d2\u05de\u05d4: &2";pui.runtimeMsg.he_IL["invalid time stamp"]=' \u05d7\u05d5\u05ea\u05de\u05ea \u05d6\u05de\u05df \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9\u05ea. \u05e4\u05d5\u05e8\u05de\u05d8 \u05d3\u05d5\u05d2\u05de\u05d4: &2 "&1"';pui.runtimeMsg.he_IL["invalid percent"]=" \u05e2\u05e9\u05e8\u05d5\u05e0\u05d9 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9\u05ea &1";
pui.runtimeMsg.he_IL["invalid digits"]=" \u05d9\u05d5\u05ea\u05e8 \u05de\u05d3\u05d9 \u05e1\u05e4\u05e8\u05d5\u05ea \u05d1-&1. \u05de\u05e7\u05e1: 2&";pui.runtimeMsg.he_IL["exceeds whole"]=' \u05e2\u05d5\u05dc\u05d4 \u05e2\u05dc \u05d4\u05de\u05e1\u05e4\u05e8 \u05d4\u05de\u05e8\u05d1\u05d9 \u05e9\u05dc \u05e1\u05e4\u05e8\u05d5\u05ea \u05dc\u05db\u05dc \u05d7\u05dc\u05e7 \u05d4\u05de\u05e1\u05e4\u05e8 "&1" (&2 \u05e1\u05e4\u05e8\u05d5\u05ea)';pui.runtimeMsg.he_IL["exceeds decimal"]=' \u05e2\u05d5\u05dc\u05d4 \u05e2\u05dc \u05d4\u05de\u05e1\u05e4\u05e8 \u05d4\u05de\u05e8\u05d1\u05d9 \u05e9\u05dc \u05e1\u05e4\u05e8\u05d5\u05ea \u05dc\u05d7\u05dc\u05e7 \u05d4\u05e2\u05e9\u05e8\u05d5\u05e0\u05d9 "&1" (&2 \u05e1\u05e4\u05e8\u05d5\u05ea)';
pui.runtimeMsg.he_IL["zip too long"]=" \u05d4\u05de\u05d9\u05e7\u05d5\u05d3 \u05d4\u05d5\u05d0 \u05d0\u05e8\u05d5\u05da \u05de\u05d3\u05d9. \u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd: &1 \u05e1\u05e4\u05e8\u05d5\u05ea";pui.runtimeMsg.he_IL["phone too long"]=" \u05de\u05e1\u05e4\u05e8 \u05d8\u05dc\u05e4\u05d5\u05df \u05d0\u05e8\u05d5\u05da \u05de\u05d3\u05d9. \u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd: &1 \u05e1\u05e4\u05e8\u05d5\u05ea";pui.runtimeMsg.he_IL["ssno too long"]=" \u05de\u05e1\u05e4\u05e8 \u05d4\u05d1\u05d9\u05d8\u05d5\u05d7 \u05d4\u05dc\u05d0\u05d5\u05de\u05d9 \u05d4\u05d5\u05d0 \u05d0\u05e8\u05d5\u05da \u05de\u05d3\u05d9. \u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd: &1 \u05e1\u05e4\u05e8\u05d5\u05ea";
pui.runtimeMsg.he_IL["invalid custom val"]=" \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9 \u05d4\u05ea\u05d9\u05e7\u05d5\u05e3 \u05de\u05d5\u05ea\u05d0\u05de\u05ea \u05d0\u05d9\u05e9\u05d9\u05ea";pui.runtimeMsg.he_IL["error custom val"]=" \u05e9\u05d2\u05d9\u05d0\u05d4 \u05d1\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05ea \u05d4\u05ea\u05d9\u05e7\u05d5\u05e3 \u05de\u05d5\u05ea\u05d0\u05de\u05ea \u05d0\u05d9\u05e9\u05d9\u05ea";pui.runtimeMsg.he_IL.ME=" \u05e9\u05d3\u05d4 \u05d4\u05d6\u05e0\u05ea \u05d7\u05d5\u05d1\u05d4. \u05e2\u05dc\u05d9\u05da \u05dc\u05d4\u05d6\u05d9\u05df \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd";
pui.runtimeMsg.he_IL.MF=" \u05e9\u05d3\u05d4 \u05de\u05d9\u05dc\u05d5\u05d9 \u05d7\u05d5\u05d1\u05d4. \u05e2\u05dc\u05d9\u05da \u05dc\u05de\u05dc\u05d0 \u05d0\u05ea \u05ea\u05d9\u05d1\u05ea \u05d4\u05e7\u05dc\u05d8 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df";pui.runtimeMsg.he_IL.required=" \u05d4\u05e2\u05e8\u05da \u05d0\u05d9\u05e0\u05d5 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05e8\u05d9\u05e7. \u05e9\u05d3\u05d4 \u05d6\u05d4 \u05e0\u05d3\u05e8\u05e9";
pui.runtimeMsg.he_IL["file required"]=" \u05e2\u05dc\u05d9\u05da \u05dc\u05d1\u05d7\u05d5\u05e8 \u05e7\u05d5\u05d1\u05e5 \u05d0\u05d7\u05d3 \u05dc\u05e4\u05d7\u05d5\u05ea";pui.runtimeMsg.he_IL["signature overflow"]=" \u05d2\u05d5\u05d3\u05dc \u05e6\u05d9\u05d5\u05e8 \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05d7\u05d5\u05e8\u05d2 \u05de\u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05e8\u05d1\u05d9. \u05d0\u05e0\u05d0 \u05dc\u05e0\u05e7\u05d5\u05ea \u05d0\u05ea \u05de\u05e9\u05d8\u05d7 \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05d5\u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1";
pui.runtimeMsg.he_IL.validValues=" \u05e2\u05e8\u05da \u05d4\u05d6\u05e0\u05d4 \u05d0\u05d9\u05e0\u05d5 \u05d7\u05d5\u05e7\u05d9. \u05e2\u05e8\u05db\u05d9\u05dd \u05d7\u05d5\u05e7\u05d9\u05d9\u05dd \u05d4\u05dd";pui.runtimeMsg.he_IL["upload invalid type"]="\u05d0\u05d7\u05d3 \u05d0\u05d5 \u05d9\u05d5\u05ea\u05e8 \u05de\u05d4\u05e7\u05d1\u05e6\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9";pui.runtimeMsg.he_IL["invalid email"]='\u05db\u05ea\u05d5\u05d1\u05ea \u05d3\u05d5\u05d0"\u05dc \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9';
pui.runtimeMsg.he_IL["session timed out"]="\u05e1\u05d1\u05d9\u05d1\u05ea \u05d4\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e9\u05dc\u05da \u05e0\u05e1\u05d2\u05e8\u05d4.";pui.runtimeMsg.he_IL["invalid low range"]="\u05e2\u05e8\u05da \u05d7\u05d9\u05d9\u05d1 \u05dc\u05d4\u05d9\u05d5\u05ea \u05d2\u05d3\u05d5\u05dc \u05d0\u05d5 \u05e9\u05d5\u05d5\u05d4 \u05dc- &1";pui.runtimeMsg.he_IL["invalid high range"]="\u05e2\u05e8\u05da \u05d7\u05d9\u05d9\u05d1 \u05dc\u05d4\u05d9\u05d5\u05ea \u05e7\u05d8\u05df \u05d0\u05d5 \u05e9\u05d5\u05d5\u05d4 \u05dc- &1";
pui.runtimeMsg.he_IL["invalid range"]="\u05d8\u05d5\u05d5\u05d7 \u05d7\u05d5\u05e7\u05d9 \u05d4\u05d5\u05d0 &1 \u05dc- &2.";pui.runtimeMsg.he_IL["unmonitored exception"]="\u05d4\u05ea\u05db\u05e0\u05d9\u05ea \u05e0\u05ea\u05e7\u05dc\u05d4 \u05d1\u05d7\u05e8\u05d9\u05d2 \u05d1\u05dc\u05ea\u05d9 \u05de\u05d1\u05d5\u05e7\u05e8. \u05d0\u05e0\u05d0 \u05e6\u05d5\u05e8 \u05e7\u05e9\u05e8 \u05e2\u05dd \u05de\u05e0\u05d4\u05dc \u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05dc\u05e2\u05d6\u05e8\u05d4";
pui.runtimeText.he_IL["upload select text"]=" \u05d1\u05d7\u05e8 \u05e7\u05d1\u05e6\u05d9\u05dd ";pui.runtimeText.he_IL["upload clear text"]=" \u05e0\u05e7\u05d4 ";pui.runtimeText.he_IL["upload remove text"]=" \u05d4\u05e1\u05e8 ";pui.runtimeText.he_IL["upload upload text"]=" \u05d4\u05e2\u05dc\u05d4 ";pui.runtimeText.he_IL["csv export text"]=" \u05d9\u05e6\u05d5\u05d0 \u05dc\u05d0\u05e7\u05e1\u05dc ";pui.runtimeText.he_IL["filter text"]=" \u05de\u05e1\u05e0\u05df ";
pui.runtimeText.he_IL["remove filters text"]=" \u05d4\u05e1\u05e8 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05e1\u05e0\u05e0\u05d9\u05dd ";pui.runtimeText.he_IL["next link text"]=" \u05d4\u05d1\u05d0\u05d4 ";pui.runtimeText.he_IL["previous link text"]=" \u05d4\u05e7\u05d5\u05d3\u05dd ";pui.runtimeText.he_IL["sort ascending text"]=" \u05de\u05d9\u05d9\u05df \u05dc\u05e4\u05d9 \u05e1\u05d3\u05e8 \u05e2\u05d5\u05dc\u05d4 ";pui.runtimeText.he_IL["sort descending text"]=" \u05de\u05d9\u05d9\u05df \u05d1\u05e1\u05d3\u05e8 \u05d9\u05d5\u05e8\u05d3 ";
pui.runtimeText.he_IL.row=" \u05e9\u05d5\u05e8\u05d4 ";pui.runtimeText.he_IL.rows=" \u05e9\u05d5\u05e8\u05d5\u05ea ";pui.runtimeText.he_IL.page=" \u05e2\u05de\u05d5\u05d3 ";pui.runtimeText.he_IL.collapseAll="\u05dc\u05db\u05d5\u05d5\u05e5 \u05d4\u05db\u05dc";pui.runtimeText.he_IL.expandAll="\u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05d4\u05db\u05dc";pui.runtimeText.he_IL.user="\u05de\u05e9\u05ea\u05de\u05e9";pui.runtimeText.he_IL.password="\u05e1\u05d9\u05e1\u05de\u05d0";pui.runtimeText.he_IL.pui="Profound UI";
pui.runtimeText.he_IL["pui sign on"]="Profound UI \u05dc\u05d4\u05d9\u05e8\u05e9\u05dd";pui.runtimeText.he_IL["sign on"]="\u05dc\u05d4\u05d9\u05e8\u05e9\u05dd";pui.runtimeText.he_IL["message id"]="\u05d6\u05d9\u05d4\u05d5\u05d9 \u05d4\u05d5\u05d3\u05e2\u05d4";pui.runtimeText.he_IL.severity="\u05e8\u05e6\u05d9\u05e0\u05d5\u05ea";pui.runtimeText.he_IL.date="\u05ea\u05d0\u05e8\u05d9\u05da";pui.runtimeText.he_IL.time="\u05d6\u05de\u05df";pui.runtimeText.he_IL.program="\u05ea\u05db\u05e0\u05d9\u05ea";
pui.runtimeText.he_IL.procedure="\u05e4\u05e8\u05d5\u05e6\u05d3\u05d5\u05e8\u05d4";pui.runtimeText.he_IL.lines="\u05e9\u05d5\u05e8\u05d4";pui.runtimeText.he_IL.message="\u05d4\u05d5\u05d3\u05e2\u05d4";pui.runtimeText.he_IL["new session"]="\u05de\u05d5\u05e9\u05d1 \u05d7\u05d3\u05e9";pui.runtimeText.he_IL.close="\u05dc\u05e1\u05d2\u05d5\u05e8";pui.runtimeText.he_IL["current password"]="\u05e1\u05d9\u05e1\u05de\u05d0 \u05e0\u05d5\u05db\u05d7\u05d9\u05ea";pui.runtimeText.he_IL["new password"]="\u05e1\u05d9\u05e1\u05de\u05d0 \u05d7\u05d3\u05e9\u05d4";
pui.runtimeText.he_IL["repeat new password"]="\u05d7\u05d6\u05d5\u05e8 \u05e2\u05dc \u05e1\u05d9\u05e1\u05de\u05d0 \u05d7\u05d3\u05e9\u05d4";pui.runtimeText.he_IL.submit="\u05e9\u05dc\u05d7";pui.runtimeText.he_IL.exit="\u05d9\u05e6\u05d9\u05d0\u05d4";pui.runtimeText.he_IL.warning="\u05d0\u05d6\u05d4\u05e8\u05d4";pui.runtimeText.he_IL["change password"]="\u05e9\u05d9\u05e0\u05d5\u05d9 \u05e1\u05d9\u05e1\u05de\u05d0";pui.runtimeText.he_IL.cancel="\u05dc\u05d1\u05d8\u05dc";
pui.runtimeText.he_IL["find text"]="\u05de\u05e6\u05d0";pui.runtimeText.he_IL["remove filter"]="\u05d4\u05e1\u05e8 \u05e1\u05d9\u05e0\u05d5\u05df";pui.Hb("en_US","nl_NL");pui.runtimeMsg.nl_NL.closeMessage="Hiermee wordt uw sessie afgesloten.";pui.runtimeMsg.nl_NL["no connection message"]="Geen contact met de server mogelijk. Controleer de verbinding en probeer opnieuw.";pui.runtimeMsg.nl_NL["upload file limit"]="Limiet van &1 bestand(en) overschreden.";pui.runtimeMsg.nl_NL["upload size limit"]="Limiet van &1MB per bestand overschreden";
pui.runtimeMsg.nl_NL["upload no files"]="Geen bestanden geselecteerd.";pui.runtimeMsg.nl_NL["upload duplicate file"]="Identieke bestanden geselecteerd.";pui.runtimeMsg.nl_NL["upload file exists"]="Een of meerdere bestanden staan al in het file systeem.";pui.runtimeMsg.nl_NL["upload prevented"]="Handeling geblokkeerd door het exit programma.";pui.runtimeMsg.nl_NL["upload input limit"]="Limiet van totale input grootte overschreden.";pui.runtimeMsg.nl_NL["upload no session"]="Geen verbinding met een geldige sessie.";
pui.runtimeMsg.nl_NL["upload timeout"]="Timeout van de transactie.";pui.runtimeMsg.nl_NL["upload invalid response"]="Geen(geldig) antwoord van de server.";pui.runtimeMsg.nl_NL["close browser text"]="Sluit het browser scherm om het logoff proces te voltooien.";pui.runtimeMsg.nl_NL["session ended text"]="Sessie is be\u00ebindigd.";pui.runtimeMsg.nl_NL["outside ucs2"]="Tekens niet UCS-2.";pui.runtimeMsg.nl_NL["invalid number"]="&1 is geen geldig nummer.";pui.runtimeMsg.nl_NL["invalid length"]="Lengte of aantal decimalen van &1 is ongeldig.";
pui.runtimeMsg.nl_NL["invalid decimal"]="Aantal decimalen van &1 ongeldig. (max: &2)";pui.runtimeMsg.nl_NL["invalid choice"]='"&1" is ongeldig. Geldige keuzes zijn: "&2" of "&3".';pui.runtimeMsg.nl_NL["invalid date"]='"&1" is geen geldige datum. Voorbeeld opmaak: &2';pui.runtimeMsg.nl_NL["invalid time"]='"&1" is geen geldige tijd. Voorbeeld opmaak: &2';pui.runtimeMsg.nl_NL["invalid time stamp"]='"&1" is geen geldige time stamp. Voorbeeld opmaak: &2';pui.runtimeMsg.nl_NL["invalid percent"]="&1 is geen geldige decimaal.";
pui.runtimeMsg.nl_NL["invalid digits"]='"&1" heeft teveel cijfers. Max: &2';pui.runtimeMsg.nl_NL["exceeds whole"]='"&1" overschrijd het maximaal aantal cijfers voor het totale veld (&2 cijfers).';pui.runtimeMsg.nl_NL["exceeds decimal"]='"&1" overschrijd het maximaal aantal cijfers voor het decimale deel (&2 cijfers).';pui.runtimeMsg.nl_NL["zip too long"]="Postcode te lang. (Maximum: &1 cijfers)";pui.runtimeMsg.nl_NL["phone too long"]="Telefoonnummer te lang. (Maximum: &1 cijfers)";
pui.runtimeMsg.nl_NL["ssno too long"]="Sofinummer te lang. (Maximum: &1 cijfers)";pui.runtimeMsg.nl_NL["invalid custom val"]="Ongeldige maatwerk controle routine.";pui.runtimeMsg.nl_NL["error custom val"]="Fout in maatwerk controle routine.";pui.runtimeMsg.nl_NL.ME="Verplicht veld. Hier iets ingeven.";pui.runtimeMsg.nl_NL.MF="Verplicht opvullen van veld. Alle posities van het veld vullen.";pui.runtimeMsg.nl_NL.required="Blanco is een ongeldige waarde. Dit veld is vereist.";
pui.runtimeMsg.nl_NL["file required"]="Selecteer minstens \u00e9\u00e9n bestand.";pui.runtimeMsg.nl_NL["signature overflow"]="De afbeelding van de handtekening overschrijdt het maximale aantal bytes. Verwijder de handtekening en probeer opnieuw.";pui.runtimeMsg.nl_NL.validValues="Ongeldige waarde. Geldige waarden zijn: ";pui.runtimeMsg.nl_NL["upload invalid type"]="E\u00e9n of meerdere bestandstypes zijn ongeldig.";pui.runtimeMsg.nl_NL["invalid email"]="Ongeldig email addres.";
pui.runtimeMsg.nl_NL["session timed out"]="Uw sessie is verlopen.";pui.runtimeMsg.nl_NL["invalid low range"]="Waarde moet zijn groter of gelijk aan &1";pui.runtimeMsg.nl_NL["invalid high range"]="Waarde moet zijn kleiner of gelijk aan &1";pui.runtimeMsg.nl_NL["invalid range"]="Waarde moet liggen tussen &1 en &2.";pui.runtimeMsg.nl_NL["unmonitored exception"]="Het programma heeft een fout ontdekt. Voor hulp neem contact op met de systeembeheerder.";pui.runtimeText.nl_NL["upload select text"]="Selecteer bestanden";
pui.runtimeText.nl_NL["upload clear text"]="Wissen";pui.runtimeText.nl_NL["upload remove text"]="Verwijder";pui.runtimeText.nl_NL["upload upload text"]="Upload";pui.runtimeText.nl_NL["csv export text"]="Export naar Excel";pui.runtimeText.nl_NL["filter text"]="Filter";pui.runtimeText.nl_NL["remove filters text"]="Verwijder alle filters";pui.runtimeText.nl_NL["next link text"]="Volgende";pui.runtimeText.nl_NL["previous link text"]="Vorige";pui.runtimeText.nl_NL["sort ascending text"]="Sorteer oplopend";
pui.runtimeText.nl_NL["sort descending text"]="Sorteer afdalend";pui.runtimeText.nl_NL.row="rij";pui.runtimeText.nl_NL.rows="rijen";pui.runtimeText.nl_NL.page="Pagina";pui.runtimeText.nl_NL.collapseAll="Inklappen";pui.runtimeText.nl_NL.expandAll="Uitklappen";pui.runtimeText.nl_NL.user="Gebruiker";pui.runtimeText.nl_NL.password="Wachtwoord";pui.runtimeText.nl_NL.pui="Profound UI";pui.runtimeText.nl_NL["pui sign on"]="Aanmelding Profound UI";pui.runtimeText.nl_NL["sign on"]="Aanmelding";
pui.runtimeText.nl_NL["message id"]="Bericht-Id";pui.runtimeText.nl_NL.severity="Severity";pui.runtimeText.nl_NL.date="Datum";pui.runtimeText.nl_NL.time="Tijd";pui.runtimeText.nl_NL.program="Programma";pui.runtimeText.nl_NL.procedure="Procedure";pui.runtimeText.nl_NL.lines="Regel(s)";pui.runtimeText.nl_NL.message="Boodschap";pui.runtimeText.nl_NL["new session"]="Nieuwe Sessie";pui.runtimeText.nl_NL.close="Sluiten";pui.runtimeText.nl_NL["current password"]="Huidig wachtwoord";
pui.runtimeText.nl_NL["new password"]="Nieuw wachtwoord";pui.runtimeText.nl_NL["repeat new password"]="Herhaal nieuw wachtwoord";pui.runtimeText.nl_NL.submit="Aanbieden";pui.runtimeText.nl_NL.exit="Einde";pui.runtimeText.nl_NL.warning="Waarschuwing";pui.runtimeText.nl_NL["change password"]="Wijzig wachtwoord";pui.runtimeText.nl_NL.cancel="Afbreken";pui.runtimeText.nl_NL["find text"]="Vinden";pui.runtimeText.nl_NL["remove filter"]="Verwijderen Filter";if(typeof window.pui=="undefined")window.pui={};
window.pui.Timer=function(){var a=(new Date).getTime(),b=false,c,d=this;this.timeout=600;this.showDebugInfo=false;this.action=null;this.checkFrequency=1E3;this.resetOnUserActivity=false;this.start=function(){if(!b){if(d.resetOnUserActivity)if(document.body.addEventListener){document.body.addEventListener("keydown",d.reset,false);document.body.addEventListener("mousemove",d.reset,false);document.body.addEventListener("click",d.reset,false);document.body.addEventListener("touchstart",d.reset,false);
document.body.addEventListener("touchmove",d.reset,false)}else if(document.body.attachEvent){document.body.attachEvent("onkeydown",d.reset);document.body.attachEvent("onmousemove",d.reset);document.body.attachEvent("onclick",d.reset)}d.reset();c=setInterval(d.check,d.checkFrequency);b=true}};this.stop=function(){if(b){clearInterval(c);if(d.resetOnUserActivity)if(document.body.removeEventListener){document.body.removeEventListener("keydown",d.reset,false);document.body.removeEventListener("mousemove",
d.reset,false)}else if(document.body.detachEvent){document.body.detachEvent("onkeydown",d.reset);document.body.detachEvent("onmousemove",d.reset)}b=false}};this.reset=function(){a=(new Date).getTime()};this.check=function(){var f=(new Date).getTime()-a;if(d.showDebugInfo)document.title=parseInt(f/1E3);if(f>=d.timeout*1E3){d.action!=null&&typeof d.action=="function"&&d.action();d.reset()}}};pui.Ia={};pui.Ia.xd=new pui.Timer;pui.Ia.xd.action=function(){var a=true;if(pui.onbeforetimeout!=null&&typeof pui.onbeforetimeout=="function")a=pui.onbeforetimeout();a!==false&&pui.Ia.Np();pui.Ia.xd.stop();pui.Ia.Sd.stop()};pui.Ia.Sd=new pui.Timer;pui.Ia.Sd.action=function(){pui.keepAlive()};
pui.Ia.Np=function(){function a(c){document.body.style.backgroundColor="#ffffff";document.body.style.backgroundImage="none";c.innerHTML='<div style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session timed out")+"</div>"}a(pui.runtimeContainer);pui.uc();var b=Za("PUI0001200.pgm");if(pui.K!=null)b=Za("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")b+="/"+pui.psid;fb({url:b,method:"post",sendAsBinary:false,suppressAlert:true,
params:{timeout:"1"},handler:function(c){if(pui.K!=null){pui.confirmOnClose=false;pui.shutdownOnClose=false;a(document.body)}else{c.a=pui.runtimeContainer;pui.handler=ha();pui.render(c)}pui.ontimeout!=null&&typeof pui.ontimeout=="function"&&pui.ontimeout()},onfail:function(){a(document.body)}})};pui.Ia.start=function(){pui.Ia.xd.stop();pui.Ia.Sd.stop();if(pui.timeout!=null){var a=pui.timeout-10;if(!(a<3)){pui.Ia.xd.timeout=pui.timeout;pui.Ia.Sd.timeout=a;pui.Ia.xd.start();pui.Ia.Sd.start()}}};
pui.Ia.end=function(){pui.Ia.xd.stop();pui.Ia.Sd.stop()};
