﻿function setSessionTimer(a){parent.removeSessionTimer&&parent.removeSessionTimer();var b={timer:null,sessionTimeout:1.2e6};if(a)b.sessionTimeout=a*60*1e3}function removeSessionTimer(){window.globalpexSessionTimeout&&window.globalpexSessionTimeout.timer&&window.clearTimeout(globalpexSessionTimeout.timer)}function resetSessionTimer(){if(window.globalpexSessionTimeout&&window.globalpexSessionTimeout.timer){removeSessionTimer();globalpexSessionTimeout.timer=window.setTimeout("window.top.navigate('/default.aspx?timeout=true');",globalpexSessionTimeout.sessionTimeout)}}function showMessage(g,f){var d="0px",b,a,c,e;if(window.thisGpWindow)b=window.thisGpWindow.getWidth();else if(window.innerHeight)b=window.innerWidth-6;else if(document.documentElement&&document.documentElement.clientHeight)b=document.documentElement.clientWidth-6;else if(document.body)b=document.body.clientWidth-6;a=document.createElement("div");a.id="userInterfaceUtilities_messageWindow";a.style.position="fixed";a.style.top=d;a.style.left=d;a.style.borderTopWidth=d;a.style.zIndex="2000";a.style.overflow="hidden";document.forms[0].appendChild(a);if(f){a.style.border="solid 1px #d35603";a.style.backgroundColor="#ffc";a.style.color="#d35603"}else{a.style.border="solid 1px #9cd4f9";a.style.backgroundColor="#fbfdff"}c=document.createElement("div");c.style.padding="20px";c.innerHTML=g;a.appendChild(c);if(a.offsetWidth>b-60)a.style.marginLeft="-"+(b-60)/2+"px";else a.style.marginLeft="-"+a.offsetWidth/2+"px";a.style.left="50%";e=a.offsetHeight;a.style.height=d;gpAnimation.slideBottom(a,e,null,function(){window.setTimeout(function(){gpAnimation.slideBottom(a,0,null,function(){document.forms[0].removeChild(a)})},5e3)})}function showAlert(u,v,n,g){var j="50%",d="-",f=true,t="closeButtonSM",c="px",l="20px",s="solid 1px #9CD4F9",r="absolute",a="userInterfaceUtilities_messageWindow",e="div",k="no";if(v&&window.fadeToModalBackground)fadeToModalBackground(function(){var m,h;if(document.documentElement&&document.documentElement.scrollTop)document.documentElement.scroll=k;else if(document.body)document.body.scroll=k;if(window.thisGpWindow){m=window.thisGpWindow.getHeight();h=window.thisGpWindow.getWidth()}else if(window.innerHeight){m=window.innerHeight-6;h=window.innerWidth-6}else if(document.documentElement&&document.documentElement.clientHeight){m=document.documentElement.clientHeight-6;h=document.documentElement.clientWidth-6}else if(document.body){m=document.body.clientHeight-6;h=document.body.clientWidth-6}var b=document.createElement(e);b.id=a;b.style.position=r;b.style.border=s;b.style.zIndex="200";b.style.backgroundColor="#FBFDFF";document.forms[0].appendChild(b);var q=document.createElement(e);q.style.padding=l;q.innerHTML=u;b.appendChild(q);var o=document.createElement(e);if(b.offsetWidth>h-60)o.style.marginLeft=(h-60)/2-40+c;else o.style.marginLeft=b.offsetWidth/2-40+c;o.style.paddingBottom="10px";b.appendChild(o);var i=document.createElement(e);if(n)i.className=n;else i.className=t;i.style.width="79px";i.style.height=l;o.appendChild(i);var p=document.createElement("a");p.setAttribute("href","#");if(window.addEventListener)p.addEventListener("click",function(){this.disabled=f;AnimationUtilities.fadeOut(document.getElementById(a),function(){document.forms[0].removeChild(document.getElementById(a));brightenFromModalBackground();g&&g()},.2)},false);else p.attachEvent("onclick",function(){this.disabled=f;AnimationUtilities.fadeOut(document.getElementById(a),function(){document.forms[0].removeChild(document.getElementById(a));brightenFromModalBackground();g&&g()},.2)});i.appendChild(p);if(b.offsetWidth>h-60)b.style.marginLeft=d+(h-60)/2+c;else b.style.marginLeft=d+b.offsetWidth/2+c;if(b.offsetHeight>m-60)b.style.marginTop=d+b.offsetHeight/2+c;else b.style.marginTop=d+b.offsetHeight/2+c;b.style.top=j;b.style.left=j;if(document.documentElement&&document.documentElement.scrollTop)document.documentElement.scroll="";else if(document.body)document.body.scroll=""});else{var m,i;if(document.documentElement&&document.documentElement.scrollTop)document.documentElement.scroll=k;else if(document.body)document.body.scroll=k;if(window.thisGpWindow){m=window.thisGpWindow.getHeight();i=window.thisGpWindow.getWidth()}else if(window.innerHeight){m=window.innerHeight-6;i=window.innerWidth-6}else if(document.documentElement&&document.documentElement.clientHeight){m=document.documentElement.clientHeight-6;i=document.documentElement.clientWidth-6}else if(document.body){m=document.body.clientHeight-6;i=document.body.clientWidth-6}var b=document.createElement(e);b.id=a;b.style.position=r;b.style.border=s;b.style.zIndex="200";b.style.backgroundColor="#FBFDFF";document.forms[0].appendChild(b);var q=document.createElement(e);q.style.padding=l;q.innerHTML=u;b.appendChild(q);var p=document.createElement(e);p.style.textAlign="center";p.style.paddingBottom="10px";b.appendChild(p);var h=document.createElement(e);if(n)h.className=n;else h.className=t;p.appendChild(h);h.style.width="79px";h.style.height=l;h.style.margin="0px auto";var o=document.createElement("a");o.setAttribute("href","#");if(window.addEventListener)o.addEventListener("click",function(){this.disabled=f;AnimationUtilities.fadeOut(document.getElementById(a),function(){document.forms[0].removeChild(document.getElementById(a));g&&g()},.2)},false);else o.attachEvent("onclick",function(){this.disabled=f;AnimationUtilities.fadeOut(document.getElementById(a),function(){document.forms[0].removeChild(document.getElementById(a));g&&g()},.2)});h.appendChild(o);if(b.offsetWidth>i-60){b.style.width=i-60+c;b.style.marginLeft=d+(i-60)/2+c}else b.style.marginLeft=d+b.offsetWidth/2+c;if(b.offsetHeight>m-60)b.style.marginTop=d+b.offsetHeight/2+c;else b.style.marginTop=d+b.offsetHeight/2+c;b.style.top=j;b.style.left=j;if(document.documentElement&&document.documentElement.scrollTop)document.documentElement.scroll="";else if(document.body)document.body.scroll=""}}function trim(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}