PTBrowserInfo=function(){return this
};
PTBrowserInfo.VERSION="251701";
PTBrowserInfo.init=function(){PTBrowserInfo.USER_AGENT=navigator.userAgent;
PTBrowserInfo.MSIE_VERSION=PTBrowserInfo.getIEVersion();
PTBrowserInfo.NETSCAPE_VERSION=PTBrowserInfo.getNNVersion();
PTBrowserInfo.IS_DOM=(document.getElementById);
PTBrowserInfo.IS_OPERA=(/opera [56789]|opera\/[56789]/i.test(PTBrowserInfo.USER_AGENT));
PTBrowserInfo.IS_SAFARI=(/safari/i.test(PTBrowserInfo.USER_AGENT));
PTBrowserInfo.IS_MSIE=(PTBrowserInfo.MSIE_VERSION&&document.all&&!PTBrowserInfo.IS_OPERA);
PTBrowserInfo.IS_MSIE_4=(PTBrowserInfo.MSIE_VERSION<5);
PTBrowserInfo.IS_MSIE_5=((PTBrowserInfo.MSIE_VERSION>=5)&&(PTBrowserInfo.MSIE_VERSION<5.5));
PTBrowserInfo.IS_MSIE_5_5=((PTBrowserInfo.MSIE_VERSION>=5.5)&&(PTBrowserInfo.MSIE_VERSION<6));
PTBrowserInfo.IS_MSIE_6=((PTBrowserInfo.MSIE_VERSION>=6)&&(PTBrowserInfo.MSIE_VERSION<7));
PTBrowserInfo.IS_MSIE_7=((PTBrowserInfo.MSIE_VERSION>=7)&&(PTBrowserInfo.MSIE_VERSION<7.5));
PTBrowserInfo.IS_NETSCAPE_4=((PTBrowserInfo.NETSCAPE_VERSION>0)&&(PTBrowserInfo.NETSCAPE_VERSION<5));
PTBrowserInfo.IS_NETSCAPE_6=((PTBrowserInfo.NETSCAPE_VERSION>=5)&&(PTBrowserInfo.NETSCAPE_VERSION<7));
PTBrowserInfo.IS_NETSCAPE_7=(PTBrowserInfo.NETSCAPE_VERSION>=7);
PTBrowserInfo.IS_MOZILLA=((!PTBrowserInfo.IS_OPERA)&&(/gecko/i.test(PTBrowserInfo.USER_AGENT)));
PTBrowserInfo.IS_NETSCAPE_DOM=(PTBrowserInfo.IS_MOZILLA||(PTBrowserInfo.NETSCAPE_VERSION>=5));
PTBrowserInfo.IS_HTTPS=(document.location.protocol.indexOf("https:")>-1);
PTBrowserInfo.IS_XP_SP2=(window.navigator.userAgent.indexOf("SV1")>-1);
PTBrowserInfo.IS_NT4=(window.navigator.userAgent.indexOf("Windows NT 4.0")>-1);
PTBrowserInfo.isInitialized=true
};
PTBrowserInfo.getIEVersion=function(){var A=0;
var B=new String(navigator.userAgent);
if(B.indexOf("MSIE ")>-1){A=parseFloat(B.substr(B.indexOf("MSIE ")+5))
}return A
};
PTBrowserInfo.getNNVersion=function(){var A=0;
if(navigator.appName=="Netscape"){A=parseFloat(navigator.appVersion);
if(A>=5){if(typeof navigator.vendorSub!="undefined"){A=parseFloat(navigator.vendorSub)
}}}return A
};
if(!PTBrowserInfo.isInitialized){PTBrowserInfo.init()
}PTCommonUtil=function(){return this
};
PTCommonUtil.VERSION="251701";
PTCommonUtil.getIEVersion=function(){return PTBrowserInfo.getIEVersion()
};
PTCommonUtil.getNNVersion=function(){return PTBrowserInfo.getNNVersion()
};
PTCommonUtil.getElementById=function(A){return PTDOMUtil.getElementById(A)
};
PTCommonUtil.copyObject=function(E,C){if(!C){if(E.constructor){C=E.constructor()
}else{C=new Object()
}}var G=typeof E;
var D=false;
if(G=="string"){D=true
}else{if(G=="number"){D=true
}else{if(G=="boolean"){D=true
}}}if(D){C=E
}else{if(E&&E.slice&&E.sort&&E.length){var A=E.length;
for(var B=0;
B<A;
B++){C[B]=E[B]
}}else{for(var F in E){if(E.Class&&(E.Class=="Array")&&(typeof E[F]=="function")){continue
}var G=typeof E[F];
var D=false;
if(G=="string"){D=true
}else{if(G=="number"){D=true
}else{if(G=="boolean"){D=true
}}}if(D){C[F]=E[F]
}else{C[F]=PTCommonUtil.copyObject(E[F])
}}}}return C
};
PTCommonUtil.getServerFromURL=function(A){var B=document.createElement("A");
B.href=A;
return B.hostname
};
PTCommonUtil.isDefined=function(B){var A=typeof (B);
return(!(A=="unknown")&&!(A=="undefined"))
};
PTCommonUtil.sortHashByKeys=function(E,J,F,G){var L=new Array();
var H=new Object();
var B;
var C=false;
for(var I in E){B=I;
break
}var K=new String(B);
if(!isNaN(parseInt(K.charAt(0)))){C=true
}for(var I in E){L[L.length]=I
}var A;
if(C){A=L.sort(PTCommonUtil.sortNumeric);
J=false
}else{if(G){if(F){A=L.sort(PTCommonUtil.sortReverseCaseInsensitive)
}else{A=L.sort(PTCommonUtil.sortReverse)
}}else{if(F){A=L.sort(PTCommonUtil.sortCaseInsensitive)
}else{A=L.sort(PTCommonUtil.sortForward)
}}}if(J){H[B]=E[B]
}for(var D=0;
D<A.length;
D++){if(J&&(A[D]==B)){continue
}H[A[D]]=E[A[D]]
}return H
};
PTCommonUtil.sortNumeric=function(B,A){var D=parseInt(B);
var C=parseInt(A);
if(!isNaN(D)&&!isNaN(C)){return D-C
}else{return -1
}};
PTCommonUtil.sortCaseInsensitive=function(G,H){var B=(new String(G)).toLowerCase();
var A=(new String(H)).toLowerCase();
if(B.valueOf()==A.valueOf()){return 0
}var C=(B.length>A.length)?A.length:B.length;
var D=0;
while((D<C)&&(B.charCodeAt(D)==A.charCodeAt(D))){D++
}var E=B.charCodeAt(D);
var F=A.charCodeAt(D);
if(isNaN(E)){return -1
}else{if(isNaN(F)){return 1
}else{return E-F
}}};
PTCommonUtil.sortReverseCaseInsensitive=function(G,H){var B=(new String(G)).toLowerCase();
var A=(new String(H)).toLowerCase();
if(B.valueOf()==A.valueOf()){return 0
}var C=(B.length>A.length)?A.length:B.length;
var D=0;
while((D<C)&&(B.charCodeAt(D)==A.charCodeAt(D))){D++
}var E=B.charCodeAt(D);
var F=A.charCodeAt(D);
if(isNaN(E)){return 1
}else{if(isNaN(F)){return -1
}else{return F-E
}}};
PTCommonUtil.sortReverse=function(E,G){var B=new String(E);
var A=new String(G);
if(B.valueOf()==A.valueOf()){return 0
}var C=(B.length>A.length)?A.length:B.length;
var D=0;
while((D<C)&&(B.charCodeAt(D)==A.charCodeAt(D))){D++
}var F=A.charCodeAt(D)-B.charCodeAt(D);
if(isNaN(F)){return 0
}else{return F
}};
PTCommonUtil.sortForward=function(E,G){var B=new String(E);
var A=new String(G);
if(B.valueOf()==A.valueOf()){return 0
}var C=(B.length>A.length)?A.length:B.length;
var D=0;
while((D<C)&&(B.charCodeAt(D)==A.charCodeAt(D))){D++
}var F=B.charCodeAt(D)-A.charCodeAt(D);
if(isNaN(F)){return 0
}else{return F
}};
PTCommonUtil.getValueForStyleAttribute=function(C,A){var C=new String(C);
var A=new String(A);
var B=C.indexOf(A);
if(B==-1){return 
}var C=C.substr(B+A.length+1);
while((C.charAt(0)==" ")||(C.charAt(0)==":")){C=C.substr(1)
}var D=C.indexOf(";");
if(D==-1){D=(C.length-1)
}C=C.substr(0,(D));
return C
};
PTCommonUtil.getRelativePosition=function(B,G,C){var H=new Object();
H.x=0;
H.y=0;
if(!B){return H
}if(!G){G=document.body
}while(1){if(B==G){break
}H.x-=parseInt(B.scrollLeft);
H.y-=parseInt(B.scrollTop);
var E=parseInt(B.style.borderBottomWidth);
var F=B.offsetTop;
H.y+=F+((E&&!C)?E:0);
var A=parseInt(B.style.borderLeftWidth);
var D=B.offsetLeft;
H.x+=D+((A&&!C)?A:0);
if(B.offsetParent){B=B.offsetParent
}else{break
}}return H
};
PTCommonUtil.scrollDivIntoView=function(B,A){if(!B){return 
}if(!A){A=document.body
}var C=PTCommonUtil.getRelativePosition(B,A,true);
A.scrollTop=C.y
};
if(!PTCommonUtil.CSSClassCache){PTCommonUtil.CSSClassCache=new Object()
}PTCommonUtil.getCSSClassStyles=function(B){var C=PTCommonUtil.CSSClassCache[B];
if(!C){var A=document.createElement("span");
A.style.visibility="hidden";
A.style.display="none";
A.className=B;
document.body.appendChild(A);
if(document.all){PTCommonUtil.CSSClassCache[B]=A.currentStyle
}else{if(document.getElementById&&!document.all){PTCommonUtil.CSSClassCache[B]=document.defaultView.getComputedStyle(A,"")
}}}return PTCommonUtil.CSSClassCache[B]
};
PTCommonUtil.getCSSClassStyleProperty=function(C,B){var D=PTCommonUtil.getCSSClassStyles(C);
if(D){if(PTBrowserInfo.IS_NETSCAPE_DOM&&PTBrowserInfo.NETSCAPE_VERSION<7.1){var A=B.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase();
return D.getPropertyValue(A)
}else{return D[B]
}}return null
};
PTCommonUtil.getStyleClassFromDocument=function(E,C){var B=new RegExp("\\."+C+"$","gi");
if(E.all){for(var A=0;
A<E.styleSheets.length;
A++){for(var D=0;
D<E.styleSheets[A].rules.length;
D++){if(E.styleSheets[A].rules[D].selectorText.search(B)!=-1){return E.styleSheets[A].rules[D].style
}}}}else{if(E.getElementById){for(var A=0;
A<E.styleSheets.length;
A++){for(var D=0;
D<E.styleSheets[A].cssRules.length;
D++){if(E.styleSheets[A].cssRules[D].selectorText.search(B)!=-1){E.styleSheets[A].cssRules[D].sheetIndex=A;
E.styleSheets[A].cssRules[D].ruleIndex=A;
return E.styleSheets[A].cssRules[D].style
}}}}else{if(E.layers){return E.classes[C].all
}else{return false
}}}};
PTCommonUtil.getStyleClass=function(A){return PTCommonUtil.getStyleClassFromDocument(document,A)
};
PTCommonUtil.getStyleClassProperty=function(C,B){var A=PTCommonUtil.getStyleClass(C);
return(A)?A[B]:""
};
PTCommonUtil.getRemoteStyleClassProperty=function(D,C,B){var A=PTCommonUtil.getStyleClassFromDocument(D,C);
return(A)?A[B]:""
};
PTCommonUtil.parseGet=function(B){var C=new Object();
var F=",";
var G;
if(B){G=B
}else{G=""+top.document.location.href
}G=G.substring((G.indexOf("?"))+1);
if(G.length<1){return false
}var I=new Object();
var A=1;
while(G.indexOf("&")>-1){I[A]=G.substring(0,G.indexOf("&"));
G=G.substring((G.indexOf("&"))+1);
A++
}I[A]=G;
for(var E in I){var H=I[E].substring(0,I[E].indexOf("="));
var D=I[E].substring((I[E].indexOf("="))+1);
while(D.indexOf("+")>-1){D=D.substring(0,D.indexOf("+"))+" "+D.substring(D.indexOf("+")+1)
}D=unescape(D);
if(C[H]){C[H]=C[H]+F+D
}else{C[H]=D
}}return C
};
PTCommonUtil.wait=function(A){var B=new Date().valueOf();
while((new Date().valueOf()-B)<A){}};
PTCommonUtil.alertVersion=function(){var str="";
var controls=new Array("PTCalendarControl","PTTableControl","PTTreeControl","PTTabularLayoutManager","PTCalendarManager");
var foundControl=false;
for(var i=0;
i<controls.length;
i++){if(window[controls[i]]){foundControl=controls[i];
break
}else{if(window[""+controls[i]]){foundControl=""+controls[i];
break
}}}if(foundControl){var jscontrol=eval(foundControl);
if(jscontrol.VERSION){var version=jscontrol.VERSION;
str+="PTControls  (v. "+version+")\n";
if(window.PTControls){for(var obj in window.PTControls){if(obj=="properties"){continue
}var o=window.PTControls[obj];
if(o&&o.objName&&o.className){var type=" ("+o.className+")";
str+="    "+o.objName+type+"\n"
}}}else{if(window.PTControls){for(var obj in window.PTControls){if(obj=="properties"){continue
}var o=window.PTControls[obj];
if(o&&o.objName&&o.className){var type=" ("+o.className+")";
str+="    "+o.objName+type+"\n"
}}}}}}if(typeof PTDatepicker!="undefined"){if(PTDatepicker.VERSION){str+="PTDatepicker  (v. "+PTDatepicker.VERSION+")\n"
}}else{if(typeof PTDatepicker!="undefined"){if(PTDatepicker.VERSION){str+="PTDatepicker  (v. "+PTDatepicker.VERSION+")\n"
}}}if(typeof PTXMLWrapper!="undefined"){if(PTXMLWrapper.VERSION){str+="PTXML (v. "+PTXMLWrapper.VERSION+")\n"
}}else{if(typeof PTXMLWrapper!="undefined"){if(PTXMLWrapper.VERSION){str+="PTXML (v. "+PTXMLWrapper.VERSION+")\n"
}}}str+="PTUtil  (v. "+PTCommonUtil.VERSION+")\n";
str+="\n\u00A92002-2004 Plumtree Software Inc., All Rights Reserved    \n";
if(PTCommonUtil.isDefined(window.PT_DEBUG)){str+="\nDo you want to inspect an object?\n";
var inspect=confirm(str);
if(inspect){var obj=prompt("Enter the name of the object you wish to inspect: \n","");
if(obj){var o=eval(obj);
if(o){}else{}}}}else{alert(str)
}};
PTCommonUtil.versions=function(){if(document.all){if(window.event.altKey&&window.event.ctrlKey&&window.event.shiftKey){PTCommonUtil.alertVersion();
return false
}}};
PTCommonUtil.setUpVersions=function(){if((typeof document!="undefined")&&(PTCommonUtil.getIEVersion()>=5.5)){if(document.all){if(document.body){document.body.onmouseleave=PTCommonUtil.versions
}else{window.setTimeout("PTCommonUtil.setUpVersions()",500)
}}}};
PTCommonUtil.setUpVersions();
PTCommonUtil.getScripts=function(){if(!document.scripts){document.scripts=new Array();
PTCommonUtil.addScripts(document.childNodes)
}return document.scripts
};
PTCommonUtil.addScripts=function(A){for(var B=0;
B<A.length;
B++){if(A[B].tagName){if(A[B].tagName.toLowerCase()=="script"){document.scripts[document.scripts.length]=A[B]
}PTCommonUtil.addScripts(A[B].childNodes)
}}};
PTCommonUtil.JSON=function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={"boolean":function(x){return String(x)
},number:function(x){return isFinite(x)?String(x):"null"
},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];
if(c){return c
}c=b.charCodeAt();
return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)
})
}return'"'+x+'"'
},object:function(x){if(x){var a=[],b,f,i,l,v;
if(x instanceof Array){a[0]="[";
l=x.length;
for(i=0;
i<l;
i+=1){v=x[i];
f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){if(b){a[a.length]=","
}a[a.length]=v;
b=true
}}}a[a.length]="]"
}else{if(x instanceof Object){a[0]="{";
for(i in x){v=x[i];
f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){if(b){a[a.length]=","
}a.push(s.string(i),":",v);
b=true
}}}a[a.length]="}"
}else{return 
}}return a.join("")
}return"null"
}};
return{copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(v){var f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){return v
}}return null
},parse:function(text){try{return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+text+")")
}catch(e){return false
}}}
}();
PTArrayUtil=function(){return this
};
PTArrayUtil.VERSION="251701";
PTArrayUtil.push=function(A,B){if(!PTArrayUtil.isArrayLike(A)){return 
}if(PTArrayUtil.isArrayLike(B)){for(var C=0;
C<B.length;
C++){A[A.length]=B[C]
}}else{A[A.length]=B
}return A.length
};
PTArrayUtil.shift=function(A){if(!PTArrayUtil.isArrayLike(A)){return 
}var C=A[0];
for(var B=0;
B<(A.length-1);
B++){A[B]=A[B+1]
}delete A[A.length-1];
if(A.length>0){A.length--
}return C
};
PTArrayUtil.splice=function(G,B,C,I){if(!PTArrayUtil.isArrayLike(G)){return 
}if(!PTNumberUtil.isInteger(B)||(B<0)||(B>=G.length)){return 
}if(!PTNumberUtil.isInteger(C)||(C<0)||(C>G.length)){return 
}var A=new Array();
var J=G.length;
var E=arguments.length-3;
var H=E-C;
for(var F=0;
F<C;
F++){var L=B+F;
A[A.length]=G[L];
delete G[L]
}if(H!=0){if(H<0){var K=B+C;
var D=J-1;
for(var F=K;
F<=D;
F++){G[F+H]=G[F];
delete G[F]
}G.length=G.length+H
}else{if(H>0){var K=J-1;
var D=B+C;
for(var F=K;
F>=D;
F--){G[F+H]=G[F];
delete G[F]
}}}}for(var F=0;
F<E;
F++){G[B+F]=arguments[F+3]
}return A
};
PTArrayUtil.removeElementAt=function(A,B){if(!PTArrayUtil.isArrayLike(A)){return 
}return PTArrayUtil.splice(A,B,1)
};
PTArrayUtil.moveElement=function(C,B,D){if(!PTArrayUtil.isArrayLike(C)){return 
}var F=C[B];
PTArrayUtil.removeElementAt(C,B);
var A=C.length;
for(var E=(A-1);
E>=D;
E--){C[E+1]=C[E]
}C[D]=F
};
PTArrayUtil.isArrayLike=function(A){var B=(A&&A.join&&PTNumberUtil.isInteger(A.length)&&(parseInt(A.length)>=0));
return(B==true)
};
PTCookie=function(){return this
};
PTCookie.VERSION="251701";
PTCookie.set=function(B,C,A){document.cookie=B+"="+escape(C)+";path=/"+((!A)?"":";expires="+A.toGMTString());
return 
};
PTCookie.get=function(B){var A=B+"=";
if(document.cookie.length>0){begin=document.cookie.indexOf(A);
if(begin!=-1){begin+=A.length;
end=document.cookie.indexOf(";",begin);
if(end==-1){end=document.cookie.length
}return unescape(document.cookie.substring(begin,end))
}}else{return 
}};
PTCookie.expire=function(A){document.cookie=A+"=; expires=Thu, 01-Jan-70 00:00:01 GMT;path=/";
return 
};
PTCookie.daysAway=function(A){var C=new Date();
var B=(1000*60*60*24);
return new Date(C.setTime(C.getTime()+(B*A)))
};
PTCookie.INT_30_DAYS=PTCookie.daysAway(30);
PTDOMUtil=function(){return this
};
PTDOMUtil.VERSION="251701";
PTDOMUtil.getElementById=function(B){if(!document.all){return document.getElementById(B)
}var A=PTDOMUtil.ElementCache[B];
if(!A||!A.innerHTML){PTDOMUtil.ElementCache[B]=document.getElementById(B)
}return PTDOMUtil.ElementCache[B]
};
if(!window.PTDOMUtil.ElementCache){PTDOMUtil.ElementCache=new Object()
}PTDOMUtil.elementContains=function(F,A){if(document.all){return F.contains(A)
}if(!PTDOMUtil.ElementContainsCache[F]){PTDOMUtil.ElementContainsCache[F]=new Object()
}if(PTDOMUtil.ElementContainsCache[F][A]){return(PTDOMUtil.ElementContainsCache[F][A]=="true"?true:false)
}if(A==F){PTDOMUtil.ElementContainsCache[F][A]="true";
return true
}if(A==null){PTDOMUtil.ElementContainsCache[F][A]="false";
return false
}if(!F.hasChildNodes){PTDOMUtil.ElementContainsCache[F][A]="false";
return false
}var E=F.childNodes;
var D=E.length;
for(var C=0;
C<D;
C++){var B=E[C];
if(PTDOMUtil.elementContains(B,A)){PTDOMUtil.ElementContainsCache[F][A]="true";
return true
}}PTDOMUtil.ElementContainsCache[F][A]="false";
return false
};
if(!window.PTDOMUtil.ElementContainsCache){PTDOMUtil.ElementContainsCache=new Object()
}PTDOMUtil.insertAdjacentElement=function(B,A,C){if(document.all){B.insertAdjacentElement(A,C)
}else{switch(A){case"beforeBegin":B.parentNode.insertBefore(C,B);
break;
case"afterBegin":B.insertBefore(C,B.firstChild);
break;
case"beforeEnd":B.appendChild(C);
break;
case"afterEnd":if(B.nextSibling){B.parentNode.insertBefore(C,B.nextSibling)
}else{B.parentNode.appendChild(C)
}break
}}};
PTDOMUtil.getOuterHTML=function(B,A,C){var D=new PTStringBuffer();
return PTDOMUtil.getHTML(D,B,true,((A)?0:-1),C)
};
PTDOMUtil.getInnerHTML=function(C,A,D){var E=new PTStringBuffer();
var B=PTDOMUtil.getHTML(E,C,false,(((A)?0:-1)),D);
return B
};
PTDOMUtil.getHTML=function(J,C,H,D,B){switch(C.nodeType){case 1:case 11:var G;
var E;
if(H){if(B&&C.id&&B[C.id]){J.append(B[C.id]);
return J.toString()
}G=(!(C.hasChildNodes()||PTDOMUtil.isClosingTag(C)));
if((D>=0)&&!PTDOMUtil.isTextEnclosingTag(C)){J.append("\n");
for(E=0;
E<D;
E++){J.append("\t")
}}J.append("<"+C.tagName.toLowerCase());
var M=C.attributes;
for(E=0;
E<M.length;
++E){var K=M.item(E);
if(!K.specified){continue
}var A=K.nodeName.toLowerCase();
if(/moz/.test(A)){continue
}var L;
if(PTBrowserInfo.IS_NETSCAPE_7||A!="style"){if((PTBrowserInfo.IS_MSIE)&&PTCommonUtil.isDefined(C[K.nodeName])){L=C[K.nodeName]
}else{L=K.nodeValue
}}else{L=PTDOMUtil.cleanCSSText(C.style.cssText)
}if(/moz/.test(L)){continue
}J.append(" "+A.toLowerCase()+'="'+L+'"')
}J.append((G?" />":">"))
}var I=(!H&&(D==0))?0:((D>=0)?(D+1):-1);
for(E=C.firstChild;
E;
E=E.nextSibling){PTDOMUtil.getHTML(J,E,true,I,B)
}if(H&&!G){if((D>=0)&&!PTDOMUtil.isTextEnclosingTag(C)){J.append("\n");
for(E=0;
E<D;
E++){J.append("\t")
}}J.append("</"+C.tagName.toLowerCase()+">")
}break;
case 3:J.append(PTDOMUtil.escapeHTML(C.data));
break;
case 8:J.append("<!--"+C.data+"-->");
break
}var F=J.toString();
if((F.length>0)&&(F.substring(0,1)=="\n")){F=F.substring(1)
}return F
};
PTDOMUtil.escapeHTML=function(B){B=PTStringUtil.escapeHTML(B);
var C=new PTStringBuffer();
for(var A=0;
A<B.length;
A++){if(B.charCodeAt(A)==160){C.append("&nbsp;")
}else{C.append(B.charAt(A))
}}return C.toString()
};
PTDOMUtil.isClosingTag=function(A){var B=" h1 h2 h3 h4 h5 h6 script style div span tr td tbody table em strong font a ";
var C=(B.indexOf(" "+A.tagName.toLowerCase()+" ")!=-1);
return C
};
PTDOMUtil.isTextEnclosingTag=function(A){var C=" th td span em font strong u a ";
var B=(C.indexOf(" "+A.tagName.toLowerCase()+" ")!=-1);
return B
};
PTDOMUtil.cleanCSSText=function(D){var H={};
var G=D.split(";");
for(var C=0;
C<G.length;
C++){var A=G[C].split(":");
if(A.length==2){var B=PTStringUtil.trimWhitespace(A[0].toLowerCase(),true,true);
var E=PTStringUtil.trimWhitespace(A[1].toLowerCase(),true,true);
H[B]=E
}}if((H["border-right"]==H["border-left"])&&(H["border-top"]==H["border-bottom"])&&(H["border-left"]==H["border-bottom"])){H.border=H["border-right"];
H["border-right"]="";
H["border-left"]="";
H["border-top"]="";
H["border-bottom"]=""
}var F="";
for(n in H){E=H[n];
if(E){F+=n+": "+E+";"
}}return F
};
PTDOMUtil.getElementLeft=function(E){if(!E){return false
}var A=E.offsetLeft;
var B=E.offsetParent;
while(B!=null){if(PTBrowserInfo.IS_MSIE){if((B.tagName!="TABLE")&&(B.tagName!="BODY")){A+=B.clientLeft
}}else{if(B.tagName=="TABLE"){var C=parseInt(B.border);
if(isNaN(C)){var D=B.getAttribute("frame");
if(D!=null){A+=1
}}else{if(C>0){A+=C
}}}}A+=B.offsetLeft;
B=B.offsetParent
}return A
};
PTDOMUtil.getElementTop=function(D){var C=0;
while(D!=null){if(PTBrowserInfo.IS_MSIE){if((D.tagName!="TABLE")&&(D.tagName!="BODY")){C+=D.clientTop
}}else{if(D.tagName=="TABLE"){var A=parseInt(D.border);
if(isNaN(A)){var B=D.getAttribute("frame");
if(B!=null){C+=1
}}else{if(A>0){C+=A
}}}}C+=D.offsetTop;
if(D.offsetParent&&D.offsetParent.offsetHeight&&D.offsetParent.offsetHeight<D.offsetHeight){D=D.offsetParent.offsetParent
}else{D=D.offsetParent
}}return C
};
PTDOMUtil.getElementWidth=function(D){if(!D){return 0
}var B=D.offsetWidth;
var A=0;
if(window.getComputedStyle){var C=window.getComputedStyle(D,null).getPropertyValue("width");
C=PTStringUtil.substituteChars(C,{px:""});
A=parseInt(C)
}return Math.max(B,A)
};
PTDOMUtil.getElementHeight=function(D){if(!D){return 0
}var B=D.offsetHeight;
var A=0;
if(window.getComputedStyle){var C=window.getComputedStyle(D,null).getPropertyValue("height");
C=PTStringUtil.substituteChars(C,{px:""});
A=parseInt(C)
}return Math.max(B,A)
};
PTDOMUtil.getWindowWidth=function(){if(self.innerHeight){return self.innerWidth
}else{if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientWidth
}else{if(document.body){return document.body.clientWidth
}}}};
PTDOMUtil.getWindowHeight=function(){if(self.innerHeight){return self.innerHeight
}else{if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight
}else{if(document.body){return document.body.clientHeight
}}}};
PTDOMUtil.setElementOpacity=function(A,B){if(!A||!A.style){return false
}if(isNaN(B)){return false
}B=parseInt(B);
if((B<0)||(B>100)){return false
}if(document.all){if(PTBrowserInfo.IS_NT4){return false
}else{if(A.filters&&A.filters.alpha&&A.filters.alpha.opacity){A.filters.alpha.opacity=B;
return true
}else{if(typeof A.style.filter=="string"){A.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+B+")";
return true
}else{return false
}}}}else{if(typeof A.style.MozOpacity=="string"){var C=B/100;
A.style.MozOpacity=""+C;
return true
}else{return false
}}};
PTDOMUtil.toggleVisibility=function(B){var A=PTDOMUtil.getElementById(B);
if(A.style.display=="none"){if(PTDOMUtil._elmDisplayCache[B]||PTDOMUtil._elmDisplayCache[B]==""){A.style.display=PTDOMUtil._elmDisplayCache[B]
}else{A.style.display="block"
}}else{PTDOMUtil._elmDisplayCache[B]=A.style.display;
A.style.display="none"
}};
PTDOMUtil._elmDisplayCache={};
PTDate=function(C,B,D,A){this.datestring=(C)?C:"";
this.date=(B)?B:new Date();
this.language=(D)?D:false;
this.dateFormat=(A)?A:PTDate.defaultDateFormat;
return this
};
PTDate.VERSION="251701";
PTDate.TIME_POLICY_ALLOW_TIMES=0;
PTDate.TIME_POLICY_REQUIRE_TIMES=1;
PTDate.TIME_POLICY_FORBID_TIMES=2;
PTDate.FORMAT_DEFAULT=0;
PTDate.FORMAT_SHORT=1;
PTDate.FORMAT_MEDIUM=2;
PTDate.FORMAT_LONG=3;
PTDate.FORMAT_FULL=4;
PTDate.PIVOT_DATE=50;
PTDate.defaultLanguage="en";
PTDate.defaultDateFormat=new String("EEE MMM d HH:mm:ss yyyy");
PTDate.DEFAULT_LOCALE="en";
PTDate.EnglishStrings=new Object();
PTDate.EnglishStrings.monthsLong=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
PTDate.EnglishStrings.monthsShort=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
PTDate.EnglishStrings.daysLong=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
PTDate.EnglishStrings.daysShort=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
PTDate.EnglishStrings.daysInitial=new Array("S","M","T","W","T","F","S");
PTDate.EnglishStrings.ampm=new Array("am","pm");
PTDate.formatDate=function(B,A,D){var C=new PTDate("",B,D,A);
return C.format(A,C.language)
};
PTDate.validateDate=function(D,B,C,A,E){return PTDateValidator.validateDate(D,B,C,A,E)
};
PTDate.validateAndFormatDate=function(E,H,B,C,A,F){if(!E){return false
}if(!H){H=PTDate.defaultDateFormat
}var D=PTDateValidator.validateDate(E,B,C,A,F);
if(!D){return false
}var G=PTDate.formatDate(D,H);
return G
};
PTDate.getNumberOfDaysInMonth=function(B){var A=B.getMonth();
if((A==3)||(A==5)||(A==8)||(A==10)){return 30
}else{if(A==1){var C=B.getFullYear();
if((!(C%4)&&(C%100))||!(C%400)){return 29
}else{return 28
}}else{return 31
}}};
PTDate.get2DigitYear=function(A){var B=A.getFullYear()%100;
if(B<10){B="0"+B
}return""+B
};
PTDate.get2DigitMonth=function(B){var A=B.getMonth()+1;
if(A<10){A="0"+A
}return""+A
};
PTDate.get1DigitMonth=function(B){var A=B.getMonth()+1;
return""+A
};
PTDate.get2DigitDayOfMonth=function(A){var B=A.getDate();
if(B<10){B="0"+B
}return""+B
};
PTDate.get1DigitDayOfMonth=function(A){var B=A.getDate();
return""+B
};
PTDate.get2Digit1To12Hour=function(A){var B=A.getHours();
B=B%12;
if(B==0){B="12"
}else{if(B<10){B="0"+B
}}return""+B
};
PTDate.get1Digit1To12Hour=function(A){var B=A.getHours();
B=B%12;
if(B==0){B="12"
}return""+B
};
PTDate.get2Digit0To23Hour=function(A){var B=A.getHours();
if(B<10){B="0"+B
}return""+B
};
PTDate.get2Digit0To11Hour=function(A){var B=A.getHours();
B=B%12;
if(B<10){B="0"+B
}return""+B
};
PTDate.get1Digit0To11Hour=function(A){var B=A.getHours();
B=B%12;
return""+B
};
PTDate.get2Digit1To24Hour=function(A){var B=A.getHours()+1;
if(B<10){B="0"+B
}return""+B
};
PTDate.get1Digit1To24Hour=function(A){var B=A.getHours()+1;
return""+B
};
PTDate.get2DigitMinutes=function(B){var A=B.getMinutes();
if(A<10){A="0"+A
}return""+A
};
PTDate.get1DigitMinutes=function(B){var A=B.getMinutes();
return""+A
};
PTDate.get2DigitSeconds=function(A){var B=A.getSeconds();
if(B<10){B="0"+B
}return""+B
};
PTDate.get1DigitSeconds=function(A){var B=A.getSeconds();
return""+B
};
PTDate.get3DigitMilliseconds=function(B){var A=B.getMilliseconds();
if(A<10){A="00"+A
}else{if(A<100){A="0"+A
}}return""+A
};
PTDate.getAMPM=function(B,E){if(!E){E=PTDate.defaultLanguage
}var C=B.getHours();
var D=PTDateStrings;
if(E=="en"){D=PTDate.EnglishStrings
}var A=D.ampm[0];
if(C>=12){A=D.ampm[1]
}return A
};
PTDate.convert2DigitTo4DigitYear=function(A){if(A<=PTDate.PIVOT_DATE){A+=100
}A+=1900;
return A
};
PTDate.isLeapYear=function(A){if(A&&A.getFullYear){var B=A.getFullYear()
}else{var B=parseInt(A)
}return(((B%4==0)&&(B%100!=0))||(B%400==0))
};
PTDate.getFormatListForLocale=function(A,B){A=new String(A);
if((A.indexOf("-")==2)&&(A.length==5)){A=(A.substr(0,2)).toLowerCase()+"_"+(A.substr(3,2)).toUpperCase()
}if(PTDate.formats[A]){return PTDate.formats[A]
}if(B){return false
}var D=A.substring(0,2);
if(PTDate.formats[D]){return PTDate.formats[D]
}for(var C in PTDate.formats){if(C.indexOf(D)>-1){return PTDate.formats[C]
}}return PTDate.formats[PTDate.DEFAULT_LOCALE]
};
PTDate.stripTimesFromFormat=function(A){A=A.replace(/a.*$/,"");
A=A.replace(/h.*$/i,"");
return A
};
PTDate.prototype.format=function(A,H){A=(A)?new String(A):this.dateFormat;
H=(H)?H:false;
var E=this.date;
var D=PTDateStrings;
if(H=="en"){D=PTDate.EnglishStrings
}var K={yyyy:E.getFullYear(),yy:PTDate.get2DigitYear(E),MMMMM:D.monthsLong[E.getMonth()],MMMM:D.monthsLong[E.getMonth()],MMM:D.monthsShort[E.getMonth()],MM:PTDate.get2DigitMonth(E),M:PTDate.get1DigitMonth(E),EEEE:D.daysLong[E.getDay()],EEE:D.daysShort[E.getDay()],EE:D.daysShort[E.getDay()],E:D.daysInitial[E.getDay()],dd:PTDate.get2DigitDayOfMonth(E),d:PTDate.get1DigitDayOfMonth(E),hh:PTDate.get2Digit1To12Hour(E),h:PTDate.get1Digit1To12Hour(E),HH:PTDate.get2Digit0To23Hour(E),H:E.getHours(),KK:PTDate.get2Digit0To11Hour(E),K:PTDate.get1Digit0To11Hour(E),kk:PTDate.get2Digit1To24Hour(E),k:PTDate.get1Digit1To24Hour(E),mm:PTDate.get2DigitMinutes(E),m:PTDate.get1DigitMinutes(E),ss:PTDate.get2DigitSeconds(E),s:PTDate.get1DigitSeconds(E),SSS:PTDate.get3DigitMilliseconds(E),a:PTDate.getAMPM(E,H),z:""};
var I=new Array();
var J=A;
while(J.indexOf("'")!=J.lastIndexOf("'")){var O=new RegExp("('[^']*')");
var M=O.exec(J);
var N=RegExp.$1;
var C=J.indexOf(N);
var B=C+N.length;
var F="";
for(var G=0;
G<N.length;
G++){F+="-"
}J=J.substring(0,C)+F+J.substr(B)
}for(var L in K){while(J.indexOf(L)>-1){var C=J.indexOf(L);
var B=C+L.length;
I[C]=new Object();
I[C].string=K[L];
I[C].end=B;
var F="";
for(var G=0;
G<L.length;
G++){F+="-"
}J=J.substring(0,C)+F+J.substr(B)
}}var P=new String("");
var G=0;
while(G<A.length){if(I[G]){P+=I[G].string;
G=I[G].end
}else{if(A.charAt(G)=="'"){if(A.charAt(G+1)=="'"){P+="'";
G=G+2
}else{G++
}continue
}P+=A.charAt(G);
G++
}}return PTStringUtil.trimWhitespace(P,true,true)
};
PTDate.prototype.hasTime=function(){return(this.datestring.indexOf(":")>-1)
};
PTDate.prototype.incrementMonth=function(){var A=this.date;
var B=A.getMonth();
if(B<11){A.setMonth(B+1)
}else{A.setMonth(0);
A.setFullYear(A.getFullYear()+1)
}};
PTDate.prototype.incrementWeek=function(){var B=this.date;
var A=B.getHours();
B.setHours(12);
var C=1000*60*60*24*7;
B.setTime(B.getTime()+C);
B.setHours(A)
};
PTDate.prototype.incrementDay=function(){var C=this.date;
var A=C.getHours();
C.setHours(12);
var B=1000*60*60*24;
C.setTime(C.getTime()+B);
C.setHours(A)
};
PTDate.prototype.clone=function(){return new PTDate(this.datestring,new Date(this.date.getTime()),this.language,this.dateFormat)
};
PTDate.prototype.getNumberOfDaysInThisMonth=function(){return PTDate.getNumberOfDaysInMonth(this.date)
};
PTDate.prototype.getTime=function(){return this.date.getTime()
};
if(!PTDate.formats){PTDate.formats=new Object()
}PTDate.formats.en=new Array("MMM d, yyyy h:mm:ss a","M/d/yyyy h:mm a","MMM d, yyyy h:mm:ss a","MMMM d, yyyy h:mm:ss a z","EEEE, MMMM d, yyyy h:mm:ss a z");
PTDate.formats.da=new Array("dd-MM-yy HH:mm:ss","dd-MM-yy HH:mm","dd-MM-yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy HH:mm:ss z");
PTDate.formats.da_DK=new Array("dd-MM-yy HH:mm:ss","dd-MM-yy HH:mm","dd-MM-yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy HH:mm:ss z");
PTDate.formats.fi=new Array("d.M.yy HH:mm:ss","d.M.yy HH:mm","d.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy HH:mm:ss z");
PTDate.formats.fi_FI=new Array("dd-MM-yy HH:mm:ss","dd-MM-yy HH:mm","dd-MM-yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy HH:mm:ss z");
PTDate.formats.no=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.no_NO=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.nb=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.nb_NO=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.nn=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.nn_NO=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","d. MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.sv=new Array("yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd HH:mm:ss","'den ' d MMMM yyyy HH:mm:ss z","'den ' d MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.sv_SE=new Array("yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd HH:mm:ss","'den ' d MMMM yyyy HH:mm:ss z","'den ' d MMMM yyyy 'kl ' HH:mm z");
PTDate.formats.tr=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","dd MMMM yyyy EEEE HH:mm:ss z","dd MMMM yyyy EEEE HH:mm:ss z");
PTDate.formats.tr_TR=new Array("dd.MM.yy HH:mm:ss","dd.MM.yy HH:mm","dd.MMM.yyyy HH:mm:ss","dd MMMM yyyy EEEE HH:mm:ss z","dd MMMM yyyy EEEE HH:mm:ss z");
PTDate.formats.de=new Array("dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","dd.MM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","EEEE, d. MMMM yyyy H.mm' Uhr 'z");
PTDate.formats.de_AT=new Array("dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","dd.MM.yyyy HH:mm:ss","dd. MMMM yyyy HH:mm:ss z","EEEE, dd. MMMM yyyy HH.mm' Uhr 'z");
PTDate.formats.de_CH=new Array("dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","dd.MM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","EEEE, d. MMMM yyyy H.mm' Uhr 'z");
PTDate.formats.de_DE=new Array("dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","dd.MM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","EEEE, d. MMMM yyyy H.mm' Uhr 'z");
PTDate.formats.de_LU=new Array("dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","dd.MM.yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","EEEE, d. MMMM yyyy H.mm' Uhr 'z");
PTDate.formats.en_AU=new Array("d/MM/yyyy HH:mm:ss","d/MM/yyyy HH:mm","d/MM/yyyy HH:mm:ss","d MMMM yyyy H:mm:ss","EEEE, d MMMM yyyy hh:mm:ss a z");
PTDate.formats.en_CA=new Array("d-MMM-yyyy h:mm:ss a","dd/MM/yyyy h:mm a","d-MMM-yyyy h:mm:ss a","MMMM d, yyyy h:mm:ss z a","EEEE, MMMM d, yyyy h:mm:ss 'o''clock' a z");
PTDate.formats.en_GB=new Array("dd-MMM-yyyy HH:mm:ss","dd/MM/yyyy HH:mm","dd-MMM-yyyy HH:mm:ss","dd MMMM yyyy HH:mm:ss z","dd MMMM yyyy HH:mm:ss 'o''clock' z");
PTDate.formats.en_IE=new Array("dd-MMM-yyyy HH:mm:ss","dd/MM/yyyy HH:mm","dd-MMM-yyyy HH:mm:ss","dd MMMM yyyy HH:mm:ss z","dd MMMM yyyy HH:mm:ss 'o''clock' z");
PTDate.formats.en_NZ=new Array("d/MM/yyyy HH:mm:ss","d/MM/yyyy HH:mm","d/MM/yyyy HH:mm:ss","d MMMM yyyy H:mm:ss","EEEE, d MMMM yyyy hh:mm:ss a z");
PTDate.formats.en_US=new Array("MMM d, yyyy h:mm:ss a","M/d/yyyy h:mm a","MMM d, yyyy h:mm:ss a","MMMM d, yyyy h:mm:ss a z","EEEE, MMMM d, yyyy h:mm:ss a z");
PTDate.formats.en_ZA=new Array("yyyy/MM/dd hh:mm:ss","yyyy/MM/dd hh:mm","yyyy/MM/dd hh:mm:ss","dd MMMM yyyy hh:mm:ss","dd MMMM yyyy hh:mm:ss a");
PTDate.formats.es=new Array("dd-MMM-yyyy H:mm:ss","d/MM/yyyy H:mm","dd-MMM-yyyy H:mm:ss","d' de 'MMMM' de 'yyyy H:mm:ss z","EEEE d' de 'MMMM' de 'yyyy HH'H'mm'' z");
PTDate.formats.es_AR=new Array("dd/MM/yyyy HH:mm:ss","dd/MM/yyyy HH:mm","dd/MM/yyyy HH:mm:ss","d' de 'MMMM' de 'yyyy H:mm:ss z","EEEE d' de 'MMMM' de 'yyyy HH'h'''mm z");
PTDate.formats.es_BO=new Array("dd-MM-yyyy hh:mm:ss a","dd-MM-yyyy hh:mm a","dd-MM-yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_CL=new Array("dd-MM-yyyy hh:mm:ss a","dd-MM-yyyy hh:mm a","dd-MM-yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_CO=new Array("d/MM/yyyy hh:mm:ss a","d/MM/yyyy hh:mm a","d/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_CR=new Array("dd/MM/yyyy hh:mm:ss a","dd/MM/yyyy hh:mm a","dd/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_DO=new Array("MM/dd/yyyy hh:mm:ss a","MM/dd/yyyy hh:mm a","MM/dd/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_EC=new Array("dd/MM/yyyy hh:mm:ss a","dd/MM/yyyy hh:mm a","dd/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_GT=new Array("d/MM/yyyy hh:mm:ss a","d/MM/yyyy hh:mm a","d/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_HN=new Array("MM-dd-yyyy hh:mm:ss a","MM-dd-yyyy hh:mm a","MM-dd-yyyy hh:mm:ss a","dd' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE dd' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_MX=new Array("d/MM/yyyy hh:mm:ss a","d/MM/yyyy hh:mm a","d/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_NI=new Array("MM-dd-yyyy hh:mm:ss a","MM-dd-yyyy hh:mm a","MM-dd-yyyy hh:mm:ss a","dd' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE dd' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_PA=new Array("MM/dd/yyyy hh:mm:ss a","MM/dd/yyyy hh:mm a","MM/dd/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_PE=new Array("dd/MM/yyyy hh:mm:ss a","dd/MM/yyyy hh:mm a","dd/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_PR=new Array("MM-dd-yyyy hh:mm:ss a","MM-dd-yyyy hh:mm a","MM-dd-yyyy hh:mm:ss a","dd' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE dd' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_PY=new Array("dd/MM/yyyy hh:mm:ss a","dd/MM/yyyy hh:mm a","dd/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_SV=new Array("MM-dd-yyyy hh:mm:ss a","MM-dd-yyyy hh:mm a","MM-dd-yyyy hh:mm:ss a","dd' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE dd' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_UY=new Array("dd/MM/yyyy hh:mm:ss a","dd/MM/yyyy hh:mm a","dd/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.es_VE=new Array("dd/MM/yyyy hh:mm:ss a","dd/MM/yyyy hh:mm a","dd/MM/yyyy hh:mm:ss a","d' de 'MMMM' de 'yyyy hh:mm:ss a z","EEEE d' de 'MMMM' de 'yyyy hh:mm:ss a z");
PTDate.formats.fr=new Array("d MMM yyyy HH:mm:ss","dd/MM/yyyy HH:mm","d MMM yyyy HH:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy HH' h 'mm z");
PTDate.formats.fr_BE=new Array("dd-MMM-yyyy H:mm:ss","d/MM/yyyy H:mm","dd-MMM-yyyy H:mm:ss","d MMMM yyyy H:mm:ss z","EEEE d MMMM yyyy H' h 'mm' min 'ss' s 'z");
PTDate.formats.fr_CA=new Array("yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd HH:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy H' h 'mm z");
PTDate.formats.fr_CH=new Array("d MMM yyyy HH:mm:ss","dd.MM.yyyy HH:mm","d MMM yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","EEEE, d. MMMM yyyy HH.mm.' h' z");
PTDate.formats.fr_FR=new Array("d MMM yyyy HH:mm:ss","dd/MM/yyyy HH:mm","d MMM yyyy HH:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy HH' h 'mm z");
PTDate.formats.fr_LU=new Array("d MMM yyyy HH:mm:ss","dd/MM/yyyy HH:mm","d MMM yyyy HH:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy HH' h 'mm z");
PTDate.formats.it=new Array("d-MMM-yyyy H.mm.ss","dd/MM/yyyy H.mm","d-MMM-yyyy H.mm.ss","d MMMM yyyy H.mm.ss z","EEEE d MMMM yyyy H.mm.ss z");
PTDate.formats.it_CH=new Array("d-MMM-yyyy HH:mm:ss","dd.MM.yyyy HH:mm","d-MMM-yyyy HH:mm:ss","d. MMMM yyyy HH:mm:ss z","EEEE, d. MMMM yyyy H.mm' h' z");
PTDate.formats.it_IT=new Array("d-MMM-yyyy H.mm.ss","dd/MM/yyyy H.mm","d-MMM-yyyy H.mm.ss","d MMMM yyyy H.mm.ss z","EEEE d MMMM yyyy H.mm.ss z");
PTDate.formats.ja=new Array("yyyy/MM/dd H:mm:ss","yyyy/MM/dd H:mm","yyyy/MM/dd H:mm:ss","yyyy/MM/dd H:mm:ss z","yyyy'\u5E74'M'\u6708'd'\u65E5' H'\u6642'mm'\u5206'ss'\u79D2'z");
PTDate.formats.ja_JP=new Array("yyyy/MM/dd H:mm:ss","yyyy/MM/dd H:mm","yyyy/MM/dd H:mm:ss","yyyy/MM/dd H:mm:ss z","yyyy'\u5E74'M'\u6708'd'\u65E5' H'\u6642'mm'\u5206'ss'\u79D2'z");
PTDate.formats.ko=new Array("yyyy-MM-dd a h:mm:ss","yyyy-MM-dd a h:mm","yyyy-MM-dd a h:mm:ss","yyyy'\uB144' M'\uC6D4' d'\uC77C' EE a hh'\uC2DC'mm'\uBD84'ss'\uCD08'","yyyy'\uB144' M'\uC6D4' d'\uC77C' EEEE a hh'\uC2DC'mm'\uBD84'ss'\uCD08' z");
PTDate.formats.ko_KR=new Array("yyyy-MM-dd a h:mm:ss","yyyy-MM-dd a h:mm","yyyy-MM-dd a h:mm:ss","yyyy'\uB144' M'\uC6D4' d'\uC77C' EE a hh'\uC2DC'mm'\uBD84'ss'\uCD08'","yyyy'\uB144' M'\uC6D4' d'\uC77C' EEEE a hh'\uC2DC'mm'\uBD84'ss'\uCD08' z");
PTDate.formats.nl=new Array("d-MMM-yyyy HH:mm:ss","d-M-yy H:mm","d-MMM-yyyy H:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy H.mm' uur  'z");
PTDate.formats.nl_BE=new Array("d-MMM-yyyy HH:mm:ss","d/MM/yy H:mm","d-MMM-yyyy H:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy H.mm' uur  'z");
PTDate.formats.nl_NL=new Array("d-MMM-yyyy HH:mm:ss","d-M-yy H:mm","d-MMM-yyyy H:mm:ss","d MMMM yyyy HH:mm:ss z","EEEE d MMMM yyyy H.mm' uur  'z");
PTDate.formats.pt=new Array("d/MMM/yyyy H:mm:ss","dd-MM-yyyy H:mm","d/MMM/yyyy H:mm:ss","d' de 'MMMM' de 'yyyy H:mm:ss z","EEEE, d' de 'MMMM' de 'yyyy HH'H'mm'm' z");
PTDate.formats.pt_BR=new Array("dd/MM/yyyy HH:mm:ss","dd/MM/yyyy HH:mm","dd/MM/yyyy HH:mm:ss","d' de 'MMMM' de 'yyyy H'h'm'min's's' z","EEEE, d' de 'MMMM' de 'yyyy HH'h'mm'min'ss's' z");
PTDate.formats.pt_PT=new Array("d/MMM/yyyy H:mm:ss","dd-MM-yyyy H:mm","d/MMM/yyyy H:mm:ss","d' de 'MMMM' de 'yyyy H:mm:ss z","EEEE, d' de 'MMMM' de 'yyyy HH'H'mm'm' z");
PTDate.formats.zh=new Array("yyyy-M-d H:mm:ss","yyyy-M-d ah:mm","yyyy-M-d H:mm:ss","yyyy'\u5E74'M'\u6708'd'\u65E5' ahh'\u65F6'mm'\u5206'ss'\u79D2'","yyyy'\u5E74'M'\u6708'd'\u65E5' HH'\u65F6'mm'\u5206'ss'\u79D2' z");
PTDate.formats.zh_CN=new Array("yyyy-M-d H:mm:ss","yyyy-M-d ah:mm","yyyy-M-d H:mm:ss","yyyy'\u5E74'M'\u6708'd'\u65E5' ahh'\u65F6'mm'\u5206'ss'\u79D2'","yyyy'\u5E74'M'\u6708'd'\u65E5' HH'\u65F6'mm'\u5206'ss'\u79D2' z");
PTDate.formats.zh_HK=new Array("yyyy'\u5E74'M'\u6708'd'\u65E5' ahh:mm:ss","yyyy'\u5E74'M'\u6708'd'\u65E5' ah:mm","yyyy'\u5E74'M'\u6708'd'\u65E5' ahh:mm:ss","yyyy'\u5E74'MM'\u6708'dd'\u65E5' EEEE ahh'\u6642'mm'\u5206'ss'\u79D2'","yyyy'\u5E74'MM'\u6708'dd'\u65E5' EEEE ahh'\u6642'mm'\u5206'ss'\u79D2' z");
PTDate.formats.zh_TW=new Array("yyyy/M/d a hh:mm:ss","yyyy/M/d a h:mm","yyyy/M/d a hh:mm:ss","yyyy'\u5E74'M'\u6708'd'\u65E5' ahh'\u6642'mm'\u5206'ss'\u79D2'","yyyy'\u5E74'M'\u6708'd'\u65E5' ahh'\u6642'mm'\u5206'ss'\u79D2' z");
PTDateUtil=function(){return this
};
PTDateUtil.VERSION="251701";
PTDateUtil.isSameDay=function(B,A){if(isNaN(B)||isNaN(A)){return false
}if((B.getFullYear()==A.getFullYear())&&(B.getMonth()==A.getMonth())&&(B.getDate()==A.getDate())){return true
}else{return false
}};
PTDateUtil.getDaysBetweenDates=function(C,B){if(isNaN(C)||isNaN(B)){return 0
}C.setHours(12);
B.setHours(12);
var A=Math.abs(B.getTime()-C.getTime());
return Math.round(A/(1000*60*60*24))
};
PTDateUtil.formatTime=function(C,G){var E=false;
var H=/\b\d\d?\b|\b\d\d?\B|\B\d\d?\b|\B\d\d?\B/g;
var B=new RegExp("AM|am|Am|aM|PM|pm|Pm|pM|p.m.|p.m|P.M.|a.m.|a.m|A.M.");
if(C==""){return false
}if((C.match(/\d\d?:\d/)==null)||(C.match(/:/)==null)){return false
}var D=C.match(H);
var A=C.match(B);
if(!D[1]){D[1]=0
}if(!D[2]){D[2]=0
}if((D[0]>23)||(D[1]>59)||(D[2]>59)||(D[0]==null)||(D[0]<0)||(D[1]<0)||(D[2]<0)){E=true
}var F;
if(G==0){if((A=="PM")&&(D[0]<12)){D[0]+=12
}else{if((A=="AM")&&(D[0]==12)){D[0]=0
}}}else{if(!A){A="AM";
if(D[0]>12){D[0]=D[0]-12;
A="PM"
}else{if(D[0]==0){D[0]=12;
A="AM"
}}}}for(i=0;
i<3;
i++){F="0"+D[i];
if(F.length==2){D[i]=F
}}if(E){alert(PTS_STR["PTU-Date-TimeFormatError"]);
return false
}else{C=D[0]+":"+D[1]+":"+D[2];
if(G==1){C+=" "+A
}return C
}};
PTDateUtil.validateDate=function(E,G,D){var A=E+" "+G+" "+D;
var C=new Date(A);
var B=C.toGMTString();
var F=B.split(" ");
return(F[2]!=G)
};
PTDateValidator=function(){return this
};
PTDateValidator.VERSION="251701";
PTDateValidator.TIME_POLICY_ALLOW_TIMES=0;
PTDateValidator.TIME_POLICY_REQUIRE_TIMES=1;
PTDateValidator.TIME_POLICY_FORBID_TIMES=2;
PTDateValidator.formatTokens=new Array("a","d","E","h","H","k","K","m","M","s","S","y");
PTDateValidator.punctuation=new Array(",","/",":","-",".");
PTDateValidator.closeSubstitutes={"\u00E1":"a","\u00E4":"a","\u00E7":"c","\u00E9":"e","\u00EC":"i","\u00FB":"u","\u2013":"-","\u2212":"-"};
PTDateValidator.validateDate=function(L,M,E,D,G){if(!L){return false
}if(!M){M=PTDate.DEFAULT_LOCALE
}if(!D){D=PTDateValidator.TIME_POLICY_ALLOW_TIMES
}if(!G){G=PTDate.getFormatListForLocale(M)
}var H=false;
var K=G.length;
var C=false;
var I=PTDateValidator.getPunctuationHash();
for(var J=0;
J<K;
J++){var N=G[J];
C=PTDateValidator.parseDateStringAgainstFormat(L,N,I,M);
if(C!=false){if(PTNumberUtil.isInteger(C.day)&&PTNumberUtil.isInteger(C.month)&&PTNumberUtil.isInteger(C.year)){break
}}}var F;
var H=false;
if(C!=false){if(C.ampm&&(C.ampm=="pm")){if((C.hour>0)&&(C.hour<12)){C.hour+=12
}}F=new Date(C.year,C.month,C.day,C.hour,C.minutes,C.seconds);
if((C.day==F.getDate())&&(C.month==F.getMonth())&&(C.year==F.getFullYear())){H=true
}}if(!H){E=PTDateValidator.alertOnFailure(E,G,D)
}var B=false;
if(D==PTDateValidator.TIME_POLICY_ALLOW_TIMES){if((PTNumberUtil.isInteger(C.hour)&&PTNumberUtil.isInteger(C.minutes))||(!PTNumberUtil.isInteger(C.hour)&&!PTNumberUtil.isInteger(C.minutes))){B=true
}else{E=PTDateValidator.alertTimeFormatProblem(E,G,D)
}}else{if(D==PTDateValidator.TIME_POLICY_REQUIRE_TIMES){if(PTNumberUtil.isInteger(C.hour)&&PTNumberUtil.isInteger(C.minutes)){B=true
}else{E=PTDateValidator.alertTimeRequired(E,G,D)
}}else{if(D==PTDateValidator.TIME_POLICY_FORBID_TIMES){if(!PTNumberUtil.isInteger(C.hour)&&!PTNumberUtil.isInteger(C.minutes)){B=true
}else{E=PTDateValidator.alertTimeForbidden(E,G,D)
}}}}if(D!=PTDateValidator.TIME_POLICY_FORBID_TIMES){if((C.hour<0)||(C.hour>23)){B=false;
E=PTDateValidator.alertTimeFormatProblem(E,G,D)
}else{if((C.minutes<0)||(C.minutes>59)){B=false;
E=PTDateValidator.alertTimeFormatProblem(E,G,D)
}else{if((C.seconds<0)||(C.seconds>59)){B=false;
E=PTDateValidator.alertTimeFormatProblem(E,G,D)
}}}}var A=false;
if(H&&B){A=F
}return A
};
PTDateValidator.parseDateStringAgainstFormat=function(V,Q,D,N){V=(new String(V)).replace(/\'/g,"");
Q=Q.replace(/\'\'/g,"");
while(1){var J=Q.indexOf("'");
if(J==-1){break
}var T=Q.substr(J+1).indexOf("'");
if(T==-1){break
}T+=J+1;
var O=Q.substring(J+1,T);
var B=parseInt(((J/Q.length)*100),10);
var C=PTDateValidator.findAllMatches(O,V,N);
var A=false;
var I=100;
for(var M=0;
M<C.length;
M++){var G=C[M];
var L=Math.abs(B-G.pct);
if(L<I){A=G
}}if(A){var F=A.loc;
var E=F+O.length;
V=V.substring(0,F)+" "+V.substr(E)
}Q=Q.substring(0,J)+" "+Q.substr(T+1)
}V=PTStringUtil.substituteChars(V,D);
Q=PTStringUtil.substituteChars(Q,D);
V=PTStringUtil.trimWhitespace(V,true,true);
Q=PTStringUtil.trimWhitespace(Q,true,true);
var P=V.split(/\s+/);
var S=Q.split(/\s+/);
var W=new _dateData();
var K=Math.min(P.length,S.length);
for(var H=0;
H<K;
H++){var U=S[H];
var R=P[H];
W=PTDateValidator.validateWordByTokenType(R,U,W,N);
if(W==false){return false
}}return W
};
PTDateValidator.validateWordByTokenType=function(A,L,B,H){A=A.toLowerCase();
var J=false;
var E=PTDateStrings;
if(H.indexOf("en")==0){E=PTDate.EnglishStrings
}if(L.indexOf("a")>-1){var K=E.ampm.length;
for(var M=0;
M<K;
M++){var G=E.ampm[M];
var I=A.indexOf(G.toLowerCase());
if(I>-1){B.ampm=(M)?"pm":"am";
A=A.substring(0,I)+A.substr(G.length);
while(L.indexOf("a")>-1){var F=L.indexOf("a");
L=L.substring(0,F)+L.substr(F+1)
}J=true;
break
}}}if(L.charAt(0)=="d"){if(!PTNumberUtil.isInteger(A)){return false
}var C=A;
if(parseInt(C,10)==0){C=parseInt(C,10)
}else{C=parseInt(PTNumberUtil.trimLeadingZeros(A),10)
}if(isNaN(C)){return false
}B.day=C;
return B
}else{if(L=="E"){if(PTDateValidator.isWordLike(A,E.daysInitial,7)){return B
}}else{if(L.substring(0,2)=="EE"){if(PTDateValidator.isWordLike(A,E.daysLong.concat(E.daysShort),7)){return B
}}else{if(L.charAt(0).toLowerCase()=="h"){if(!PTNumberUtil.isInteger(A)){return false
}var C=A;
if(parseInt(C,10)==0){C=parseInt(C,10)
}else{C=parseInt(PTNumberUtil.trimLeadingZeros(A),10)
}if(isNaN(C)){return false
}B.hour=C;
return B
}else{if(L.charAt(0).toLowerCase()=="k"){if(!PTNumberUtil.isInteger(A)){return false
}var C=A;
if(parseInt(C,10)==0){C=parseInt(C,10)
}else{C=parseInt(PTNumberUtil.trimLeadingZeros(A),10)
}if(isNaN(C)){return false
}B.hour=C;
return B
}else{if(L.charAt(0)=="m"){if(!PTNumberUtil.isInteger(A)){return false
}var C=A;
if(parseInt(C,10)==0){C=parseInt(C,10)
}else{C=parseInt(PTNumberUtil.trimLeadingZeros(A),10)
}if(isNaN(C)){return false
}B.minutes=C;
return B
}else{if((L=="M")||(L=="MM")){if(!PTNumberUtil.isInteger(A)){return false
}var C=A;
if(parseInt(C,10)==0){C=parseInt(C,10)
}else{C=parseInt(PTNumberUtil.trimLeadingZeros(A),10)
}if(isNaN(C)){return false
}C-=1;
B.month=C;
return B
}else{if(L.substring(0,3)=="MMM"){var D=PTDateValidator.isWordLike(A,E.monthsLong.concat(E.monthsShort),12);
if(D){if(parseInt(D,10)==0){B.month=0
}else{B.month=parseInt(PTNumberUtil.trimLeadingZeros(D),10)
}return B
}}else{if(L.charAt(0)=="s"){var C=A;
if(parseInt(C,10)==0){C=parseInt(C,10)
}else{C=parseInt(PTNumberUtil.trimLeadingZeros(A),10)
}if(isNaN(C)){B.seconds=0
}else{B.seconds=C
}return B
}else{if(L.charAt(0)=="S"){return B
}else{if(L.indexOf("yy")>-1){if(!PTNumberUtil.isInteger(A)){return false
}var C=parseInt(PTNumberUtil.trimLeadingZeros(A),10);
if(isNaN(C)){return false
}if(C<100){C=PTDate.convert2DigitTo4DigitYear(C)
}B.year=C;
return B
}else{if(L.charAt(0)=="z"){return B
}}}}}}}}}}}}if(J){return B
}else{return false
}};
PTDateValidator.isWordLike=function(F,E,D){F=F+"";
var B=E.length;
for(var C=0;
C<B;
C++){var A=(new String(E[C])).toLowerCase()+"";
if(A==F){return new String(C%D)
}if((F.length>=3)&&(A.indexOf(F.substring(0,3))==0)){return new String(C%D)
}A=PTStringUtil.substituteChars(A,PTDateValidator.closeSubstitutes);
if(A==F){return new String(C%D)
}if((F.length>=3)&&(A.indexOf(F)==0)){return new String(C%D)
}}return false
};
PTDateValidator.findAllMatches=function(I,F,L){var E=new Array();
var M=new String(F);
var J=0;
var B=PTDateStrings;
if(L.indexOf("en")==0){B=PTDate.EnglishStrings
}while(M.indexOf(I)>-1){var G=M.indexOf(I);
var K=G+J;
var C=false;
var H=(M.substr(M.indexOf(I))).replace(/\s.*$/,"");
if(H.length>1){for(var D=0;
D<B.monthsLong.length;
D++){if(B.monthsLong[D].indexOf(H)>-1){C=true;
break
}}}if(!C){var A=E[E.length]=new Object();
A.loc=K;
A.pct=Math.round((K/F.length)*100)
}M=M.substr(G+1);
J+=(G+1)
}return E
};
PTDateValidator.alertOnFailure=function(B,D,A){if(B){var I=new PTStringBuffer();
I.append(PTS_STR["PTU-DateV-DateFormatError"]+"\n\n");
I.append(PTS_STR["PTU-DateV-ExampleFormats"]+"\n\n");
var C=new Array();
var H=new Date();
var F=0;
if(D[0]==D[2]){F=1
}for(var G=F;
G<D.length;
G++){var J=D[G];
if(A==PTDateValidator.TIME_POLICY_FORBID_TIMES){J=PTDate.stripTimesFromFormat(J)
}var E=PTDate.formatDate(H,J);
if(C[E]){continue
}else{C[E]=true
}I.append("      "+E+"\n")
}I.append("\n");
alert(I.toString())
}return false
};
PTDateValidator.alertTimeFormatProblem=function(B,C,A){if(B){alert(PTS_STR["PTU-DateV-TimeFormatError"]);
return false
}return B
};
PTDateValidator.alertTimeRequired=function(B,C,A){if(B){alert(PTS_STR["PTU-DateV-TimeRequired"]);
return false
}return B
};
PTDateValidator.alertTimeForbidden=function(B,C,A){if(B){alert(PTS_STR["PTU-DateV-TimeForbidden"]);
return false
}return B
};
PTDateValidator.getPunctuationHash=function(){var C=new Array();
var B=PTStringUtil.whitespaceChars.concat(PTDateValidator.punctuation);
var A=B.length;
for(var D=0;
D<A;
D++){C[B[D]]=" "
}return C
};
function _dateData(){this.day=false;
this.month=false;
this.year=false;
this.hour=false;
this.minutes=false;
this.seconds=false;
this.ampm=false;
return this
}PTEventUtil=function(){return this
};
PTEventUtil.VERSION="251701";
PTEventUtil.SRC_BUTTON_LEFT="left";
PTEventUtil.SRC_BUTTON_RIGHT="right";
PTEventUtil.SRC_BUTTON_MIDDLE="middle";
PTEventUtil.stopBubbling=function(A){if(!A){var A=window.event
}if(!A){return 
}A.cancelBubble=true;
if(A.stopPropagation){A.stopPropagation()
}};
PTEventUtil.attachEventListener=function(C,B,A){if(document.all){if(B.substring(0,2)!="on"){B="on"+B
}C.attachEvent(B,A)
}else{if(B.substring(0,2)=="on"){B=B.substring(2,B.length)
}C.addEventListener(B,A,false)
}};
PTEventUtil.detachEventListener=function(C,B,A){if(document.all){if(B.substring(0,2)!="on"){B="on"+B
}C.detachEvent(B,A)
}else{if(B.substring(0,2)=="on"){B=B.substring(2,B.length)
}C.removeEventListener(B,A,false)
}};
PTEventUtil.getSrcElement=function(A){if(document.all){return A.srcElement
}else{return A.target
}};
PTEventUtil.getButtonClicked=function(A){if(!A){return false
}if(document.all){if(A.button==1){return PTEventUtil.SRC_BUTTON_LEFT
}else{if(A.button==4){return PTEventUtil.SRC_BUTTON_MIDDLE
}else{if(A.button==2){return PTEventUtil.SRC_BUTTON_RIGHT
}else{return false
}}}}else{if(A.button==0){return PTEventUtil.SRC_BUTTON_LEFT
}else{if(A.button==1){return PTEventUtil.SRC_BUTTON_MIDDLE
}else{if(A.button==2){return PTEventUtil.SRC_BUTTON_RIGHT
}else{return false
}}}}};
PTEventUtil.getMouseOverFromElement=function(A){if(!A){return false
}if(document.all){return A.fromElement
}else{return A.relatedTarget
}};
PTEventUtil.getMouseOutFromElement=function(A){if(!A){return false
}if(document.all){return A.fromElement
}else{return A.target
}};
PTEventUtil.getMouseOverToElement=function(A){if(!A){return false
}if(document.all){return A.toElement
}else{return A.target
}};
PTEventUtil.getMouseOutToElement=function(A){if(!A){return false
}if(document.all){return A.toElement
}else{return A.relatedTarget
}};
PTEventUtil.clickElement=function(B){if(B.click){B.click()
}else{if(B.dispatchEvent){var A=document.createEvent("MouseEvents");
A.initMouseEvent("click",true,true,window,1,0,0,0,0,false,false,false,false,0,null);
B.dispatchEvent(A)
}}};
PTEventUtil.getMouseX=function(B){var A=0;
if(!B){var B=window.event
}if(B.pageX){A=B.pageX
}else{if(B.clientX){A=B.clientX;
posy=B.clientY;
if(PTBrowserInfo.IS_MSIE){A+=document.body.scrollLeft
}}}return A
};
PTEventUtil.getMouseY=function(A){var B=0;
if(!A){var A=window.event
}if(A.pageY){B=A.pageY
}else{if(A.clientY){B=A.clientY;
if(PTBrowserInfo.IS_MSIE){B+=document.body.scrollTop
}}}return B
};
PTFormUtil=function(){};
PTFormUtil.VERSION="251701";
PTFormUtil.getRadioValue=function(A){if(!A){return 
}var C;
if(A.length>1){for(var B=0;
B<A.length;
B++){if(A[B].checked){C=A[B].value;
break
}}}else{C=A.value
}return C
};
PTFormUtil.setRadioValue=function(A,C){if(!A){return false
}var D=false;
if(A.length>1){for(var B=0;
B<A.length;
B++){if(A[B].value==C){D=true;
break
}}if(D){for(var B=0;
B<A.length;
B++){if(A[B].value==C){A[B].checked=true
}else{A[B].checked=false
}}}}else{D=(A.checked=true)
}return D
};
PTFormUtil.setSelectValue=function(C,E){var D=false;
if(!C){return D
}if(C.options.length<1){return D
}for(var B=0;
B<C.options.length;
B++){var A=C.options[B];
if(A.value&&A.value==E){C.selectedIndex=B;
D=true;
break
}}return D
};
PTFormUtil.fillSelect=function(A,E){if(!A){return 
}if(!E){return 
}if(!E.length){return 
}var D=A.options.length;
var F=E.length;
for(var B=0;
B<F;
B++){if(!E[B]){continue
}var G=E[B];
var I=G.text;
var H=G.value;
var C=D+B;
A.options[C]=new Option(I,H)
}};
PTFormUtil.clearSelect=function(C){if(!C){return 
}var B=C.options.length;
if(B==0){return 
}for(var A=(B-1);
A>=0;
A--){C.options[A]=null
}};
PTFormUtil.addItemToSelect=function(F,G,C,B){if((!B&&(B!=0))||(B==-1)){B=F.options.length;
F.options[B]=new Option(C,G)
}else{var E=F.options;
var A=E.length;
for(var D=A;
D>B;
D--){if(!E[D]){E[D]=new Option(E[D-1].text,E[D-1].value)
}else{E[D].text=E[D-1].text;
E[D].value=E[D-1].value
}}E[B].text=C;
E[B].value=G
}return B
};
PTFormUtil.selectMoveItemUp=function(B){idx=B.selectedIndex;
if(idx==-1){return 
}if(idx<1){return 
}var A=B.options[idx-1].text;
var C=B.options[idx-1].value;
B.options[idx-1].text=B.options[idx].text;
B.options[idx-1].value=B.options[idx].value;
B.options[idx].text=A;
B.options[idx].value=C;
B.selectedIndex=idx-1
};
PTFormUtil.selectMoveItemDown=function(B){idx=B.selectedIndex;
if(idx==-1){return 
}if(idx>=(B.options.length-1)){return 
}var A=B.options[idx+1].text;
var C=B.options[idx+1].value;
B.options[idx+1].text=B.options[idx].text;
B.options[idx+1].value=B.options[idx].value;
B.options[idx].text=A;
B.options[idx].value=C;
B.selectedIndex=idx+1
};
PTFormUtil.focusAndSelectText=function(A){if(!A||!A.focus||!A.select){return 
}A.focus();
A.select()
};
PTFormUtil.focusFormFieldByName=function(fieldName){var field=eval(fieldName);
if(field&&field.focus){field.focus()
}};
PTFormUtil.hideAllSelects=function(C){if(!C){C=window.document
}var A=C.getElementsByTagName("select");
var D=new Array();
for(var B=0;
B<A.length;
B++){if(A[B].style.visibility!="hidden"){PTFormUtil.setSelectVisibility(A[B],"hidden");
D[D.length]=A[B]
}}return D
};
PTFormUtil.hideSelects=function(A){if(!A){return 
}for(var B=0;
B<A.length;
B++){PTFormUtil.setSelectVisibility(A[B],"hidden")
}};
PTFormUtil.showAllSelects=function(D){if(!D){D=window.document
}var B=D.getElementsByTagName("select");
var A=new Array();
for(var C=0;
C<B.length;
C++){if(B[C].style.visibility=="hidden"){PTFormUtil.setSelectVisibility(B[C],"visible");
A[A.length]=B[C]
}}return A
};
PTFormUtil.showSelects=function(A){if(!A){return 
}for(var B=0;
B<A.length;
B++){PTFormUtil.setSelectVisibility(A[B],"visible")
}};
PTFormUtil.disableAllSelects=function(C){if(!C){C=window.document
}var A=C.getElementsByTagName("select");
if(!window._selectStateCache){window._selectStateCache=new Object()
}for(var B=0;
B<A.length;
B++){var D=A[B];
if(D.id){if(D.disabled===true){window._selectStateCache[D.id]=true
}else{window._selectStateCache[D.id]=false
}}D.disabled=true
}};
PTFormUtil.enableAllSelects=function(C,E){if(!C){C=window.document
}var A=C.getElementsByTagName("select");
for(var B=0;
B<A.length;
B++){var D=A[B];
if(E&&window._selectStateCache&&window._selectStateCache[D.id]){continue
}A[B].disabled=false
}};
PTFormUtil.setSelectVisibility=function(A,B){if(!A){return false
}A.style.visibility=B
};
PTHashtable=function(){this._keys=new Array();
this._values=new Object();
this._enumKeyIndex=-1;
return this
};
PTHashtable.VERSION="251701";
PTHashtable.prototype.className="PTHashtable";
PTHashtable.prototype.clear=function(){this._keys=new Array();
this._values=new Object();
this._enumKeyIndex=-1
};
PTHashtable.prototype.clone=function(){var C=new PTHashtable();
var D=this._keys.length;
for(var B=0;
B<D;
B++){var A=this._keys[B];
C._keys[B]=A;
C._values[A]=this._values[A]
}return C
};
PTHashtable.prototype.contains=function(A){return this.containsValue(A)
};
PTHashtable.prototype.containsKey=function(B){var C=this._keys.length;
for(var A=0;
A<C;
A++){if(this._keys[A]==B){return true
}}return false
};
PTHashtable.prototype.containsValue=function(D){var C=this._keys.length;
for(var B=0;
B<C;
B++){var A=this._keys[B];
if(this._values[A]==D){return true
}}return false
};
PTHashtable.prototype.equals=function(D){if(!D){return false
}if(!D.className){return false
}if(D.className!="PTHashtable"){return false
}if(!D._keys){return false
}if(!PTArrayUtil.isArrayLike(D._keys)){return false
}if(D._keys.length!=this._keys.length){return false
}var C=this._keys.length;
for(var B=0;
B<C;
B++){var A=this._keys[B];
if(A!=D._keys[B]){return false
}if(this._values[A]!=D._values[A]){return false
}}return true
};
PTHashtable.prototype.get=function(A){return this._values[A]
};
PTHashtable.prototype.hasNext=function(){var A=this._enumKeyIndex+1;
return(this._keys.length>A)?true:false
};
PTHashtable.prototype.isEmpty=function(){return(this.size()==0)?true:false
};
PTHashtable.prototype.keys=function(){var A=new Array();
var C=this._keys.length;
for(var B=0;
B<C;
B++){A[B]=this._keys[B]
}return A
};
PTHashtable.prototype.next=function(){this._enumKeyIndex++;
if(!this.hasNext()){return 
}else{return this._values[this._keys[this._enumKeyIndex]]
}};
PTHashtable.prototype.put=function(B,C){var A=this._values[B];
if(!this.containsKey(B)){this._keys.push(B)
}this._values[B]=C;
return A
};
PTHashtable.prototype.remove=function(D){var A=this._values[D];
var C=-1;
var E=this._keys.length;
for(var B=0;
B<E;
B++){if(this._keys[B]==D){C=B;
break
}}if(C==-1){return 
}this._keys.splice(C,1);
return A
};
PTHashtable.prototype.resetIterator=function(){this._enumKeyIndex=-1
};
PTHashtable.prototype.size=function(){return this._keys.length
};
PTHashtable.prototype.toArray=function(){var A=new Array();
var E=this._keys.length;
for(var C=0;
C<E;
C++){var B=this._keys[C];
var D=this._values[B];
var F=new Object();
F.key=B;
F.value=D;
A[C]=F
}return A
};
PTHashtable.prototype.toString=function(){var E=new PTStringBuffer();
E.append("{ ");
var D=this._keys.length;
for(var B=0;
B<D;
B++){var A=this._keys[B];
var C=this._values[A];
E.append("'"+PTStringUtil.escapeJS(A)+"'");
E.append(" : ");
E.append("'"+PTStringUtil.escapeJS(C)+"'");
if(B!=(D-1)){E.append(", ")
}}E.append(" }");
return E.toString()
};
PTHashtable.prototype.values=function(){var A=new Array();
var D=this._keys.length;
for(var C=0;
C<D;
C++){var B=this._keys[C];
A[C]=this._values[B]
}return A
};
PTNumberFormatter=function(A){this.num=(A)?A:0;
this.isGrouping=true;
this.isCurrency=false;
this.currencySymbol="";
this.currencySymbolBefore=true;
this.groupingSeparator=",";
this.decimalSeparator=".";
this.decimalPlaces=-1;
this.negativePrefix="-";
this.negativeSuffix=""
};
PTNumberFormatter.VERSION="251701";
PTNumberFormatter.prototype.INVALID="INVALID";
PTNumberFormatter.prototype.formatValue=function(D){if(D!=null){this.num=D
}if((this.num==null)||(this.num=="")||(this.num.toString().length==0)){return""
}if(this.isCurrency==true){var L=new RegExp(this.currencySymbol,"gi");
this.num=this.num.toString().replace(L,"");
var K=new RegExp("\\"+this.currencySymbol,"gi");
this.num=this.num.toString().replace(K,"")
}var B=new RegExp("\\"+this.groupingSeparator,"g");
this.num=this.num.toString().replace(B,"");
if((this.num.toString().indexOf("(")>-1)&&(this.num.toString().indexOf(")")>-1)){if(this.num.toString().indexOf(")")!=this.num.toString().lastIndexOf(")")){return this.invalidNumber()
}if(this.num.toString().indexOf("(")!=this.num.toString().lastIndexOf("(")){return this.invalidNumber()
}if(this.num.toString().indexOf(")")<this.num.toString().lastIndexOf("(")){return this.invalidNumber()
}var E=new RegExp("\\(","g");
this.num=this.num.toString().replace(E,"");
var C=new RegExp("\\)","g");
this.num=this.num.toString().replace(C,"");
if(this.num.toString().indexOf("-")==-1){this.num="-"+this.num.toString()
}}if(this.num.toString().indexOf("-")!=this.num.toString().lastIndexOf("-")){return this.invalidNumber()
}var F=new RegExp("\\d\\D*-\\D*\\d","g");
if(F.test(this.num.toString())){return this.invalidNumber()
}if(this.num.toString().indexOf("-")!=-1){var G=new RegExp("-","g");
this.num=this.num.toString().replace(G,"");
this.num="-"+this.num.toString()
}dsRe=new RegExp("\\"+this.decimalSeparator,"g");
this.num=this.num.toString().replace(dsRe,".");
if(isNaN(this.num)){return this.invalidNumber()
}var H;
var J=this.num;
var A;
var I=this.num;
if(I.toString().indexOf("-")==0){I=I.substring(1)
}J=this.getRounded(J);
A=this.preserveZeros(I);
dotRe=new RegExp("\\.","g");
A=A.replace(dotRe,this.decimalSeparator);
if(this.isGrouping){H=A.indexOf(this.decimalSeparator);
if(H==-1){H=A.length
}while(H>0){H-=3;
if(H<=0){break
}A=A.substring(0,H)+this.groupingSeparator+A.substring(H,A.length)
}}if(this.isCurrency){if(this.currencySymbolBefore){A=this.currencySymbol+A
}else{A=A+this.currencySymbol
}}A=(J<0)?this.negativePrefix+A+this.negativeSuffix:A;
return(A)
};
PTNumberFormatter.prototype.setNumber=function(A){this.num=A
};
PTNumberFormatter.prototype.toUnformatted=function(){return(this.num)
};
PTNumberFormatter.prototype.setGrouping=function(A){this.isGrouping=A
};
PTNumberFormatter.prototype.setGroupingSeparator=function(A){this.groupingSeparator=A
};
PTNumberFormatter.prototype.setDecimalSeparator=function(A){this.decimalSeparator=A
};
PTNumberFormatter.prototype.setCurrency=function(A){this.isCurrency=A
};
PTNumberFormatter.prototype.setCurrencySymbol=function(A){this.currencySymbol=A
};
PTNumberFormatter.prototype.setCurrencySymbolBefore=function(A){this.currencySymbolBefore=A
};
PTNumberFormatter.prototype.setDecimalPlaces=function(A){this.decimalPlaces=A
};
PTNumberFormatter.prototype.setNegativePrefix=function(A){this.negativePrefix=A
};
PTNumberFormatter.prototype.setNegativeSuffix=function(A){this.negativeSuffix=A
};
PTNumberFormatter.prototype.formatField=function(B){var A=this.formatValue(B.value);
if(A==this.INVALID){B.value="";
B.focus()
}else{B.value=A
}};
PTNumberFormatter.prototype.validateValue=function(A){var B=this.formatValue(A);
if(B==this.INVALID){return false
}else{return true
}};
PTNumberFormatter.prototype.getRounded=function(C){if(this.decimalPlaces<0){return C
}var B;
var A;
B=1;
for(A=0;
A<this.decimalPlaces;
A++){B*=10
}C*=B;
C=Math.round(C);
C/=B;
return(C)
};
PTNumberFormatter.prototype.preserveZeros=function(C){var B;
C=C+"";
if(this.decimalPlaces<0){return C
}var A=C.indexOf(".");
if(A==-1&&this.decimalPlaces>0){C+=this.decimalSeparator;
for(B=0;
B<this.decimalPlaces;
B++){C+="0"
}}else{var E=(C.length-1)-A;
var D=this.decimalPlaces-E;
for(B=0;
B<D;
B++){C+="0"
}}return C
};
PTNumberFormatter.prototype.invalidNumber=function(){alert(PTS_STR["PTU-Number-AlertInvNumber"]);
return this.INVALID
};
PTNumberFormatter.prototype.toFormatted=function(A){return this.formatValue(A)
};
PTNumberUtil=function(){};
PTNumberUtil.VERSION="251701";
PTNumberUtil.isInteger=function(C){C=PTNumberUtil.trimLeadingZeros(C);
if(C.length==0){return true
}var B=new String(C);
var A=new String(parseInt(new String(C)));
return(B.valueOf()==A.valueOf())
};
PTNumberUtil.isPositiveInteger=function(A){if(!PTNumberUtil.isInteger(A)){return false
}return(parseInt(A)>0)
};
PTNumberUtil.trimLeadingZeros=function(A){A=new String(A);
while(A.charAt(0)=="0"){A=A.substr(1)
}return A
};
PTStringBuffer=function(A){this.i=0;
this.s=new Array();
if(A&&A.length&&(A.length>0)){this.s[this.i++]=A
}return this
};
PTStringBuffer.VERSION="251701";
PTStringBuffer.prototype.append=function(B){if(this.i>=1000&&this.i%1000==0){var A=this.s.join("");
this.s=new Array();
this.s[0]=A;
this.i=1
}this.s[this.i++]=B
};
PTStringBuffer.prototype.toString=function(){return this.s.join("")
};
PTStringUtil=function(){};
PTStringUtil.VERSION="251701";
PTStringUtil.isString=function(A){if(A==""){return true
}else{if(typeof A=="string"){return true
}else{if(typeof A=="object"){if(A.fixed&&A.link&&A.blink&&A.toUpperCase){return true
}else{return false
}}else{return false
}}}};
PTStringUtil.isValidHTTPString=function(C){var B=C.substring(0,7);
var A=C.substring(0,8);
if((B!="http://")&&(A!="https://")){return false
}if(C.length<8){return false
}if(PTStringUtil.containsWhitespace(C)){return false
}return true
};
PTStringUtil.isValidUNCString=function(C,A){if(!C){return false
}if(A&&(C=="")){return true
}if(C==""){return false
}var B=C.substring(0,2);
if(B!="\\\\"){return false
}if(C.length<3){return false
}return true
};
PTStringUtil.containsAngleBrackets=function(B){var A=/[<>]/;
return(A.test(B))
};
PTStringUtil.containsWhitespace=function(F){var D=PTStringUtil.whitespaceChars;
F=new String(F);
for(var C=0;
C<F.length;
C++){var E=F.charAt(C);
for(var B=0;
B<D.length;
B++){var A=D[B];
if(E==A){return true
}}}return false
};
PTStringUtil.isAllWhitespace=function(F){var D=PTStringUtil.whitespaceChars;
F=new String(F);
STRING:for(var C=0;
C<F.length;
C++){var E=F.charAt(C);
for(var B=0;
B<D.length;
B++){var A=D[B];
if(E==A){continue STRING
}}return false
}return true
};
PTStringUtil.UCFirst=function(D){var C=(new String(D)).substring(0,1);
if(!C){return D
}else{var A=(new String(D)).substring(1);
if(!A){A=""
}var B=C.toUpperCase()+A;
return B
}};
PTStringUtil.stripChars=function(G,E){if(!E||(E.length<1)){return G
}G=new String(G);
var B=new String();
STRING:for(var C=0;
C<G.length;
C++){var F=G.charAt(C);
for(var A=0;
A<E.length;
A++){var D=E[A];
if(F==D){continue STRING
}}B+=F
}return B
};
PTStringUtil.whitespaceChars=new Array(" ","\n","\r","\t","\u00A0");
PTStringUtil.trimWhitespace=function(G,B,D){if(!G){return G
}G=new String(G);
var E=PTStringUtil.whitespaceChars;
if(B){var C=true;
while(C){var F=false;
for(var A=0;
A<E.length;
A++){var H=E[A];
if(H==G.charAt(0)){F=true;
break
}}if(F){G=G.substr(1)
}else{C=false
}}}if(D){var C=true;
while(C){var F=false;
for(var A=0;
A<E.length;
A++){var H=E[A];
if(H==G.charAt(G.length-1)){F=true;
break
}}if(F){G=G.substring(0,(G.length-1))
}else{C=false
}}}return G
};
PTStringUtil.escapeHTML=function(J,H,F){J=new String(J);
if(document.getElementById){var A=new RegExp('"',"g");
J=J.replace(A,"&quot;");
var A=new RegExp("<","g");
J=J.replace(A,"&lt;");
var A=new RegExp(">","g");
J=J.replace(A,"&gt;");
if(H){var A=new RegExp("\n","g");
J=J.replace(A,"<br>")
}if(F){var A=new RegExp("\\s","g");
J=J.replace(A,"&nbsp;")
}var I=J
}else{var C={'"':"&quot;","<":"&lt;",">":"&gt;"};
var I=new String();
STRING:for(var D=0;
D<J.length;
D++){var E=J.charAt(D);
for(var B in C){var G=C[B];
if(E==B){I+=G;
continue STRING
}}I+=E
}}return I
};
PTStringUtil.unescapeHTML=function(B){B=new String(B);
var C=new RegExp("&quot;","gi");
B=B.replace(C,'"');
var A=new RegExp("&lt;","gi");
B=B.replace(A,"<");
var A=new RegExp("&gt;","gi");
B=B.replace(A,">");
return B
};
PTStringUtil.removeHTML=function(B){B=new String(B);
B=B.replace(new RegExp("&nbsp;","g")," ");
while((B.indexOf("<")>-1)&&(B.indexOf(">")>B.indexOf("<"))){var C=B.indexOf("<");
var A=B.indexOf(">");
B=B.substr(0,C)+B.substring(A+1,B.length)
}return B
};
PTStringUtil.getInnerText=function(A){var B;
if(PTBrowserInfo.IS_MSIE){B=A.innerText
}else{B=PTStringUtil.removeHTML(A.innerHTML)
}return B
};
PTStringUtil.escapeJS=function(H){H=new String(H);
if(document.getElementById){var G=new RegExp("\\\\","g");
H=H.replace(G,"\\\\");
var G=new RegExp("\n","g");
H=H.replace(G,"\\n");
var G=new RegExp("'","g");
H=H.replace(G,"\\'");
var C=H
}else{var E={"\n":"\\n","'":"\\'","\\":"\\\\"};
var C=new String("");
STRING:for(var D=0;
D<H.length;
D++){var F=H.charAt(D);
for(var B in E){var A=E[B];
if(F==B){C+=A;
continue STRING
}}C+=F
}}return C
};
PTStringUtil.encodeURL=function(K,H){if(K==null){return null
}if(PTBrowserInfo.IS_NETSCAPE_DOM||PTBrowserInfo.IS_SAFARI||(PTBrowserInfo.IS_MSIE&&PTBrowserInfo.MSIE_VERSION>=5.5)){var B=encodeURIComponent(K);
if(H){B=B.replace(/\'/g,"%27")
}return B
}var M=new String(K);
var B=new PTStringBuffer();
for(var F=0;
F<M.length;
F++){var G=M.charAt(F);
var L=G.charCodeAt(0);
if(((L>47)&&(L<58))||((L>64)&&(L<91))||((L>96)&&(L<123))){B.append(String.fromCharCode(L))
}else{if((L<=47)||((L>=58)&&(L<=64))||((L>=91)&&(L<=96))||((L>=123)&&(L<=127))){var A=L.toString(16);
var I=A.length;
switch(I){case 0:A="00";
break;
case 1:A="0"+A;
case 2:break;
defalt:A=A.substring((I-2),I);
break
}B.append("%"+A)
}else{if((L>127)&&(L<2048)){B.append("%"+((L>>6)|192).toString(16).toUpperCase());
B.append("%"+((L&63)|128).toString(16).toUpperCase())
}else{var E=(L>>12)|224;
var D=((L>>6)&63)|128;
var C=(L&63)|128;
B.append("%"+((L>>12)|224).toString(16).toUpperCase());
B.append("%"+(((L>>6)&63)|128).toString(16).toUpperCase());
B.append("%"+((L&63)|128).toString(16).toUpperCase())
}}}}var J=B.toString();
if(H){J=J.replace(/\'/g,"%27")
}return J
};
PTStringUtil.substituteChars=function(G,F){G=new String(G);
var A=new String();
STRING:for(var C=0;
C<G.length;
C++){var E=G.charAt(C);
for(var D in F){var B=F[D];
if(E==D){A+=B;
continue STRING
}}A+=E
}return A
};
PTStringUtil.lineBreakToBR=function(B){B=new String(B);
var A=/\n/g;
B=B.replace(A,"<br>");
return B
};
PTWindowUtil=function(){return this
};
PTWindowUtil.VERSION="251701";
PTWindowUtil.defaultWidth=650;
PTWindowUtil.defaultHeight=450;
PTWindowUtil.helpWindowName="PTRoboHelp";
PTWindowUtil.openWindow=function(J,B,O,C,P){var G=(document.layers);
if(!B){B="PTWindow"+(new Date()).getTime()
}var D=(C)?C:PTWindowUtil.defaultWidth;
var F=(O)?O:PTWindowUtil.defaultHeight;
var N=(G)?screen.width:screen.availWidth;
var M=(G)?screen.height:screen.availHeight;
var K=parseInt(N/2)-parseInt(D/2);
var A=parseInt(M/2)-parseInt(F/2);
var E=(G)?"screenX="+K:"left="+K;
var H=(G)?"screenY="+A:"top="+A;
var L="width="+D+",height="+F+","+E+","+H+",resizable=1";
if(PTNumberUtil.isInteger(P)){if(P==1){L+=",scrollbars=1,status=0,toolbar=0,menubar=0,location=0"
}}else{if(P==true){L+=",scrollbars=1,status=1,toolbar=1,menubar=1,location=1"
}else{L+=",scrollbars=0,status=0,toolbar=0,menubar=0,location=0"
}}var I=window.open(J,B,L);
I.focus();
return I
};
PTWindowUtil.openHelpWindow=function(B,A,C,D){return PTWindowUtil.openWindow(B,PTWindowUtil.helpWindowName,A,C,D)
};
function OpenSizedWindow(B,C,A,D,E){return PTWindowUtil.openWindow(B,C,A,D,E)
};