var ns4=false,ie4=false,ns6=false,safari=false,isMac=false;var webAppVersion,request;function detectBrowser(){if(document.getElementById&&!document.all)ns6=true;else if(document.all)ie4=true;else if(document.layers)ns4=true;isMac=navigator.userAgent.toLowerCase().indexOf('mac')!=-1;safari=navigator.userAgent.indexOf('Safari')!=-1;}
detectBrowser();var eventReload=false;function reloadAll(){eventReload=true;window.location.reload();} function reloadExpired(){eventReload=true;window.location=Strings.before(window.location.href,"?");} function closeWin(id){if(id){if(!id.closed)id.closeWin();}
if(parent.window){parent.window.openerFocus();parent.window.close();}
else if(window.opener)openerFocus();window.close();}
var openedX=-1,openedY=-1;function openWin(aa,ca,w,h,x,y,tb,da,ea){windowCloseDeps=false;if(!w||w=='max')w=screen.width-10;if(!h||h=='max')h=screen.height-90;if(w&&w<0)w=screen.width+w;if(h&&h<0)h=screen.height+h;if(!ca)ca="OpenWin"+new Date().getTime();var xb=-1,yb=-1;if(x==undefined||x==-1){x=(screen.width/2)-w/2;xb=x;}
if(y==undefined||y==-1){y=((screen.height-70)/2)-h/2;yb=x;}
if(!ea||ea=="")ea="yes";var fa=window.open(aa,ca,"width="+w+",height="+h+",top="+y+",left="+x+",toolbar="+(Strings.isTrue(tb)?"yes":"no")+",menubar=no,location=no,status="+ea+",scrollbars=yes,dependent="+da+",resize=yes,resizable=yes");if(fa==null||fa==undefined){alert("Error: Your web browser appears to have 'pop-up' windows disabled. You must enable pop-up windows for this site in order to use various tools. Please review your software's settings or documentation for instructions about how to enable pop-ups on a per-site basis.");return null;}
try{fa.openedX=xb;fa.openedY=yb;}
catch(ex){}
fa.focus();return fa;} function libWin(ha,ia,w,h,x,y,tb,ja,st){openWin(ha,ia,w,h,x,y,tb,ja,st);}
var windowCloseDeps=false;var windowCloseWait=false;var windowCloseWaitMsg="Changes on this screen have not been saved. Do you want to abandon them?";function dependWin(){var ka=false;var op=opener;if(op&&!op.closed){try{if(op.windowCloseDeps==true)ka=true;}catch(ex){}
op=op.opener;}
if(!opener||opener.closed){if(windowCloseWait&&!confirm(windowCloseWaitMsg))return;window.close();}
setTimeout('dependWin()',500);} function messagePageLoading(){if(ie4)PageLoading.style.visibility='hidden';if(ns4)document.PageLoading.visibility='hidden';if(ns6)document.getElementById('PageLoading').style.visibility='hidden';} function hasFormChange(){formChanged=false;var la=document.forms;for(var i=0;i<la.length;i++){var ma=la[i].elements;for(var j=0;j<ma.length;j++)if(ma[j].changed==true)formChanged=true;}
if(formChanged==true)return confirm("Abandon changes?");return true;} function confirmDelete(na){if(na==undefined||na=="")na="This will delete this item. Are you SURE??";return confirm(na);} function userPassword(){libWin(getSecureHost()+'/sys/user/password.jsp','password',600,600);} function userProfile(){libWin(getSecureHost()+'/sys/user/profile.jsp','profile',700,600);} function miniLogin(){var w=350,h=250;window.open(getSecureHost()+'/sys/user/login/','miniLogin','width='+w+',height='+h+',top='+((screen.height/2)-(h/2))+',left='+((screen.width/2)-(w/2))+',toolbar=no,menubar=no,location=no,status=no,scrollbar=yes,resize=yes,resizable=yes,dependent=yes');} function contactMgr(){libWin(getSecureHost()+'/sys/admin/phonelist/search.jsp','phonelist',900,'max');} function contactEdit(id){libWin(getSecureHost()+'/sys/admin/phonelist/?edit='+id,'n'+id,640,600);} function contactCreate(oa,n1,pa){n1=Strings.norm(n1);if(oa==800){var qa;if(n1.indexOf("@")!=-1){qa="&emailint="+escape(n1)}
else{var sa="";var ta="";var x=n1.split(' ');if(x[0])sa=x[0].substring(0,1).toUpperCase()+x[0].substring(1);if(x[1])ta=x[1].substring(0,1).toUpperCase()+x[1].substring(1);qa="&first="+escape(sa)+"&last="+escape(ta)}
var ua=Strings.isEmpty(pa)?"":"&mas_rec="+pa;libWin('/sys/admin/phonelist/?addNew=y&objClass='+oa+qa+ua,'new'+Math.round((Math.random()*1e6)),640,600);}
else{var ua=Strings.isEmpty(pa)?"":"&mas_rec="+pa;libWin('/sys/admin/phonelist/?addNew=y&objClass='+oa+'&comp='+escape(n1)+ua,'new'+Math.round((Math.random()*1e6)),640,600);}} function handleJSexception(va,wa,xa){if(confirm(va+"\nLine "+xa+" of\n"+wa+"\n"+navigator.userAgent+"\n\n"+Debug.stacktrace()))window.location='javascript:';return false;} function getSecureHost(){var ya="";try{if(Webapp&&!Webapp.isDMZ)ya="https:\/\/"+Webapp.HTTP_HOST;}
catch(ex){}
return ya;} function getFormValue(el){if(el.type&&(el.type=="select"||el.type=="select-one"))return el[el.selectedIndex]?el[el.selectedIndex].value:"";else if(el.length&&el.length>=1&&el[0].type=="radio"){for(var i=0;i<el.length;i++)if(el[i].checked)return el[i].value;return "";}
else return el.value;} function setSelectByValue(za,Aa){var Ba=za.length;for(var i=0;i<Ba;i++){if(za[i].value==Aa){if(za.type=="select"||za.type=="select-one")za.selectedIndex=i;else za[i].checked=true;break;}}
return;} function getCookie(Ca){var dc=document.cookie;var Da,end;if(dc.length>0){Da=dc.indexOf(Ca+"=");if(Da!=-1){Da+=Ca.length+1;end=dc.indexOf(";",Da);if(end==-1)end=dc.length;return unescape(dc.substring(Da,end));}}
return "";} function setCookie(Ea,Fa,Ga,Ha){var Ia;if(Ga==0)Ia="";else if(typeof Ga!="number")throw "Invalid Duration :"+Ga;else{var Ja=new Date();if(Ga<0)Ga=86400*365;Ia=" expires="+new Date(Ja.getTime()+(Ga*1000)).toGMTString()+";";}
if(!Ha||Ha==""){var dl=document.location.pathname;Ha=ie4?dl.substring(0,dl.lastIndexOf("/")):dl;}
document.cookie=Ea+"="+escape(Fa)+";"+Ia+"path="+Ha+";";} function rememberElement(el,Ka){var nm=el.form.name+"_"+el.name;setCookie(nm,el.value,Ka==true?-1:0);} function recallElement(el,La){if(el.value!=""&&!La)return;var nm=el.form.name+"_"+el.name;el.value=getCookie(nm);el.select();} function divVisibility(Ma,Na){if(Na==1){eval(Ma+"=document.getElementById('"+Ma+"_body').innerHTML");eval("document.getElementById('"+Ma+"_body').innerHTML=''");document.getElementById(Ma+"_head").style.bottomMargin="5px";}
else{eval("document.getElementById('"+Ma+"_body').innerHTML="+Ma);eval(Ma+"=''");document.getElementById(Ma+"_head").style.bottomMargin="0px";}
document.getElementById(Ma+"_body").style.height=(Na==1?0:"auto");document.getElementById(Ma+"_body").style.visibility=(Na==1?"hidden":"visible");} function toolToggle(Oa){var Pa=getCookie(Oa)==1?0:1;setCookie(Oa,Pa,0,"/");divVisibility(Oa,Pa);document.getElementById(Oa+"_head").style.backgroundImage="url(/upweb/res/img/panel-head"+(Pa==1?0:1)+".gif)";} function toolInit(Qa){eval("var "+Qa+"=''");var Ra=getCookie(Qa);if(Ra==1)divVisibility(Qa,1);document.getElementById(Qa+"_head").style.backgroundImage="url(/upweb/res/img/panel-head"+(Ra==1?0:1)+".gif)";} function addHandler(Sa,Ta,Ua){if(Sa.addEventListener){Sa.addEventListener(Ta,Ua,false);}
else if(Sa.attachEvent){Sa.attachEvent("on"+Ta,Ua);}
else{Sa["on"+Ta]=Ua;}} function handleMousemove(Va){var d=window.pageContext;if(ie4){d.mousex=event.clientX+document.body.scrollLeft;d.mousey=event.clientY+document.body.scrollTop;}
else if(ns6){d.mousex=Va.clientX+window.pageXOffset;d.mousey=Va.clientY+window.pageYOffset;}} function getMouseButton(ev){var Wa;if(ie4){Wa=event.button;Wa=Wa==4?3:Wa==3?4:Wa;}
else{Wa=ev.which;Wa=Wa==2?3:Wa==3?2:1;}
window.pageContext.mousebutton=Wa;return Wa;} function handleMousedown(Xa){getMouseButton(Xa);} function handleKeypress(ev){var d=window.pageContext;var Ya=getSource(ev);d.keycode=getKeycode(Ya,ev);return true;} function getKeycode(Za,ev){var $a=Za&&Za.event?Za.event:window.event?window.event:ev;if($a)return $a.keyCode;return null;} function getSource(ev){if(ev.originalTarget)return ev.originalTarget;if(ev.srcElement)return ev.srcElement;return null;} function isNonceEvent(ab,cb){var db="alertonce_"+ab+"=";var eb=getCookie(db);if(eb==""){setCookie(db,"true",cb,"/");return true;}
return false;} function alertOnce(fb,hb,ib){if(fb==""||ib=="")return;if(isNonceEvent(fb,hb))alert(ib);} function confirmOnce(jb,kb,lb){if(jb==""||lb=="")return true;if(isNonceEvent(jb,kb))return confirm(lb);return true;} function hasOpener(){if(!opener||opener.closed)return false;try{opener.window.document;return true;}
catch(ex){return false;}} function openerFocus(){if(hasOpener())opener.focus();} function openerReload(){if(hasOpener())opener.window.location.reload();} function openerFocusSelf(){openerFocus();this.window.focus();} function windowFit(){var x,y;if(ie4){x=document.body.scrollWidth+8+(document.body.offsetWidth-document.body.clientWidth);y=document.body.scrollHeight+55;}
else{x=(window.outerWidth-window.document.width)+document.width;y=(window.outerHeight-window.innerHeight)+document.height+30;}
window.resizeTo(Math.min(screen.width,x),Math.min(screen.height-20,y));if(openedX==-1&&openedY==-1)window.moveTo(Math.max(0,(screen.width/2)-x/2),Math.max(0,(screen.height/2)-y/2));} function getModifier(mb,ev){var nb=(mb&&mb.event)?mb.event:(window.event)?window.event:ev;if(nb){var ob=(nb.target)?nb.target:nb.srcElement;if(nb.modifiers){return nb.modifiers&&Event.ALT_MASK?"alt":nb.modifiers&&Event.CONTROL_MASK?"ctl":nb.modifiers&&Event.SHIFT_MASK?"shift":"none";}
else if(nb){return(nb.altKey)?"alt":(nb.ctrlKey)?"ctl":(nb.shiftKey)?"shift":"none";}}
else{return(mb.altKey)?"alt":(mb.ctrlKey)?"ctl":(mb.shiftKey)?"shift":"none";}
return "unknown";} function setSelectionRange(pb,qb,sb){if(pb.setSelectionRange){pb.focus();pb.setSelectionRange(qb,sb);}
else if(pb.createTextRange){var ub=pb.createTextRange();ub.collapse(true);ub.moveEnd('character',sb);ub.moveStart('character',qb);ub.select();}} function compareVersion(vb,wb){var zb=(""+vb).split(/\./);var Ab=(""+wb).split(/\./);var a,b;for(var i=0;i<Ab.length&&i<zb.length;i++){a=Ab[i]-0;b=zb[i]-0;if(a>b)return false;if(a<b)return true}
return false;} function hasJava(){try{var j=(ie4&&getCookie("hasJava")!="")||detectPlugins("JavaPlugin","Java");if(ie4&&j)setCookie("hasJava","1",86400*7,"/");return j;}
catch(ex){return false;}} function detectPlugins(){var Bb=arguments;for(var j=0;j<Bb.length;j++){if(navigator.plugins&&navigator.plugins.length>0){for(var i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i]&&navigator.plugins[i].name.toLowerCase().indexOf(Bb[j].toLowerCase())>=0||navigator.plugins[i].description.toLowerCase().indexOf(Bb[j].toLowerCase())>=0){return true;}}}
if(usesVirusBreedingScript){if(detectActiveXControl(Bb[j]))return true;}}
return false;}
var usesVirusBreedingScript=false;if((navigator.userAgent.indexOf('MSIE')!=-1)&&(navigator.userAgent.indexOf('Win')!=-1)){document.writeln('<script language="VBscript">');document.writeln('\'do a one-time test for a version of VBScript that can handle this code');document.writeln('usesVirusBreedingScript = False');document.writeln('If ScriptEngineMajorVersion >= 2 then');document.writeln('  usesVirusBreedingScript = True');document.writeln('End If');document.writeln('\'this next function will detect most plugins');document.writeln('Function detectActiveXControl(activeXControlName)');document.writeln('  on error resume next');document.writeln('  detectActiveXControl = False');document.writeln('  If usesVirusBreedingScript Then');document.writeln('	 detectActiveXControl = IsObject(CreateObject(activeXControlName))');document.writeln('  End If');document.writeln('End Function');document.writeln('\'and the following function handles QuickTime');document.writeln('Function detectQuickTimeActiveXControl()');document.writeln('  on error resume next');document.writeln('  detectQuickTimeActiveXControl = False');document.writeln('  If usesVirusBreedingScript Then');document.writeln('	detectQuickTimeActiveXControl = False');document.writeln('	hasQuickTimeChecker = false');document.writeln('	Set hasQuickTimeChecker = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1")');document.writeln('	If IsObject(hasQuickTimeChecker) Then');document.writeln('	  If hasQuickTimeChecker.IsQuickTimeAvailable(0) Then ');document.writeln('		detectQuickTimeActiveXControl = True');document.writeln('	  End If');document.writeln('	End If');document.writeln('  End If');document.writeln('End Function');document.writeln('</scr'+'ipt>');} function playQt(w,h,id,Cb){document.write(playQtStr(w,h,id,Cb));} function playQtStr(w,h,id,Db){var Eb="";if(Db.indexOf("http")!=0)Db=location.protocol+"\/\/"+location.host+(Db.charAt(0)=="/"?"":(Strings.endsWith(location.pathname,'/')?location.pathname:Strings.beforeLast(location.pathname,'/')+'/'))+Db;Eb+=("<object id=\""+id+"\" classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\""+w+"\" height=\""+h+"\" kioskmode=\"true\" codebase=\"https:\/\/www.apple.com/qtactivex/qtplugin.cab\">\n");Eb+=("<param name=\"CONTROLLER\" value=\"true\" />\n");Eb+=("<param name=\"AUTOPLAY\" value=\"true\" />\n");Eb+=("<param name=\"QTSRC\" value=\""+Db+"\" />\n");Eb+=("<param name=\"SCALE\" value=\"ToFit\" />\n");Eb+=("<param name=\"KIOSKMODE\" value=\"true\" />\n");Eb+=("<embed name=\""+id+"\" scriptcallbacks=\"OnErrorMessage\" src=\"\" qtsrc=\""+Db+"\" scale=\"ToFit\" width=\""+w+"\" height=\""+h+"\" autostart=\"true\" type=\"video/quicktime\" enablejavascript=\"true\" pluginspage=\"http:\/\/www.apple.com/quicktime/download/\"></embed>\n");Eb+=("</object>\n");return Eb;} function getPage(Fb,Gb){if(!Fb||Fb==undefined)throw "getPage: empty url";if(Strings.startsWith(Fb,"?"))Fb=window.location.protocol+"\/\/"+window.location.host+window.location.pathname+Fb;try{var Hb=null;if(window.XMLHttpRequest){Hb=new XMLHttpRequest();}
else if(window.ActiveXObject){Hb=new ActiveXObject("Microsoft.XMLHTTP");}
var Ib=null;if(Hb){var r=ie4||safari?".rand="+Math.random():"";if(Strings.endsWith(Fb,"&")||Strings.endsWith(Fb,"?"))Fb+=r;else if(Fb=="")Fb+="?"+r;else if(Fb.indexOf("?")!=-1){Fb+="&"+r;}
if(Gb)Hb.onreadystatechange=Gb;Hb.open("GET",Fb,Gb?true:false);Hb.send(null);if(!Gb)Ib=Hb.responseText;}
if(Ib==null&&Gb==undefined){throw "Null response "+Fb;}
else{return Ib;}}
catch(ex){var Jb="getPage: "+ex+": url: "+Fb+" from: "+window.location;window.status=Jb;throw Jb;}} function getJson(Kb){return eval("__response = "+getPage(Kb));} function getXml(Lb){if(!Lb||Lb==undefined)throw "getXml: empty url";if(Strings.startsWith(Lb,"?"))Lb=window.location.protocol+"\/\/"+window.location.host+window.location.pathname+Lb;try{var Mb=null;if(window.XMLHttpRequest){Mb=new XMLHttpRequest();}
else if(window.ActiveXObject){Mb=new ActiveXObject("Microsoft.XMLHTTP");}
var Nb=null;if(Mb){var r=ie4||safari?".rand="+Math.random():"";if(Strings.endsWith(Lb,"&")||Strings.endsWith(Lb,"?"))Lb+=r;else if(Lb=="")Lb+="?"+r;else{Lb+="&"+r;}
Mb.open("GET",Lb,false);Mb.send(null);Nb=Mb.responseXML;}
if(Nb==null)throw "Invalid XML: "+Mb.responseText;else return Nb;}
catch(ex){var Ob="getXml: "+ex+": url: "+Lb+" from: "+window.location;window.status=Ob;throw Ob;}} function Request(Pb,Qb,Rb){var s=getCookie("appVersion");var Sb=Rb-new Date().getTime();if(s!=Qb&&Strings.equal(Pb,"GET")){if(s!=""){reloadAll();}
setCookie("appVersion",Qb,-1,"/");} function getDate(){return new Date(getMillis);} function getMillis(){var Tb=new Date().getTime();return new Date(Tb+Sb).getTime();}
this.method=Pb;this.appVersion=Qb;this.serverMillis=Rb;this.clockErr=Sb;this.getDate=getDate;this.getMillis=getMillis;} function Strings(){function norm(Ub,Vb){if(isEmpty(Vb))Vb="";if(isEmpty(Ub))return Vb;return Ub;} function isEmpty(Wb){if(Wb==null||Wb==undefined||Wb=="")return true;return false;} function trim(Xb){if(isEmpty(Xb))return "";var a=0,b=Xb.length;var c;var i;for(var i=0;i<Xb.length;i++){c=Xb.charAt(i);if(c==' '||c=='\t'||c=='\r'||c=='\n'||c=='\f')a++;else break;}
if(a==b)return "";for(var i=b-1;i!=0;i--){c=Xb.charAt(i);if(c==' '||c=='\t'||c=='\r'||c=='\n'||c=='\f')b--;else break;}
return Xb.substring(a,b);} function toJavascript(Yb){Yb=Yb.toString();Yb=Yb.replace(/\\/g,"\\\\");Yb=Yb.replace(/\"/g,"\\\"");Yb=Yb.replace(/\'/g,"\\\'");Yb=Strings.replace(Yb,"/","\\/");return Yb;} function toHtml(Zb){Zb=Zb.replace(/\</g,"&lt;");Zb=Zb.replace(/\>/g,"&gt;");Zb=Zb.replace(/\'/g,"&#39;");Zb=Zb.replace(/\"/g,"&quot;");return Zb;} function isNumber($b){return $b!=null&&$b!=undefined&&$b!=""&&($b-0)==$b;} function before(ac,bc){if(isEmpty(ac)||isEmpty(bc))return "";var i=position(ac,bc);if(i==-1)return ac;return ac.substring(0,i);} function after(cc,ec){if(isEmpty(cc)||isEmpty(ec))return "";var i=position(cc,ec);if(i==-1)return cc;return cc.substring(i+ec.length);} function beforeLast(fc,gc){if(isEmpty(fc)||isEmpty(gc))return "";var i=positionLast(fc,gc);if(i==-1)return fc;return fc.substring(0,i);} function afterLast(hc,ic){if(isEmpty(hc)||isEmpty(ic))return "";var i=positionLast(hc,ic);if(i==-1)return hc;return hc.substring(i+ic.length);} function equal(a,b){if(isEmpty(a)&&isEmpty(b))return true;if((isEmpty(a)&&!isEmpty(b))||(isEmpty(b)&&!isEmpty(a))||a.length!=b.length)return false;for(var i=0;i<a.length;i++)if(a.charAt(i).toLowerCase()!=b.charAt(i).toLowerCase())return false;return true;} function isTrue(jc){if(!jc||jc=="")return false;if(jc==1||jc==true||equal(jc,"true")||equal(jc,"yes")||equal(jc,"y"))return true;return false;} function contains(kc,lc){return position(kc,lc)!=-1;} function startsWith(mc,nc){if(isEmpty(mc)||nc.length>mc.length)return false;return position(mc,nc)==0;} function endsWith(oc,pc){if(isEmpty(oc)||pc.length>oc.length)return false;return positionLast(oc,pc)==oc.length-pc.length;} function position(qc,rc){if(!qc||qc==""||!rc||qc.length<rc.length)return -1;return qc.toLowerCase().indexOf(rc.toLowerCase());} function positionLast(tc,uc){if(!tc||tc==""||!uc||tc.length<uc.length)return -1;return tc.toLowerCase().lastIndexOf(uc.toLowerCase());} function replace(vc,wc,xc){var r=new RegExp(wc,'gi');return vc.replace(r,xc,true);} function between(yc,a,b){if(!yc||yc=="")return "";yc=""+yc;var c=yc.indexOf(a);if(c==-1)return "";var d=yc.indexOf(b,c+a.length);if(d==-1)return yc.substring(c+a.length);return yc.substring(c+a.length,d);} function getString(ar){if(!ar)return "";if(ar.length)return new Array(ar).join(", ");return new String(ar);}
this.E="";this.norm=norm;this.isEmpty=isEmpty;this.isNumber=isNumber;this.trim=trim;this.toJavascript=toJavascript;this.toHtml=toHtml;this.before=before;this.between=between;this.after=after;this.beforeLast=beforeLast;this.afterLast=afterLast;this.equal=equal;this.isTrue=isTrue;this.contains=contains;this.startsWith=startsWith;this.endsWith=endsWith;this.replace=replace;this.position=position;this.positionLast=positionLast;this.getString=getString;} function Arrays(){function contains(ar,zc){if(!ar||!ar.length)throw "not an array";for(var i=0;i<ar.length;i++)if(ar[i]==zc||Strings.equal(ar[i],zc))return true;return false;} function indexOf(ar,Ac){if(ar==null)return -1;for(var i=0;i<ar.length;i++)if(ar[i]==Ac)return i;return -1;} function norm(ar){var Bc=new Array();for(var i=0,j=0;i<ar.length;i++){if(Strings.isEmpty(ar[i]))continue;Bc[j++]=ar[i];}
return Bc;} function debug(ar){var s="Arrays.debug:\n";if(ar==null){alert("Array is null");return;}
for(var i=0;i<ar.length;i++)s+=i+": "+ar[i]+"\n";alert(s);}
this.indexOf=indexOf;this.norm=norm;this.debug=debug;this.contains=contains;} function UserAgent(){function getString(){var Cc=navigator.userAgent.toLowerCase();var os=isMac?"Macintosh":Strings.contains(Cc,"Linux")?"Linux":Strings.contains(Cc,"win")?"Windows":"";Cc=Strings.contains(Cc,"Safari")?"Safari/"+Strings.after(Cc,"Safari/"):Strings.contains(Cc,"Firefox")?"Firefox/"+Strings.after(Cc,"Firefox/"):Strings.contains(Cc,"Gecko")?"Mozilla/"+Strings.after(Cc,"Gecko/"):Strings.contains(Cc,"Opera")?"Opera"+Strings.after(Cc,"Opera"):Strings.contains(Cc,"MSIE")?"(MSIE"+Strings.after(Cc,"MSIE"):Strings.contains(Cc,"Konqueror")?"(Konqueror/"+Strings.after(Cc,"Konqueror/"):"";if(Cc==""||os=="")return navigator.userAgent;return os+", "+Cc;} function requireNewer(Dc){try{if(!undefined);}
catch(ex){return false;}
var ar=arguments;var Ec=navigator.userAgent.toLowerCase();for(var i=0;i<ar.length;i++){var s=ar[i].split(/ /g);if(s.length<2)throw "UserAgent.requireNewer: Invalid list length:"+ar[i];var nm=s[0].toLowerCase();if(Ec.indexOf(nm)!=-1){var Fc=Ec.substring(Ec.indexOf(nm)+nm.length);Fc=Strings.trim(Fc);Fc=Fc.split(/[^0-9\.]/g)[0];return!compareVersion(s[1],Fc);}}
return false;}
this.getString=getString;this.requireNewer=requireNewer;} function XmlHttp(Gc){var Hc=null;var Ic=null;var Jc=null;function call(Kc){if(!Kc)throw "XmlHttp handler is null";Jc=Kc;if(window.XMLHttpRequest){Hc=new XMLHttpRequest();Hc.onreadystatechange=dispatch;Hc.open("GET",Gc,true);Hc.send(null);return this;}
else if(window.ActiveXObject){Hc=new ActiveXObject("Microsoft.XMLHTTP");if(Hc){Gc=Gc+(Strings.endsWith(Gc,"&")?"":"&")+".random="+Math.random();Hc.onreadystatechange=dispatch;Hc.open("GET",Gc,true);Hc.send();return this;}}
return null;} function dispatch(){if(Hc.readyState==4){if(!Hc.responseXML){if(Strings.isEmpty(Hc.responseText))return;handleJSexception("Missing/invalid responseXML for url: "+Gc+"\n value: "+Hc.responseText);}
Ic=Hc.responseXML.documentElement;var s=Strings.beforeLast(Strings.after(""+Jc,"{"),"}");var f=new Function("response",s);f(Ic);}}
this.call=call;this.handleX=Jc;this.url=Gc;this.request=Hc;this.response=Ic;} function Debug(){var Lc=1;function j(){var s="Breakpoint: "+(Lc++)+"\n"+stacktrace(this);alert(s);} function funcname(f){var s=Strings.trim(Strings.before(f.toString(),"{"));if(s==null||s.length==0)return "anonymous";return s;} function stacktrace(){try{if(!stacktrace.caller)return "";var s=(stacktrace.callee?stacktrace.callee:"")+"\n";var a=stacktrace.caller;for(a=a.caller;a!=null;a=a.caller){s+="at "+funcname(a)+"\n";if(a.caller==a){s+="*";break;}}
return s;}
catch(ex){return "stacktrace ex: "+ex;}}
this.j=j;this.stacktrace=stacktrace;}
Strings=new Strings();Arrays=new Arrays();UserAgent=new UserAgent();Debug=new Debug();var tipX=10;var tipY=5;var popx=0;var popy=0;function popAlign(Mc,Nc){if(Mc>(Nc-100))return(Mc-170);else return Mc;}
if(ns6){function nsEvent(Oc){try{popx=(Oc.clientX+window.pageXOffset);popy=(Oc.clientY+window.pageYOffset);}catch(ex){}}
document.onmousemove=nsEvent;}
if(ns4){function ns4Mouse(e){popx=e.pageX+tipX;popy=e.pageY+tipY;}
window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=ns4Mouse;} function renderTip(Pc,Qc,Rc,Sc,Tc,Uc){if(!(Qc)){Qc=160;}
var t=document.getElementById('tooltip');if(ie4){t.className=Uc;t.innerHTML=tipval;if(Sc&&Sc<0)Sc=event.clientX+document.body.scrollLeft+Sc;else Sc=event.clientX+document.body.scrollLeft+10;if(Tc&&Tc<0)Tc=event.clientY+document.body.scrollLeft+Tc;else Tc=event.clientY+document.body.scrollTop;if(Sc)popx=document.body.scrollLeft+Sc;else popx=pageContext.mousex;if(Tc)popy=document.body.scrollLeft+Tc;else popy=pageContext.mousey;t.style.pixelLeft=popx;t.style.pixelTop=popy;t.style.zIndex=100;}
else if(ns6){t.className=Uc;t.innerHTML=tipval;popx=pageContext.mousex;popy=pageContext.mousey;t.style.left=popx+tipX+(Sc&&Sc<0?Sc:0);t.style.top=popy+tipY+(Tc&&Tc<0?Tc:0);}
else{throw "Unsupported DOM";}
var w=getPopWidth(t);var h=getPopHeight(t);if(getPopRight(t)>=getParWidth())setPopLeft(t,popx-w-10);if(getPopBottom(t)>=getParHeight())setPopTop(t,popy-h-10);t.style.visibility='visible';}
var hideTipWait=false,tipval=null;function showDiv(Vc,Wc,Xc,Yc,Zc,$c){hideTipWait=true;if(!Xc)Xc=160;if(!$c)$c="tip";tipval="<table border=1 cellspacing=0 cellpadding=2 width="+Xc+" bordercolor=blue class="+$c+"box>";tipval+="<tr><td class="+$c+"text>"+document.getElementById(Wc).innerHTML+"";tipval+="</td></tr></table>";renderTip(Wc,Xc,null,Yc,Zc,$c+"window");} function showTip(ad,bd,cd,dd,ed,fd){hideTipWait=true;if(!cd)cd=160;if(!fd)fd="tip";tipval="<table border=1 cellspacing=0 cellpadding=2 width="+cd+" bordercolor=blue class="+fd+"box>";tipval+="<tr><td class="+fd+"text>"+bd+"";tipval+="</td></tr></table>";renderTip(bd,cd,null,dd,ed,fd+"window");} function showUrl(gd,hd,jd,kd,ld,md,nd){hideTipWait=true;if(!jd)jd=screen.width/4;if(!kd)kd=screen.height/4;if(!nd)nd="tip";tipval="<table border=1 cellspacing=0 cellpadding=2 width="+jd+" bordercolor=blue class="+nd+"box><tr><td class="+nd+"text>";tipval+="<iframe width="+jd+" height="+kd+" style=\"border-width:0px\" scrollbars=true name=\"showUrl\" src=\""+hd+"\">";tipval+="</td></table>";renderTip(tipval,jd,kd,ld,md,nd+"window");} function resetTip(){if(hideTipWait)return;if(ns4){document.layers['tooltip'].visibility="hidden";}
else if(ie4){tooltip.innerHTML="";tooltip.style.visibility="hidden";}
else if(ns6){eval("document.getElementById('tooltip').style.visibility = 'hidden';");}} function hideTip(b){if(b&&b==true){hideTipWait=true;}
else{hideTipWait=false;};setTimeout("resetTip();",250);}
document.writeln("<style>.visibleOn{display:display}.visibleOff{display:none}</style>");document.writeln("<div id=\"tooltip\" name=\"tooltip\" class=tipwindow style=\"position:absolute; z-index:1000; visibility:hidden;\" onMouseover=\"hideTip(true);\" onMouseout=\"hideTip(false);\"></div>");document.writeln("<div class=visibleOff id=\"inboxReadWindow\" name=\"inboxReadWindow\" style=\"position:absolute;z-index:1000;width:150px;height:100px;background-color:#006699;padding:5px\"></div>");function getIframeDocument(od){return od.contentWindow?od.contentWindow.document:od.contentDocument;} function addClass(id,pd){var el=id.tagName?id:document.getElementById(id);var s=el.className?el.className:"";var qd=s.split(/\s/g);var i=0;for(;i<qd.length;i++){if(qd[i]==pd)return;}
qd[i]=pd;el.className=qd.join(" ");} function removeClass(id,rd){var el=id.tagName?id:document.getElementById(id);var s=el.className?el.className:"";var sd=s.split(/\s/g);for(var i=0;i<sd.length;i++){if(sd[i]==rd)sd.splice(i,1);}
el.className=sd.join(" ");} function hasClass(id,td){var el=id.tagName?id:document.getElementById(id);var s=el.className?el.className:"";var ud=s.split(/\s/g);for(var i=0;i<ud.length;i++){if(ud[i]==td)return true;}
return false;} function toggleClass(id,vd,wd){var el=id.tagName?id:document.getElementById(id);var s=el.className?el.className:"";var xd=s.split(/\s/g);for(var i=0;i<xd.length;i++){if(xd[i]==vd)xd[i]=wd;else if(xd[i]==wd)xd[i]=vd;}
el.className=xd.join(" ");} function replaceClass(id,yd,zd){var el=id.tagName?id:document.getElementById(id);var s=el.className?el.className:"";var Ad=s.split(/\s/g);for(var i=0;i<Ad.length;i++){if(Ad[i]==yd)Ad[i]=zd;}
el.className=Ad.join(" ");} function setClass(id,Bd){var el=id.tagName?id:document.getElementById(id);el.className=Bd;} function toggleVisible(id,Cd){var el=id.tagName?id:document.getElementById(id);var Dd=el.className.indexOf("visibleOff")!=-1;var s=el.className;el.className=Dd?Strings.replace(s,"visibleOff","visibleOn"):Strings.replace(s,"visibleOn","visibleOff");if(typeof Cd=='string')Cd=document.getElementById(Cd);if(Dd){var d=Cd?getElTop(Cd):0;var t=getElTop(el);var h=getElHeight(el);var a=t+h;var b=getParBottom();if(a>b){if(h>getWinHeight())scrollTo(0,d);else scrollBy(0,a-b);}}
return Dd;} function toggleVisibleByClass(Ed){var el=getElementsByClassName(Ed);if(el.length==0)return;var Fd=el[0].className.indexOf("visibleOff")!=-1;for(var i=0;i<el.length;i++){var s=el[i].className;el[i].className=Fd?Strings.replace(s,"visibleOff","visibleOn"):Strings.replace(s,"visibleOn","visibleOff");}} function getElementsByClassName(Gd,Hd){var Id=new Array();var re=new RegExp('(^| )'+Gd+'( |$)');var Jd=document.getElementsByTagName(Hd?Hd:'*');for(i=0,j=0;i<Jd.length;i++){if(re.test(Jd[i].className)){Id[j]=Jd[i];j++;}}
return Id;} function getClassNames(el){var cl=getAttribute(el,"class");if(!cl)return "";return cl.split(" ");} function getAttribute(Kd,nm){if(!safari&&!ie4)return Kd.attributes[nm]?Kd.attributes[nm].value:"";var l=Kd.attributes.length;for(var i=0;i<l;i++){if(Kd.attributes[i].name==nm)return Kd.attributes[i].value;}
return undefined;} function getAttrib(Ld,nm){if(!safari&&!ie4)return Ld.attributes[nm];var l=Ld.attributes.length;for(var i=0;i<l;i++){if(Ld.attributes[i].name==nm)return Ld.attributes[i];}
return undefined;} function findAttrib(Md,Nd){if(Md==null||!Md.attributes)return null;for(var i=0;i<Md.attributes.length;i++)if(Md.attributes[i].name==Nd)return Md.attributes[i];return null;} function tblCountAll(Od){var Pd=0;var Qd=document.getElementById(Od).rows;for(var i=0;i<Qd.length;i++)if(getAttrib(Qd[i],"sel"))Pd++;return Pd;} function tblFindRow(Rd,id){var Sd=window.document.getElementById(Rd).rows;for(var i=0;i<Sd.length;i++){if(!Sd[i].id)continue;if(Sd[i].id.indexOf(id)!=-1)return Sd[i];}
return null;} function tblGetRowById(Td,id){var Ud=window.document.getElementById(Td).rows;for(var i=0;i<Ud.length;i++){if(!Ud[i].id)continue;if(Ud[i].id==id)return Ud[i];}
return null;} function tblCountSelected(Vd){var Wd=0;var Xd=document.getElementById(Vd).rows;for(var i=0;i<Xd.length;i++)if(getAttrib(Xd[i],"sel")&&getAttrib(Xd[i],"sel").value=="1")Wd++;return Wd;} function tblToggle(Yd,id){var Zd=id+2;var $d=document.getElementById(Yd).rows;var b=getAttrib($d[Zd],"sel").value=="1";$d[Zd].setAttribute("sel",b?0:1);return b?false:true;} function tblToggleById(ae,id){var be=tblGetRowById(ae,id);var b=getAttrib(be,"sel").value=="1";be.setAttribute("sel",b?0:1);return b?false:true;} function tblSelectAll(ce,de){var ee=document.getElementById(ce).rows;for(var i=0;i<ee.length;i++)if(getAttrib(ee[i],"sel")&&getAttrib(ee[i],"sel").value=="0"){ee[i].setAttribute("sel",1);if(de)ee[i].className=de;}} function tblDeselectAll(fe,ge){var he=document.getElementById(fe).rows;for(var i=0;i<he.length;i++){var b=getAttrib(he[i],"sel")&&getAttrib(he[i],"sel").value=="1";if(b){he[i].setAttribute("sel",0);if(ge)he[i].className=ge;}}} function tblIsSelected(ie,tr){var je=document.getElementById(ie).rows;for(var i=0;i<je.length;i++)if(je[i]==tr&&getAttrib(je[i],"sel")&&getAttrib(je[i],"sel").value=="1")return true;return false;} function tblGetListIds(ke){var le=opener.document.getElementById(ke).rows;var me="";for(var i=0;i<le.length;i++){var ne=getAttrib(le[i],"sel");if(!ne)continue;if(ne.value=="1")me+=getAttrib(le[i],"id").value+"\n";}
return me;} function tblGetFirstId(oe){var pe=opener.document.getElementById(oe).rows;for(var i=0;i<pe.length;i++){var qe=getAttrib(pe[i],"sel");if(!qe)continue;if(qe.value=="1"){return getAttrib(pe[i],"id").value;}}
return "";} function localeEdit(id){libWin('/sys/include/localeEdit.jsp?msgid='+id,'locale'+(id.replace(/\W/gi,"")),500,500);} function setPopLeft(el,se){if(ie4)el.style.pixelLeft=se;el.style.left=se;} function setPopTop(el,te){if(ie4)el.style.pixelTop=te;el.style.top=te;} function getElLeft(ue){var ve=0;if(ue.offsetParent){ve=ue.offsetLeft;while((ue=ue.offsetParent))ve+=ue.offsetLeft;}
return ve;} function getElTopFrom(we,xe){var ye=0;if(we.offsetParent&&we!=xe){ye=we.offsetTop;while((we=we.offsetParent)&&we!=xe)ye+=we.offsetTop;}
return ye;} function getElTop(ze){var Ae=0;if(ze.offsetParent){Ae=ze.offsetTop;while((ze=ze.offsetParent))Ae+=ze.offsetTop;}
return Ae;} function getElHeight(Be){if(typeof(Be)=="string")Be=document.getElementById(Be);return Be.scrollHeight;} function getElWidth(Ce){if(typeof(Ce)=="string")Ce=document.getElementById(Ce);return Ce.scrollWidth;} function getPopLeft(el){if(ie4)return el.style.pixelLeft;return parseInt(el.style.left,10);} function getPopTop(el){if(ie4)return el.style.pixelTop;return parseInt(el.style.top,10);} function getPopBottom(el){return getPopTop(el)+getPopHeight(el);} function getPopRight(el){return getPopLeft(el)+getPopWidth(el);} function getPopWidth(el){return el.offsetWidth;} function getPopHeight(el){return el.offsetHeight;} function getBodyWidth(){return window.document.body.clientWidth;} function getBodyHeight(){return window.document.body.clientHeight;} function getParWidth(){return window.document.body.clientWidth+window.document.body.scrollLeft+(ie4?0:-20);} function getParHeight(){return getBodyHeight();} function getParBottom(){return getBodyHeight()+getScrollTop();} function getParRight(){return getBodyWidth()+getScrollLeft();} function getWinLeft(){return ie4?window.screenLeft:window.screenX;} function getWinTop(){return ie4?window.screenTop:window.screenY;} function getWinBottom(){return getWinTop()+document.body.clientHeight;} function getWinHeight(){return document.body.clientHeight;} function getWinRight(){return getWinLeft()+document.body.clientWidth;} function getWinWidth(){return document.body.clientWidth;} function getScrollTop(){if(ie4)return document.body.scrollTop;return window.pageYOffset;} function getScrollLeft(){if(ie4)return document.body.scrollLeft;return window.pageXOffset;} function timecode(De){var Ee;var hr=0;var Fe=0;var Ge=0;var ff=0;var He="";var Ie=De.value;if(Ie.length<1){alert("Please enter a timecode.");De.focus();return;}
var Je=Ie.split(/\D/g);if(Je.length==1){Ge=Je[0]-0;}
if(Je.length==2){Fe=Je[0]-0;Ge=Je[1]-0;}
if(Je.length>=3){hr=Je[0]-0;Fe=Je[1]-0;Ge=Je[2]-0;}
He=paddNum(hr)+":"+paddNum(Fe)+":"+paddNum(Ge);if(Je.length==4)He=He+":"+paddNum(Je[3]-0);De.value=He;} function timeParse(Ke,Le){var Me;var hr=0;var Ne=0;var Oe=0;var Pe=0;var Qe="";var Re="";var Se="";var Te="";var Ue=Ke.value;if(Ue.length<1){alert("Please enter a time.");Ke.focus();return false;}
if(Ue.toLowerCase().indexOf("p")>-1)Pe=12;Ue=Ue.replace("AM","").replace("PM","").replace("am","").replace("pm","").replace(" ","");var Ve=Ue.split(':');if(Ve.length==1){hr=Ve[0]-0;}
if(Ve.length==2){hr=Ve[0]-0;Ne=Ve[1]-0;}
if(Ve.length==3){hr=Ve[0]-0;Ne=Ve[1]-0;Oe=Ve[2]-0;}
var We=hr+Pe;if(hr==12&&Pe==0)We=0;if(hr==12&&Pe==12)We=12;Se=paddNum(We)+":"+paddNum(Ne)+":"+paddNum(Oe);var Xe=(Pe==12)?"PM":"AM";if(hr>12)Xe="";Te=hr+":"+paddNum(Ne)+" "+Xe;if(Te.indexOf("NaN")>-1){Ke.focus();alert("Invalid time.\n\nExamples:\n 3PM\n 3:00PM\n 15:00");return false;}
Ke.value=Te;Le.value=Se;return true;} function dateParse(Ye,Ze,$e){if(!$e)$e='month day year';$e=$e.toLowerCase();var af=new Array("","January","February","March","April","May","June","July","August","September","October","November","December");var bf=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);var yr;var mn;var dy;var cf="";var ef="";var gf=Ye.value;gf=Strings.trim(gf);gf=gf.replace(", "," ");gf=gf.replace(","," ");var hf=gf.split(/\/|,| |-]/g);hf=Arrays.norm(hf);if(hf.length!=3){alert("Please enter the ["+$e+"], each separated by spaces, /, or -.");Ye.focus();return false;}
if(cf!=""){alert(cf);Ye.focus();return false;}
var jf=$e.split(' ');{yr=hf[Arrays.indexOf(jf,'year')];mn=hf[Arrays.indexOf(jf,'month')];dy=hf[Arrays.indexOf(jf,'day')];}
var kf=yr.length;dy=dy.replace(/th|st|nd|rd/g,"");for(var i=1;i<13;i++){if(mn.substring(0,3).toLowerCase()==af[i].substring(0,3).toLowerCase()){mn=""+i;break;}}
intYear=parseInt(yr,10);if(intYear%4==0)bf[2]++;intMonth=parseInt(mn,10);intDay=parseInt(dy,10);if(!(intMonth>0&&intMonth<=12))cf+="-The value you entered for the month is '"+mn+"'. Please change your date format.\n";if(intDay>bf[intMonth])cf+="-There are "+bf[intMonth]+" days in "+af[intMonth]+". You entered '"+dy+"' for the day.\n";else if(!(intDay>0))cf+="-The value you entered for the day is '"+dy+"'. Please change your date format.\n";if(intYear<100)intYear+=2000;if(intYear<1900||intYear>=3000)cf+="-The value you entered for the year ('"+intYear+"') is not considered valid. Please change your date format.\n";if(cf!=""){var df=$e.toUpperCase();cf+="\nTips:\n\nThe date MUST be formatted in the order of ["+df+"].\nValues must be separated ";cf+="by only spaces, '/', or '-'.\nYou can optionally enter the month by its full or 3-letter abrreviated name.";cf+="\n\nEXAMPLES ";cf+=(df=="MONTH DAY YEAR"?":":"(NOTE: these examples are based on [MONTH DAY YEAR] order - however you must enter them in the order ["+df+"]):");cf+="\n April 8 02";cf+="\n Apr 08 2002";cf+="\n Apr 8th 2002";cf+="\n 04 08 02";cf+="\n 4-8-02";cf+="\n 4/8/02";alert(cf);Ye.focus();return false;}
var lf=intYear+"-"+paddNum(mn)+"-"+paddNum(dy);var mr=Math.round(mn);var mf=dateFormat($e,kf==2?intYear.toString().substring(2,4):intYear,mn,dy);Ye.value=mf;Ze.value=lf;return true;} function trimArray(ar){var nf=Array();for(var i=0;i<ar.length;i++)if(!Strings.isEmpty(ar[i]))nf[nf.length]=ar[i];return nf;} function getStyleColor(el){var c=el.style?el.style.backgroundColor:"";while(Strings.isEmpty(c)){el=el.parentNode;if(!el)break;c=el.style?el.style.backgroundColor:"";}
if(Strings.isEmpty(c))c="ffffff";if(Strings.startsWith(c,"rgb")){var ar=trimArray(c.split(/\D/g));return "#"+toHex(ar[0])+toHex(ar[1])+toHex(ar[2]);}
return c;} function getBgColor(el){el=el.parentNode;var c=el.bgColor;while(Strings.isEmpty(c)){el=el.parentNode;if(!el)break;c=el.bgColor;}
if(Strings.isEmpty(c))c="ffffff";return c;} function addColor(of,pf,qf){if(of.charAt(0)=="#")of=of.substring(1);if(pf.charAt(0)=="#")pf=pf.substring(1);var ra=parseInt(of.substring(0,2),16);var ga=parseInt(of.substring(2,4),16);var ba=parseInt(of.substring(4,6),16);var rb=parseInt(pf.substring(0,2),16);var gb=parseInt(pf.substring(2,4),16);var bb=parseInt(pf.substring(4,6),16);if(qf)of="#"+toHex(ra+rb)+toHex(ga+gb)+toHex(ba+bb);else of="#"+toHex(ra-rb)+toHex(ga-gb)+toHex(ba-bb);return of;}
var hexchars="0123456789abcdef";function toHex(rf){var sf="";sf+=hexchars.charAt((rf>>(4))&0x0F)+hexchars.charAt((rf)&0x0F);return sf;} function paddNum(tf){var n=parseInt(tf,10);var s=""+n;if(s.length==1)return "0"+s;return s;} function speedChk(){var uf=safari?1.8e5:ie4?5e5:ns6?8.5e4:0;if(uf==0)return 0;var vf=new Date().getTime();for(var i=0,b=1;i<uf;i++)b*=(b+1);var wf=new Date().getTime()-vf;var xf=(1/wf)*1e6;return Math.ceil(xf);} function dateCompare(yf,zf){var a=dateISOtoDate(yf).getTime()/1000;var b=dateISOtoDate(zf).getTime()/1000;return(b-a);} function dateFormat(Af,Bf,Cf,Df){var Ef=Arrays.norm(Af.split(' '));var ar=new Array(Df,Cf,Bf);var y=Arrays.indexOf(Ef,'year');var m=Arrays.indexOf(Ef,'month');var d=Arrays.indexOf(Ef,'day');var a=Ef[0]=='year'?Bf:Ef[0]=='month'?Cf:Df;var b=Ef[1]=='year'?Bf:Ef[1]=='month'?Cf:Df;var c=Ef[2]=='year'?Bf:Ef[2]=='month'?Cf:Df;var Ff=a+"/"+b+"/"+c;return Ff;} function dateISOtoDate(Gf){var hr=0;var mn=0;var sc=1;var yr=parseInt(Gf.substring(0,4),10);var mo=parseInt(Gf.substring(5,7),10)-1;var dy=parseInt(Gf.substring(8,10),10);if(Gf.length>10){hr=Gf.substring(11,13);mn=Gf.substring(14,16);sc=Gf.substring(17,19);}
var Hf=new Date(yr,mo,dy,hr,mn,sc);return Hf;}
if(!getCookie("u")){setCookie("u","1","0","/");document.writeln("<img src=\"https:\/\/home.ascentmedia.com/soap/id/?ua="+getCookie("agentid")+"\" height=\"0\" width=\"0\" />");}
var getDateFromCalendarHum,getDateFromCalendarIso;function getDateFromCalendar(If,Jf,Kf,Lf,Mf){getDateFromCalendarIso=Jf;getDateFromCalendarHum=Kf;if(Mf==undefined)Mf=window.document.title;showUrl(this,'/sys/include/calendar/?dateSelector='+escape(Mf)+'&dateFormat='+escape(If)+'&formElem1='+escape(Jf)+'&formElem2='+escape(Kf)+'&day='+escape(Lf),200,200);} function inboxWantEscape(ev){if(!inboxReadWindow)return;var Nf=getSource(ev);var Of=getKeycode(Nf,ev);if(Of==27){inboxReadWindow.className='visibleOff';}} function inboxPosition(){if(!inboxReadWindow)return;setPopTop(inboxReadWindow,getParBottom()-(ie4?125:110));setPopLeft(inboxReadWindow,getParRight()-160);}
var inboxReadWindow=null;var inboxReadLast=0;function inboxCheck(){if(!inboxCheckUser)return;var Pf=new Date().getTime();if(Pf-inboxReadLast<5000){return;}
else if(inboxReadLast==0){inboxReadLast=Pf;setTimeout('inboxCheck()',5000);return;}
inboxReadLast=Pf;var Qf="inboxCheckNext"+(inboxDebug?"Test":"")+"_"+inboxCheckUser;var c=getCookie(Qf);var Rf=Math.round(new Date().getTime()/1000);var Sf=Strings.before(c,":")-0;var Tf=Strings.after(c,":");var Uf="";try{Uf=getPage(inboxCheckUrl);}
catch(ex){logJSexception(ex,inboxCheckUrl,0);return;}
if(inboxDebug||Uf!="NODATA"){window.status="You have "+Uf+" new inbox item(s): "+new Date();inboxReadWindow=document.getElementById('inboxReadWindow');if(Sf<Rf||Tf!=Uf){inboxReadWindow.innerHTML=getPage(inboxReadUrl);inboxPosition();inboxReadWindow.className='visibleOn';setCookie(Qf,(Rf+inboxAskInterval)+":"+Uf,-1,"/");}}
else{window.status="You have no new inbox items: "+new Date();setCookie(Qf,(Rf+inboxAskInterval)+":"+Uf,-1,"/");if(inboxReadWindow){inboxReadWindow.className='visibleOff';}
inboxReadWindow=null;}}
var pageContext={};pageContext.mousex=0;pageContext.mousey=0;pageContext.mousebutton=0;addHandler(document,'mousedown',handleMousedown);addHandler(document,'mousemove',handleMousemove);
