PageSourceSearch

https://www.renhill.com/ScriptResource.axd?d=y7b0Mr4ixp9N9bbQaChP9…8nLWpi6OZVL11bfKqH7mTLs1&t=ffffffff8b3ffb57

js renhill.com collected 2026-10-02 15:33:06 UTC 28,143 bytes, 505 lines download raw bytes

1Type.registerNamespace('AjaxControlToolkit');AjaxControlToolkit.BoxSide = function() {
2}
3AjaxControlToolkit.BoxSide.prototype = {
4Top : 0,
5Right : 1,
6Bottom : 2,
7Left : 3
8}
9AjaxControlToolkit.BoxSide.registerEnum("AjaxControlToolkit.BoxSide", false);AjaxControlToolkit._CommonToolkitScripts = function() {
10}
11AjaxControlToolkit._CommonToolkitScripts.prototype = {
12_borderStyleNames : ["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],
13_borderWidthNames : ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"],
14_paddingWidthNames : ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
15_marginWidthNames : ["marginTop", "marginRight", "marginBottom", "marginLeft"],
16getCurrentStyle : function(element, attribute, defaultValue) {
17var currentValue = null;if (element) {
18if (element.currentStyle) {
19currentValue = element.currentStyle[attribute];} else if (document.defaultView && document.defaultView.getComputedStyle) {
20var style = document.defaultView.getComputedStyle(element, null);if (style) {
21currentValue = style[attribute];}
22}
23if (!currentValue && element.style.getPropertyValue) {
24currentValue = element.style.getPropertyValue(attribute);}
25else if (!currentValue && element.style.getAttribute) {
26currentValue = element.style.getAttribute(attribute);} 
27}
28if ((!currentValue || currentValue == "" || typeof(currentValue) === 'undefined')) {
29if (typeof(defaultValue) != 'undefined') {
30currentValue = defaultValue;}
31else {
32currentValue = null;}
33} 
34return currentValue;},
35getInheritedBackgroundColor : function(element) {
36if (!element) return '#FFFFFF';var background = this.getCurrentStyle(element, 'backgroundColor');try {
37while (!background || background == '' || background == 'transparent' || background == 'rgba(0, 0, 0, 0)') {
38element = element.parentNode;if (!element) {
39background = '#FFFFFF';} else {
40background = this.getCurrentStyle(element, 'backgroundColor');}
41}
42} catch(ex) {
43background = '#FFFFFF';}
44return background;},
45getLocation : function(element) {
46if (element === document.documentElement) {
47return new Sys.UI.Point(0,0);}
48if (Sys.Browser.agent == Sys.Browser.InternetExplorer && Sys.Browser.version < 7) {
49if (element.window === element || element.nodeType === 9 || !element.getClientRects || !element.getBoundingClientRect) return new Sys.UI.Point(0,0);var screenRects = element.getClientRects();if (!screenRects || !screenRects.length) {
50return new Sys.UI.Point(0,0);}
51var first = screenRects[0];var dLeft = 0;var dTop = 0;var inFrame = false;try {
52inFrame = element.ownerDocument.parentWindow.frameElement;} catch(ex) {
53inFrame = true;}
54if (inFrame) {
55var clientRect = element.getBoundingClientRect();if (!clientRect) {
56return new Sys.UI.Point(0,0);}
57var minLeft = first.left;var minTop = first.top;for (var i = 1;i < screenRects.length;i++) {
58var r = screenRects[i];if (r.left < minLeft) {
59minLeft = r.left;}
60if (r.top < minTop) {
61minTop = r.top;}
62}
63dLeft = minLeft - clientRect.left;dTop = minTop - clientRect.top;}
64var ownerDocument = element.document.documentElement;return new Sys.UI.Point(first.left - 2 - dLeft + ownerDocument.scrollLeft, first.top - 2 - dTop + ownerDocument.scrollTop);}
65return Sys.UI.DomElement.getLocation(element);},
66setLocation : function(element, point) {
67Sys.UI.DomElement.setLocation(element, point.x, point.y);},
68getContentSize : function(element) {
69if (!element) {
70throw Error.argumentNull('element');}
71var size = this.getSize(element);var borderBox = this.getBorderBox(element);var paddingBox = this.getPaddingBox(element);return {
72width : size.width - borderBox.horizontal - paddingBox.horizontal,
73height : size.height - borderBox.vertical - paddingBox.vertical
74}
75},
76getSize : function(element) {
77if (!element) {
78throw Error.argumentNull('element');}
79return {
80width: element.offsetWidth,
81height: element.offsetHeight
82};},
83setContentSize : function(element, size) {
84if (!element) {
85throw Error.argumentNull('element');}
86if (!size) {
87throw Error.argumentNull('size');}
88if(this.getCurrentStyle(element, 'MozBoxSizing') == 'border-box' || this.getCurrentStyle(element, 'BoxSizing') == 'border-box') {
89var borderBox = this.getBorderBox(element);var paddingBox = this.getPaddingBox(element);size = {
90width: size.width + borderBox.horizontal + paddingBox.horizontal,
91height: size.height + borderBox.vertical + paddingBox.vertical
92};}
93element.style.width = size.width.toString() + 'px';element.style.height = size.height.toString() + 'px';},
94setSize : function(element, size) {
95if (!element) {
96throw Error.argumentNull('element');}
97if (!size) {
98throw Error.argumentNull('size');}
99var borderBox = this.getBorderBox(element);var paddingBox = this.getPaddingBox(element);var contentSize = {
100width: size.width - borderBox.horizontal - paddingBox.horizontal,
101height: size.height - borderBox.vertical - paddingBox.vertical
102};this.setContentSize(element, contentSize);},
103getBounds : function(element) {
104var offset = $common.getLocation(element);return new Sys.UI.Bounds(offset.x, offset.y, element.offsetWidth || 0, element.offsetHeight || 0
104);}, 
105setBounds : function(element, bounds) {
106if (!element) {
107throw Error.argumentNull('element');}
108if (!bounds) {
109throw Error.argumentNull('bounds');}
110this.setSize(element, bounds);$common.setLocation(element, bounds);},
111getClientBounds : function() {
112var clientWidth;var clientHeight;switch(Sys.Browser.agent) {
113case Sys.Browser.InternetExplorer:
114clientWidth = document.documentElement.clientWidth;clientHeight = document.documentElement.clientHeight;break;case Sys.Browser.Safari:
115clientWidth = window.innerWidth;clientHeight = window.innerHeight;break;case Sys.Browser.Opera:
116clientWidth = Math.min(window.innerWidth, document.body.clientWidth);clientHeight = Math.min(window.innerHeight, document.body.clientHeight);break;default: 
117clientWidth = Math.min(window.innerWidth, document.documentElement.clientWidth);clientHeight = Math.min(window.innerHeight, document.documentElement.clientHeight);break;}
118return new Sys.UI.Bounds(0, 0, clientWidth, clientHeight);},
119getMarginBox : function(element) {
120if (!element) {
121throw Error.argumentNull('element');}
122var box = {
123top: this.getMargin(element, AjaxControlToolkit.BoxSide.Top),
124right: this.getMargin(element, AjaxControlToolkit.BoxSide.Right),
125bottom: this.getMargin(element, AjaxControlToolkit.BoxSide.Bottom),
126left: this.getMargin(element, AjaxControlToolkit.BoxSide.Left)
127};box.horizontal = box.left + box.right;box.vertical = box.top + box.bottom;return box;},
128getBorderBox : function(element) {
129if (!element) {
130throw Error.argumentNull('element');}
131var box = {
132top: this.getBorderWidth(element, AjaxControlToolkit.BoxSide.Top),
133right: this.getBorderWidth(element, AjaxControlToolkit.BoxSide.Right),
134bottom: this.getBorderWidth(element, AjaxControlToolkit.BoxSide.Bottom),
135left: this.getBorderWidth(element, AjaxControlToolkit.BoxSide.Left)
136};box.horizontal = box.left + box.right;box.vertical = box.top + box.bottom;return box;},
137getPaddingBox : function(element) {
138if (!element) {
139throw Error.argumentNull('element');}
140var box = {
141top: this.getPadding(element, AjaxControlToolkit.BoxSide.Top),
142right: this.getPadding(element, AjaxControlToolkit.BoxSide.Right),
143bottom: this.getPadding(element, AjaxControlToolkit.BoxSide.Bottom),
144left: this.getPadding(element, AjaxControlToolkit.BoxSide.Left)
145};box.horizontal = box.left + box.right;box.vertical = box.top + box.bottom;return box;},
146isBorderVisible : function(element, boxSide) {
147if (!element) {
148throw Error.argumentNull('element');}
149if(boxSide < AjaxControlToolkit.BoxSide.Top || boxSide > AjaxControlToolkit.BoxSide.Left) {
150throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue, boxSide, 'AjaxControlToolkit.BoxSide'));}
151var styleName = this._borderStyleNames[boxSide];var styleValue = this.getCurrentStyle(element, styleName);return styleValue != "none";},
152getMargin : function(element, boxSide) {
153if (!element) {
154throw Error.argumentNull('element');}
155if(boxSide < AjaxControlToolkit.BoxSide.Top || boxSide > AjaxControlToolkit.BoxSide.Left) {
156throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue, boxSide, 'AjaxControlToolkit.BoxSide'));}
157var styleName = this._marginWidthNames[boxSide];var styleValue = this.getCurrentStyle(element, styleName);try { return this.parsePadding(styleValue);} catch(ex) { return 0;}
158},
159getBorderWidth : function(element, boxSide) {
160if (!element) {
161throw Error.argumentNull('element');}
162if(boxSide < AjaxControlToolkit.BoxSide.Top || boxSide > AjaxControlToolkit.BoxSide.Left) {
163throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue, boxSide, 'AjaxControlToolkit.BoxSide'));}
164if(!this.isBorderVisible(element, boxSide)) {
165return 0;} 
166var styleName = this._borderWidthNames[boxSide];var styleValue = this.getCurrentStyle(element, styleName);return this.parseBorderWidth(styleValue);},
167getPadding : function(element, boxSide) {
168if (!element) {
169throw Error.argumentNull('element');}
170if(boxSide < AjaxControlToolkit.BoxSide.Top || boxSide > AjaxControlToolkit.BoxSide.Left) {
171throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue, boxSide, 'AjaxControlToolkit.BoxSide'));}
172var styleName = this._paddingWidthNames[boxSide];var styleValue = this.getCurrentStyle(element, styleName);return this.parsePadding(styleValue);},
173parseBorderWidth : function(borderWidth) {
174if (!this._borderThicknesses) {
175var borderThicknesses = { };var div0 = document.createElement('div');div0.style.visibility = 'hidden';div0.style.position = 'absolute';div0.style.fontSize = '1px';document.body.appendChild(div0)
176var div1 = document.createElement('div');div1.style.height = '0px';div1.style.overflow = 'hidden';div0.appendChild(div1);var base = div0.offsetHeight;div1.style.borderTop = 'solid black';div1.style.borderTopWidth = 'thin';borderThicknesses['thin'] = div0.offsetHeight - base;div1.style.borderTopWidth = 'medium';borderThicknesses['medium'] = div0.offsetHeight - base;div1.style.borderTopWidth = 'thick';borderThicknesses['thick'] = div0.offsetHeight - base;div0.removeChild(div1);document.body.removeChild(div0);this._borderThicknesses = borderThicknesses;}
177if (borderWidth) {
178switch(borderWidth) {
179case 'thin':
180case 'medium':
181case 'thick':
182return this._borderThicknesses[borderWidth];case 'inherit':
183return 0;}
184var unit = this.parseUnit(borderWidth);Sys.Debug.assert(unit.type == 'px', String.format(AjaxControlToolkit.Resources.Common_InvalidBorderWidthUnit, unit.type));return unit.size;}
185return 0;},
186parsePadding : function(padding) {
187if(padding) {
188if(padding == 'inherit') {
189return 0;}
190var unit = this.parseUnit(padding);Sys.Debug.assert(unit.type == 'px', String.format(AjaxControlToolkit.Resources.Common_InvalidPaddingUnit, unit.type));return unit.size;}
191return 0;},
192parseUnit : function(value) {
193if (!value) {
194throw Error.argumentNull('value');}
195value = value.trim().toLowerCase();var l = value.length;var s = -1;for(var i = 0;i < l;i++) {
196var ch = value.substr(i, 1);if((ch < '0' || ch > '9') && ch != '-' && ch != '.' && ch != ',') {
197break;}
198s = i;}
199if(s == -1) {
200throw Error.create(AjaxControlToolkit.Resources.Common_UnitHasNoDigits);}
201var type;var size;if(s < (l - 1)) {
202type = value.substring(s + 1).trim();} else {
203type = 'px';}
204size = parseFloat(value.substr(0, s + 1));if(type == 'px') {
205size = Math.floor(size);}
206return { 
207size: size,
208type: type
209};},
210getElementOpacity : function(element) {
211if (!element) {
212throw Error.argumentNull('element');}
213var hasOpacity = false;var opacity;if (element.filters) {
214var filters = element.filters;if (filters.length !== 0) {
215var alphaFilter = filters['DXImageTransform.Microsoft.Alpha'];if (alphaFilter) {
216opacity = alphaFilter.opacity / 100.0;hasOpacity = true;}
217}
218}
219else {
220opacity = this.getCurrentStyle(element, 'opacity', 1);hasOpacity = true;}
221if (hasOpacity === false) {
222return 1.0;}
223return parseFloat(opacity);},
224setElementOpacity : function(element, value) {
225if (!element) {
226throw Error.argumentNull('element');}
227if (element.filters) {
228var filters = element.filters;var createFilter = true;if (filters.length !== 0) {
229var alphaFilter = filters['DXImageTransform.Microsoft.Alpha'];if (alphaFilter) {
230createFilter = false;alphaFilter.opacity = value * 100;}
231}
232if (createFilter) {
233element.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + (value * 100) + ')';}
234}
235else {
236element.style.opacity = value;}
237},
238getVisible : function(element) {
239return (element &&
240("none" != $common.getCurrentStyle(element, "display")) &&
241("hidden" != $common.getCurrentStyle(element, "visibility")));},
242setVisible : function(element, value) {
243if (element && value != $common.getVisible(element)) {
244if (value) {
245if (element.style.removeAttribute) {
246element.style.removeAttribute("display");} else {
247element.style.removeProperty("display");}
248} else {
249element.style.display = 'none';}
250element.style.visibility = value ? 'visible' : 'hidden';}
251},
252resolveFunction : function(value) {
253if (value) {
254if (value instanceof Function) {
255return value;} else if (String.isInstanceOfType(value) && value.length > 0) {
256var func;if ((func = window[value]) instanceof Function) {
257return func;} else if ((func = eval(value)) instanceof Function) {
258return func;}
259}
260}
261return null;},
262addCssClasses : function(element, classNames) {
263for(var i = 0;i < classNames.length;i++) {
264Sys.UI.DomElement.addCssClass(element, classNames[i]);}
265},
266removeCssClasses : function(element, classNames) {
267for(var i = 0;i < classNames.length;i++) {
268Sys.UI.DomElement.removeCssClass(element, classNames[i]);}
269},
270setStyle : function(element, style) {
271$common.applyProperties(element.style, style);},
272removeHandlers : function(element, events) {
273for (var name in events) {
274$removeHandler(element, name, events[name]);}
275},
276overlaps : function(r1, r2) {
277return r1.x < (r2.x + r2.width)
278&& r2.x < (r1.x + r1.width)
279&& r1.y < (r2.y + r2.height)
280&& r2.y < (r1.y + r1.height);},
281containsPoint : function(rect, x, y) {
282return x >= rect.x && x < (rect.x + rect.width) && y >= rect.y && y < (rect.y + rect.height);},
283isKeyDigit : function(keyCode) { 
284return (0x30 <= keyCode && keyCode <= 0x39);},
285isKeyNavigation : function(keyCode) { 
286return (Sys.UI.Key.left <= keyCode && keyCode <= Sys.UI.Key.down);},
287padLeft : function(text, size, ch, truncate) { 
288return $common._pad(text, size || 2, ch || ' ', 'l', truncate || false);},
289padRight : function(text, size, ch, truncate) { 
290return $common._pad(text, size || 2, ch || ' ', 'r', truncate || false);},
291_pad : function(text, size, ch, side, truncate) {
292text = text.toString();var length = text.length;var builder = new Sys.StringBuilder();if (side == 'r') {
293builder.append(text);} 
294while (length < size) {
295builder.append(ch);length++;}
296if (side == 'l') {
297builder.append(text);}
298var result = builder.toString();if (truncate && result.length > size) {
299if (side == 'l') {
300result = result.substr(result.length - size, size);} else {
301result = result.substr(0, size);}
302}
303return result;},
304__DOMEvents : {
305focusin : { eventGroup : "UIEvents", init : function(e, p) { e.initUIEvent("focusin", true, false, window, 1);} },
306focusout : { eventGroup : "UIEvents", init : function(e, p) { e.initUIEvent("focusout", true, false, window, 1);} },
307activate : { eventGroup : "UIEvents", init : function(e, p) { e.initUIEvent("activate", true, true, window, 1);} },
308focus : { eventGroup : "UIEvents", init : function(e, p) { e.initUIEvent("focus", false, false, window, 1);} },
309blur : { eventGroup : "UIEvents", init : function(e, p) { e.initUIEvent("blur", false, false, window, 1);} },
310click : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("click", true, true, window, 1, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
311dblclick : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("click", true, true, window, 2, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
312mousedown : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("mousedown", true, true, window, 1, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
313mouseup : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("mouseup", true, true, window, 1, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
314mouseover : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("mouseover", true, true, window, 1, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
315mousemove : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("mousemove", true, true, window, 1, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
316mouseout : { eventGroup : "MouseEvents", init : function(e, p) { e.initMouseEvent("mousemove", true, true, window, 1, p.screenX || 0, p.screenY || 0, p.clientX || 0, p.clientY || 0, p.ctrlKey || false, p.altKey || false, p.shiftKey || false, p.metaKey || false, p.button || 0, p.relatedTarget || null);} },
317load : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("load", false, false);} },
318unload : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("unload", false, false);} },
319select : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("select", true, false);} },
320change : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("change", true, false);} },
321submit : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("submit", true, true);} },
322reset : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("reset", true, false);} },
323resize : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("resize", true, false);} },
324scroll : { eventGroup : "HTMLEvents", init : function(e, p) { e.initEvent("scroll", true, false);} }
325},
326tryFireRawEvent : function(element, rawEvent) {
327try {
328if (element.fireEvent) {
329element.fireEvent("on" + rawEvent.type, rawEvent);return true;} else if (element.dispatchEvent) {
330element.dispatchEvent(rawEvent);return true;}
331} catch (e) {
332}
333return false;}, 
334tryFireEvent : function(element, eventName, properties) {
335try {
336if (document.createEventObject) {
337var e = document.createEventObject();$common.applyProperties(e, properties || {});element.fireEvent("on" + eventName, e);return true;} else if (document.createEvent) {
338var def = $common.__DOMEvents[eventName];if (def) {
339var e = document.createEvent(def.eventGroup);def.init(e, properties || {});element.dispatchEvent(e);return true;}
340}
341} catch (e) {
342}
343return false;},
344wrapElement : function(innerElement, newOuterElement, newInnerParentElement) {
345var parent = innerElement.parentNode;parent.replaceChild(newOuterElement, innerElement);(newInnerParentElement || newOuterElement).appendChild(innerElement);},
346unwrapElement : function(innerElement, oldOuterElement) {
347var parent = oldOuterElement.parentNode;if (parent != null) {
348$common.removeElement(innerElement);parent.replaceChild(innerElement, oldOuterElement);}
349},
350removeElement : function(element) {
351var parent = element.parentNode;if (parent != null) {
352parent.removeChild(element);}
353},
354applyProperties : function(target, properties) {
355for (var p in properties) {
356var pv = properties[p];if (pv != null && Object.getType(pv)===Object) {
357var tv = target[p];$common.applyProperties(tv, pv);} else {
358target[p] = pv;}
359}
360},
361createElementFromTemplate : function(template, appendToParent, nameTable) {
362if (typeof(template.nameTable)!='undefined') {
363var newNameTable = template.nameTable;if (String.isInstanceOfType(newNameTable)) {
364newNameTable = nameTable[newNameTable];}
365if (newNameTable != null) {
366nameTable = newNameTable;}
367}
368var elementName = null;if (typeof(template.name)!=='undefined') {
369elementName = template.name;}
370var elt = document.createElement(template.nodeName);if (typeof(template.name)!=='undefined' && nameTable) {
371nameTable[template.name] = elt;}
372if (typeof(template.parent)!=='undefined' && appendToParent == null) {
373var newParent = template.parent;if (String.isInstanceOfType(newParent)) {
374newParent = nameTable[newParent];}
375if (newParent != null) {
376appendToParent = newParent;}
377}
378if (typeof(template.properties)!=='undefined' && template.properties != null) {
379$common.applyProperties(elt, template.properties);}
380if (typeof(template.cssClasses)!=='undefined' && template.cssClasses != null) {
381$common.addCssClasses(elt, template.cssClasses);}
382if (typeof(template.events)!=='undefined' && template.events != null) {
383$addHandlers(elt, template.events);}
384if (typeof(template.visible)!=='undefined' && template.visible != null) {
385this.setVisible(elt, template.visible);}
386if (appendToParent) {
387appendToParent.appendChild(elt);}
388if (typeof(template.opacity)!=='undefined' && template.opacity != null) {
389$common.setElementOpacity(elt, template.opacity);}
390if (typeof(template.children)!=='undefined' && template.children != null) {
391for (var i = 0;i < template.children.length;i++) {
392var subtemplate = template.children[i];$common.createElementFromTemplate(subtemplate, elt, nameTable);}
393}
394var contentPresenter = elt;if (typeof(template.contentPresenter)!=='undefined' && template.contentPresenter != null) {
395contentPresenter = nameTable[contentPresenter];}
396if (typeof(template.content)!=='undefined' && template.content != null) {
397var content = template.content;if (String.isInstanceOfType(content)) {
398content = nameTable[content];}
399if (content.parentNode) {
400$common.wrapElement(content, elt, contentPresenter);} else {
401contentPresenter.appendChild(content);}
402}
403return elt;},
404prepareHiddenElementForATDeviceUpdate : function () {
405var objHidden = document.getElementById('hiddenInputToUpdateATBuffer_CommonToolkitScripts');if (!objHidden) {
406var objHidden = document.createElement('input');objHidden.setAttribute('type', 'hidden');objHidden.setAttribute('value', '1');objHidden.setAttribute('id', 'hiddenInputToUpdateATBuffer_CommonToolkitScripts');objHidden.setAttribute('name', 'hiddenInputToUpdateATBuffer_CommonToolkitScripts');if ( document.forms[0] ) {
407document.forms[0].appendChild(objHidden);}
408}
409},
410updateFormToRefreshATDeviceBuffer : function () {
411var objHidden = document.getElementById('hiddenInputToUpdateATBuffer_CommonToolkitScripts');if (objHidden) {
412if (objHidden.getAttribute('value') == '1') {
413objHidden.setAttribute('value', '0');} else {
414objHidden.setAttribute('value', '1');}
415}
416}
417}
418var CommonToolkitScripts = AjaxControlToolkit.CommonToolkitScripts = new AjaxControlToolkit._CommonToolkitScripts();var $common = CommonToolkitScripts;Sys.UI.DomElement.getVisible = $common.getVisible;Sys.UI.DomElement.setVisible = $common.setVisible;Sys.UI.Control.overlaps = $common.overlaps;AjaxControlToolkit._DomUtility = function() {
419}
420AjaxControlToolkit._DomUtility.prototype = {
421isDescendant : function(ancestor, descendant) {
422for (var n = descendant.parentNode;n != null;n = n.parentNode) {
423if (n == ancestor) return true;}
424return false;},
425isDescendantOrSelf : function(ancestor, descendant) {
426if (ancestor === descendant) 
427return true;return AjaxControlToolkit.DomUtility.isDescendant(ancestor, descendant);},
428isAncestor : function(descendant, ancestor) {
429return AjaxControlToolkit.DomUtility.isDescendant(ancestor, descendant);},
430isAncestorOrSelf : function(descendant, ancestor) {
431if (descendant === ancestor)
432return true;return AjaxControlToolkit.DomUtility.isDescendant(ancestor, descendant);},
433isSibling : function(self, sibling) {
434var parent = self.parentNode;for (var i = 0;i < parent.childNodes.length;i++) {
435if (parent.childNodes[i] == sibling) return true;}
436return false;}
437}
438AjaxControlToolkit._DomUtility.registerClass("AjaxControlToolkit._DomUtility");AjaxControlToolkit.DomUtility = new AjaxControlToolkit._DomUtility();AjaxControlToolkit.TextBoxWrapper = function(element) {
439AjaxControlToolkit.TextBoxWrapper.initializeBase(this, [element]);this._current = element.value;this._watermark = null;this._isWatermarked = false;}
440AjaxControlToolkit.TextBoxWrapper.prototype = {
441dispose : function() {
442this.get_element().AjaxControlToolkitTextBoxWrapper = null;AjaxControlToolkit.TextBoxWrapper.callBaseMethod(this, 'dispose');},
443get_Current : function() {
444this._current = this.get_element().value;return this._current;},
445set_Current : function(value) {
446this._current = value;this._updateElement();},
447get_Value : function() {
448if (this.get_IsWatermarked()) {
449return "";} else {
450return this.get_Current();}
451},
452set_Value : function(text) {
453this.set_Current(text);if (!text || (0 == text.length)) {
454if (null != this._watermark) {
455this.set_IsWatermarked(true);}
456} else {
457this.set_IsWatermarked(false);}
458},
459get_Watermark : function() {
460return this._watermark;},
461set_Watermark : function(value) {
462this._watermark = value;this._updateElement();},
463get_IsWatermarked : function() {
464return this._isWatermarked;},
465set_IsWatermarked : function(isWatermarked) {
466if (this._isWatermarked != isWatermarked) {
467this._isWatermarked = isWatermarked;this._updateElement();this._raiseWatermarkChanged();}
468},
469_updateElement : function() {
470var element = this.get_element();if (this._isWatermarked) {
471if (element.value != this._watermark) {
472element.value = this._watermark;}
473} else {
474if (element.value != this._current) {
475element.value = this._current;}
476}
477},
478add_WatermarkChanged : function(handler) {
479this.get_events().addHandler("WatermarkChanged", handler);},
480remove_WatermarkChanged : function(handler) {
481this.get_events().removeHandler("WatermarkChanged", handler);},
482_raiseWatermarkChanged : function() {
483var onWatermarkChangedHandler = this.get_events().getHandler("WatermarkChanged");if (onWatermarkChangedHandler) {
484onWatermarkChangedHandler(this, Sys.EventArgs.Empty);}
485}
486}
487AjaxControlToolkit.TextBoxWrapper.get_Wrapper = function(element) {
488if (null == element.AjaxControlToolkitTextBoxWrapper) {
489element.AjaxControlToolkitTextBoxWrapper = new AjaxControlToolkit.TextBoxWrapper(element);}
490return element.AjaxControlToolkitTextBoxWrapper;}
491AjaxControlToolkit.TextBoxWrapper.registerClass('AjaxControlToolkit.TextBoxWrapper', Sys.UI.Behavior);AjaxControlToolkit.TextBoxWrapper.validatorGetValue = function(id) {
492var control = $get(id);if (control && control.AjaxControlToolkitTextBoxWrapper) {
493return control.AjaxControlToolkitTextBoxWrapper.get_Value();}
494return AjaxControlToolkit.TextBoxWrapper._originalValidatorGetValue(id);}
495if (typeof(ValidatorGetValue) == 'function') {
496AjaxControlToolkit.TextBoxWrapper._originalValidatorGetValue = ValidatorGetValue;ValidatorGetValue = AjaxControlToolkit.TextBoxWrapper.validatorGetValue;}
497if (Sys.CultureInfo.prototype._getAbbrMonthIndex) {
498try {
499Sys.CultureInfo.prototype._getAbbrMonthIndex('');} catch(ex) {
500Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value) {
501if (!this._upperAbbrMonths) {
502this._upperAbbrMonths = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);}
503return Array.indexOf(this._upperAbbrMonths, this._toUpper(value));}
504Sys.CultureInfo.CurrentCulture._getAbbrMonthIndex = Sys.CultureInfo.prototype._getAbbrMonthIndex;Sys.CultureInfo.InvariantCulture._getAbbrMonthIndex = Sys.CultureInfo.prototype._getAbbrMonthIndex;}
505}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.