//START Common.Common.js
(function(){var scriptName="ExtendedCommon";function execute(){var u="WatermarkChanged",t="HTML",s="BODY",r="hiddenInputToUpdateATBuffer_CommonToolkitScripts",q="HTMLEvents",d="mousemove",b="MouseEvents",a="UIEvents",c="display",p="DXImageTransform.Microsoft.Alpha",j="value",o="absolute",n="hidden",e="none",k="px",i="element",m="undefined",l=null,h=false,g="Sys.Extended.UI.BoxSide",f=true,version=Sys.version;if(!version&&!Sys._versionChecked){Sys._versionChecked=f;throw new Error("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.");}Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.BoxSide=function(){};Sys.Extended.UI.BoxSide.prototype={Top:0,Right:1,Bottom:2,Left:3};Sys.Extended.UI.BoxSide.registerEnum(g,h);Sys.Extended.UI._CommonToolkitScripts=function(){};Sys.Extended.UI._CommonToolkitScripts.prototype={_borderStyleNames:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],_borderWidthNames:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],_paddingWidthNames:["paddingTop","paddingRight","paddingBottom","paddingLeft"],_marginWidthNames:["marginTop","marginRight","marginBottom","marginLeft"],getCurrentStyle:function(b,c,d){var a=l;if(b){if(b.currentStyle)a=b.currentStyle[c];else if(document.defaultView&&document.defaultView.getComputedStyle){var e=document.defaultView.getComputedStyle(b,l);if(e)a=e[c]}if(!a&&b.style.getPropertyValue)a=b.style.getPropertyValue(c);else if(!a&&b.style.getAttribute)a=b.style.getAttribute(c)}if(!a||a==""||typeof a===m)if(typeof d!=m)a=d;else a=l;return a},getInheritedBackgroundColor:function(d){var c="backgroundColor",a="#FFFFFF";if(!d)return a;var b=this.getCurrentStyle(d,c);try{while(!b||b==""||b=="transparent"||b=="rgba(0, 0, 0, 0)"){d=d.parentNode;if(!d)b=a;else b=this.getCurrentStyle(d,c)}}catch(e){b=a}return b},getLocation:function(a){return Sys.UI.DomElement.getLocation(a)},setLocation:function(b,a){Sys.UI.DomElement.setLocation(b,a.x,a.y)},getContentSize:function(a){if(!a)throw Error.argumentNull(i);var d=this.getSize(a),c=this.getBorderBox(a),b=this.getPaddingBox(a);return {width:d.width-c.horizontal-b.horizontal,height:d.height-c.vertical-b.vertical}},getSize:function(a){if(!a)throw Error.argumentNull(i);return {width:a.offsetWidth,height:a.offsetHeight}},setContentSize:function(a,c){var b="border-box",d=this;if(!a)throw Error.argumentNull(i);if(!c)throw Error.argumentNull("size");if(d.getCurrentStyle(a,"MozBoxSizing")==b||d.getCurrentStyle(a,"BoxSizing")==b){var f=d.getBorderBox(a),e=d.getPaddingBox(a);c={width:c.width+f.horizontal+e.horizontal,height:c.height+f.vertical+e.vertical}}a.style.width=c.width.toString()+k;a.style.height=c.height.toString()+k},setSize:function(a,b){if(!a)throw Error.argumentNull(i);if(!b)throw Error.argumentNull("size");var d=this.getBorderBox(a),c=this.getPaddingBox(a),e={width:b.width-d.horizontal-c.horizontal,height:b.height-d.vertical-c.vertical};this.setContentSize(a,e)},getBounds:function(a){return Sys.UI.DomElement.getBounds(a)},setBounds:function(a,b){if(!a)throw Error.argumentNull(i);if(!b)throw Error.argumentNull("bounds");this.setSize(a,b);$common.setLocation(a,b)},getClientBounds:function(){var b,a;if(document.compatMode=="CSS1Compat"){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{b=document.body.clientWidth;a=document.body.clientHeight}return new Sys.UI.Bounds(0,0,b,a)},getMarginBox:function(b){var c=this;if(!b)throw Error.argumentNull(i);var a={top:c.getMargin(b,Sys.Extended.UI.BoxSide.Top),right:c.getMargin(b,Sys.Extended.UI.BoxSide.Right),bottom:c.getMargin(b,Sys.Extended.UI.BoxSide.Bottom),left:c.getMargin(b,Sys.Extended.UI.BoxSide.Left)};a.horizontal=a.left+a.right;a.vertical=a.top+a.bottom;return a},getBorderBox:function(b){var c=this;if(!b)throw Error.argumentNull(i);var a={top:c.getBorderWidth(b,Sys.Extended.UI.BoxSide.Top),right:c.getBorderWidth(b,Sys.Extended.UI.BoxSide.Right),bottom:c.getBorderWidth(b,Sys.Extended.UI.BoxSide.Bottom),left:c.getBorderWidth(b,Sys.Extended.UI.BoxSide.Left)};a.horizontal=a.left+a.right;a.vertical=a.top+a.bottom;return a},getPaddingBox:function(b){var c=this;if(!b)throw Error.argumentNull(i);var a={top:c.getPadding(b,Sys.Extended.UI.BoxSide.Top),right:c.getPadding(b,Sys.Extended.UI.BoxSide.Right),bottom:c.getPadding(b,Sys.Extended.UI.BoxSide.Bottom),left:c.getPadding(b,Sys.Extended.UI.BoxSide.Left)};a.horizontal=a.left+a.right;a.vertical=a.top+a.bottom;return a},isBorderVisible:function(b,a){if(!b)throw Error.argumentNull(i);if(a<Sys.Extended.UI.BoxSide.Top||a>Sys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,g));var d=this._borderStyleNames[a],c=this.getCurrentStyle(b,d);return c!=e},getMargin:function(b,a){if(!b)throw Error.argumentNull(i);if(a<Sys.Extended.UI.BoxSide.Top||a>Sys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,g));var d=this._marginWidthNames[a],c=this.getCurrentStyle(b,d);try{return this.parsePadding(c)}catch(e){return 0}},getBorderWidth:function(c,a){var b=this;if(!c)throw Error.argumentNull(i);if(a<Sys.Extended.UI.BoxSide.Top||a>Sys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,g));if(!b.isBorderVisible(c,a))return 0;var e=b._borderWidthNames[a],d=b.getCurrentStyle(c,e);return b.parseBorderWidth(d)},getPadding:function(b,a){if(!b)throw Error.argumentNull(i);if(a<Sys.Extended.UI.BoxSide.Top||a>Sys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,g));var d=this._paddingWidthNames[a],c=this.getCurrentStyle(b,d);return this.parsePadding(c)},parseBorderWidth:function(g){var d="thick",c="medium",b="thin",h=this;if(!h._borderThicknesses){var f={},a=document.createElement("div");a.style.visibility=n;a.style.position=o;a.style.fontSize="1px";document.body.appendChild(a);var e=document.createElement("div");e.style.height="0px";e.style.overflow=n;a.appendChild(e);var i=a.offsetHeight;e.style.borderTop="solid black";e.style.borderTopWidth=b;f[b]=a.offsetHeight-i;e.style.borderTopWidth=c;f[c]=a.offsetHeight-i;e.style.borderTopWidth=d;f[d]=a.offsetHeight-i;a.removeChild(e);document.body.removeChild(a);h._borderThicknesses=f}if(g){switch(g){case b:case c:case d:return h._borderThicknesses[g];case "inherit":return 0}var j=h.parseUnit(g);Sys.Debug.assert(j.type==k,String.format(Sys.Extended.UI.Resources.Common_InvalidBorderWidthUnit,j.type));return j.size}return 0},parsePadding:function(a){if(a){if(a=="inherit")return 0;var b=this.parseUnit(a);b.type!==k&&Sys.Debug.fail(String.format(Sys.Extended.UI.Resources.Common_InvalidPaddingUnit,b.type));return b.size}return 0},parseUnit:function(a){if(!a)throw Error.argumentNull(j);a=a.trim().toLowerCase();for(var g=a.length,c=-1,f=0;f<g;f++){var b=a.substr(f,1);if((b<"0"||b>"9")&&b!="-"&&b!="."&&b!=",")break;c=f}if(c==-1)throw Error.create(Sys.Extended.UI.Resources.Common_UnitHasNoDigits);var e,d;if(c<g-1)e=a.substring(c+1).trim();else e=k;d=parseFloat(a.substr(0,c+1));if(e==k)d=Math.floor(d);return {size:d,type:e}},getElementOpacity:function(a){if(!a)throw Error.argumentNull(i);var b=h,c;if(a.filters){var e=a.filters;if(e.length!==0){var d=e[p];if(d){c=d.opacity/100;b=f}}}else{c=this.getCurrentStyle(a,"opacity",1);b=f}if(b===h)return 1;return parseFloat(c)},setElementOpacity:function(a,b){if(!a)throw Error.argumentNull(i);if(a.filters){var e=a.filters,c=f;if(e.length!==0){var d=e[p];if(d){c=h;d.opacity=b*100}}if(c)a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+b*100+")"}else a.style.opacity=b},getVisible:function(a){return a&&e!=$common.getCurrentStyle(a,c)&&n!=$common.getCurrentStyle(a,"visibility")},setVisible:function(a,b){if(a&&b!=$common.getVisible(a)){if(b)if(a.style.removeAttribute)a.style.removeAttribute(c);else a.style.removeProperty(c);else a.style.display=e;a.style.visibility=b?"visible":n}},resolveFunction:function(value){if(value)if(value instanceof Function)return value;else if(String.isInstanceOfType(value)&&value.length>0){var func;if((func=window[value])instanceof Function)return func;else if((func=eval(value))instanceof Function)return func}return l},addCssClasses:function(c,b){for(var a=0;a<b.length;a++)Sys.UI.DomElement.addCssClass(c,b[a])},removeCssClasses:function(c,b){for(var a=0;a<b.length;a++)Sys.UI.DomElement.removeCssClass(c,b[a])},setStyle:function(a,b){$common.applyProperties(a.style,b)},removeHandlers:function(c,a){for(var b in a)$removeHandler(c,b,a[b])},overlaps:function(a,b){return a.x<b.x+b.width&&b.x<a.x+a.width&&a.y<b.y+b.height&&b.y<a.y+a.height},containsPoint:function(a,b,c){return b>=a.x&&b<a.x+a.width&&c>=a.y&&c<a.y+a.height},isKeyDigit:function(a){return 48<=a&&a<=57},isKeyNavigation:function(a){return Sys.UI.Key.left<=a&&a<=Sys.UI.Key.down},padLeft:function(c,b,d,a){return $common._pad(c,b||2,d||" ","l",a||h)},padRight:function(c,b,d,a){return $common._pad(c,b||2,d||" ","r",a||h)},_pad:function(c,b,h,e,g){c=c.toString();var f=c.length,d=new Sys.StringBuilder;e=="r"&&d.append(c);while(f<b){d.append(h);f++}e=="l"&&d.append(c);var a=d.toString();if(g&&a.length>b)if(e=="l")a=a.substr(a.length-b,b);else a=a.substr(0,b);return a},__DOMEvents:{focusin:{eventGroup:a,init:function(a){a.initUIEvent("focusin",f,h,window,1)}},focusout:{eventGroup:a,init:function(a){a.initUIEvent("focusout",f,h,window,1)}},activate:{eventGroup:a,init:function(a){a.initUIEvent("activate",f,f,window,1)}},focus:{eventGroup:a,init:function(a){a.initUIEvent("focus",h,h,window,1)}},blur:{eventGroup:a,init:function(a){a.initUIEvent("blur",h,h,window,1)}},click:{eventGroup:b,init:function(b,a){b.initMouseEvent("click",f,f,window,1,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},dblclick:{eventGroup:b,init:function(b,a){b.initMouseEvent("click",f,f,window,2,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},mousedown:{eventGroup:b,init:function(b,a){b.initMouseEvent("mousedown",f,f,window,1,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},mouseup:{eventGroup:b,init:function(b,a){b.initMouseEvent("mouseup",f,f,window,1,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},mouseover:{eventGroup:b,init:function(b,a){b.initMouseEvent("mouseover",f,f,window,1,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},mousemove:{eventGroup:b,init:function(b,a){b.initMouseEvent(d,f,f,window,1,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},mouseout:{eventGroup:b,init:function(b,a){b.initMouseEvent(d,f,f,window,1,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||h,a.altKey||h,a.shiftKey||h,a.metaKey||h,a.button||0,a.relatedTarget||l)}},load:{eventGroup:q,init:function(a){a.initEvent("load",h,h)}},unload:{eventGroup:q,init:function(a){a.initEvent("unload",h,h)}},select:{eventGroup:q,init:function(a){a.initEvent("select",f,h)}},change:{eventGroup:q,init:function(a){a.initEvent("change",f,h)}},submit:{eventGroup:q,init:function(a){a.initEvent("submit",f,f)}},reset:{eventGroup:q,init:function(a){a.initEvent("reset",f,h)}},resize:{eventGroup:q,init:function(a){a.initEvent("resize",f,h)}},scroll:{eventGroup:q,init:function(a){a.initEvent("scroll",f,h)}}},tryFireRawEvent:function(a,b){try{if(a.fireEvent){a.fireEvent("on"+b.type,b);return f}else if(a.dispatchEvent){a.dispatchEvent(b);return f}}catch(c){}return h},tryFireEvent:function(e,d,c){try{if(document.createEventObject){var a=document.createEventObject();$common.applyProperties(a,c||{});e.fireEvent("on"+d,a);return f}else if(document.createEvent){var b=$common.__DOMEvents[d];if(b){var a=document.createEvent(b.eventGroup);b.init(a,c||{});e.dispatchEvent(a);return f}}}catch(f){}return h},wrapElement:function(a,b,c){var d=a.parentNode;d.replaceChild(b,a);(c||b).appendChild(a)},unwrapElement:function(b,a){var c=a.parentNode;if(c!=l){$common.removeElement(b);c.replaceChild(b,a)}},removeElement:function(a){var b=a.parentNode;b!=l&&b.removeChild(a)},applyProperties:function(d,c){for(var b in c){var a=c[b];if(a!=l&&Object.getType(a)===Object){var e=d[b];$common.applyProperties(e,a)}else d[b]=a}},createElementFromTemplate:function(a,h,c){if(typeof a.nameTable!=m){var e=a.nameTable;if(String.isInstanceOfType(e))e=c[e];if(e!=l)c=e}var j=l;if(typeof a.name!==m)j=a.name;var b=document.createElement(a.nodeName);if(typeof a.name!==m&&c)c[a.name]=b;if(typeof a.parent!==m&&h==l){var f=a.parent;if(String.isInstanceOfType(f))f=c[f];if(f!=l)h=f}typeof a.properties!==m&&a.properties!=l&&$common.applyProperties(b,a.properties);typeof a.cssClasses!==m&&a.cssClasses!=l&&$common.addCssClasses(b,a.cssClasses);typeof a.events!==m&&a.events!=l&&$addHandlers(b,a.events);typeof a.visible!==m&&a.visible!=l&&this.setVisible(b,a.visible);h&&h.appendChild(b);typeof a.opacity!==m&&a.opacity!=l&&$common.setElementOpacity(b,a.opacity);if(typeof a.children!==m&&a.children!=l)for(var i=0;i<a.children.length;i++){var k=a.children[i];$common.createElementFromTemplate(k,b,c)}var g=b;if(typeof a.contentPresenter!==m&&a.contentPresenter!=l)g=c[g];if(typeof a.content!==m&&a.content!=l){var d=a.content;if(String.isInstanceOfType(d))d=c[d];if(d.parentNode)$common.wrapElement(d,b,g);else g.appendChild(d)}return b},prepareHiddenElementForATDeviceUpdate:function(){var a=document.getElementById(r);if(!a){var a=document.createElement("input");a.setAttribute("type",n);a.setAttribute(j,"1");a.setAttribute("id",r);a.setAttribute("name",r);document.forms[0]&&document.forms[0].appendChild(a)}},updateFormToRefreshATDeviceBuffer:function(){var a=document.getElementById(r);if(a)if(a.getAttribute(j)=="1")a.setAttribute(j,"0");else a.setAttribute(j,"1")},appendElementToFormOrBody:function(a){if(document.forms&&document.forms[0])document.forms[0].appendChild(a);else document.body.appendChild(a)}};if(document.documentElement.getBoundingClientRect)Sys.UI.DomElement.getLocation=function(b){if(b.self||b.nodeType===9||b===document.documentElement||b.parentNode===b.ownerDocument.documentElement)return new Sys.UI.Point(0,0);var f=b.getBoundingClientRect();if(!f)return new Sys.UI.Point(0,0);var k,e=b.ownerDocument.documentElement,c=Math.round(f.left)+e.scrollLeft,d=Math.round(f.top)+e.scrollTop;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){try{var g=b.ownerDocument.parentWindow.frameElement||l;if(g){var h=g.frameBorder==="0"||g.frameBorder==="no"?2:0;c+=h;d+=h}}catch(l){}if(Sys.Browser.version===7&&!document.documentMode){var i=document.body,j=i.getBoundingClientRect(),a=(j.right-j.left)/i.clientWidth;a=Math.round(a*100);a=(a-a%5)/100;if(!isNaN(a)&&a!==1){c=Math.round(c/a);d=Math.round(d/a)}}if((document.documentMode||0)<8){c-=e.clientLeft;d-=e.clientTop}}return new Sys.UI.Point(c,d)};else if(Sys.Browser.agent===Sys.Browser.Safari)Sys.UI.DomElement.getLocation=function(c){if(c.window&&c.window===c||c.nodeType===9)return new Sys.UI.Point(0,0);for(var d=0,e=0,j=l,g=l,b,a=c;a;j=a,g=b,a=a.offsetParent){b=Sys.UI.DomElement._getCurrentStyle(a);var f=a.tagName?a.tagName.toUpperCase():l;if((a.offsetLeft||a.offsetTop)&&(f!==s||(!g||g.position!==o))){d+=a.offsetLeft;e+=a.offsetTop}if(j&&Sys.Browser.version>=3){d+=parseInt(b.borderLeftWidth);e+=parseInt(b.borderTopWidth)}}b=Sys.UI.DomElement._getCurrentStyle(c);var h=b?b.position:l;if(!h||h!==o)for(a=c.parentNode;a;a=a.parentNode){f=a.tagName?a.tagName.toUpperCase():l;if(f!==s&&f!==t&&(a.scrollLeft||a.scrollTop)){d-=a.scrollLeft||0;e-=a.scrollTop||0}b=Sys.UI.DomElement._getCurrentStyle(a);var i=b?b.position:l;if(i&&i===o)break}return new Sys.UI.Point(d,e)};else Sys.UI.DomElement.getLocation=function(d){if(d.window&&d.window===d||d.nodeType===9)return new Sys.UI.Point(0,0);for(var e=0,f=0,i=l,g=l,b=l,a=d;a;i=a,g=b,a=a.offsetParent){var c=a.tagName?a.tagName.toUpperCase():l;b=Sys.UI.DomElement._getCurrentStyle(a);if((a.offsetLeft||a.offsetTop)&&!(c===s&&(!g||g.position!==o))){e+=a.offsetLeft;f+=a.offsetTop}if(i!==l&&b){if(c!=="TABLE"&&c!=="TD"&&c!==t){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}if(c==="TABLE"&&(b.position==="relative"||b.position===o)){e+=parseInt(b.marginLeft)||0;f+=parseInt(b.marginTop)||0}}}b=Sys.UI.DomElement._getCurrentStyle(d);var h=b?b.position:l;if(!h||h!==o)for(a=d.parentNode;a;a=a.parentNode){c=a.tagName?a.tagName.toUpperCase():l;if(c!==s&&c!==t&&(a.scrollLeft||a.scrollTop)){e-=a.scrollLeft||0;f-=a.scrollTop||0;b=Sys.UI.DomElement._getCurrentStyle(a);if(b){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}}}return new Sys.UI.Point(e,f)};CommonToolkitScripts=Sys.Extended.UI.CommonToolkitScripts=new Sys.Extended.UI._CommonToolkitScripts;$common=CommonToolkitScripts;Sys.UI.DomElement.getVisible=$common.getVisible;Sys.UI.DomElement.setVisible=$common.setVisible;Sys.UI.Control.overlaps=$common.overlaps;Sys.Extended.UI._DomUtility=function(){};Sys.Extended.UI._DomUtility.prototype={isDescendant:function(c,b){for(var a=b.parentNode;a!=l;a=a.parentNode)if(a==c)return f;return h},isDescendantOrSelf:function(b,a){if(b===a)return f;return Sys.Extended.UI.DomUtility.isDescendant(b,a)},isAncestor:function(a,b){return Sys.Extended.UI.DomUtility.isDescendant(b,a)},isAncestorOrSelf:function(a,b){if(a===b)return f;return Sys.Extended.UI.DomUtility.isDescendant(b,a)},isSibling:function(d,c){for(var b=d.parentNode,a=0;a<b.childNodes.length;a++)if(b.childNodes[a]==c)return f;return h}};Sys.Extended.UI._DomUtility.registerClass("Sys.Extended.UI._DomUtility");Sys.Extended.UI.DomUtility=new Sys.Extended.UI._DomUtility;Sys.Extended.UI.TextBoxWrapper=function(b){var a=this;Sys.Extended.UI.TextBoxWrapper.initializeBase(a,[b]);a._current=b.value;a._watermark=l;a._isWatermarked=h};Sys.Extended.UI.TextBoxWrapper.prototype={dispose:function(){this.get_element().TextBoxWrapper=l;Sys.Extended.UI.TextBoxWrapper.callBaseMethod(this,"dispose")},get_Current:function(){this._current=this.get_element().value;return this._current},set_Current:function(a){this._current=a;this._updateElement()},get_Value:function(){if(this.get_IsWatermarked())return "";else return this.get_Current()},set_Value:function(b){var a=this;a.set_Current(b);if(!b||0==b.length)l!=a._watermark&&a.set_IsWatermarked(f);else a.set_IsWatermarked(h)},get_Watermark:function(){return this._watermark},set_Watermark:function(a){this._watermark=a;this._updateElement()},get_IsWatermarked:function(){return this._isWatermarked},set_IsWatermarked:function(b){var a=this;if(a._isWatermarked!=b){a._isWatermarked=b;a._updateElement();a._raiseWatermarkChanged()}},_updateElement:function(){var a=this,b=a.get_element();if(a._isWatermarked){if(b.value!=a._watermark)b.value=a._watermark}else if(b.value!=a._current)b.value=a._current},add_WatermarkChanged:function(a){this.get_events().addHandler(u,a)},remove_WatermarkChanged:function(a){this.get_events().removeHandler(u,a)},_raiseWatermarkChanged:function(){var a=this.get_events().getHandler(u);a&&a(this,Sys.EventArgs.Empty)}};Sys.Extended.UI.TextBoxWrapper.get_Wrapper=function(a){if(l==a.TextBoxWrapper)a.TextBoxWrapper=new Sys.Extended.UI.TextBoxWrapper(a);return a.TextBoxWrapper};Sys.Extended.UI.TextBoxWrapper.registerClass("Sys.Extended.UI.TextBoxWrapper",Sys.UI.Behavior);Sys.Extended.UI.TextBoxWrapper.validatorGetValue=function(b){var a=$get(b);if(a&&a.TextBoxWrapper)return a.TextBoxWrapper.get_Value();return Sys.Extended.UI.TextBoxWrapper._originalValidatorGetValue(b)};if(typeof ValidatorGetValue=="function"){Sys.Extended.UI.TextBoxWrapper._originalValidatorGetValue=ValidatorGetValue;ValidatorGetValue=Sys.Extended.UI.TextBoxWrapper.validatorGetValue}if(Sys.CultureInfo&&Sys.CultureInfo.prototype._getAbbrMonthIndex){Sys.CultureInfo.prototype._getAbbrMonthIndex=function(b){var a=this;if(!a._upperAbbrMonths)a._upperAbbrMonths=a._toUpperArray(a.dateTimeFormat.AbbreviatedMonthNames);return Array.indexOf(a._upperAbbrMonths,a._toUpper(b))};Sys.CultureInfo.CurrentCulture._getAbbrMonthIndex=Sys.CultureInfo.prototype._getAbbrMonthIndex;Sys.CultureInfo.InvariantCulture._getAbbrMonthIndex=Sys.CultureInfo.prototype._getAbbrMonthIndex}}if(window.Sys&&Sys.loader)Sys.loader.registerScript(scriptName,["ComponentModel"],execute);else execute()})();var $common,CommonToolkitScripts;
//END Common.Common.js
//START ExtenderBase.BaseScripts.js
(function(){var b="ExtendedBase";function a(){var l="Underline",k="Justify Left",j="Ordered List",i="Justify Center",h="Justify Right",b="undefined",f="populating",e="populated",d="dispose",c="initialize",a=null,g=this,m=Sys.version;if(!m&&!Sys._versionChecked){Sys._versionChecked=true;throw new Error("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.");}Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.BehaviorBase=function(c){var b=this;Sys.Extended.UI.BehaviorBase.initializeBase(b,[c]);b._clientStateFieldID=a;b._pageRequestManager=a;b._partialUpdateBeginRequestHandler=a;b._partialUpdateEndRequestHandler=a};Sys.Extended.UI.BehaviorBase.prototype={initialize:function(){Sys.Extended.UI.BehaviorBase.callBaseMethod(this,c)},dispose:function(){var b=this;Sys.Extended.UI.BehaviorBase.callBaseMethod(b,d);if(b._pageRequestManager){if(b._partialUpdateBeginRequestHandler){b._pageRequestManager.remove_beginRequest(b._partialUpdateBeginRequestHandler);b._partialUpdateBeginRequestHandler=a}if(b._partialUpdateEndRequestHandler){b._pageRequestManager.remove_endRequest(b._partialUpdateEndRequestHandler);b._partialUpdateEndRequestHandler=a}b._pageRequestManager=a}},get_ClientStateFieldID:function(){return this._clientStateFieldID},set_ClientStateFieldID:function(a){if(this._clientStateFieldID!=a){this._clientStateFieldID=a;this.raisePropertyChanged("ClientStateFieldID")}},get_ClientState:function(){if(this._clientStateFieldID){var b=document.getElementById(this._clientStateFieldID);if(b)return b.value}return a},set_ClientState:function(b){if(this._clientStateFieldID){var a=document.getElementById(this._clientStateFieldID);if(a)a.value=b}},registerPartialUpdateEvents:function(){var a=this;if(Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager){a._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance();if(a._pageRequestManager){a._partialUpdateBeginRequestHandler=Function.createDelegate(a,a._partialUpdateBeginRequest);a._pageRequestManager.add_beginRequest(a._partialUpdateBeginRequestHandler);a._partialUpdateEndRequestHandler=Function.createDelegate(a,a._partialUpdateEndRequest);a._pageRequestManager.add_endRequest(a._partialUpdateEndRequestHandler)}}},_partialUpdateBeginRequest:function(){},_partialUpdateEndRequest:function(){}};Sys.Extended.UI.BehaviorBase.registerClass("Sys.Extended.UI.BehaviorBase",Sys.UI.Behavior);Sys.Extended.UI.DynamicPopulateBehaviorBase=function(c){var b=this;Sys.Extended.UI.DynamicPopulateBehaviorBase.initializeBase(b,[c]);b._DynamicControlID=a;b._DynamicContextKey=a;b._DynamicServicePath=a;b._DynamicServiceMethod=a;b._cacheDynamicResults=false;b._dynamicPopulateBehavior=a;b._populatingHandler=a;b._populatedHandler=a};Sys.Extended.UI.DynamicPopulateBehaviorBase.prototype={initialize:function(){var a=this;Sys.Extended.UI.DynamicPopulateBehaviorBase.callBaseMethod(a,c);a._populatingHandler=Function.createDelegate(a,a._onPopulating);a._populatedHandler=Function.createDelegate(a,a._onPopulated)},dispose:function(){var b=this;if(b._populatedHandler){b._dynamicPopulateBehavior&&b._dynamicPopulateBehavior.remove_populated(b._populatedHandler);b._populatedHandler=a}if(b._populatingHandler){b._dynamicPopulateBehavior&&b._dynamicPopulateBehavior.remove_populating(b._populatingHandler);b._populatingHandler=a}if(b._dynamicPopulateBehavior){b._dynamicPopulateBehavior.dispose();b._dynamicPopulateBehavior=a}Sys.Extended.UI.DynamicPopulateBehaviorBase.callBaseMethod(b,d)},populate:function(c){var b=this;if(b._dynamicPopulateBehavior&&b._dynamicPopulateBehavior.get_element()!=$get(b._DynamicControlID)){b._dynamicPopulateBehavior.dispose();b._dynamicPopulateBehavior=a}if(!b._dynamicPopulateBehavior&&b._DynamicControlID&&b._DynamicServiceMethod){b._dynamicPopulateBehavior=$create(Sys.Extended.UI.DynamicPopulateBehavior,{id:b.get_id()+"_DynamicPopulateBehavior",ContextKey:b._DynamicContextKey,ServicePath:b._DynamicServicePath,ServiceMethod:b._DynamicServiceMethod,cacheDynamicResults:b._cacheDynamicResults},a,a,$get(b._DynamicControlID));b._dynamicPopulateBehavior.add_populating(b._populatingHandler);b._dynamicPopulateBehavior.add_populated(b._populatedHandler)}b._dynamicPopulateBehavior&&b._dynamicPopulateBehavior.populate(c?c:b._DynamicContextKey)},_onPopulating:function(b,a){this.raisePopulating(a)},_onPopulated:function(b,a){this.raisePopulated(a)},get_dynamicControlID:function(){return this._DynamicControlID},get_DynamicControlID:g.get_dynamicControlID,set_dynamicControlID:function(b){var a=this;if(a._DynamicControlID!=b){a._DynamicControlID=b;a.raisePropertyChanged("dynamicControlID");a.raisePropertyChanged("DynamicControlID")}},set_DynamicControlID:g.set_dynamicControlID,get_dynamicContextKey:function(){return this._DynamicContextKey},get_DynamicContextKey:g.get_dynamicContextKey,set_dynamicContextKey:function(b){var a=this;if(a._DynamicContextKey!=b){a._DynamicContextKey=b;a.raisePropertyChanged("dynamicContextKey");a.raisePropertyChanged("DynamicContextKey")}},set_DynamicContextKey:g.set_dynamicContextKey,get_dynamicServicePath:function(){return this._DynamicServicePath},get_DynamicServicePath:g.get_dynamicServicePath,set_dynamicServicePath:function(b){var a=this;if(a._DynamicServicePath!=b){a._DynamicServicePath=b;a.raisePropertyChanged("dynamicServicePath");a.raisePropertyChanged("DynamicServicePath")}},set_DynamicServicePath:g.set_dynamicServicePath,get_dynamicServiceMethod:function(){return this._DynamicServiceMethod},get_DynamicServiceMethod:g.get_dynamicServiceMethod,set_dynamicServiceMethod:function(b){var a=this;if(a._DynamicServiceMethod!=b){a._DynamicServiceMethod=b;a.raisePropertyChanged("dynamicServiceMethod");a.raisePropertyChanged("DynamicServiceMethod")}},set_DynamicServiceMethod:g.set_dynamicServiceMethod,get_cacheDynamicResults:function(){return this._cacheDynamicResults},set_cacheDynamicResults:function(a){if(this._cacheDynamicResults!=a){this._cacheDynamicResults=a;this.raisePropertyChanged("cacheDynamicResults")}},add_populated:function(a){this.get_events().addHandler(e,a)},remove_populated:function(a){this.get_events().removeHandler(e,a)},raisePopulated:function(b){var a=this.get_events().getHandler(e);a&&a(this,b)},add_populating:function(a){this.get_events().addHandler(f,a)},remove_populating:function(a){this.get_events().removeHandler(f,a)},raisePopulating:function(b){var a=this.get_events().getHandler(f);a&&a(this,b)}};Sys.Extended.UI.DynamicPopulateBehaviorBase.registerClass("Sys.Extended.UI.DynamicPopulateBehaviorBase",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.ControlBase=function(c){var b=this;Sys.Extended.UI.ControlBase.initializeBase(b,[c]);b._clientStateField=a;b._callbackTarget=a;b._onsubmit$delegate=Function.createDelegate(b,b._onsubmit);b._oncomplete$delegate=Function.createDelegate(b,b._oncomplete);b._onerror$delegate=Function.createDelegate(b,b._onerror)};Sys.Extended.UI.ControlBase.__doPostBack=function(c,b){if(!Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())for(var a=0;a<Sys.Extended.UI.ControlBase.onsubmitCollection.length;a++)Sys.Extended.UI.ControlBase.onsubmitCollection[a]();Function.createDelegate(window,Sys.Extended.UI.ControlBase.__doPostBackSaved)(c,b)};Sys.Extended.UI.ControlBase.prototype={initialize:function(){var d=this;Sys.Extended.UI.ControlBase.callBaseMethod(d,c);d._clientStateField&&d.loadClientState(d._clientStateField.value);if(typeof Sys.WebForms!==b&&typeof Sys.WebForms.PageRequestManager!==b){Array.add(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements,d._onsubmit$delegate);if(Sys.Extended.UI.ControlBase.__doPostBackSaved==a||typeof Sys.Extended.UI.ControlBase.__doPostBackSaved==b){Sys.Extended.UI.ControlBase.__doPostBackSaved=window.__doPostBack;window.__doPostBack=Sys.Extended.UI.ControlBase.__doPostBack;Sys.Extended.UI.ControlBase.onsubmitCollection=[]}Array.add(Sys.Extended.UI.ControlBase.onsubmitCollection,d._onsubmit$delegate)}else $addHandler(document.forms[0],"submit",d._onsubmit$delegate)},dispose:function(){var a=this;if(typeof Sys.WebForms!==b&&typeof Sys.WebForms.PageRequestManager!==b){Array.remove(Sys.Extended.UI.ControlBase.onsubmitCollection,a._onsubmit$delegate);Array.remove(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements,a._onsubmit$delegate)}else $removeHandler(document.forms[0],"submit",a._onsubmit$delegate);Sys.Extended.UI.ControlBase.callBaseMethod(a,d)},findElement:function(a){return $get(this.get_id()+"_"+a.split(":").join("_"))},get_clientStateField:function(){return this._clientStateField},set_clientStateField:function(b){var a=this;if(a.get_isInitialized())throw Error.invalidOperation(Sys.Extended.UI.Resources.ExtenderBase_CannotSetClientStateField);if(a._clientStateField!=b){a._clientStateField=b;a.raisePropertyChanged("clientStateField")}},loadClientState:function(){},saveClientState:function(){return a},_invoke:function(i,f,j){var c=this;if(!c._callbackTarget)throw Error.invalidOperation(Sys.Extended.UI.Resources.ExtenderBase_ControlNotRegisteredForCallbacks);if(typeof WebForm_DoCallback===b)throw Error.invalidOperation(Sys.Extended.UI.Resources.ExtenderBase_PageNotRegisteredForCallbacks);for(var g=[],d=0;d<f.length;d++)g[d]=f[d];var e=c.saveClientState();if(e!=a&&!String.isInstanceOfType(e))throw Error.invalidOperation(Sys.Extended.UI.Resources.ExtenderBase_InvalidClientStateType);var h=Sys.Serialization.JavaScriptSerializer.serialize({name:i,args:g,state:c.saveClientState()});WebForm_DoCallback(c._callbackTarget,h,c._oncomplete$delegate,j,c._onerror$delegate,true)},_oncomplete:function(a,b){a=Sys.Serialization.JavaScriptSerializer.deserialize(a);if(a.error)throw Error.create(a.error);this.loadClientState(a.state);b(a.result)},_onerror:function(a){throw Error.create(a);},_onsubmit:function(){if(this._clientStateField)this._clientStateField.value=this.saveClientState();return true}};Sys.Extended.UI.ControlBase.registerClass("Sys.Extended.UI.ControlBase",Sys.UI.Control);Sys.Extended.UI.Resources={PasswordStrength_InvalidWeightingRatios:"Strength Weighting ratios must have 4 elements",HTMLEditor_toolbar_button_FontSize_defaultValue:"default",HTMLEditor_toolbar_button_DesignMode_title:"Design mode",Animation_ChildrenNotAllowed:'AjaxControlToolkit.Animation.createAnimation cannot add child animations to type "{0}" that does not derive from AjaxControlToolkit.Animation.ParentAnimation',PasswordStrength_RemainingSymbols:"{0} symbol characters",HTMLEditor_toolbar_button_FixedForeColor_title:"Foreground color",HTMLEditor_toolbar_popup_LinkProperties_field_URL:"URL",ExtenderBase_CannotSetClientStateField:"clientStateField can only be set before initialization",HTMLEditor_toolbar_button_Bold_title:"Bold",RTE_PreviewHTML:"Preview HTML",HTMLEditor_toolbar_popup_LinkProperties_button_OK:"OK",HTMLEditor_toolbar_button_JustifyRight_title:h,RTE_JustifyCenter:i,PasswordStrength_RemainingUpperCase:"{0} more upper case characters",HTMLEditor_toolbar_popup_LinkProperties_button_Cancel:"Cancel",Animation_TargetNotFound:'AjaxControlToolkit.Animation.Animation.set_animationTarget requires the ID of a Sys.UI.DomElement or Sys.UI.Control.  No element or control could be found corresponding to "{0}"',AsyncFileUpload_UnhandledException:"Unhandled Exception",RTE_FontColor:"Font Color",RTE_LabelColor:"Label Color",Common_InvalidBorderWidthUnit:'A unit type of "{0}"\' is invalid for parseBorderWidth',HTMLEditor_toolbar_button_JustifyFull_title:"Justify",RTE_Heading:"Heading",AsyncFileUpload_ConfirmToSeeErrorPage:"Do you want to see the response page?",Tabs_PropertySetBeforeInitialization:"{0} cannot be changed before initialization",HTMLEditor_toolbar_button_StrikeThrough_title:"Strike through",RTE_OrderedList:j,HTMLEditor_toolbar_button_OnPastePlainText:"Plain text pasting is switched on. Just now: {0}",HTMLEditor_toolbar_button_RemoveLink_title:"Remove Link",HTMLEditor_toolbar_button_FontName_defaultValue:"default",HTMLEditor_toolbar_button_FontName_label:"Font",ReorderList_DropWatcherBehavior_NoChild:'Could not find child of list with id "{0}"',CascadingDropDown_MethodTimeout:"[Method timeout]",RTE_Columns:"Columns",RTE_InsertImage:"Insert Image",RTE_InsertTable:"Insert Table",RTE_Values:"Values",RTE_OK:"OK",ExtenderBase_PageNotRegisteredForCallbacks:"This Page has not been registered for callbacks",HTMLEditor_toolbar_button_InsertLink_title:"Insert/Edit URL link",Animation_NoDynamicPropertyFound:'AjaxControlToolkit.Animation.createAnimation found no property corresponding to "{0}" or "{1}"',Animation_InvalidBaseType:"AjaxControlToolkit.Animation.registerAnimation can only register types that inherit from AjaxControlToolkit.Animation.Animation",RTE_UnorderedList:"Unordered List",AsyncFileUpload_UnknownServerError:"Unknown Server error",ResizableControlBehavior_InvalidHandler:"{0} handler not a function, function name, or function text",Animation_InvalidColor:'Color must be a 7-character hex representation (e.g. #246ACF), not "{0}"',RTE_CellColor:"Cell Color",PasswordStrength_RemainingMixedCase:"Mixed case characters",HTMLEditor_toolbar_button_HtmlMode_title:"HTML text",RTE_Italic:"Italic",CascadingDropDown_NoParentElement:'Failed to find parent element "{0}"',ValidatorCallout_DefaultErrorMessage:"This control is invalid",HTMLEditor_toolbar_button_DecreaseIndent_title:"Decrease Indent",RTE_Indent:"Indent",ReorderList_DropWatcherBehavior_CallbackError:"Reorder failed, see details below.\\r\\n\\r\\n{0}",PopupControl_NoDefaultProperty:'No default property supported for control "{0}" of type "{1}"',RTE_Normal:"Normal",PopupExtender_NoParentElement:'Couldn\'t find parent element "{0}"',RTE_ViewValues:"View Values",RTE_Legend:"Legend",RTE_Labels:"Labels",RTE_CellSpacing:"Cell Spacing",PasswordStrength_RemainingNumbers:"{0} more numbers",HTMLEditor_toolbar_popup_LinkProperties_field_Target:"Target",HTMLEditor_toolbar_button_PreviewMode_title:"Preview",RTE_Border:"Border",RTE_Create:"Create",RTE_BackgroundColor:"Background Color",RTE_Cancel:"Cancel",HTMLEditor_toolbar_button_PasteText_title:"Paste Plain Text",RTE_JustifyFull:"Justify Full",RTE_JustifyLeft:k,RTE_Cut:"Cut",AsyncFileUpload_UploadingProblem:"The requested file uploading problem.",ResizableControlBehavior_CannotChangeProperty:"Changes to {0} not supported",RTE_ViewSource:"View Source",Common_InvalidPaddingUnit:'A unit type of "{0}" is invalid for parsePadding',RTE_Paste:"Paste",ExtenderBase_ControlNotRegisteredForCallbacks:"This Control has not been registered for callbacks",Calendar_Today:"Today: {0}",MultiHandleSlider_CssHeightWidthRequired:"You must specify a CSS width and height for all handle styles as well as the rail.",Common_DateTime_InvalidFormat:"Invalid format",HTMLEditor_toolbar_button_Copy_title:"Copy",ListSearch_DefaultPrompt:"Type to search",CollapsiblePanel_NoControlID:'Failed to find element "{0}"',RTE_ViewEditor:"View Editor",HTMLEditor_toolbar_popup_LinkProperties_field_Target_Current:"Current window",RTE_BarColor:"Bar Color",AsyncFileUpload_InternalErrorMessage:"The AsyncFileUpload control has encountered an error with the uploader in this page. Please refresh the page and try again.",HTMLEditor_toolbar_button_Underline_title:l,PasswordStrength_DefaultStrengthDescriptions:"NonExistent;Very Weak;Weak;Poor;Almost OK;Barely Acceptable;Average;Good;Strong;Excellent;Unbreakable!",HTMLEditor_toolbar_button_SuperScript_title:"Super script",HTMLEditor_toolbar_button_Ltr_title:"Left to right direction",HTMLEditor_toolbar_button_RemoveAlignment_title:"Remove Alignment",HTMLEditor_toolbar_button_OrderedList_title:j,HTMLEditor_toolbar_popup_LinkProperties_field_Target_New:"New window",HTMLEditor_toolbar_popup_LinkProperties_field_Target_Top:"Top window",HTMLEditor_toolbar_button_JustifyCenter_title:i,RTE_Inserttexthere:"Insert text here",Animation_UknownAnimationName:'AjaxControlToolkit.Animation.createAnimation could not find an Animation corresponding to the name "{0}"',ExtenderBase_InvalidClientStateType:"saveClientState must return a value of type String",HTMLEditor_toolbar_button_JustifyLeft_title:k,Rating_CallbackError:"An unhandled exception has occurred:\\r\\n{0}",HTMLEditor_toolbar_button_Undo_title:"Undo",HTMLEditor_toolbar_button_Redo_title:"Redo",Tabs_OwnerExpected:"owner must be set before initialize",DynamicPopulate_WebServiceTimeout:"Web service call timed out",PasswordStrength_RemainingLowerCase:"{0} more lower case characters",HTMLEditor_toolbar_button_BulletedList_title:"Bulleted List",HTMLEditor_toolbar_button_Paste_title:"Paste",Animation_MissingAnimationName:"AjaxControlToolkit.Animation.createAnimation requires an object with an AnimationName property",HTMLEditor_toolbar_button_PasteWord_title:"Paste from MS Word (with cleanup)",HTMLEditor_toolbar_button_Italic_title:"Italic",RTE_JustifyRight:h,Tabs_ActiveTabArgumentOutOfRange:"Argument is not a member of the tabs collection",RTE_CellPadding:"Cell Padding",HTMLEditor_toolbar_button_ForeColorClear_title:"Clear foreground color",RTE_ClearFormatting:"Clear Formatting",AlwaysVisible_ElementRequired:"AjaxControlToolkit.AlwaysVisibleControlBehavior must have an element",HTMLEditor_toolbar_button_SubScript_title:"Sub script",Slider_NoSizeProvided:"Please set valid values for the height and width attributes in the slider's CSS classes",DynamicPopulate_WebServiceError:"Web Service call failed: {0}",PasswordStrength_StrengthPrompt:"Strength: ",HTMLEditor_toolbar_button_Rtl_title:"Right to left direction",PasswordStrength_RemainingCharacters:"{0} more characters",HTMLEditor_toolbar_button_BackColorClear_title:"Clear background color",PasswordStrength_Satisfied:"Nothing more required",RTE_Hyperlink:"Hyperlink",Animation_NoPropertyFound:'AjaxControlToolkit.Animation.createAnimation found no property corresponding to "{0}"',PasswordStrength_InvalidStrengthDescriptionStyles:"Text Strength description style classes must match the number of text descriptions.",HTMLEditor_toolbar_button_Use_verb:"Use {0}",HTMLEditor_toolbar_popup_LinkProperties_field_Target_Parent:"Parent window",PasswordStrength_GetHelpRequirements:"Get help on password requirements",HTMLEditor_toolbar_button_FixedBackColor_title:"Background color",PasswordStrength_InvalidStrengthDescriptions:"Invalid number of text strength descriptions specified",RTE_Underline:l,HTMLEditor_toolbar_button_IncreaseIndent_title:"Increase Indent",AsyncFileUpload_ServerResponseError:"Server Response Error",Tabs_PropertySetAfterInitialization:"{0} cannot be changed after initialization",RTE_Rows:"Rows",RTE_Redo:"Redo",RTE_Size:"Size",RTE_Undo:"Undo",RTE_Bold:"Bold",RTE_Copy:"Copy",RTE_Font:"Font",HTMLEditor_toolbar_button_FontSize_label:"Size",HTMLEditor_toolbar_button_Cut_title:"Cut",CascadingDropDown_MethodError:"[Method error {0}]",HTMLEditor_toolbar_button_InsertLink_message_EmptyURL:"URL can not be empty",RTE_BorderColor:"Border Color",HTMLEditor_toolbar_button_RemoveStyles_title:"Remove styles",RTE_Paragraph:"Paragraph",RTE_InsertHorizontalRule:"Insert Horizontal Rule",HTMLEditor_toolbar_button_Paragraph_title:"Make Paragraph",Common_UnitHasNoDigits:"No digits",RTE_Outdent:"Outdent",Common_DateTime_InvalidTimeSpan:'"{0}" is not a valid TimeSpan format',Animation_CannotNestSequence:"AjaxControlToolkit.Animation.SequenceAnimation cannot be nested inside AjaxControlToolkit.Animation.ParallelAnimation",HTMLEditor_toolbar_button_InsertHR_title:"Insert horizontal rule",HTMLEditor_toolbar_button_OnPasteFromMSWord:"Pasting from MS Word is switched on. Just now: {0}",Shared_BrowserSecurityPreventsPaste:"Your browser security settings don't permit the automatic execution of paste operations. Please use the keyboard shortcut Ctrl+V instead."}}if(window.Sys&&Sys.loader)Sys.loader.registerScript(b,["ComponentModel","Serialization"],a);else a()})();
//END ExtenderBase.BaseScripts.js
//START PasswordStrength.PasswordStrengthExtenderBehavior.js
(function(){var b="ExtendedPasswordStrength";function a(){var h="none",g="hidden",f="absolute",a="px",l="BelowRight",e=true,k="CalculationWeightings",j="PreferredPasswordLength",i="50;15;15;20",c="",d=false,b=null;Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.PasswordStrengthExtenderBehavior=function(e){var a=this;Sys.Extended.UI.PasswordStrengthExtenderBehavior.initializeBase(a,[e]);a._levelArray=[];a._styleArray=[];a._txtPwdStrengthCssClass=b;a._barBorderCssClass=b;a._barIndicatorCssClass=b;a._displayPosition=Sys.Extended.UI.DisplayPosition.RightSide;a._strengthIndicator=Sys.Extended.UI.StrengthIndicatorTypes.Text;a._preferredPasswordLength=0;a._minimumNumericCharacters=0;a._minimumSymbolCharacters=0;a._requiresUpperAndLowerCaseCharacters=d;a._helpHandleCssClass=c;a._helpHandlePosition=Sys.Extended.UI.DisplayPosition.AboveRight;a._helpText=c;a._helpStatusLabelID=b;a._displayDiv=b;a._helpDiv=b;a._barOuterDiv=b;a._barInnerDiv=b;a._keyPressHandler=b;a._blurHandler=b;a._helpClickHandler=b;a._prefixText=Sys.Extended.UI.Resources.PasswordStrength_StrengthPrompt;a._txtStrengthDescriptions=Sys.Extended.UI.Resources.PasswordStrength_DefaultStrengthDescriptions;a._strengthStyles=c;a._barIndicatorStyles=c;a._txtseparator=";";a._MIN_TXT_LEVEL_COUNT=2;a._MAX_TXT_LEVEL_COUNT=10;a._calcWeightings=i;a._minLowerCaseChars=0;a._minUpperCaseChars=0};Sys.Extended.UI.PasswordStrengthExtenderBehavior.prototype={initialize:function(){var a=this;Sys.Extended.UI.PasswordStrengthExtenderBehavior.callBaseMethod(a,"initialize");a._createIndicatorDisplayElement();var d=a.get_element();a._keyPressHandler=Function.createDelegate(a,a._onKeyPress);a._blurHandler=Function.createDelegate(a,a._onBlur);$addHandler(d,"keyup",a._keyPressHandler);$addHandler(d,"blur",a._blurHandler);if(a._preferredPasswordLength==b||a._preferredPasswordLength==c||a._preferredPasswordLength<=0){a._preferredPasswordLength=10;a.raisePropertyChanged(j)}if(a._calcWeightings==b||a._calcWeightings==c){a._calcWeightings=i;a.raisePropertyChanged(k)}a._getPasswordStrength()},_createIndicatorDisplayElement:function(){var c=this;if(c._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator)c._createBarIndicatorDisplayElement();else c._createTextDisplayElement();if(c._createHelpDisplayElement()==e){$common.setVisible(c._helpDiv,e);var b=$common.getBounds(c.get_element()),f=$common.getBounds(c._helpDiv),h,g,d=3;if(c._helpHandlePosition=="LeftSide"){h=b.y+(b.height/2-f.height/2);g=b.x-f.width}else if(c._helpHandlePosition==l){h=b.y+b.height-d;g=b.x+b.width-d}else if(c._helpHandlePosition=="BelowLeft"){h=b.y+b.height-d;g=b.x-f.width+d}else if(c._helpHandlePosition=="RightSide"){h=b.y+(b.height/2-f.height/2);g=b.x+b.width}else if(c._helpHandlePosition=="AboveLeft"){h=b.y-f.height+d;g=b.x-f.width+d}else{h=b.y-f.height+d;g=b.x+b.width-d}c._helpDiv.style.top=h+a;c._helpDiv.style.left=g+a}},_createTextDisplayElement:function(){var b=this,a=document.createElement("label");a.style.position=f;a.style.visibility=g;a.style.display=h;if(b.get_element().id)a.id=b.get_element().id+"_PasswordStrength";b._displayDiv=a;b._setTextDisplayLocation(a);document.body.appendChild(a);b._setTextDisplayStyle(0)},_setTextDisplayStyle:function(b){var a=this;if(a._styleArray.length==0)if(a._txtPwdStrengthCssClass)a._displayDiv.className=a._txtPwdStrengthCssClass;else a._displayDiv.style.backgroundColor="yellow";else{a._displayDiv.style.backgroundColor=c;a._txtPwdStrengthCssClass&&Sys.UI.DomElement.containsCssClass(a._displayDiv,a._txtPwdStrengthCssClass)&&Sys.UI.DomElement.removeCssClass(a._displayDiv,a._txtPwdStrengthCssClass);a._displayDiv.className=a._styleArray[b]}},_setBarDisplayStyle:function(b){var a=this;if(a._barBorderCssClass!=c)a._barOuterDiv.className=a._barBorderCssClass;else{d1.style.width="200px";d1.style.borderStyle="solid";d1.style.borderWidth="1px"}if(a._styleArray.length==0)if(a._barIndicatorCssClass!=c)a._barInnerDiv.className=a._barIndicatorCssClass;else a._barInnerDiv.style.backgroundColor="red";else{a._barIndicatorCssClass&&Sys.UI.DomElement.containsCssClass(a._barInnerDiv,a._barIndicatorCssClass)&&Sys.UI.DomElement.removeCssClass(a._barInnerDiv,a._barIndicatorCssClass);a._barInnerDiv.className=a._styleArray[b]}},_createBarIndicatorDisplayElement:function(){var b=this,c=document.createElement("div");c.style.position=f;c.style.visibility=g;c.style.display=h;var d=document.createElement("div");d.style.position=f;d.style.visibility=g;d.style.display=h;c.style.height=b.get_element().offsetHeight+4+a;if(b.get_element().id){c.id=b.get_element().id+"_PasswordStrengthBar1";d.id=b.get_element().id+"_PasswordStrengthBar2"}b._barOuterDiv=c;b._barInnerDiv=d;b._extractStyles();b._setBarDisplayStyle(0);document.body.appendChild(c);document.body.appendChild(d);b._setBarDisplayLocation(c,d)},_createHelpDisplayElement:function(){var a=this;if(a._helpHandleCssClass!=c){var i=document.createElement("a");i.style.position=f;i.style.visibility=g;i.style.display=h;i.href="#";i.title=Sys.Extended.UI.Resources.PasswordStrength_GetHelpRequirements;if(a.get_element().id)i.id=a.get_element().id+"_PasswordStrengthReqDisplay";a._helpClickHandler=Function.createDelegate(a,a._onHelpClick);$addHandler(i,"click",a._helpClickHandler);a._helpDiv=i;a._helpDiv.className=a._helpHandleCssClass;if(a.get_element().parentElement!=b&&a.get_element().parentElement.canHaveChildren)a.get_element().parentElement.appendChild(i);else document.body.appendChild(i);return e}else return d},_setTextDisplayLocation:function(c){var b=this,d=$common.getLocation(b.get_element()),f=$common.getBounds(b.get_element()),e=15;if(b._displayPosition==Sys.Extended.UI.DisplayPosition.LeftSide){c.style.top=d.y+a;c.style.left=d.x-f.width-e+a}else if(b._displayPosition==l){c.style.top=d.y+b.get_element().offsetHeight+a;c.style.left=d.x+b.get_element().offsetWidth-b.get_element().offsetWidth/4+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.BelowLeft){c.style.top=d.y+b.get_element().offsetHeight+a;c.style.left=d.x-e+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.AboveRight){c.style.top=d.y-b.get_element().offsetHeight+a;c.style.left=d.x+b.get_element().offsetWidth-b.get_element().offsetWidth/4+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.AboveLeft){c.style.top=d.y-b.get_element().offsetHeight+a;c.style.left=d.x-e+a}else{c.style.top=d.y+a;c.style.left=d.x+b.get_element().offsetWidth+e+a}},_setBarDisplayLocation:function(d,f){var b=this;if(b.get_element().offsetHeight>0){var l=$common.getBorderBox(d),k=$common.getPaddingBox(d),g=l.left+k.left,h=l.top+k.top;f.style.height=b.get_element().offsetHeight+a;d.style.height=b.get_element().offsetHeight+a;var c=$common.getLocation(b.get_element()),i=15;if(b._displayPosition==Sys.Extended.UI.DisplayPosition.LeftSide){var m=$common.getVisible(b._barOuterDiv);$common.setVisible(b._barOuterDiv,e);var n=$common.getContentSize(d);$common.setVisible(b._barOuterDiv,m);var j=n.width;d.style.top=c.y+a;d.style.left=c.x-parseInt(j)-i+a;f.style.top=c.y+h+a;f.style.left=c.x-parseInt(j)-i+g+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.BelowRight){d.style.top=c.y+b.get_element().offsetHeight+a;d.style.left=c.x+b.get_element().offsetWidth+a;f.style.top=c.y+b.get_element().offsetHeight+h+a;f.style.left=c.x+b.get_element().offsetWidth+g+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.BelowLeft){d.style.top=c.y+b.get_element().offsetHeight+a;d.style.left=c.x+a;f.style.top=c.y+b.get_element().offsetHeight+h+a;f.style.left=c.x+g+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.AboveRight){d.style.top=c.y-b.get_element().offsetHeight+a;d.style.left=c.x+b.get_element().offsetWidth+a;f.style.top=c.y-b.get_element().offsetHeight+h+a;f.style.left=c.x+b.get_element().offsetWidth+g+a}else if(b._displayPosition==Sys.Extended.UI.DisplayPosition.AboveLeft){d.style.top=c.y-b.get_element().offsetHeight+a;d.style.left=c.x+a;f.style.top=c.y-b.get_element().offsetHeight+h+a;f.style.left=c.x+g+a}else{d.style.top=c.y+a;d.style.left=c.x+b.get_element().offsetWidth+i+a;f.style.top=c.y+h+a;f.style.left=c.x+b.get_element().offsetWidth+i+g+a}}},_showStrength:function(){var a=this,g=a.get_element();if(g.readOnly==e)return;var d=a._getPasswordStrength();if(a._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator){$common.setVisible(a._barOuterDiv,e);$common.setVisible(a._barInnerDiv,e);var c=0;if(a._styleArray!=b&&a._styleArray.length>0)c=parseInt(d/100*(a._styleArray.length-1));a._setBarDisplayStyle(c);a._setBarDisplayLocation(a._barOuterDiv,a._barInnerDiv);a._showStrengthAsBarValue(d)}else{a._createTextDescriptions(a._txtStrengthDescriptions);$common.setVisible(a._displayDiv,e);var c=parseInt(d/100*(a._levelArray.length-1)),f=a._levelArray[c];a._setTextDisplayStyle(c);a._setTextDisplayLocation(a._displayDiv);a._showStrengthAsText(f)}},_showStrengthAsText:function(a){this._displayDiv.innerHTML=this._prefixText+a},_showStrengthAsBarValue:function(b){var d=$common.getContentSize(this._barOuterDiv),e=$common.getPaddingBox(this._barOuterDiv),c=parseInt(d.width*(b/100));this._barInnerDiv.style.width=c+a},_getPasswordStrength:function(){var f=", ",a=this,j=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()).get_Value(),d=c,g=0,k=a._calcWeightings.split(";");k.length!=4&&Sys.Debug.assert(b,Sys.Extended.UI.Resources.PasswordStrength_InvalidWeightingRatios);var v=parseInt(k[0]),o=parseInt(k[1]),n=parseInt(k[2]),p=parseInt(k[3]),h=j.length/a._preferredPasswordLength;if(h>1)h=1;var q=h*v;g+=q;if(h<1)d=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingCharacters,a._preferredPasswordLength-j.length);if(a._minimumNumericCharacters>0){var t=new RegExp("[0-9]","g"),i=a._getRegexCount(t,j);if(i>=a._minimumNumericCharacters)g+=o;if(i<a._minimumNumericCharacters){if(d!=c)d+=f;d+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingNumbers,a._minimumNumericCharacters-i)}}else g+=h*o;if(a._requiresUpperAndLowerCaseCharacters==e||typeof a._requiresUpperAndLowerCaseCharacters=="String"&&Boolean.parse(a._requiresUpperAndLowerCaseCharacters)==e){var r=new RegExp("[a-z]","g"),s=new RegExp("[A-Z]","g"),l=a._getRegexCount(r,j),m=a._getRegexCount(s,j);if(l>0||m>0)if(l>=a._minLowerCaseChars&&m>=a._minUpperCaseChars)g+=n;else{if(a._minLowerCaseChars>0&&a._minLowerCaseChars-l>0){if(d!=c)d+=f;d+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingLowerCase,a._minLowerCaseChars-l)}if(a._minUpperCaseChars>0&&a._minUpperCaseChars-m>0){if(d!=c)d+=f;d+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingUpperCase,a._minUpperCaseChars-m)}}else{if(d!=c)d+=f;d+=Sys.Extended.UI.Resources.PasswordStrength_RemainingMixedCase}}else g+=h*n;if(a._minimumSymbolCharacters>0){var u=new RegExp("[^a-z,A-Z,0-9, ]","g"),i=a._getRegexCount(u,j);if(i>=a._minimumSymbolCharacters)g+=p;if(i<a._minimumSymbolCharacters){if(d!=c)d+=f;d+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingSymbols,a._minimumSymbolCharacters-i)}}else g+=h*p;a.set_HelpText(d);return g},_getRegexCount:function(f,a){var e=0;if(a!=b&&a!=c){var d=a.match(f);if(d!=b)e=d.length}return e},_extractStyles:function(){var a=this;if(a._strengthStyles!=b&&a._strengthStyles!=c)a._styleArray=a._strengthStyles.split(a._txtseparator)},_createTextDescriptions:function(){var a=this;a._levelArray=a._txtStrengthDescriptions.split(a._txtseparator);a._extractStyles();a._styleArray.length>0&&a._styleArray.length!=a._levelArray.length&&Sys.Debug.assert(d,Sys.Extended.UI.Resources.PasswordStrength_InvalidStrengthDescriptionStyles);(a._levelArray.length<a._MIN_TXT_LEVEL_COUNT||a._levelArray>a._MAX_TXT_LEVEL_COUNT)&&Sys.Debug.assert(d,Sys.Extended.UI.Resources.PasswordStrength_InvalidStrengthDescriptions)},_onKeyPress:function(){this._showStrength()},_onBlur:function(){var a=this;if(a._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator){$common.setVisible(a._barOuterDiv,d);$common.setVisible(a._barInnerDiv,d)}else $common.setVisible(a._displayDiv,d)},_onHelpClick:function(){if(this._helpText==c)alert(Sys.Extended.UI.Resources.PasswordStrength_Satisfied);else alert(this._helpText)},dispose:function(){var a=this,e=a.get_element();if(a._keyPressHandler){$removeHandler(e,"keyup",a._keyPressHandler);a._keyPressHandler=b}if(a._blurHandler){$removeHandler(e,"blur",a._blurHandler);a._blurHandler=b}if(a._helpClickHandler){$removeHandler(a._helpDiv,"click",a._helpClickHandler);a._helpClickHandler=b}a._displayDiv&&$common.setVisible(a._displayDiv,d);a._barOuterDiv&&$common.setVisible(a._barOuterDiv,d);a._barInnerDiv&&$common.setVisible(a._barInnerDiv,d);a._helpHandleCssClass!=c&&a._helpDiv&&$common.setVisible(a._helpDiv,d);Sys.Extended.UI.PasswordStrengthExtenderBehavior.callBaseMethod(a,"dispose")},get_PreferredPasswordLength:function(){return this._preferredPasswordLength},set_PreferredPasswordLength:function(a){if(this._preferredPasswordLength!=a){this._preferredPasswordLength=a;this.raisePropertyChanged(j)}},get_MinimumNumericCharacters:function(){return this._minimumNumericCharacters},set_MinimumNumericCharacters:function(a){if(this._minimumNumericCharacters!=a){this._minimumNumericCharacters=a;this.raisePropertyChanged("MinimumNumericCharacters")}},get_MinimumSymbolCharacters:function(){return this._minimumSymbolCharacters},set_MinimumSymbolCharacters:function(a){if(this._minimumSymbolCharacters!=a){this._minimumSymbolCharacters=a;this.raisePropertyChanged("MinimumSymbolCharacters")}},get_RequiresUpperAndLowerCaseCharacters:function(){return this._requiresUpperAndLowerCaseCharacters},set_RequiresUpperAndLowerCaseCharacters:function(a){if(this._requiresUpperAndLowerCaseCharacters!=a){this._requiresUpperAndLowerCaseCharacters=a;this.raisePropertyChanged("RequiresUpperAndLowerCaseCharacters")}},get_TextCssClass:function(){return this._txtPwdStrengthCssClass},set_TextCssClass:function(a){if(this._txtPwdStrengthCssClass!=a){this._txtPwdStrengthCssClass=a;this.raisePropertyChanged("TextCssClass")}},get_BarBorderCssClass:function(){return this._barBorderCssClass},set_BarBorderCssClass:function(a){if(this._barBorderCssClass!=a){this._barBorderCssClass=a;this.raisePropertyChanged("BarBorderCssClass")}},get_BarIndicatorCssClass:function(){return this._barIndicatorCssClass},set_BarIndicatorCssClass:function(a){if(this._barIndicatorCssClass!=a){this._barIndicatorCssClass=a;this.raisePropertyChanged("BarIndicatorCssClass")}},get_DisplayPosition:function(){return this._displayPosition},set_DisplayPosition:function(a){if(this._displayPosition!=a){this._displayPosition=a;this.raisePropertyChanged("DisplayPosition")}},get_PrefixText:function(){return this._prefixText},set_PrefixText:function(a){if(this._prefixText!=a){this._prefixText=a;this.raisePropertyChanged("PrefixText")}},get_StrengthIndicatorType:function(){return this._strengthIndicator},set_StrengthIndicatorType:function(a){if(this._strengthIndicator!=a){this._strengthIndicator=a;this.raisePropertyChanged("StrengthIndicatorType")}},get_TextStrengthDescriptions:function(){return this._txtStrengthDescriptions},set_TextStrengthDescriptions:function(a){if(a!=b&&a!=c&&a!=this._txtStrengthDescriptions){this._txtStrengthDescriptions=a;this.raisePropertyChanged("TextStrengthDescriptions")}},get_StrengthStyles:function(){return this._strengthStyles},set_StrengthStyles:function(a){if(a!=b&&a!=c&&a!=this._strengthStyles){this._strengthStyles=a;this.raisePropertyChanged("StrengthStyles")}},get_TextStrengthDescriptionStyles:function(){return this.get_StrengthStyles()},set_TextStrengthDescriptionStyles:function(a){this.set_StrengthStyles(a)},get_HelpHandleCssClass:function(){return this._helpHandleCssClass},set_HelpHandleCssClass:function(a){if(this._helpHandleCssClass!=a){this._helpHandleCssClass=a;this.raisePropertyChanged("HelpHandleCssClass")}},get_HelpHandlePosition:function(){return this._helpHandlePosition},set_HelpHandlePosition:function(a){if(this._helpHandlePosition!=a){this._helpHandlePosition=a;this.raisePropertyChanged("HelpHandlePosition")}},get_HelpText:function(){return this._helpText},get_CalculationWeightings:function(){return this._calcWeightings},set_CalculationWeightings:function(a){if(this._calcWeightings!=a){this._calcWeightings=a;this.raisePropertyChanged(k)}},set_HelpText:function(d){var a=this;if(a._helpStatusLabelID){var b=$get(a._helpStatusLabelID);if(b)if(Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()).get_Value().length>0)b.innerHTML=d;else b.innerHTML=c}if(a._helpText!=d){a._helpText=d;a.raisePropertyChanged("HelpText")}},get_MinimumLowerCaseCharacters:function(){return this._minLowerCaseChars},set_MinimumLowerCaseCharacters:function(a){this._minLowerCaseChars=a},get_MinimumUpperCaseCharacters:function(){return this._minUpperCaseChars},set_MinimumUpperCaseCharacters:function(a){this._minUpperCaseChars=a},get_HelpStatusLabelID:function(){return this._helpStatusLabelID},set_HelpStatusLabelID:function(a){if(this._helpStatusLabelID!=a){this._helpStatusLabelID=a;this.raisePropertyChanged("HelpStatusLabelID")}}};Sys.Extended.UI.PasswordStrengthExtenderBehavior.registerClass("Sys.Extended.UI.PasswordStrengthExtenderBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.PasswordStrengthExtenderBehavior,{name:"passwordStrength"});Sys.Extended.UI.StrengthIndicatorTypes=function(){throw Error.invalidOperation();};Sys.Extended.UI.DisplayPosition=function(){throw Error.invalidOperation();};Sys.Extended.UI.StrengthIndicatorTypes.prototype={Text:0,BarIndicator:1};Sys.Extended.UI.DisplayPosition.prototype={RightSide:0,AboveRight:1,AboveLeft:2,LeftSide:3,BelowRight:4,BelowLeft:5};Sys.Extended.UI.DisplayPosition.registerEnum("Sys.Extended.UI.DisplayPosition");Sys.Extended.UI.StrengthIndicatorTypes.registerEnum("Sys.Extended.UI.StrengthIndicatorTypes")}if(window.Sys&&Sys.loader)Sys.loader.registerScript(b,["ExtendedBase","ExtendedCommon"],a);else a()})();
//END PasswordStrength.PasswordStrengthExtenderBehavior.js
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {var fn = function() {$get('ctl00_scriptManagerMain_HiddenField').value += ';;AjaxControlToolkit, Version=3.0.31106.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e:en-US:86f3ec8f-e11f-41a4-a4db-54c6e3efc9b3:de1feab2:f9cec9bc:1956f433';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();
