// ---------------------------------------------------------------- //版权所有(c)Microsoft Corporation。版权所有。// --------------------------------------------------------------- // microsoftajaxweborms.js type._registerscript(“microsoftajaxcore.js”,“MicrosoftajaxSerialization.js”,“MicrosoftajaxNetwork.js”,“MicrosoftAjaxComponentModel.js”)); type.registernamespace(“sys.weborms”); sys.weborms.beginrequesteventargs =函数(c,b,a){sys.weborms.beginrequesteventargs.initializebase(这); this._request = c; this._postbackelement = b;这个._updatepanelstoupdate = a}; sys.weborms.beginrequesteventargs.prototype = {get_postbackelement:function(){return this._postbackelement},get_request:function(){return this._request},get_updatepanelstoupdate:function(){returning。_updatepanelstoupdate?array.clone(this._updatepanelstoupdate):[]}}; sys.weborms.beginrequesteventargs.registerClass(“sys.weborms.beginrequesteventargs”,sys.web形式); sys.weborms.endrequesteventargs = function(c,a,b){sys.weborms.endrequesteventargs.initializebase(这个);这个._ErrorHandled = false; this._error = c; this._dataitems = a || {};这个;这个._response = b}; sys.weborms.endrequesteventargs.prototype = {get_dataitems:function(){return this._dataitems},get_error:function(){return this._error},get_errorhandled:function(){返回此._errorhandledled:function(a){this._errorhandled = a},get_response:function(){return this._response}}; sys.weborms.endrequesteventargs.registerClass(“sys.weborms.endrequesteventregentargs”,sys.eventargs); sys.weborms.initializeRequesteventargs =函数(c,b,a){sys.weborms.initializerequesteventargs.initializebase(这个); this._request = c; this._postbackelement = b; this._updatepanelstoupdate = a}; sys.webforms.initializeRequesteventargs.Prototype = {get_postbackelement:} {return this._postbackelement},get_request:function(){return this._request},get_updatepanelstoupdate:function(){return this._updatepanelstoupdate?array.clone(this._updatepanelstoupdate):[],set_updatepanelstoupdate:function(a){this._updated = true; this._updatepanelstoupdate = a}}; sys.weborms.initializerequesteventargs.registercr屁股(“sys.weborms.initializeRequesteventregs”,sys.canceleventargs); sys.weborms.pageloadedeventargs =函数(b,a,c){sys.weborms.pageloadedeventargs.initializebase(这个); this._panelsupdated = b; this._panelscreated= a; this._dataitems = c || {}}; sys.weborms.pageloadedeventargs.prototype = {get_dataitems:function(){return this._dataitems},get_panelscreated:function(){return this._panelscreated},get_panelsupdated:function(){returning._panelsupdated}}; sys.weborms.pageLoadedEventargs.registerClass(“sys.weborms.pageLoadedeventargs”,sys.weborms.pageLoadingeventargs =函数(b,a,c){sys.weborms。pageloadingeventargs.initializebase(这个);这个._panelsupdating = b; this._panelsdeleting = a; this._dataitems = c || {}}; sys.weborms.pageLoadingeventargs.prototype = {get_dataitems:function(){return this._dataitems},get_panelsdeleting:function(){return this._panelsdeleting},get_panelsupdating:function(){return this._panelsupdating}}; sys.weborms.pageLoadingeventargs.registerClass(“sys.weborms.pageladingEventArgs",Sys.EventArgs);Sys._ScriptLoader=function(){this._scriptsToLoad=null;this._sessions=[];this._scriptLoadedDelegate=Function.createDelegate(this,this._scriptLoadedHandler)};Sys._ScriptLoader.prototype={dispose:function(){this._stopSession();this._loading=false;if(this._events)delete this._events;this._sessions=null;this._currentSession=null;this._scriptLoadedDelegate=null},loadScripts:function(d,b,c,a){var e={allScriptsLoadedCallback:b,scriptLoadFailedCallback:c,scriptLoadTimeoutCallback:a,scriptsToLoad:this._scriptsToLoad,scriptTimeout:d};this._scriptsToLoad=null;this._sessions[this._sessions.length]=e;if(!this._loading)this._nextSession()},queueCustomScriptTag:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,a)},queueScriptBlock:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,{text:a})},queueScriptReference:function(a,b){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,{src:a,fallback:b})},_createScriptElement:function(c){var a=document.createElement("script");a.type="text/javascript";for(var b in c)a[b]=c[b];return a},_loadScriptsInternal:function(){var c=this._currentSession;if(c.scriptsToLoad&&c.scriptsToLoad.length>0){var b=Array.dequeue(c.scriptsToLoad),f=this._scriptLoadedDelegate;if(b.fallback){var g=b.fallback;delete b.fallback;var d=this;f=function(b,a){a||function(){var a=d._createScriptElement({src:g});d._currentTask=new Sys._ScriptLoaderTask(a,d._scriptLoadedDelegate);d._currentTask.execute()}()}}var a=this._createScriptElement(b);if(a.text&&Sys.Browser.agent===Sys.Browser.Safari){a.innerHTML=a.text;delete a.text}if(typeof b.src==="string"){this._currentTask=new Sys._ScriptLoaderTask(a,f);this._currentTask.execute()}else{document.getElementsByTagName("head")[0].appendChild(a);Sys._ScriptLoaderTask._clearScript(a);this._loadScriptsInternal()}}else{this._stopSession();var e=c.allScriptsLoadedCallback;if(e)e(this);this._nextSession()}},_nextSession:function(){if(this._sessions.length===0){this._loading=false;this._currentSession=null;return}this._loading=true;var a=Array.dequeue(this._sessions);this._currentSession=a;if(a.scriptTimeout>0)this._timeoutCookie=window.setTimeout(Function.createDelegate(this,this._scriptLoadTimeoutHandler),a.scriptTimeout*1000);this._loadScriptsInternal()},_raiseError:function(){var b=this._currentSession.scriptLoadFailedCallback,a=this._currentTask.get_scriptElement();this._stopSession();if(b){b(this,a);this._nextSession()}else{this._loading=false;throw Sys._ScriptLoader._errorScriptLoadFailed(a.src)}},_scriptLoadedHandler:function(a,b){if(b){Array.add(Sys._ScriptLoader._getLoadedScripts(),a.src);this._currentTask.dispose();this._currentTask=null;this._loadScriptsInternal()}else this._raiseError()},_scriptLoadTimeoutHandler:function(){var a=this._currentSession.scriptLoadTimeoutCallback;this._stopSession();if(a)a(this);this._nextSession()},_stopSession:function(){if(this._timeoutCookie){window.clearTimeout(this._timeoutCookie);this._timeoutCookie=null}if(this._currentTask){this._currentTask.dispose();this._currentTask=null}}};Sys._ScriptLoader.registerClass("Sys._ScriptLoader",null,Sys.IDisposable);Sys._ScriptLoader.getInstance=function(){var a=Sys._ScriptLoader._activeInstance;if(!a)a=Sys._ScriptLoader._activeInstance=new Sys._ScriptLoader;return a};Sys._ScriptLoader.isScriptLoaded=function(b){var a=document.createElement("script");a.src=b;return Array.contains(Sys._ScriptLoader._getLoadedScripts(),a.src)};Sys._ScriptLoader.readLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){var c=Sys._ScriptLoader._referencedScripts=[],d=document.getElementsByTagName("script");for(var b=d.length-1;b>=0;b--){var e=d[b],a=e.src;if(a.length)if(!Array.contains(c,a))Array.add(c,a)}}};Sys._ScriptLoader._errorScriptLoadFailed=function(b){var a;a=Sys.Res.scriptLoadFailed;var d="Sys.ScriptLoadFailedException: "+String.format(a,b),c=Error.create(d,{name:"Sys.ScriptLoadFailedException","scriptUrl":b});c.popStackFrame();return c};Sys._ScriptLoader._getLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){Sys._ScriptLoader._referencedScripts=[];Sys._ScriptLoader.readLoadedScripts()}return Sys._ScriptLoader._referencedScripts};Sys.WebForms.PageRequestManager=function(){this._form=null;this._activeDefaultButton=null;this._activeDefaultButtonClicked=false;this._updatePanelIDs=null;this._updatePanelClientIDs=null;this._updatePanelHasChildrenAsTriggers=null;this._asyncPostBackControlIDs=null;this._asyncPostBackControlClientIDs=null;this._postBackControlIDs=null;this._postBackControlClientIDs=null;this._scriptManagerID=null;this._pageLoadedHandler=null;this._additionalInput=null;this._onsubmit=null;this._onSubmitStatements=[];this._originalDoPostBack=null;this._originalDoPostBackWithOptions=null;this._originalFireDefaultButton=null;this._originalDoCallback=null;this._isCrossPost=false;this._postBackSettings=null;this._request=null;this._onFormSubmitHandler=null;this._onFormElementClickHandler=null;this._onWindowUnloadHandler=null;this._asyncPostBackTimeout=null;this._controlIDToFocus=null;this._scrollPosition=null;this._processingRequest=false;this._scriptDisposes={};this._transientFields=["__VIEWSTATEENCRYPTED","__VIEWSTATEFIELDCOUNT"];this._textTypes=/^(text|password|hidden|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i};Sys.WebForms.PageRequestManager.prototype={_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_isInAsyncPostBack:function(){return this._request!==null},add_beginRequest:function(a){this._get_eventHandlerList().addHandler("beginRequest",a)},remove_beginRequest:function(a){this._get_eventHandlerList().removeHandler("beginRequest",a)},add_endRequest:function(a){this._get_eventHandlerList().addHandler("endRequest",a)},remove_endRequest:function(a){this._get_eventHandlerList().removeHandler("endRequest",a)},add_initializeRequest:function(a){this._get_eventHandlerList().addHandler("initializeRequest",a)},remove_initializeRequest:function(a){this._get_eventHandlerList().removeHandler("initializeRequest",a)},add_pageLoaded:function(a){this._get_eventHandlerList().addHandler("pageLoaded",a)},remove_pageLoaded:function(a){this._get_eventHandlerList().removeHandler("pageLoaded",a)},add_pageLoading:function(a){this._get_eventHandlerList().addHandler("pageLoading",a)},remove_pageLoading:function(a){this._get_eventHandlerList().removeHandler("pageLoading",a)},abortPostBack:function(){if(!this._processingRequest&&this._request){this._request.get_executor().abort();this._request=null}},beginAsyncPostBack:function(c,a,f,d,e){if(d&&typeof Page_ClientValidate==="function"&&!Page_ClientValidate(e||null))return;this._postBackSettings=this._createPostBackSettings(true,c,a);var b=this._form;b.__EVENTTARGET.value=a||"";b.__EVENTARGUMENT.value=f||"";this._isCrossPost=false;this._additionalInput=null;this._onFormSubmit()},_cancelPendingCallbacks:function(){for(var a=0,e=window.__pendingCallbacks.length;a 0) theForm.action = a.actionUrl;如果(a.trackFocus) {var c = theForm.elements(“__LASTFOCUS”);如果(typeof c = c“定义”! = null)如果(typeof document.activeElement = =“定义”)c.value = a.eventTarget;其他{var b = document.activeElement;如果(typeof b ! = "定义" b ! = null)如果(typeof b.id ! = "定义" &&b.id ! = null&&b.id.length > 0) c.value = b.id; else if (typeofb.name ! =“定义”)c.value = b.name}}}如果(a.clientSubmit) this._doPostBack (a.eventTarget a.eventArgument)}, _elementContains:函数(b, a){虽然(a){如果(a = = = b)返回true; a =。parentNode}}返回false, _endPostBack:函数(a、d、f){如果(this._request = = = d.get_webRequest ()) {this._processingRequest = false; this._additionalInput =零;这一点。if(e){var c=new Sys.WebForms.EndRequestEventArgs(a,f? f.f.dataitems:{},d);e(this,c) 1 ? this._updatePanelIDs [d]: e)}返回c}, _findNearestElement:函数(a){虽然(a.length > 0) {var d = this._uniqueIDToClientID (a), c = . getelementbyid (d);如果(c)返回c; var b = a.lastIndexOf(" $ ");如果(b = = = 1)返回null; a = a.substring (0, b)}返回null}, _findText:函数(b, a) {var c = Math.max (0 - 20), d = Math.min (b.length + 20);回报b.substring (c, d)}, _fireDefaultButton:函数(a, d){如果(a.keyCode = = = 13) {var c = a.srcElement | | a.target;如果(! c | | c.tagName.toLowerCase() ! = =“文本区域”){var b = . getelementbyid (d);如果(b&&typeofb.click!=="undefined"){this._activeDefaultButton=b;this._activeDefaultButton =false;try{b.click()}finally{this._activeDefaultButton=null} . cancelbubble =truem = [], l = [], k = c ? c.version4:假的,d = c ? c.updatePanelData: null, e, g, h, b;如果(! d) {e = this._updatePanelIDs; g = this._updatePanelClientIDs; h =零;b =零}其他{e = d.updatePanelIDs; g = d.updatePanelClientIDs; h = d.childUpdatePanelIDs; b = d。panelsToRefreshIDs} var, f, j,我;如果(b)为(= 0,f = b.length; a -1))Array.add(i,document.getElementById(l[a]))}return new Sys.WebForms.PageLoadingEventArgs(j,i,f.dataItems)},_getPostBackSettings:function(a,c){var d=a,b=nullelse{var e=Array.indexOf(this._updatePanelClientIDs,a.id);if(e!==-1)if(this._updatePanelHasChildrenAsTriggers[e])return this._createPostBackSettings(true,[this._updatePanelIDs[e]],c,d)this._createPostBackSettings(真的,null, c, d)}如果(! b&&this._matchesParentIDInList (a.id this._asyncPostBackControlClientIDs)) b = this._createPostBackSettings(真的,null, c, d); else if (! b&&this._matchesParentIDInList (a.id this._postBackControlClientIDs))返回this._createPostBackSettings(假)}= a.parentNode}如果(! b)返回this._createPostBackSettings (false);否则返回b}, _getScrollPosition:函数(){var = document.documentElement;如果(一个(this._validPosition (a.scrollLeft) | | this._validPosition (a.scrollTop)))返回{x: a.scrollLeft y: a.scrollTop};其他{= document.body;如果(一个(this._validPosition (a.scrollLeft) | | this._validPosition (a.scrollTop)))else if(this._validPosition(window.pageXOffset)||this._validPosition(window.pageYOffset))return {x:window.pageXOffset,y:window.pageYOffset};else return {x:0,y:0}},_initializeInternal:function(f,g,a,b,e,c,d){if(this. _prminialized)throwError.invalidOperation (Sys.WebForms.Res.PRM_CannotRegisterTwice); this._prmInitialized = true; this._masterPageUniqueID = d; this._scriptManagerID = f; this._form = Sys.UI.DomElement.resolveElement (g); this._onsubmit = this._form.onsubmit; this._form.onsubmit =零;this._onFormSubmitHandler = Function.createDelegate(这个,this._onFormSubmit); this._onFormElementClickHandl = Function.createDelegate(这个,this._onFormElementClick); this._onWindowUnloadHandler = Function.createDelegate(这个,this._onWindowUnload); Sys.UI.DomEvent.addHandler (this._form,“提交”,this._onFormSubmitHandler); Sys.UI.DomEvent.addHandler (this._form,“点击”,this._onFormElementClickHandler); Sys.UI.DomEvent.addHandler(窗口、“卸载”this._onWindowUnloadHandler); this._originalDoPostBack = window.__doPostBack;如果(this._originalDoPostBack) window.__doPostBack = Function.createDelegate(这个,this._doPostBack); this._originalDoPostBackWithOptions = window.WebForm_DoPostBackWithOptions;如果(this._originalDoPostBackWithOptions) window.WebForm_DoPostBackWithOptions = Function.createDelegate (this._doPostBackWithOptions); this._originalFireDefaultButton = window.WebForm_FireDefaultButton;如果(this._originalFireDefaultButton) window.WebForm_FireDefaultButton = Function.createDelegate(这个,this._fireDefaultButton); this._originalDoCallback = window.WebForm_DoCallback;如果(this._originalDoCallback) window.WebForm_DoCallback = Function.createDelegate(这个,this._doCallback); this._pageLoadedHandler = Function.createDelegate(这个,this._pageLoadedInitialLoad); Sys.UI.DomEvent.addHandler(窗口、“负载”this._pageLoadedHandler);如果(a) this._updateControls (a、b、e、c, true)}, _matchesParentIDInList:函数(c, b) {(var = 0, d = b.length; a = c.length) {e = this._findText (c, c.length);打破}D = c.substr (b,我);b + =我;如果(c.charAt (b) ! = =“|”){e = this._findText (c, b);打破}b + +; Array.add (k,{类型:e, F,内容:D})}如果(e) {this._endPostBack (this._createPageRequestManagerParserError (String.format (Sys.WebForms.Res.PRM_ParserErrorDetails e)), h, null),返回null} varx = [], w = [], q = [], j = [], t = [], C = [] = [], z = [], v = [] = [], m, p, u, n, o, r, g; y (var l = 0, g = k.length; l = 4) a.content = unescape (a.content);如果(Sys.Browser.agent = = = Sys.Browser.InternetExplorer) {var f = document.createElement(“a”);f.style.display =“没有”;f.attachEvent (onclick, B); f.href = a.content; this._form.parentNode.insertBefore (f, this._form); f.click (); f.detachEvent (onclick, B); this._form.parentNode.removeChild (f); B (a){一个函数。case "error":this._endPostBack(this._createPageRequestManagerServerError(Number.parseInvariant(a.id), a.id), h,null)“焦点”:this._controlIDToFocus = a.content;断裂;默认值:this._endPostBack (this._createPageRequestManagerParserError (String.format (Sys.WebForms.Res.PRM_UnknownToken a.type)), h, null),返回null}}{version4: g ? parseFloat (g.content) > = 4:假的,遗嘱执行人:h, updatePanelNodes: x, hiddenFieldNodes: w, arrayDeclarationNodes: q, scriptBlockNodes: j, scriptStartupNodes: t, expandoNodes: C, onSubmitNodes: A, dataItemNodes: z, dataItemJsonNodes: v, scriptDisposeNodes:年代,asyncPostBackControlIDsNode: m, postBackControlIDsNode: p, updatePanelIDsNode: u, asyncPostBackTimeoutNode: n,太极拳ldUpdatePanelIDsNode:o,panelsToRefreshNode:r,formActionNode:y}},_processUpdatePanelArrays:function(e,q,r,f){var d,c,b