Advertisement
Guest User

Untitled

a guest
Dec 9th, 2011
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function (a, k) {
  2.     var f = window.event;
  3.     if (!f) {
  4.         var d = arguments.callee ? arguments.callee.caller : null;
  5.         if (d) {
  6.             var j = 30;
  7.             while (d.arguments.callee.caller && --j) d = d.arguments.callee.caller;
  8.             f = j && d.arguments.length ? d.arguments[0] : null
  9.         }
  10.     }
  11.     this._additionalInput = null;
  12.     var h = this._form;
  13.     if (a === null || typeof a === "undefined" || this._isCrossPost) {
  14.         this._postBackSettings = this._createPostBackSettings(false);
  15.         this._isCrossPost = false
  16.     } else {
  17.         var c = this._masterPageUniqueID,
  18.             l = this._uniqueIDToClientID(a),
  19.             g = document.getElementById(l);
  20.         if (!g && c) if (a.indexOf(c + "$") === 0) g = document.getElementById(l.substr(c.length + 1));
  21.         if (!g) if (Array.contains(this._asyncPostBackControlIDs, a)) this._postBackSettings = this._createPostBackSettings(true, null, a);
  22.         else if (Array.contains(this._postBackControlIDs, a)) this._postBackSettings = this._createPostBackSettings(false);
  23.         else {
  24.             var e = this._findNearestElement(a);
  25.             if (e) this._postBackSettings = this._getPostBackSettings(e, a);
  26.             else {
  27.                 if (c) {
  28.                     c += "$";
  29.                     if (a.indexOf(c) === 0) e = this._findNearestElement(a.substr(c.length))
  30.                 }
  31.                 if (e) this._postBackSettings = this._getPostBackSettings(e, a);
  32.                 else {
  33.                     var b;
  34.                     try {
  35.                         b = f ? f.target || f.srcElement : null
  36.                     } catch (n) {}
  37.                     b = b || this._activeElement;
  38.                     var m = /__doPostBack\(|WebForm_DoPostBackWithOptions\(/;
  39.  
  40.                     function i(b) {
  41.                         b = b ? b.toString() : "";
  42.                         return m.test(b) && b.indexOf("'" + a + "'") !== -1 || b.indexOf('"' + a + '"') !== -1
  43.                     }
  44.                     if (b && (b.name === a || i(b.href) || i(b.onclick) || i(b.onchange))) this._postBackSettings = this._getPostBackSettings(b, a);
  45.                     else this._postBackSettings = this._createPostBackSettings(false)
  46.                 }
  47.             }
  48.         } else this._postBackSettings = this._getPostBackSettings(g, a)
  49.     }
  50.     if (!this._postBackSettings.async) {
  51.         h.onsubmit = this._onsubmit;
  52.         this._originalDoPostBack(a, k);
  53.         h.onsubmit = null;
  54.         return
  55.     }
  56.     h.__EVENTTARGET.value = a;
  57.     h.__EVENTARGUMENT.value = k;
  58.     this._onFormSubmit()
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement