function showPop(n){JS.showWindow(n,"setting","90%","90%")}var MyGlobal=new function(){this.showError=function(n,t){this.showMessageBox("Error",n,t)};this.showInfo=function(n,t){this.showMessageBox("Information",n,t)};this.signOutUser=function(){confirm("Are you sure you want to sign-out?")&&JS.gotoUrl("/signout.aspx")};this.showUrlBox=function(n,t,i,r,u,f){f||(f=function(){});u||(u={});JS.msgbox(n,"",i,r,u,f,!1,!0,t)};this.showMessageBox=function(n,t,i){i||(i=function(){});JS.msgbox(n,t,400,300,["OK"],i)};this.showMessage=function(n,t,i,r,u){JS.msgbox(n,t,i,r,["OK"],u)};this.showConfirm=function(n,t,i,r){t||(t="Are you sure you want to delete?");i||(i=400);r||(r=150);JS.msgbox("Confirmation",t,i,r,["Yes","No"],n,!0,!0)};this.uploadFiles=function(n,t){var i=this.callbackFailed;$.ajax({type:"POST",url:"../ws.asmx/uploadFiles",enctype:"multipart/form-data",contentType:!1,processData:!1,cache:!1,data:n,success:function(n){var u=n.firstChild.innerHTML,r=JSON.parse(u),f=r.statusCode;if(f!=200){i(r.errorMessage);return}t(r.result)},error:function(n,t,i){alert(t+": "+i)}})};this.processMyService=function(n,t,i){this.processService("EicNP/AsrRpjffatjOPIEA==",n,t,i)};this.processAjax=function(n,t,i){this.processService("Hb7bQv9BNdbuZjEgp6jmkg==",n,t,i)};this.processMain=function(n,t,i){this.processService("Hb7bQv9BNdbuZjEgp6jmkg==",n,t,i)};this.processApp=function(n,t,i){this.processService("ZuMSApUbWKIWbGTMZy97wA==",n,t,i)};this.processService=function(n,t,i,r){JS.processService(n,t,i,r,this.callbackFailed,"../ws.asmx/processService")};this.callbackFailed=function(n){if(JS.hideLoading(),typeof n=="string"||n instanceof String)if(n.contains("System.Data")){var t=JS.getUrl();t.contains("localhost")?alert(n):alert("Something went wrong with the database. Please alert our Technical Admins. Thank you.")}else alert(n)}}