function ConditionalPostback(name,enabled){this.Name=name;this.Enabled=enabled;};ConditionalPostback.prototype.Or=function(condition){this.Enabled=this.Enabled||condition;};ConditionalPostback.prototype.And=function(condition){this.Enabled=this.Enabled&&condition;};ConditionalPostback.prototype.DoPostback=function(){if(this.Enabled)__doPostBack(this.Name);return this.Enabled;};function setImageUrl(iBdex,iBiex,iBcex){var iBbex='none';var iBaex=typeof(iBdex)=='string'?document.getElementById(iBdex):iBdex;var iBgex=iBaex.className;iBaex.className=iBiex;try{if(iBaex.currentStyle)iBbex=iBaex.currentStyle.backgroundImage;else if(window.getComputedStyle)iBbex=document.defaultView.getComputedStyle(iBaex,null).getPropertyValue("background-image");}catch(e){}if(iBbex!='none')iBaex.src=iBbex.indexOf('"')>=0?iBbex.substr(5,iBbex.length-7):iBbex.substr(4,iBbex.length-5);else if(iBcex!=null&&iBcex!=""&&iBcex!=iBaex.src)iBaex.src=iBcex;iBaex.className=iBgex;return;};function UrlHandler(){};UrlHandler.GetParam=function(name){if(name==null||name=="")return window.location.search.substr(1);name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var iBhex="[\\?&]"+name+"=([^&#]*)";var iBjex=new RegExp(iBhex);var iBfex=iBjex.exec(window.location.href);return iBfex==null?"":iBfex[1];};UrlHandler.BuildUrl=function(iBeex,relative){if(iBeex==null||iBeex=="")return window.location.href;return window.location.protocol+"//"+(relative!=null&&relative===true?window.location.hostname+"/":"")+iBeex;};function WindowHandler(){};WindowHandler.AutoClose=function(){try{if(!window.opener||window.opener.closed)window.close();}catch(e){}}