﻿function WebForm_PostBackOptions(A,E,F,B,D,C,G){this.eventTarget=A;this.eventArgument=E;this.validation=F;this.validationGroup=B;this.actionUrl=D;this.trackFocus=C;this.clientSubmit=G}function WebForm_DoPostBackWithOptions(B){var A=true;if(B.validation){if(typeof(Page_ClientValidate)=="function"){A=Page_ClientValidate(B.validationGroup)}}if(A){if((typeof(B.actionUrl)!="undefined")&&(B.actionUrl!=null)&&(B.actionUrl.length>0)){theForm.action=B.actionUrl}if(B.trackFocus){var D=theForm.elements["__LASTFOCUS"];if((typeof(D)!="undefined")&&(D!=null)){if(typeof(document.activeElement)=="undefined"){D.value=B.eventTarget}else{var C=document.activeElement;if((typeof(C)!="undefined")&&(C!=null)){if((typeof(C.id)!="undefined")&&(C.id!=null)&&(C.id.length>0)){D.value=C.id}else{if(typeof(C.name)!="undefined"){D.value=C.name}}}}}}}if(B.clientSubmit){__doPostBack(B.eventTarget,B.eventArgument)}}var __pendingCallbacks=new Array();var __synchronousCallBackIndex=-1;function WebForm_DoCallback(K,H,J,L,N,I){var M=__theFormPostData+"__CALLBACKID="+WebForm_EncodeCallback(K)+"&__CALLBACKPARAM="+WebForm_EncodeCallback(H);if(theForm["__EVENTVALIDATION"]){M+="&__EVENTVALIDATION="+WebForm_EncodeCallback(theForm["__EVENTVALIDATION"].value)}var D,A;try{D=new XMLHttpRequest()}catch(A){try{D=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){}}var E=true;try{E=(D&&D.setRequestHeader)}catch(A){}var B=new Object();B.eventCallback=J;B.context=L;B.errorCallback=N;B.async=I;var F=WebForm_FillFirstAvailableSlot(__pendingCallbacks,B);if(!I){if(__synchronousCallBackIndex!=-1){__pendingCallbacks[__synchronousCallBackIndex]=null}__synchronousCallBackIndex=F}if(E){D.onreadystatechange=WebForm_CallbackComplete;B.xmlRequest=D;D.open("POST",theForm.action,true);D.setRequestHeader("Content-Type","application/x-www-form-urlencoded");D.send(M);return}B.xmlRequest=new Object();var O="__CALLBACKFRAME"+F;var C=document.frames[O];if(!C){C=document.createElement("IFRAME");C.width="1";C.height="1";C.frameBorder="0";C.id=O;C.name=O;C.style.position="absolute";C.style.top="-100px";C.style.left="-100px";try{if(callBackFrameUrl){C.src=callBackFrameUrl}}catch(A){}document.body.appendChild(C)}var G=window.setInterval(function(){C=document.frames[O];if(C&&C.document){window.clearInterval(G);C.document.write("");C.document.close();C.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"></form></body></html>');C.document.close();C.document.forms[0].action=theForm.action;var U=__theFormPostCollection.length;var Q;for(var S=0;S<U;S++){Q=__theFormPostCollection[S];if(Q){var T=C.document.createElement("INPUT");T.type="hidden";T.name=Q.name;T.value=Q.value;C.document.forms[0].appendChild(T)}}var V=C.document.createElement("INPUT");V.type="hidden";V.name="__CALLBACKID";V.value=K;C.document.forms[0].appendChild(V);var W=C.document.createElement("INPUT");W.type="hidden";W.name="__CALLBACKPARAM";W.value=H;C.document.forms[0].appendChild(W);if(theForm["__EVENTVALIDATION"]){var P=C.document.createElement("INPUT");P.type="hidden";P.name="__EVENTVALIDATION";P.value=theForm["__EVENTVALIDATION"].value;C.document.forms[0].appendChild(P)}var R=C.document.createElement("INPUT");R.type="hidden";R.name="__CALLBACKINDEX";R.value=F;C.document.forms[0].appendChild(R);C.document.forms[0].submit()}},10)}function WebForm_CallbackComplete(){for(i=0;i<__pendingCallbacks.length;i++){callbackObject=__pendingCallbacks[i];if(callbackObject&&callbackObject.xmlRequest&&(callbackObject.xmlRequest.readyState==4)){WebForm_ExecuteCallback(callbackObject);if(!__pendingCallbacks[i].async){__synchronousCallBackIndex=-1}__pendingCallbacks[i]=null;var B="__CALLBACKFRAME"+i;var A=document.getElementById(B);if(A){A.parentNode.removeChild(A)}}}}function WebForm_ExecuteCallback(F){var B=F.xmlRequest.responseText;if(B.charAt(0)=="s"){if((typeof(F.eventCallback)!="undefined")&&(F.eventCallback!=null)){F.eventCallback(B.substring(1),F.context)}}else{if(B.charAt(0)=="e"){if((typeof(F.errorCallback)!="undefined")&&(F.errorCallback!=null)){F.errorCallback(B.substring(1),F.context)}}else{var C=B.indexOf("|");if(C!=-1){var D=parseInt(B.substring(0,C));if(!isNaN(D)){var A=B.substring(C+1,C+D+1);if(A!=""){var E=theForm["__EVENTVALIDATION"];if(!E){E=document.createElement("INPUT");E.type="hidden";E.name="__EVENTVALIDATION";theForm.appendChild(E)}E.value=A}if((typeof(F.eventCallback)!="undefined")&&(F.eventCallback!=null)){F.eventCallback(B.substring(C+D+1),F.context)}}}}}}function WebForm_FillFirstAvailableSlot(A,C){var B;for(B=0;B<A.length;B++){if(!A[B]){break}}A[B]=C;return B}var __nonMSDOMBrowser=(window.navigator.appName.toLowerCase().indexOf("explorer")==-1);var __theFormPostData="";var __theFormPostCollection=new Array();function WebForm_InitCallback(){var D=theForm.elements.length;var H;for(var G=0;G<D;G++){H=theForm.elements[G];var A=H.tagName.toLowerCase();if(A=="input"){var F=H.type;if((F=="text"||F=="hidden"||F=="password"||((F=="checkbox"||F=="radio")&&H.checked))&&(H.id!="__EVENTVALIDATION")){WebForm_InitCallbackAddField(H.name,H.value)}}else{if(A=="select"){var C=H.options.length;for(var B=0;B<C;B++){var E=H.options[B];if(E.selected==true){WebForm_InitCallbackAddField(H.name,H.value)}}}else{if(A=="textarea"){WebForm_InitCallbackAddField(H.name,H.value)}}}}}function WebForm_InitCallbackAddField(B,A){var C=new Object();C.name=B;C.value=A;__theFormPostCollection[__theFormPostCollection.length]=C;__theFormPostData+=B+"="+WebForm_EncodeCallback(A)+"&"}function WebForm_EncodeCallback(A){if(encodeURIComponent){return encodeURIComponent(A)}else{return escape(A)}}var __disabledControlArray=new Array();function WebForm_ReEnableControls(){if(typeof(__enabledControlArray)=="undefined"){return false}var B=0;for(var A=0;A<__enabledControlArray.length;A++){var C;if(__nonMSDOMBrowser){C=document.getElementById(__enabledControlArray[A])}else{C=document.all[__enabledControlArray[A]]}if((typeof(C)!="undefined")&&(C!=null)&&(C.disabled==true)){C.disabled=false;__disabledControlArray[B++]=C}}setTimeout("WebForm_ReDisableControls()",0);return true}function WebForm_ReDisableControls(){for(var A=0;A<__disabledControlArray.length;A++){__disabledControlArray[A].disabled=true}}function WebForm_FireDefaultButton(C,A){if(C.keyCode==13&&!(C.srcElement&&(C.srcElement.tagName.toLowerCase()=="textarea"))){var B;if(__nonMSDOMBrowser){B=document.getElementById(A)}else{B=document.all[A]}if(B&&typeof(B.click)!="undefined"){B.click();C.cancelBubble=true;if(C.stopPropagation){C.stopPropagation()}return false}}return true}function WebForm_GetScrollX(){if(__nonMSDOMBrowser){return window.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft}else{if(document.body){return document.body.scrollLeft}}}return 0}function WebForm_GetScrollY(){if(__nonMSDOMBrowser){return window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{if(document.body){return document.body.scrollTop}}}return 0}function WebForm_SaveScrollPositionSubmit(){if(__nonMSDOMBrowser){theForm.elements["__SCROLLPOSITIONY"].value=window.pageYOffset;theForm.elements["__SCROLLPOSITIONX"].value=window.pageXOffset}else{theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX();theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY()}if((typeof(this.oldSubmit)!="undefined")&&(this.oldSubmit!=null)){return this.oldSubmit()}return true}function WebForm_SaveScrollPositionOnSubmit(){theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX();theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY();if((typeof(this.oldOnSubmit)!="undefined")&&(this.oldOnSubmit!=null)){return this.oldOnSubmit()}return true}function WebForm_RestoreScrollPosition(){if(__nonMSDOMBrowser){window.scrollTo(theForm.elements["__SCROLLPOSITIONX"].value,theForm.elements["__SCROLLPOSITIONY"].value)}else{window.scrollTo(theForm.__SCROLLPOSITIONX.value,theForm.__SCROLLPOSITIONY.value)}if((typeof(theForm.oldOnLoad)!="undefined")&&(theForm.oldOnLoad!=null)){return theForm.oldOnLoad()}return true}function WebForm_TextBoxKeyHandler(B){if(B.keyCode==13){var A;if(__nonMSDOMBrowser){A=B.target}else{A=B.srcElement}if((typeof(A)!="undefined")&&(A!=null)){if(typeof(A.onchange)!="undefined"){A.onchange();B.cancelBubble=true;if(B.stopPropagation){B.stopPropagation()}return false}}}return true}function WebForm_AppendToClassName(A,C){var B=A.className;if(B){if(B.charAt(B.length-1)!=" "){B+=" "}B+=C}else{B=C}A.className=B}function WebForm_RemoveClassName(B,A){var C=B.className;if(C){if(C.substring(C.length-A.length-1,C.length)==" "+A){B.className=C.substring(0,C.length-A.length-1);return}if(C==A){B.className="";return}var D=C.indexOf(" "+A+" ");if(D!=-1){B.className=C.substring(0,D)+C.substring(D+A.length+2,C.length);return}if(C.substring(0,A.length)==A+" "){B.className=C.substring(A.length+1,C.length)}}}function WebForm_GetElementById(A){if(document.getElementById){return document.getElementById(A)}else{if(document.all){return document.all[A]}else{return null}}}function WebForm_GetElementByTagName(C,A){var B=WebForm_GetElementsByTagName(C,A);if(B&&B.length>0){return B[0]}else{return null}}function WebForm_GetElementsByTagName(B,A){if(B&&A){if(B.getElementsByTagName){return B.getElementsByTagName(A)}if(B.all&&B.all.tags){return B.all.tags(A)}}return null}function WebForm_GetElementDir(A){if(A){if(A.dir){return A.dir}return WebForm_GetElementDir(A.parentNode)}return"ltr"}function WebForm_GetElementPosition(B){var A=new Object();A.x=0;A.y=0;A.width=0;A.height=0;if(B.offsetParent){A.x=B.offsetLeft;A.y=B.offsetTop;var C=B.offsetParent;while(C){A.x+=C.offsetLeft;A.y+=C.offsetTop;var D=C.tagName.toLowerCase();if(D!="table"&&D!="body"&&D!="html"&&D!="div"&&C.clientTop&&C.clientLeft){A.x+=C.clientLeft;A.y+=C.clientTop}C=C.offsetParent}}else{if(B.left&&B.top){A.x=B.left;A.y=B.top}else{if(B.x){A.x=B.x}if(B.y){A.y=B.y}}}if(B.offsetWidth&&B.offsetHeight){A.width=B.offsetWidth;A.height=B.offsetHeight}else{if(B.style&&B.style.pixelWidth&&B.style.pixelHeight){A.width=B.style.pixelWidth;A.height=B.style.pixelHeight}}return A}function WebForm_GetParentByTagName(B,A){var C=B.parentNode;var D=A.toUpperCase();while(C&&(C.tagName.toUpperCase()!=D)){C=C.parentNode?C.parentNode:C.parentElement}return C}function WebForm_SetElementHeight(A,B){if(A&&A.style){A.style.height=B+"px"}}function WebForm_SetElementWidth(A,B){if(A&&A.style){A.style.width=B+"px"}}function WebForm_SetElementX(A,B){if(A&&A.style){A.style.left=B+"px"}}function WebForm_SetElementY(A,B){if(A&&A.style){A.style.top=B+"px"}};