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