var conversionMap={"amp":"&","lt":"<","gt":">","apos":"'","quot":'"'},IsPageEdited=false;function decode(entityString){return entityString.replace(/&(\w+);/g,function(m,g){return conversionMap[g]||m})}function $(elementID){return document.getElementById(elementID)}function BrowserHelper(){function CompareVersions(version1In,version2In){var version1Parts=version1In.split("."),version2Parts=version2In.split("."),ver1Length=version1Parts.length,ver2Length=version2Parts.length;if(ver1Length>ver2Length)for(var i=0;i<ver1Length-ver2Length;i++)version2Parts.push("0");else if(ver1Length<ver2Length)for(var i=0;i<ver2Length-ver1Length;i++)version1Parts.push("0");ver1Length=version1Parts.length;for(var i=0;i<ver1Length;i++)if(version1Parts[i]<version2Parts[i])return -1;else if(version1Parts[i]>version2Parts[i])return 1;return 0}this.IsOpera=this.IsMinOpera4=this.IsMinOpera5=this.IsMinOpera6=this.IsMinOpera7=this.IsMinOpera7_5=false;this.IsKHTML=false;this.IsSafari=this.IsMinSafari1=this.IsMinSafari1_2=false;this.IsKonqueror=this.IsMinKonqueror2_2=this.IsMinKonqueror3=this.IsMinKonqueror3_1=this.IsMinKonqueror3_2=false;this.IsIE=this.IsMinIE4=this.IsMinIE5=this.IsMinIE5_5=this.IsMinIE6=this.IsMinIE7=false;this.IsMozilla=this.IsMinMozilla1=this.IsMinMozilla1_4=this.IsMinMozilla1_5=false;this.IsNS4=this.IsMinNS4=this.IsMinNS4_5=this.IsMinNS4_7=this.IsMinNS4_8=false;var userAgent=navigator.userAgent,appVersion=parseFloat(navigator.appVersion);this.IsOpera=userAgent.indexOf("Opera")>-1;if(this.IsOpera){var operaVersion;if(navigator.appName=="Opera")operaVersion=appVersion;else{var operaVersionExpr=new RegExp("Opera (\\d+\\.\\d+)");operaVersionExpr.test(userAgent);operaVersion=parseFloat(RegExp["$1"])}this.IsMinOpera4=operaVersion>=4;this.IsMinOpera5=operaVersion>=5;this.IsMinOpera6=operaVersion>=6;this.IsMinOpera7=operaVersion>=7;this.IsMinOpera7_5=operaVersion>=7.5}this.IsKHTML=userAgent.indexOf("KHTML")>-1||userAgent.indexOf("Konqueror")>-1||userAgent.indexOf("AppleWebKit")>-1;if(this.IsKHTML){this.IsSafari=userAgent.indexOf("AppleWebKit")>-1;this.IsKonqueror=userAgent.indexOf("Konqueror")>-1;if(this.IsSafari){var safariVersion,safariVersionExpr=new RegExp("AppleWebKit\\/(\\d+(?:\\.\\d*)?)");safariVersionExpr.test(userAgent);safariVersion=parseFloat(RegExp["$1"]);this.IsMinSafari1=safariVersion>=85;this.IsMinSafari1_2=safariVersion>=124}if(this.IsKonqueror){var konquerorVersionExpr=new RegExp("Konqueror\\/(\\d+(?:\\.\\d+(?:\\.\\d)?)?)");konquerorVersionExpr.test(userAgent);this.IsMinKonqueror2_2=CompareVersions(RegExp["$1"],"2.2")>=0;this.IsMinKonqueror3=CompareVersions(RegExp["$1"],"3.0")>=0;this.IsMinKonqueror3_1=CompareVersions(RegExp["$1"],"3.1")>=0;this.IsMinKonqueror3_2=CompareVersions(RegExp["$1"],"3.2")>=0}}this.IsIE=userAgent.indexOf("compatible")>-1&&userAgent.indexOf("MSIE")>-1&&!this.IsOpera;if(this.IsIE){var ieVersion,ieVersionExpr=new RegExp("MSIE (\\d+\\.\\d+);");ieVersionExpr.test(userAgent);ieVersion=parseFloat(RegExp["$1"]);this.IsMinIE4=ieVersion>=4;this.IsMinIE5=ieVersion>=5;this.IsMinIE5_5=ieVersion>=5.5;this.IsMinIE6=ieVersion>=6;this.IsMinIE7=ieVersion>=7}this.IsMozilla=userAgent.indexOf("Gecko")>-1&&!this.IsKHTML;if(this.IsMozilla){var mozillaVersionExpr=new RegExp("rv:(\\d+\\.\\d+(?:\\.\\d+)?)");mozillaVersionExpr.test(userAgent);this.IsMinMozilla1=CompareVersions(RegExp["$1"],"1.0")>=0;this.IsMinMozilla1_4=CompareVersions(RegExp["$1"],"1.4")>=0;this.IsMinMozilla1_5=CompareVersions(RegExp["$1"],"1.5")>=0}this.IsNS4=!this.IsIE&&!this.IsOpera&&!this.IsMozilla&&!this.IsKHTML&&userAgent.indexOf("Mozilla")==0&&navigator.appName=="Netscape"&&(appVersion>=4&&appVersion<5);if(this.IsNS4){this.IsMinNS4=true;this.IsMinNS4_5=appVersionon>=4.5;this.IsMinNS4_7=appVersionon>=4.7;this.IsMinNS4_8=appVersionon>=4.8}}window.BrowserHelper=new BrowserHelper;function Location(xIn,yIn){this.X=xIn;this.Y=yIn}Location.prototype.toString=function(){return "X: "+this.X+"; Y: "+this.Y+";"};Location.prototype.ToString=Location.prototype.toString;function Bounds(xIn,yIn,widthIn,heightIn){this.X=xIn;this.Y=yIn;this.Width=widthIn;this.Height=heightIn}Bounds.prototype.toString=function(){return "X: "+this.X+"; Y: "+this.Y+"; Width: "+this.Width+"; Height: "+this.Height+";"};Bounds.prototype.ToString=Bounds.prototype.toString;function HVBounds(hIn,vIn){this.Horizontal=hIn;this.Vertical=vIn}HVBounds.prototype.toString=function(){return "Horizontal: "+this.Horizontal+"; Vertical: "+this.Vertical+";"};HVBounds.prototype.ToString=HVBounds.prototype.toString;function CoordHelper(){}if(window.BrowserHelper.IsIE){CoordHelper.prototype.GetWindowLocation=function(){return new Location(window.screenLeft,window.screenTop)};if(document.documentElement&&document.documentElement.clientWidth){CoordHelper.prototype.GetViewBounds=function(){return new Bounds(0,0,document.documentElement.clientWidth,document.documentElement.clientHeight)};CoordHelper.prototype.GetViewScroll=function(){return new HVBounds(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}else if(document.body&&document.body.clientWidth){CoordHelper.prototype.GetViewBounds=function(){return new Bounds(0,0,document.body.clientWidth,document.body.clientHeight)};CoordHelper.prototype.GetViewScroll=function(){return new HVBounds(document.body.scrollLeft,document.body.scrollTop)}}}else{CoordHelper.prototype.GetWindowLocation=function(){return new Location(window.screenX,window.screenY)};CoordHelper.prototype.GetViewBounds=function(){return new Bounds(0,0,window.innerWidth,window.innerHeight)};CoordHelper.prototype.GetViewScroll=function(){return new HVBounds(window.pageXOffset,window.pageYOffset)}}if(document.documentElement)CoordHelper.prototype.GetDocumentBounds=function(){return new Bounds(0,0,document.documentElement.scrollWidth,document.documentElement.scrollHeight)};else if(document.body)CoordHelper.prototype.GetViewBounds=function(){return new Bounds(0,0,document.body.scrollWidth,document.body.scrollHeight)};CoordHelper.prototype.GetElementLocation=function(elementIn){var offsetX=0,offsetY=0,parent=elementIn;str="";while(parent){str+=parent.tagName+" -> ";if(parent.offsetLeft){switch(parent.tagName){case "TD":if(window.BrowserHelper.IsIE)offsetX+=parent.style.borderLeftWidth?parseInt(parent.style.borderLeftWidth):0;break;case "BODY":if(window.BrowserHelper.IsIE)offsetX+=parent.style.borderLeftWidth?parseInt(parent.style.borderLeftWidth):0;else if(window.BrowserHelper.IsMozilla)offsetX+=parent.style.borderLeftWidth?parseInt(parent.style.borderLeftWidth):0+parent.style.borderRightWidth?parseInt(parent.style.borderRightWidth):0;break}offsetX+=parent.offsetLeft}if(parent.offsetTop){switch(parent.tagName){case "TD":if(window.BrowserHelper.IsIE)offsetY+=parent.style.borderTopWidth?parseInt(parent.style.borderTopWidth):0;break;case "BODY":if(window.BrowserHelper.IsIE)offsetY+=parent.style.borderTopWidth?parseInt(parent.style.borderTopWidth):0;else if(window.BrowserHelper.IsMozilla)offsetY+=parent.style.borderTopWidth?parseInt(parent.style.borderTopWidth):0+parent.style.borderBottomWidth?parseInt(parent.style.borderBottomWidth):0;break}offsetY+=parent.offsetTop}parent=parent.offsetParent}return new Location(offsetX,offsetY)};CoordHelper.prototype.GetElementBounds=function(elementIn){var location=this.GetElementLocation(elementIn),width=elementIn.offsetWidth,height=elementIn.offsetHeight;if(width==0&&elementIn.style.width.length>0)width=parseInt(elementIn.style.width);if(height==0&&elementIn.style.height.length>0)height=parseInt(elementIn.style.height);return new Bounds(location.X,location.Y,width,height)};CoordHelper.prototype.GetElementTLLocation=function(elementIn){var bounds=this.GetElementBounds(elementIn);return new Location(bounds.X,bounds.Y)};CoordHelper.prototype.GetElementTRLocation=function(elementIn){var bounds=this.GetElementBounds(elementIn);return new Location(bounds.X+bounds.Width,bounds.Y)};CoordHelper.prototype.GetElementBLLocation=function(elementIn){var bounds=this.GetElementBounds(elementIn);return new Location(bounds.X,bounds.Y+bounds.Height)};CoordHelper.prototype.GetElementBRLocation=function(elementIn){var bounds=this.GetElementBounds(elementIn);return new Location(bounds.X+bounds.Width,bounds.Y+bounds.Height)};CoordHelper.prototype.IsMouseInsideContainer=function(containerIn,eventIn){eventIn=eventIn||window.event;var result=false;if(containerIn!=null){var containerLoc=this.GetElementBounds(containerIn),x1=containerLoc.X+containerLoc.Width,y1=containerLoc.Y+containerLoc.Height,mouseX=window.BrowserHelper.IsIE?eventIn.clientX+document.body.scrollLeft:eventIn.pageX,mouseY=window.BrowserHelper.IsIE?eventIn.clientY+document.body.scrollTop:eventIn.pageY;if(mouseX>=containerLoc.X&&mouseX<=x1&&mouseY>=containerLoc.Y&&mouseY<=y1)result=true}return result};window.CoordHelper=new CoordHelper;function __getNonTextNode(node){try{while(node&&node.nodeType!=1)node=node.parentNode}catch(ex){node=null}return node}XslHelper=function(){this.xmlDocument=null;this.xslDocument=null;this.parameters={}};XslHelper.prototype.AddParameter=function(nameIn,valueIn){this.parameters[nameIn]=valueIn};XslHelper.prototype.Reset=function(){this.xmlDocument=null;this.xslDocument=null;this.parameters={}};XslHelper.prototype.Dispose=function(){this.xmlDocument=null;this.xslDocument=null;this.parameters={}};function _createIEAbstract(windowIn){if(!window.XMLHttpRequest)window.XMLHttpRequest=function(){var progIds=["Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(var i=0;i<progIds.length;i++)try{var progId=progIds[i],xmlHttp=new ActiveXObject(progId);return xmlHttp}catch(ex){}return null};XslHelper.prototype.Transform=function(){var ids=[".6.0",".5.0",".4.0",".3.0",""],selectedId="",xsltDoc=null;for(var i=0;i<ids.length;i++)try{var id=ids[i];xsltDoc=new ActiveXObject("MSXML2.FreeThreadedDOMDocument"+id);selectedId=id;if(xsltDoc)break}catch(except){}if(!xsltDoc)throw new Error("Can not create XSLT ActiveX objects.");xsltDoc.async=false;xsltDoc.loadXML(this.xslDocument.documentElement.xml);var xslTemplate=new ActiveXObject("MSXML2.XSLTemplate"+selectedId);xslTemplate.stylesheet=xsltDoc;var xslProcessor=xslTemplate.createProcessor();xslProcessor.input=this.xmlDocument;for(var parameterName in this.parameters){var parameterValue=this.parameters[parameterName];xslProcessor.addParameter(parameterName,parameterValue)}xslProcessor.transform();var result=xslProcessor.output;xslProcessor=null;xslTemplate=null;xsltDoc=null;return result}}function _createFireFoxAbstract(windowIn){windowIn.attachEvent=function(eventName,handler){this.addEventListener(eventName,handler,false)};windowIn.detachEvent=function(eventName,handler){this.removeEventListener(eventName,handler,false)};var attachEventProxy=function(eventName,eventHandler){eventHandler._mozillaEventHandler=function(e){window.event=e;eventHandler();return e.returnValue};this.addEventListener(eventName.slice(2),eventHandler._mozillaEventHandler,false)},detachEventProxy=function(eventName,eventHandler){if(eventHandler._mozillaEventHandler){var mozillaEventHandler=eventHandler._mozillaEventHandler;delete eventHandler._mozillaEventHandler;this.removeEventListener(eventName.slice(2),mozillaEventHandler,false)}};windowIn.attachEvent=attachEventProxy;windowIn.detachEvent=detachEventProxy;windowIn.HTMLDocument.prototype.attachEvent=attachEventProxy;windowIn.HTMLDocument.prototype.detachEvent=detachEventProxy;windowIn.HTMLElement.prototype.attachEvent=attachEventProxy;windowIn.HTMLElement.prototype.detachEvent=detachEventProxy;windowIn.HTMLElement.prototype.contains=function(element){for(var i=0;i<this.childNodes.length;i++){var currentElement=this.childNodes[i];if(currentElement==element)return true;if(currentElement.nodeType==1&&currentElement.contains(element))return true}return false};windowIn.HTMLElement.prototype.__defineGetter__("children",function(){var elementNodes=[],childCount=this.childNodes.length;for(var i=0;i<childCount;i++){var childNode=this.childNodes[i];if(childNode.nodeType==1)elementNodes.add(childNode)}return elementNodes});windowIn.HTMLElement.prototype.__defineSetter__("innerText",function(textIn){var parsedText=document.createTextNode(textIn);this.innerHTML="";this.appendChild(parsedText)});windowIn.HTMLElement.prototype.__defineGetter__("innerText",function(){var r=this.ownerDocument.createRange();r.selectNodeContents(this);return r.toString()});windowIn.Event.prototype.__defineGetter__("srcElement",function(){var n=__getNonTextNode(this.target);return n});windowIn.Event.prototype.__defineSetter__("cancelBubble",function(v){if(v)this.stopPropagation()});function GetLocation(el){var c={x:0,y:0};while(el){c.x+=el.offsetLeft;c.y+=el.offsetTop;el=el.offsetParent}return c}windowIn.Event.prototype.__defineGetter__("offsetX",function(){return window.pageXOffset+this.clientX-GetLocation(this.srcElement).x});windowIn.Event.prototype.__defineGetter__("offsetY",function(){return window.pageYOffset+this.clientY-GetLocation(this.srcElement).y});windowIn.Event.prototype.__defineSetter__("returnValue",function(v){if(!v)this.preventDefault();this.cancelDefault=v;return v});windowIn.Event.prototype.__defineGetter__("returnValue",function(){return this.cancelDefault});windowIn.Event.prototype.__defineGetter__("fromElement",function(){var n;if(this.type=="mouseover")n=this.relatedTarget;else if(this.type=="mouseout")n=this.target;return __getNonTextNode(n)});windowIn.Event.prototype.__defineGetter__("toElement",function(){var n;if(this.type=="mouseout")n=this.relatedTarget;else if(this.type=="mouseover")n=this.target;return __getNonTextNode(n)});windowIn.Event.prototype.__defineGetter__("button",function(){return this.which==1?1:this.which==3?2:0});function selectNodes(doc,path,c){var xpath=new XPathEvaluator,result=xpath.evaluate(path,doc.documentElement,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),nodeList=[];for(var i=0;i<result.snapshotLength;i++)nodeList.add(result.snapshotItem(i));return nodeList}function selectSingleNode(doc,path,c){path+="[1]";var nodes=selectNodes(doc,path,c);if(nodes.length!=0)return nodes[0];else return null}windowIn.XMLDocument.prototype.selectNodes=function(path){return selectNodes(this,path,this)};windowIn.XMLDocument.prototype.selectSingleNode=function(path){return selectSingleNode(this,path,null)};windowIn.XMLDocument.prototype.transformNodeToObject=function(xsl){var xslProcessor=new XSLTProcessor;xslProcessor.importStylesheet(xsl);var ownerDocument=document.implementation.createDocument("","",null);return xslProcessor.transformToFragment(this,ownerDocument)};windowIn.XMLDocument.prototype.transformNode=function(xsl){var fragment=this.transformNodeToObject(xsl),xmlSerializer=new XMLSerializer;return xmlSerializer.serializeToString(fragment)};Node.prototype.__defineGetter__("baseName",function(){return this.localName});Node.prototype.__defineGetter__("text",function(){return this.textContent});Node.prototype.__defineGetter__("xml",function(){var xmlSerializer=new XMLSerializer;return xmlSerializer.serializeToString(this,"text/xml")});Node.prototype.removeNode=function(removeChildren){var self=this;if(Boolean(removeChildren))return this.parentNode.removeChild(self);else{var range=document.createRange();range.selectNodeContents(self);return this.parentNode.replaceChild(range.extractContents(),self)}};Node.prototype.replaceNode=function(node){this.parentNode.replaceChild(node,this);return this};DocumentFragment.prototype.getElementById=function(id){var nodeQueue=[],childNodes=this.childNodes,node,c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1)nodeQueue.queue(node)}while(nodeQueue.length){node=nodeQueue.dequeue();if(node.id==id)return node;childNodes=node.childNodes;if(childNodes.length!=0)for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1)nodeQueue.queue(node)}}return null};XslHelper.prototype.Transform=function(){var xslProcessor=new XSLTProcessor;xslProcessor.importStylesheet(this.xslDocument);for(var parameterName in this.parameters){var parameterValue=this.parameters[parameterName];xslProcessor.setParameter(null,parameterName,parameterValue)}var ownerDocument=document.implementation.createDocument("","",null),resultXmlDoc=xslProcessor.transformToFragment(this.xmlDocument,ownerDocument),result=resultXmlDoc.xml;return result}}Boolean.parse=function(value){if(typeof value=="string")return value.toLowerCase()=="true";return value?true:false};Number.parse=function(value){if(!value||value.length==0)return 0;return parseFloat(value)};String.prototype.endsWith=function(suffixIn){return this.substr(this.length-suffixIn.length)==suffixIn};String.isNullOrEmpty=function(stringIn){return stringIn==null||typeof stringIn!="string"||stringIn.length==0};String.prototype.startsWith=function(prefixIn){return this.substr(0,prefixIn.length)==prefixIn};String.prototype.trimLeft=function(){return this.replace(/^\s*/,"")};String.prototype.trimRight=function(){return this.replace(/\s*$/,"")};String.prototype.trim=function(){return this.trimRight().trimLeft()};String.format=function(format){for(var i=1;i<arguments.length;i++)format=format.replace("{"+(i-1)+"}",arguments[i]);return format};Array.prototype.add=function(itemIn){this.push(itemIn)};Array.prototype.addRange=function(itemsIn){var length=itemsIn.length;if(length!=0)for(var index=0;index<length;index++)this.push(itemsIn[index])};Array.prototype.clear=function(){if(this.length>0)this.splice(0,this.length)};Array.prototype.clone=function(){var clonedArray=[],length=this.length;for(var i=0;i<length;i++)clonedArray[i]=this[i];return clonedArray};Array.prototype.contains=function(itemIn){var foundIndex=this.indexOf(itemIn);return foundIndex>=0};Array.prototype.indexOf=function(itemIn){var length=this.length;if(length!=0)for(var i=0;i<length;i++)if(this[i]==itemIn)return i;return -1};Array.prototype.insert=function(indexIn,itemIn){this.splice(indexIn,0,itemIn)};Array.prototype.remove=function(itemIn){var foundIndex=this.indexOf(itemIn);if(foundIndex>=0)this.splice(foundIndex,1)};Array.prototype.removeAt=function(indexIn){this.splice(indexIn,1)};Array.parse=function(value){return eval("("+value+")")};RegExp.parse=function(value){if(value.startsWith("/")){var endSlashIndex=value.lastIndexOf("/");if(endSlashIndex>1){var expression=value.substring(1,endSlashIndex),flags=value.substr(endSlashIndex+1);return new RegExp(expression,flags)}}return null};StringHelper=function(textIn){var _chunks=[];if(!String.isNullOrEmpty(textIn))_chunks.add(textIn);this.add=function(textIn){if(textIn==null||typeof textIn=="undefined")return this;if(typeof textIn=="string"&&textIn.length==0)return this;_chunks.add(textIn);return this};this.addWithLine=function(textIn){this.add(textIn);_chunks.add("\r\n");return this};this.clear=function(){_chunks.clear()};this.isEmpty=function(){return _chunks.length==0};this.toString=function(delimIn){delimIn=delimIn||"";return _chunks.join(delimIn)}};HandlerSet=function(){var _handlers=[],_invoked=false;this.isEmpty=function(){return !(_handlers!=null&&_handlers.length!=0)};this.Count=function(){return _handlers.length};this.dispose=function(){if(_handlers){for(var h=_handlers.length-1;h>=0;h--)_handlers[h]=null;_handlers=null}};this.add=function(handlerIn){_handlers.add(handlerIn)};this.remove=function(handlerIn){_handlers.remove(handlerIn)};this.execute=function(senderIn,dataIn){if(false==this.isEmpty()){var handlers=_handlers;for(var i=0;i<_handlers.length;i++)_handlers[i](senderIn,dataIn);_invoked=true}}};getLocation=function(element){var offsetX=0,offsetY=0,parent;for(parent=element;parent;parent=parent.offsetParent){if(parent.offsetLeft)offsetX+=parent.offsetLeft;if(parent.offsetTop)offsetY+=parent.offsetTop}return {x:offsetX,y:offsetY}};setLocation=function(element,position){element.style.left=position.x+"px";element.style.top=position.y+"px"};function GetDocumentFromServer(url,asText){var _xmlDoc=null;if(url!=null){var xmlRequest=GetXmlHttpRequest();xmlRequest.setUrl(url);var response=xmlRequest.execute(null,false);if(response.getStatusCode()=="200")_xmlDoc=asText?response.getDataAsText():response.getDataAsXml()}return _xmlDoc}WebHttpResponse=function(rawRequestIn,userDataIn){var _rawRequest=rawRequestIn,_userData=userDataIn;this.getDataAsText=function(){return _rawRequest.responseText};this.getStatusCode=function(){return _rawRequest.status};this.getStatusText=function(){return _rawRequest.statusText};this.getUserData=function(){return _userData};this.getDataAsXml=function(){return _rawRequest.responseXML}};function EmptyFunction(){}WebHttpRequest=function(){var _url=null,_headers=null,_body=null,_userData=null,_rawRequest=null,_timer=null,_isFinished=true,_isTimedOut=false,_isAborted=false,_timeoutInterval=0,_webHttpResponse,_queryString={},_actionId="",_this=this;this.getActionId=function(){return _actionId};this.setActionId=function(actionIdIn){_actionId=actionIdIn};this.addQueryStringParameter=function(nameIn,valueIn,encodeIn){var isEncoded=Boolean.parse();isEncoded=isEncoded==null?true:false;_queryString[nameIn]={value:valueIn,isEncoded:isEncoded}};this.removeQueryStringParameter=function(nameIn){_queryString[nameIn]=null};this.getAborted=function(){return _aborted};this.getIsActive=function(){return !_isFinished};this.getBody=function(){return _body};this.setBody=function(valueIn){_body=valueIn};this.getHeaders=function(){if(_headers==null)_headers={};return _headers};this.getWebHttpResponse=function(){if(_isFinished&&_rawRequest&&!_webHttpResponse){_webHttpResponse=new WebHttpResponse(_rawRequest,_userData);_rawRequest=null}return _webHttpResponse};this.getTimeoutInterval=function(){return _timeoutInterval};this.setTimeoutInterval=function(value){_timeoutInterval=value};this.getTimedOut=function(){return _timedOut};this.getUrl=function(){return _url};this.setUrl=function(valueIn){_url=valueIn};var _aborted=new HandlerSet,_completed=new HandlerSet,_timeout=new HandlerSet;this.aborted=function(){return _aborted};this.completed=function(){return _completed};this.timeout=function(){return _timeout};this.abort=function(){if(_timer!=null){window.clearTimeout(_timer);_timer=null}if(_rawRequest!=null){_rawRequest.onreadystatechange=function(){};_rawRequest.abort();if(_isFinished==false){_isAborted=true;_isFinished=true;_aborted.execute(this,_userData)}_rawRequest=null}_webHttpResponse=null;_userData=null};this.dispose=function(){if(_completed){_completed.dispose();_completed=null}if(_timeout){_timeout.dispose();_timeout=null}this.abort();_this=null};this.createQuesryString=function(){var strHelper=new StringHelper,i=0;for(var paramName in _queryString){var param=_queryString[paramName];if(param!=null){var paramValue=param.value,paramIsEncoded=param.isEncoded;paramValue=true==paramIsEncoded?encodeURIComponent(paramValue):paramValue;if(i!=0)strHelper.add("&");strHelper.add(paramName);strHelper.add("=");strHelper.add(paramValue);i++}}return strHelper.toString()};this.execute=function(userDataIn,isAsync){isAsync=isAsync==null?true:isAsync;if(_isFinished==false)this.abort();_isFinished=false;_isAborted=false;_isTimedOut=false;_webHttpResponse=null;_userData=userDataIn;_rawRequest=new XMLHttpRequest;if(isAsync)_rawRequest.onreadystatechange=onStateChange;var queryString=this.createQuesryString();if(false==String.isNullOrEmpty(queryString))_url+="?"+queryString;if(_body!=null){_rawRequest.open("POST",_url,isAsync);if(_headers==null||!_headers["Content-Type"])_rawRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else _rawRequest.open("GET",_url,isAsync);if(_headers!=null)for(var h in _headers)_rawRequest.setRequestHeader(h,_headers[h]);if(isAsync)if(_timeoutInterval!=0)_timer=window.setTimeout(onTimeout,_timeoutInterval);_rawRequest.send(_body);if(!isAsync){_isFinished=true;_rawRequest.onreadystatechange=EmptyFunction;var response=this.getWebHttpResponse();_rawRequest=null;_userData=null;return response}return null};function onStateChange(){if(_rawRequest.readyState==4){if(_timer!=null){window.clearTimeout(_timer);_timer=null}_isFinished=true;_rawRequest.onreadystatechange=EmptyFunction;_completed.execute(_this,_userData);_rawRequest=null;_userData=null}}function onTimeout(){if(_isFinished==false){if(_timer!=null){window.clearTimeout(_timer);_timer=null}var timeoutData={};timeoutData.extendTimeout=false;timeoutData.userData=_userData;_timeout.execute(_this,timeoutData);if(timeoutData.extendTimeout){if(!_isFinished&&_timeoutInterval!=0)_timer=window.setTimeout(onTimeout,_timeoutInterval)}else{_isTimedOut=true;_isFinished=true;_rawRequest.onreadystatechange=EmptyFunction;_rawRequest.abort();_rawRequest=null;_userData=null}timeoutData=null}}};window.XmlDocument=function(xmlTextIn){if(true==IsIE()){var progIds=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument"];for(var id=0;id<progIds.length;id++)try{var progId=progIds[id],xmlDoc=new ActiveXObject(progId);xmlDoc.async=false;xmlDoc.loadXML(xmlTextIn);return xmlDoc}catch(except){}return null}else{var parser=new DOMParser;return parser.parseFromString(xmlTextIn,"text/xml")}};_PageInternal=function(){var _clientControlsMap={},_webHttpRequestArray=[],_disposeArray,_unloading,_isLoaded=false,_onload=new HandlerSet,_onunload=new HandlerSet;this.onload=function(){return _onload};this.onunload=function(){return _onunload};this.IsLoaded=function(){return _isLoaded};this.NavigateTo=function(url){location.href=url};window.attachEvent("onload",onWindowLoad);window.attachEvent("onunload",onWindowUnload);function _registerClientControl(controlIn,nameIn){if(controlIn){if(nameIn==null||nameIn.length==0)throw new Error("WellKnown Client Name has to be provided.");var registeredControl=_clientControlsMap[nameIn];if(registeredControl!=null);_clientControlsMap[nameIn]=controlIn}}this.registerClientControl=_registerClientControl;function _unregisterClientControl(nameIn){if(nameIn==null||nameIn.length==0){var registeredControl=_clientControlsMap[nameIn];if(registeredControl!=null)_clientControlsMap[nameIn]=null}}this.unregisterClientControl=_unregisterClientControl;function _getClientControlByWellKnownName(nameIn,throwErrorIn){if(nameIn!=null&&nameIn.length!=0){var registeredControl=_clientControlsMap[nameIn];if(registeredControl==null&&throwErrorIn==true)throw new Error("Could not find registered control.");return registeredControl}return null}this.getClientControlByWellKnownName=_getClientControlByWellKnownName;this.registerDispose=function(diposeIn){if(!_disposeArray)_disposeArray=[];_disposeArray.add(diposeIn)};this.unregisterDispose=function(diposeIn){if(!_unloading&&_disposeArray)_disposeArray.remove(diposeIn)};this.getXmlDocument=function(stringIn){return XmlDocument(stringIn)};this.getWebHttpRequest=function(){var request=new WebHttpRequest;_webHttpRequestArray.add(request);return request};this.releaseWebHttpRequest=function(requestIn){_webHttpRequestArray.remove(requestIn)};this.abortAllWebHttpRequests=function(){for(var i=0;i<_webHttpRequestArray.length;i++){var request=_webHttpRequestArray[i];if(request!=null&&request.getIsActive())request.abort()}};function onWindowLoad(){_isLoaded=true;window.detachEvent("onload",onWindowLoad);_onload.execute(Page,null)}function onWindowUnload(){window.detachEvent("onunload",onWindowUnload);_onunload.execute(Page,null);_unloading=true;if(_disposeArray){for(var i=0;i<_disposeArray.length;i++)if(typeof _disposeArray[i].dispose=="function")_disposeArray[i].dispose();else if(typeof _disposeArray[i].Dispose=="function")_disposeArray[i].Dispose();_disposeArray.clear();_disposeArray=null}if(_webHttpRequestArray){for(var i=0;i<_webHttpRequestArray.length;i++)if(typeof _webHttpRequestArray[i].dispose=="function")_webHttpRequestArray[i].dispose();_webHttpRequestArray.clear();_webHttpRequestArray=null}if(_clientControlsMap){for(var p in _clientControlsMap)_clientControlsMap[p]=null;_clientControlsMap=null}}};function $P(nameIn,throwErrorIn){return Page.getClientControlByWellKnownName(nameIn,throwErrorIn)}function IsIE(){var userAgent=navigator.userAgent;if(userAgent.indexOf("MSIE")!=-1)return true;return false}if(window.BrowserHelper.IsIE)_createIEAbstract(window);else if(window.BrowserHelper.IsMozilla)_createFireFoxAbstract(window);ClientPopUp.Inited=false;ClientPopUp.UniqueId=0;ClientPopUp.PendingPopUp=null;ClientPopUp.Map={};ClientPopUp.GetPopUpById=function(idIn){return ClientPopUp.Map[idIn]};ClientPopUp.ShowHideEventHandler=function(eventIn){eventIn=eventIn||window.event;var uniqueId=eventIn.srcElement.PopUpUniqueId,popup=ClientPopUp.Map[uniqueId];if(popup)popup._showHideEventHandler(eventIn)};ClientPopUp.HideEventHandler=function(eventIn){eventIn=eventIn||window.event;for(var uniqueId in ClientPopUp.Map){var popup=ClientPopUp.Map[uniqueId];if(popup)popup._hideEventHandler(eventIn)}};ClientPopUp.PerformShowHide=function(idIn,timeStampIn,showIn){var popup=ClientPopUp.Map[idIn];if(popup)if(showIn)popup.Show(false,timeStampIn);else popup.Hide(false,timeStampIn)};ClientPopUp.LayerEventHandler=function(eventIn){eventIn=eventIn||window.event;if(eventIn.type=="mousemove");if(eventIn.type=="mouseover"){var element=eventIn.srcElement;while(element&&typeof element.PopUpUniqueId=="undefined")element=element.parentNode;if(element){var uniqueId=element.PopUpUniqueId,popup=ClientPopUp.Map[uniqueId];if(popup){ClientPopUp.PendingPopUp=uniqueId;popup.Show(true)}}}eventIn.cancelBubble=true};ClientPopUp.LayerActionsEventHandler=function(eventIn){eventIn=eventIn||window.event;if(eventIn.type=="click")eventIn.cancelBubble=true};ClientPopUp.DocumentEventHandler=function(eventIn){eventIn=eventIn||window.event;if(ClientPopUp.PendingPopUp!=null){var popup=ClientPopUp.Map[ClientPopUp.PendingPopUp];if(popup){ClientPopUp.PendingPopUp=null;popup.Hide(true)}}};function ClientPopUp(targetElementIn){this._uniqueId=ClientPopUp.UniqueId++;this._targetElementRef=FindElementRef(targetElementIn);if(this._targetElementRef.id.length==0)this._targetElementRef.id="PopUpTargetElementId_"+this._uniqueId;this._targetElementId=this._targetElementRef.id;this._secondaryTarget=this._targetElementRef;this._showEvent="click";this._hideEvent="click";this._hideOnOtherAction=true;this._handleMouseOnLayer=false;this._handleActionsOnLayer=false;this._cssClassName="";this._width=-1;this._height=-1;this._position="bottom";this._isCentered=false;this._delta=2;this._delayTimerId=null;this._delayShow=-1;this._delayHide=-1;this._isShown=false;this._timeStamp=0;this._isShowEvent=false;this._state=-1;this._isLayerCreated=false;this._isFrameCreated=false;this._div=null;this._frame=null;this._frameSrcUrl=null;this._isFrameSrcUrlSet=false;this._userData=null;this.OnBeforeShow=new HandlerSet;this.OnAfterShow=new HandlerSet;this.OnBeforeHide=new HandlerSet;this.OnAfterHide=new HandlerSet;this.StartTracking=function(){if(!ClientPopUp.Inited){document.attachEvent("onclick",ClientPopUp.HideEventHandler);ClientPopUp.Inited=true}with(this){if(_state==1)return;if(_showEvent=="")throw new Error("ClientPopUp: Not empty Show Event has to be provided.");if(_showEvent.indexOf("on")!=0)_showEvent="on"+_showEvent;if(_hideEvent=="")throw new Error("ClientPopUp: Not empty Hide Event has to be provided.");if(_hideEvent.indexOf("on")!=0)_hideEvent="on"+_hideEvent;_targetElementRef.attachEvent(_showEvent,ClientPopUp.ShowHideEventHandler);if(_targetElementRef!=_secondaryTarget)_secondaryTarget.attachEvent(_showEvent,ClientPopUp.ShowHideEventHandler);if(_showEvent!=_hideEvent){_targetElementRef.attachEvent(_hideEvent,ClientPopUp.ShowHideEventHandler);if(_targetElementRef!=_secondaryTarget)_secondaryTarget.attachEvent(_hideEvent,ClientPopUp.ShowHideEventHandler)}_targetElementRef.PopUpUniqueId=_uniqueId;_secondaryTarget.PopUpUniqueId=_uniqueId;ClientPopUp.Map[_uniqueId]=this;_state=1}};this.StopTracking=function(){with(this){Hide(true);if(_state==2)return;_state=2;_targetElementRef.detachEvent(_showEvent,ClientPopUp.ShowHideEventHandler);if(_targetElementRef!=_secondaryTarget)_secondaryTarget.detachEvent(_showEvent,ClientPopUp.ShowHideEventHandler);if(_showEvent!=_hideEvent){_targetElementRef.detachEvent(_hideEvent,ClientPopUp.ShowHideEventHandler);if(_targetElementRef!=_secondaryTarget)_secondaryTarget.detachEvent(_hideEvent,ClientPopUp.ShowHideEventHandler)}}};this.Dispose=function(){with(this){StopTracking();_targetElementRef=null;_secondaryTarget=null;delete ClientPopUp.Map[_uniqueId];_disposeDelayTimer();_disposeLayer()}};this._showHideEventHandler=function(eventIn){with(this){if(_state!=1)return;_isShowEvent=!_isShowEvent;var nextTimeStamp=_getNextTimeStamp();if(_isShowEvent&&!_isShown)if(_delayShow!=-1){_disposeDelayTimer();_delayTimerId=window.setTimeout("ClientPopUp.PerformShowHide("+_uniqueId+", "+nextTimeStamp+", true);",_delayShow)}else Show(false);if(!_isShowEvent&&_isShown)if(_delayHide!=-1){_disposeDelayTimer();_delayTimerId=window.setTimeout("ClientPopUp.PerformShowHide("+_uniqueId+", "+nextTimeStamp+", false);",_delayHide)}else Hide(false)}};this._getNextTimeStamp=function(){with(this){_timeStamp++;if(_timeStamp>=999999)_timeStamp=0;return _timeStamp}};this.Show=function(forceIn,timeStampIn){with(this){_createLayer(false);_disposeDelayTimer();if(_handleMouseOnLayer&&!forceIn)_div.attachEvent("onmouseover",ClientPopUp.LayerEventHandler);if(_handleMouseOnLayer&&forceIn){_div.detachEvent("onmouseover",ClientPopUp.LayerEventHandler);_div.attachEvent("onmousemove",ClientPopUp.LayerEventHandler);document.attachEvent("onmousemove",ClientPopUp.DocumentEventHandler)}if(_handleActionsOnLayer)_div.attachEvent("onclick",ClientPopUp.LayerActionsEventHandler);if(!forceIn&&_isShown)return;if(typeof timeStampIn!="undefined"&&_timeStamp!=timeStampIn)return;if(forceIn||!_isShown){if(!OnBeforeShow.isEmpty())OnBeforeShow.execute(this,_userData);_isShown=true;_showLayer();if(!OnAfterShow.isEmpty())OnAfterShow.execute(this,_userData)}}};this._hideEventHandler=function(eventIn){with(this){if(eventIn.srcElement==_targetElementRef||eventIn.srcElement==_secondaryTarget)if(typeof eventIn.srcElement.disabled=="undefined"||eventIn.srcElement.disabled==false)return;Hide(true);_isShowEvent=false}};this.Hide=function(forceIn,timeStampIn){with(this){_disposeDelayTimer();if(_handleMouseOnLayer&&!forceIn)_div.detachEvent("onmouseover",ClientPopUp.LayerEventHandler);if(_handleMouseOnLayer&&forceIn){_div.detachEvent("onmousemove",ClientPopUp.LayerEventHandler);document.detachEvent("onmousemove",ClientPopUp.DocumentEventHandler)}if(_handleActionsOnLayer)_div.detachEvent("onclick",ClientPopUp.LayerActionsEventHandler);if(!forceIn&&!_isShown)return;if(typeof timeStampIn!="undefined"&&_timeStamp!=timeStampIn)return;if(_isShown&&forceIn||_isShown&&_hideOnOtherAction){if(!OnBeforeHide.isEmpty())OnBeforeHide.execute(this,_userData);_isShown=false;_hideLayer();if(!OnAfterHide.isEmpty())OnAfterHide.execute(this,_userData)}}};this._disposeDelayTimer=function(){with(this)if(_delayTimerId){window.clearTimeout(_delayTimerId);_delayTimerId=null}};this._createLayer=function(isInitIn){with(this){if(_isLayerCreated&&_isFrameCreated)return;if(!_isLayerCreated){_div=document.createElement("DIV");_div.style.position="absolute";_div.style.visibility="hidden";_div.style.zIndex=2;_div.PopUpUniqueId=_uniqueId;document.getElementsByTagName("BODY")[0].appendChild(_div);_isLayerCreated=true}if(window.BrowserHelper.IsIE)if(!isInitIn&&!_isFrameCreated){_frame=document.createElement("IFRAME");if(_frameSrcUrl&&_frameSrcUrl.length>0)_frame.src=_frameSrcUrl;else _frame.src="Shared/StaticHTML/IEFrameWarningBypass.htm";_frame.style.position="absolute";_frame.style.visibility="hidden";_frame.style.zIndex=1;_frame.style.border="0px";document.getElementsByTagName("BODY")[0].appendChild(_frame);_isFrameCreated=true}}};this._showLayer=function(){with(this){if(_cssClassName!="")_div.className=_cssClassName;if(_width!=-1)_div.style.width=_width;if(_height!=-1)_div.style.height=_height;_positionLayer();_div.style.visibility="visible";var divBounds=CoordHelper.GetElementBounds(_div);if(_frame){_frame.style.top=divBounds.Y+"px";_frame.style.left=divBounds.X+"px";_frame.style.width=divBounds.Width-2+"px";_frame.style.height=divBounds.Height-2+"px";_frame.style.visibility="visible"}}};this._hideLayer=function(){with(this){if(_frame)_frame.style.visibility="hidden";_div.style.visibility="hidden"}};this._positionLayer=function(){with(this){_targetElementRef=null;_targetElementRef=FindElementRef(_targetElementId);var layerBounds=CoordHelper.GetElementBounds(_div),location=null;switch(_position){case "top":var location=CoordHelper.GetElementTLLocation(_targetElementRef);location.Y=location.Y-layerBounds.Height-_delta;break;case "bottom":var location=CoordHelper.GetElementBLLocation(_targetElementRef);location.Y=location.Y+_delta;break;case "left":var location=CoordHelper.GetElementTLLocation(_targetElementRef);location.X=location.X-layerBounds.Width-_delta;break;case "right":var location=CoordHelper.GetElementTRLocation(_targetElementRef);location.X=location.X+_delta;break}_div.style.top=location.Y+"px";_div.style.left=location.X+"px"}};this._disposeLayer=function(){with(this){if(_div&&_div.tagName=="DIV")document.getElementsByTagName("BODY")[0].removeChild(_div);if(window.BrowserHelper.IsIE&&_frame&&_frame.tagName=="IFRAME")document.getElementsByTagName("BODY")[0].removeChild(_frame)}};this.SetSecondaryTarget=function(controlIn){with(this)_secondaryTarget=FindElementRef(controlIn)};function FindElementRef(elementIn){var elementRefTemp=null;if(typeof elementIn=="string"&&elementIn.length>0)elementRefTemp=$(elementIn);else elementRefTemp=elementIn;if(!elementRefTemp)throw new Error("ClientPopUp: valid target element has to be provided.");return elementRefTemp}this._createLayer(true)}ClientPopUp.prototype.GetUniqueId=function(){return this._uniqueId};ClientPopUp.prototype.GetTargetElementRef=function(){return this._targetElementRef};ClientPopUp.prototype.SetShowEvent=function(eventNameIn){this._showEvent=eventNameIn};ClientPopUp.prototype.SetHideEvent=function(eventNameIn){this._hideEvent=eventNameIn};ClientPopUp.prototype.SetPosition=function(posIn,isCenteredIn){this._position=posIn;this._isCentered=isCenteredIn};ClientPopUp.prototype.SetHTML=function(htmlIn){this._div.innerHTML=htmlIn};ClientPopUp.prototype.SetWidth=function(widthIn){this._width=widthIn};ClientPopUp.prototype.SetHeight=function(heightIn){this._height=heightIn};ClientPopUp.prototype.SetCSSClassName=function(classNameIn){this._cssClassName=classNameIn};ClientPopUp.prototype.SetHideOnOtherAction=function(hideIn){this._hideOnOtherAction=hideIn};ClientPopUp.prototype.SetDelayShow=function(delayIn){this._delayShow=delayIn};ClientPopUp.prototype.SetDelayHide=function(delayIn){this._delayHide=delayIn};ClientPopUp.prototype.SetHandleMouseOnLayer=function(flagIn){this._handleMouseOnLayer=flagIn};ClientPopUp.prototype.SetHandleActionsOnLayer=function(flagIn){this._handleActionsOnLayer=flagIn};ClientPopUp.prototype.SetUserData=function(dataIn){this._userData=dataIn};ClientPopUp.prototype.SetFrameSrcUrl=function(urlIn){this._frameSrcUrl=urlIn};function Control(){this._elementId="";this._element=null;this._wellknownName=""}Control.prototype.InitializeBase=function(elementIdIn){this._elementId=elementIdIn;if(String.isNullOrEmpty(this._elementId))throw new Error("Element ID has to be provided.");this._element=$(this._elementId);if(this._element==null)throw new Error("Element with specified ID could not be found.");this._wellknownName=this._element.getAttribute("wellknownName");if(String.isNullOrEmpty(this._wellknownName))throw new Error("Wellknown name has to be provided.");this.Initialize();Page.registerClientControl(this,this._wellknownName)};Control.prototype.Initialize=function(){};Control.prototype.GetElementId=function(){return this._elementId};Control.prototype.GetElementRef=function(){return this._element};Control.prototype.GetWellKnownName=function(){return this._wellknownName};Control.prototype.GetAttributeValue=function(nameIn){return this._element.getAttribute(nameIn)};Control.prototype.Enable=function(enableIn){this._element.disabled=!enableIn};Control.prototype.Visible=function(visibleIn){var value=visibleIn?"visible":"hidden";this._element.style.visibility=value};Control.prototype.IsVisible=function(){return this._element.style.visibility=="visible"};Control.prototype.Display=function(displayIn){var value=displayIn?"":"none";this._element.style.display=value};Control.prototype.IsDisplayed=function(){return !(this._element.style.display=="none")};Control.prototype.ControlAdd=function(controlHtml){var e=this._element;e.innerHTML=controlHtml;if(controlHtml.indexOf("<script")>-1){var st=e.getElementsByTagName("script");if(st){var strString="";for(var n=0;n<st.length;n++)strString+=st[n].innerHTML;if(strString)eval(strString)}}};Control.prototype.DisableAsyncPostBack=function(boolIn){this._element.setAttribute("nopostback",boolIn)};function TextBox(elementIdIn){var _this=this;this.InitializeBase(elementIdIn);function _setText(v){_this.GetElementRef().value=v}this.SetText=_setText;function _getText(){return _this.GetElementRef().value}this.GetText=_getText}TextBox.prototype=new Control;function JFxImage(elementIdIn){var _this=this;this.InitializeBase(elementIdIn);function _setWidth(v){_this.GetElementRef().width=v}this.SetWidth=_setWidth;function _setHeight(v){_this.GetElementRef().height=v}this.SetHeight=_setHeight;function _setSrc(v){_this.GetElementRef().src=v}this.SetSrc=_setSrc}JFxImage.prototype=new Control;function CheckBox(elementIdIn){this.InitializeBase(elementIdIn)}CheckBox.prototype=new Control;function Panel(elementIdIn){this.InitializeBase(elementIdIn)}Panel.prototype=new Control;function Button(elementIdIn){this.InitializeBase(elementIdIn)}Button.prototype=new Control;function LinkLabel(elementIdIn){this.InitializeBase(elementIdIn)}LinkLabel.prototype=new Control;function RadioButton(elementIdIn){this.InitializeBase(elementIdIn)}RadioButton.prototype=new Control;function Label(elementIdIn){var _this=this;this.InitializeBase(elementIdIn);function _setText(v){_this.GetElementRef().innerText=v}this.SetText=_setText;function _getText(){return _this.GetElementRef().innerText}this.GetText=_getText}Label.prototype=new Control;function Proxy(elementIdIn){var _this=this,_controlId=elementIdIn,_element=$(_controlId);this.InitializeBase(elementIdIn);function _doCommand(commandName,commandData){if(commandName.indexOf("?")>-1||commandData.indexOf("?")>-1)return;var packet=commandName+"?"+commandData;__doAsyncPostBack(_element,packet)}this.DoCommand=_doCommand}Proxy.prototype=new Control;function _showBusy(){var e=$("_bIcon");if(e)e.style.display=""}function _hideBusy(){var e=$("_bIcon");if(e)e.style.display="none"}var Page=new _PageInternal;function escapeForPost(stringIn){return encodeURIComponent(stringIn)}function IsValidPost(valIn){if(valIn){var pattern=/(<[A-Za-z])|(<!)|(&#)|(\Won[A-Za-z]*\s*=)|(script\s*:)|(expression\()\w?/;return valIn.match(pattern)==null?true:false}else return true}var g_action="",__PENDING_REQUEST=0,__MAX_REQUESTS=4;function IncrementPendingRequests(){__PENDING_REQUEST++}function DecrementPendingRequests(){if(__PENDING_REQUEST>0)__PENDING_REQUEST--}function IsAnotherRequestAllowed(){return __PENDING_REQUEST<__MAX_REQUESTS+1}function Rnd(max){var num=max*Math.random();num=Math.ceil(num);return num}function __doAsyncPostBack(senderIn,argsIn){if(IsAnotherRequestAllowed())IncrementPendingRequests();else return;var abort=senderIn.getAttribute("nopostback");if(abort!=null&&Boolean.parse(abort)){DecrementPendingRequests();return}_showBusy();var request=Page.getWebHttpRequest();if(request){var strHelper=new StringHelper,form=document.forms[0],postBackUrl=form.action;if(!postBackUrl)postBackUrl=document.location.href;var tag=(new Date).getTime();postBackUrl.indexOf("?")>0?(postBackUrl+="&idx="+tag):(postBackUrl+="?idx="+tag);for(var x=0;x<form.elements.length;x++){var formElement=form.elements[x];if(formElement.disabled)continue;var formElementValue=formElement.value;if((formElement.tagName=="INPUT"||formElement.tagName=="TEXTAREA")&&formElement.type!="hidden")if(!IsValidPost(formElementValue))formElementValue=escape(formElementValue);if(formElement.tagName=="INPUT"&&formElement.type=="submit")continue;if(formElement.tagName=="INPUT"&&formElement.id=="__EVENTTARGET")continue;if(formElement.tagName=="INPUT"&&formElement.id=="__EVENTARGUMENT")continue;if(formElement.getAttribute("includeInPostBack")=="false")continue;if(formElement.tagName=="INPUT"&&formElement.type=="checkbox"&&!formElement.checked)continue;if(formElement.tagName=="INPUT"&&formElement.type=="radio"&&!formElement.checked)continue;if(formElement.tagName=="INPUT"&&formElement.type=="radio"&&formElement.checked){strHelper.add(formElement.name+"="+formElement.id);continue}strHelper.add(formElement.name+"="+escapeForPost(formElementValue))}var asyncTimeout=senderIn.getAttribute("asynctimeout");if(asyncTimeout){request.timeout().add(__processResponseTimeOut);request.setTimeoutInterval(asyncTimeout)}strHelper.add("__EVENTTARGET="+senderIn.getAttribute("name"));strHelper.add("__EVENTARGUMENT="+argsIn);strHelper.add("__ISASYNC=true");var eventName=senderIn.getAttribute("eventName");if(eventName)strHelper.add("__EVENTNAME="+eventName);var dataToSend=strHelper.toString("&"),actionId=senderIn.getAttribute("actionId");request.setActionId(actionId);request.setUrl(postBackUrl);request.setBody(dataToSend);request.completed().add(__processResponseCompleted);request.aborted().add(__processResponseAborted);g_action=argsIn;__processBusy(actionId,true);request.execute()}}function __disabledAsyncPostBacks(controlIn,boolIn){var ctrl=$P(controlIn);if(ctrl)ctrl.DisableAsyncPostBack(boolIn)}function __forLabelText(controlIn,dataIn){var ctrl=$(controlIn+"_For");if(ctrl)ctrl.innerText=dataIn}function __processClientEventsBatch(batch){try{eval(batch)}catch(err){if(__DEBUG);}}function __processResponseTimeOut(requestIn,dataIn){var wait=false;if(__OPTTIMEOUTMSG)var wait=confirm(__OPTTIMEOUTMSG);if(wait)dataIn.extendTimeout=true;else{var actionId=requestIn.getActionId();__processBusy(actionId,false);_hideBusy()}}function __processResponseCompleted(requestIn,dataIn){var response=requestIn.getWebHttpResponse(),actionId=requestIn.getActionId();if(200==response.getStatusCode()){DecrementPendingRequests();__processBusy(actionId,false);var batch=response.getDataAsText();__processClientEventsBatch(batch);Page.releaseWebHttpRequest(requestIn)}if(500==response.getStatusCode()){DecrementPendingRequests();if(__DEBUG)__showServerError(response.getDataAsText())}_hideBusy()}function __setFocus(controlIn,dataIn){var ctrl=$(controlIn),b=Boolean.parse(dataIn);if(ctrl&&b)ctrl.focus()}var __jsIncludesMap={};function __PageUpdateJavaScriptIncludes(includesIn){if(!includesIn)return;var includesArray=includesIn.jsincludes;if(!includesArray||includesArray.length==0)return;for(var i=0;i<includesArray.length;i++){var key=includesArray[i].key,src=includesArray[i].src;if(!src||src.length==0)continue;if(!__jsIncludesMap[key])__jsIncludesMap[key]=false;if(__jsIncludesMap[key]==true)continue;var scriptRef=document.createElement("SCRIPT");scriptRef.src=src;if(document.body)document.body.appendChild(scriptRef);else if(document.documentElement)document.documentElement.appendChild(scriptRef);__jsIncludesMap[key]=true}}function __SetVS(){if(arguments.length>0){var vsContainerElement=null,length=arguments.length;for(var i=0;i<length;i++){var chunkElementId=i==0?"__VIEWSTATE":"__VIEWSTATE"+i,chunkValue=arguments[i],chunkElement=$(chunkElementId);if(i==0)vsContainerElement=chunkElement.parentNode;if(chunkElement)chunkElement.value=chunkValue;else{var newChunkElement=document.createElement("input");newChunkElement.setAttribute("type","hidden");newChunkElement.setAttribute("id",chunkElementId);newChunkElement.setAttribute("name",chunkElementId);newChunkElement.value=chunkValue;vsContainerElement.appendChild(newChunkElement)}}var chunkCounterElement=$("__VIEWSTATEFIELDCOUNT");if(chunkCounterElement){chunkCounterElement.value=length;if(length==1)vsContainerElement.removeChild(chunkCounterElement)}else{var newChunkElement=document.createElement("input");newChunkElement.setAttribute("type","hidden");newChunkElement.setAttribute("id","__VIEWSTATEFIELDCOUNT");newChunkElement.setAttribute("name","__VIEWSTATEFIELDCOUNT");newChunkElement.value=length;vsContainerElement.appendChild(newChunkElement)}}}function __SetPProp(dataIn){eval(dataIn)}function __SetProp(controlIdIn,typeIn,nameIn,valueIn){var element=$(controlIdIn);if(element)switch(typeIn){case "Boolean":eval("element."+nameIn+" = Boolean.parse(valueIn);");break;case "Html":eval("element."+nameIn+" = decode(valueIn);");break;case "String":if(nameIn.indexOf(".")>=0)eval("element."+nameIn+" = "+valueIn);else element[nameIn]=valueIn;break;default:eval("element."+nameIn+" = "+valueIn)}}var _errWinIdx=1;function __showServerError(pagehtmlIn){var err=document.createElement("DIV");err.setAttribute("id","ErrWin_"+_errWinIdx);err.style.position="absolute";err.style.background="white";err.style.borderwidth=1;err.style.borderStyle="outset";err.style.overflow="scroll";err.style.top=100+10*_errWinIdx;err.style.width="600";err.style.height="500";err.style.left=window.screen.width/4+10*_errWinIdx;err.innerHTML="<div><b>Async Post Back Server Error Window "+_errWinIdx+"</b>  <a onclick='__hideServerError("+_errWinIdx+")'>Close X</a></div>"+pagehtmlIn;document.body.appendChild(err);_errWinIdx++}function __hideServerError(Idx){$("ErrWin_"+Idx).style.display="none"}function __processResponseAborted(requestIn,dataIn){var actionId=requestIn.getActionId();__processBusy(actionId,false);busy=true;Page.releaseWebHttpRequest(requestIn)}function __doAsyncPostBackForData(senderIn,elementType,operationId,operationParams){var request=Page.getWebHttpRequest();if(request){var strHelper=new StringHelper;strHelper.add("__CONTROLID="+senderIn.id);strHelper.add("__CONTROLTYPE="+elementType);strHelper.add("__OPERATIONID="+operationId);strHelper.add("__OPERATIONPARAMS="+operationParams);strHelper.add("__ISFORDATA=true");var dataToSend=strHelper.toString("&");request.setUrl(document.location.href);request.setBody(dataToSend);request.completed().add(__processResponseCompleted);request.aborted().add(__processResponseAborted);request.execute()}}function __processBusy(actionIdIn,disableIn){if(typeof g_busy!="undefined"&&g_busy!=null&&actionIdIn!=null&&actionIdIn!=""){var busyControIds=g_busy[actionIdIn];if(busyControIds!=null)for(var c=0;c<busyControIds.length;c++){var controlElement=$(busyControIds[c]),flag=false;if(controlElement!=null&&typeof controlElement.disabled!="undefined"){if(true==disableIn){if(typeof controlElement.initdisabled=="undefined")controlElement.initdisabled=controlElement.disabled;else controlElement.initdisabled=controlElement.disabled;controlElement.disabled=true}else if(typeof controlElement.initdisabled!="undefined")controlElement.disabled=controlElement.initdisabled;else controlElement.disabled=false;flag=true}if(flag==false&&controlElement!=null&&typeof controlElement.disable=="function"){controlElement.disable(disableIn);flag=true}}}}function __controlAdd(controlIn,dataIn){var ctrl=$P(controlIn);if(ctrl&&dataIn)ctrl.ControlAdd(dataIn)}function __controlAddHiddenFieldsToDom(controlIn,dataIn){if(dataIn){var pairs=dataIn.split("&");if(pairs)for(var c=0;c<pairs.length;c++)if(pairs[c]){var pair=pairs[c].split("=");if(pair&&pair.length==2){var key=pair[0],val=decodeURIComponent(pair[1]),hfield=$(key);if(!hfield){var newHiddenElement=document.createElement("input");newHiddenElement.setAttribute("type","hidden");newHiddenElement.setAttribute("id",key);newHiddenElement.setAttribute("name",key);newHiddenElement.value=val;var f=document.forms[0];if(f)f.appendChild(newHiddenElement)}}}}}function __controlAddRefreshBusyMap(controlIn,dataIn){if(dataIn)if(g_busy){eval(dataIn);if(n_busy)for(i in n_busy)g_busy[i]=n_busy[i]}}function __controlAddRefreshPageValidators(controlIn,dataIn){if(dataIn)if(typeof window["Page_Validators"]=="undefined")eval("var Page_Validators = new Array(dataIn);");else{var vals=dataIn.split("|");if(vals)for(var i=0;i<vals.length;i++){var ctr=eval(vals[i]);if(!__IsValidatorRegistered(ctr))Page_Validators.add(ctr)}}}function __IsValidatorRegistered(validatorIn){if(validatorIn)if(!(typeof window["Page_Validators"]=="undefined"))for(var i=0;i<Page_Validators.length;i++)if(validatorIn.id==Page_Validators[i].id)return true;return false}function __controlAddRefreshPageValidatorsMeta(controlIn,dataIn){if(dataIn)eval(dataIn);ValidatorOnLoad()}function __controlRemoveUpdateValidators(controlIn,dataIn){if(dataIn){var cs=dataIn.split("|");if(cs)for(var c=0;c<cs.length;c++){var item=cs[c];if(item!="")Page_Validators.remove($(item))}ValidatorOnLoad()}}function __controlRemove(controlIn,dataIn){var ctrl=$(dataIn);if(ctrl){var parent=ctrl.parentNode;if(parent)parent.removeChild(ctrl)}}function GetXmlHttpRequest(){return Page.getWebHttpRequest()}function GetXmlDocument(stringIn){return Page.getXmlDocument(stringIn)}var busy=false;function __PostClientErrors(msg,url,linenum){if(__LOGGING){var i=new Image(1,1);i.src="/RequestData.ashx?HID=1000&msg="+msg+"&ln="+linenum;if(__DEBUG)return false;return true}}function onPageRedirect(){if(IsPageEdited)return __TRACKCHNGMSG}window.onerror=__PostClientErrors;window.onbeforeunload=onPageRedirect;Page.onload().add(CheckBackButton);function getRealCookie(name){var start=document.cookie.toLowerCase().indexOf(name.toLowerCase()+"=");if(start==-1)return null;var end=document.cookie.indexOf(";",start);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(start+name.length+1,end))}function CheckBackButton(){var bagPGUID=$P("JPGUID"),cookiePGUID=getRealCookie("JPGUID"),pagePGUID=null;if(!bagPGUID)if(__DEBUG)throw new Error("Back Button functionality is corrupted: no state bag.");if(!cookiePGUID)if(__DEBUG)throw new Error("Back Button functionality is corrupted: no cookie.");pagePGUID=bagPGUID.GetItem("ID");if(!pagePGUID||pagePGUID.length==0)if(__DEBUG)throw new Error("Back Button functionality is corrupted: no page value.");if(pagePGUID!=cookiePGUID)location.reload()}function __doDisableControls(controlType){var controls=document.forms[0].getElementsByTagName("input");for(var i=0;i<controls.length;i++){var formElement=controls[i];if(formElement&&(controlType==""||formElement.type==controlType))formElement.disabled=true}}