﻿function WebForm_PostBackOptions(d,b,f,a,g,e,c){this.eventTarget=d;this.eventArgument=b;this.validation=f;this.validationGroup=a;this.actionUrl=g;this.trackFocus=e;this.clientSubmit=c}function WebForm_DoPostBackWithOptions(a){var d=true;if(a.validation)if(typeof Page_ClientValidate=="function")d=Page_ClientValidate(a.validationGroup);if(d){if(typeof a.actionUrl!="undefined"&&a.actionUrl!=null&&a.actionUrl.length>0)theForm.action=a.actionUrl;if(a.trackFocus){var c=theForm.elements.__LASTFOCUS;if(typeof c!="undefined"&&c!=null)if(typeof document.activeElement=="undefined")c.value=a.eventTarget;else{var b=document.activeElement;if(typeof b!="undefined"&&b!=null)if(typeof b.id!="undefined"&&b.id!=null&&b.id.length>0)c.value=b.id;else if(typeof b.name!="undefined")c.value=b.name}}}a.clientSubmit&&__doPostBack(a.eventTarget,a.eventArgument)}var __pendingCallbacks=[],__synchronousCallBackIndex=-1;function WebForm_DoCallback(k,i,p,r,o,m){var l=__theFormPostData+"__CALLBACKID="+WebForm_EncodeCallback(k)+"&__CALLBACKPARAM="+WebForm_EncodeCallback(i);if(theForm.__EVENTVALIDATION)l+="&__EVENTVALIDATION="+WebForm_EncodeCallback(theForm.__EVENTVALIDATION.value);var c,s;try{c=new XMLHttpRequest}catch(s){try{c=new ActiveXObject("Microsoft.XMLHTTP")}catch(s){}}var h=true;try{h=c&&c.setRequestHeader}catch(s){}var d={};d.eventCallback=p;d.context=r;d.errorCallback=o;d.async=m;var f=WebForm_FillFirstAvailableSlot(__pendingCallbacks,d);if(!m){if(__synchronousCallBackIndex!=-1)__pendingCallbacks[__synchronousCallBackIndex]=null;__synchronousCallBackIndex=f}if(h){c.onreadystatechange=WebForm_CallbackComplete;d.xmlRequest=c;var b=theForm.action||document.location.pathname,j=b.indexOf("#");if(j!==-1)b=b.substr(0,j);if(!__nonMSDOMBrowser){var g=b.indexOf("?");if(g!==-1){var n=b.substr(0,g);if(n.indexOf("%")===-1)b=encodeURI(n)+b.substr(g)}else if(b.indexOf("%")===-1)b=encodeURI(b)}c.open("POST",b,true);c.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");c.send(l);return}d.xmlRequest={};var e="__CALLBACKFRAME"+f,a=document.frames[e];if(!a){a=document.createElement("IFRAME");a.width="1";a.height="1";a.frameBorder="0";a.id=e;a.name=e;a.style.position="absolute";a.style.top="-100px";a.style.left="-100px";try{if(callBackFrameUrl)a.src=callBackFrameUrl}catch(s){}document.body.appendChild(a)}var q=window.setInterval(function(){a=document.frames[e];if(a&&a.document){window.clearInterval(q);a.document.write("");a.document.close();a.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"></form></body></html>');a.document.close();a.document.forms[0].action=theForm.action;for(var m=__theFormPostCollection.length,j,l=0;l<m;l++){j=__theFormPostCollection[l];if(j){var h=a.document.createElement("INPUT");h.type="hidden";h.name=j.name;h.value=j.value;a.document.forms[0].appendChild(h)}}var g=a.document.createElement("INPUT");g.type="hidden";g.name="__CALLBACKID";g.value=k;a.document.forms[0].appendChild(g);var d=a.document.createElement("INPUT");d.type="hidden";d.name="__CALLBACKPARAM";d.value=i;a.document.forms[0].appendChild(d);if(theForm.__EVENTVALIDATION){var b=a.document.createElement("INPUT");b.type="hidden";b.name="__EVENTVALIDATION";b.value=theForm.__EVENTVALIDATION.value;a.document.forms[0].appendChild(b)}var c=a.document.createElement("INPUT");c.type="hidden";c.name="__CALLBACKINDEX";c.value=f;a.document.forms[0].appendChild(c);a.document.forms[0].submit()}},10)}function WebForm_CallbackComplete(){for(var a=0;a<__pendingCallbacks.length;a++){callbackObject=__pendingCallbacks[a];if(callbackObject&&callbackObject.xmlRequest&&callbackObject.xmlRequest.readyState==4){if(!__pendingCallbacks[a].async)__synchronousCallBackIndex=-1;__pendingCallbacks[a]=null;var c="__CALLBACKFRAME"+a,b=document.getElementById(c);b&&b.parentNode.removeChild(b);WebForm_ExecuteCallback(callbackObject)}}}function WebForm_ExecuteCallback(a){var b=a.xmlRequest.responseText;if(b.charAt(0)=="s")typeof a.eventCallback!="undefined"&&a.eventCallback!=null&&a.eventCallback(b.substring(1),a.context);else if(b.charAt(0)=="e")typeof a.errorCallback!="undefined"&&a.errorCallback!=null&&a.errorCallback(b.substring(1),a.context);else{var d=b.indexOf("|");if(d!=-1){var e=parseInt(b.substring(0,d));if(!isNaN(e)){var f=b.substring(d+1,d+e+1);if(f!=""){var c=theForm.__EVENTVALIDATION;if(!c){c=document.createElement("INPUT");c.type="hidden";c.name="__EVENTVALIDATION";theForm.appendChild(c)}c.value=f}typeof a.eventCallback!="undefined"&&a.eventCallback!=null&&a.eventCallback(b.substring(d+e+1),a.context)}}}}function WebForm_FillFirstAvailableSlot(b,c){for(var a=0;a<b.length;a++)if(!b[a])break;b[a]=c;return a}var __nonMSDOMBrowser=window.navigator.appName.toLowerCase().indexOf("explorer")==-1,__theFormPostData="",__theFormPostCollection=[],__callbackTextTypes=/^(text|password|hidden|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i;function WebForm_InitCallback(){for(var h=theForm.elements.length,a,d=0;d<h;d++){a=theForm.elements[d];var b=a.tagName.toLowerCase();if(b=="input"){var c=a.type;(__callbackTextTypes.test(c)||(c=="checkbox"||c=="radio")&&a.checked)&&a.id!="__EVENTVALIDATION"&&WebForm_InitCallbackAddField(a.name,a.value)}else if(b=="select")for(var g=a.options.length,e=0;e<g;e++){var f=a.options[e];f.selected==true&&WebForm_InitCallbackAddField(a.name,a.value)}else b=="textarea"&&WebForm_InitCallbackAddField(a.name,a.value)}}function WebForm_InitCallbackAddField(c,b){var a={};a.name=c;a.value=b;__theFormPostCollection[__theFormPostCollection.length]=a;__theFormPostData+=WebForm_EncodeCallback(c)+"="+WebForm_EncodeCallback(b)+"&"}function WebForm_EncodeCallback(a){return encodeURIComponent?encodeURIComponent(a):escape(a)}var __disabledControlArray=[];function WebForm_ReEnableControls(){if(typeof __enabledControlArray=="undefined")return false;for(var c=0,b=0;b<__enabledControlArray.length;b++){var a;if(__nonMSDOMBrowser)a=document.getElementById(__enabledControlArray[b]);else a=document.all[__enabledControlArray[b]];if(typeof a!="undefined"&&a!=null&&a.disabled==true){a.disabled=false;__disabledControlArray[c++]=a}}setTimeout("WebForm_ReDisableControls()",0);return true}function WebForm_ReDisableControls(){for(var a=0;a<__disabledControlArray.length;a++)__disabledControlArray[a].disabled=true}function WebForm_FireDefaultButton(b,d){if(b.keyCode==13){var a=b.srcElement||b.target;if(a&&a.tagName.toLowerCase()=="input"&&(a.type.toLowerCase()=="submit"||a.type.toLowerCase()=="button")||a.tagName.toLowerCase()=="a"&&a.href!=null&&a.href!=""||a.tagName.toLowerCase()=="textarea")return true;var c;if(__nonMSDOMBrowser)c=document.getElementById(d);else c=document.all[d];if(c&&typeof c.click!="undefined"){c.click();b.cancelBubble=true;b.stopPropagation&&b.stopPropagation();return false}}return true}function WebForm_GetScrollX(){return __nonMSDOMBrowser?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body?document.body.scrollLeft:0}function WebForm_GetScrollY(){return __nonMSDOMBrowser?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body?document.body.scrollTop: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()}return typeof this.oldSubmit!="undefined"&&this.oldSubmit!=null?this.oldSubmit():true}function WebForm_SaveScrollPositionOnSubmit(){theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX();theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY();return typeof this.oldOnSubmit!="undefined"&&this.oldOnSubmit!=null?this.oldOnSubmit():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);return typeof theForm.oldOnLoad!="undefined"&&theForm.oldOnLoad!=null?theForm.oldOnLoad():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;b.stopPropagation&&b.stopPropagation();return false}}return true}function WebForm_TrimString(a){return a.replace(/^\s+|\s+$/g,"")}function WebForm_AppendToClassName(b,a){var c=" "+WebForm_TrimString(b.className)+" ";a=WebForm_TrimString(a);var d=c.indexOf(" "+a+" ");if(d===-1)b.className=b.className===""?a:b.className+" "+a}function WebForm_RemoveClassName(d,b){var a=" "+WebForm_TrimString(d.className)+" ";b=WebForm_TrimString(b);var c=a.indexOf(" "+b+" ");if(c>=0)d.className=WebForm_TrimString(a.substring(0,c)+" "+a.substring(c+b.length+1,a.length))}function WebForm_GetElementById(a){return document.getElementById?document.getElementById(a):document.all?document.all[a]:null}function WebForm_GetElementByTagName(b,c){var a=WebForm_GetElementsByTagName(b,c);return a&&a.length>0?a[0]:null}function WebForm_GetElementsByTagName(a,b){if(a&&b){if(a.getElementsByTagName)return a.getElementsByTagName(b);if(a.all&&a.all.tags)return a.all.tags(b)}return null}function WebForm_GetElementDir(a){return a?a.dir?a.dir:WebForm_GetElementDir(a.parentNode):"ltr"}function WebForm_GetElementPosition(a){var b={};b.x=0;b.y=0;b.width=0;b.height=0;if(a.offsetParent){b.x=a.offsetLeft;b.y=a.offsetTop;var c=a.offsetParent;while(c){b.x+=c.offsetLeft;b.y+=c.offsetTop;var d=c.tagName.toLowerCase();if(d!="table"&&d!="body"&&d!="html"&&d!="div"&&c.clientTop&&c.clientLeft){b.x+=c.clientLeft;b.y+=c.clientTop}c=c.offsetParent}}else if(a.left&&a.top){b.x=a.left;b.y=a.top}else{if(a.x)b.x=a.x;if(a.y)b.y=a.y}if(a.offsetWidth&&a.offsetHeight){b.width=a.offsetWidth;b.height=a.offsetHeight}else if(a.style&&a.style.pixelWidth&&a.style.pixelHeight){b.width=a.style.pixelWidth;b.height=a.style.pixelHeight}return b}function WebForm_GetParentByTagName(c,d){var a=c.parentNode,b=d.toUpperCase();while(a&&a.tagName.toUpperCase()!=b)a=a.parentNode?a.parentNode:a.parentElement;return a}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"}var Page_ValidationVer="125",Page_IsValid=true,Page_BlockSubmit=false,Page_InvalidControlToBeFocused=null,Page_TextTypes=/^(text|password|file|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i;function ValidatorUpdateDisplay(a){if(typeof a.display=="string"){if(a.display=="None")return;if(a.display=="Dynamic"){a.style.display=a.isvalid?"none":"inline";return}}if(navigator.userAgent.indexOf("Mac")>-1&&navigator.userAgent.indexOf("MSIE")>-1)a.style.display="inline";a.style.visibility=a.isvalid?"hidden":"visible"}function ValidatorUpdateIsValid(){Page_IsValid=AllValidatorsValid(Page_Validators)}function AllValidatorsValid(a){if(typeof a!="undefined"&&a!=null)for(var b=0;b<a.length;b++)if(!a[b].isvalid)return false;return true}function ValidatorHookupControlID(c,b){if(typeof c!="string")return;var a=document.getElementById(c);if(typeof a!="undefined"&&a!=null)ValidatorHookupControl(a,b);else{b.isvalid=true;b.enabled=false}}function ValidatorHookupControl(a,b){if(typeof a.tagName!="string")return;if(a.tagName!="INPUT"&&a.tagName!="TEXTAREA"&&a.tagName!="SELECT"){for(var d=0;d<a.childNodes.length;d++)ValidatorHookupControl(a.childNodes[d],b);return}else{if(typeof a.Validators=="undefined"){a.Validators=[];var c;if(a.type=="radio")c="onclick";else{c="onchange";typeof b.focusOnError=="string"&&b.focusOnError=="t"&&ValidatorHookupEvent(a,"onblur","ValidatedControlOnBlur(event); ")}ValidatorHookupEvent(a,c,"ValidatorOnChange(event); ");Page_TextTypes.test(a.type)&&ValidatorHookupEvent(a,"onkeypress","event = event || window.event; if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; } ")}a.Validators[a.Validators.length]=b}}function ValidatorHookupEvent(c,b,d){var a=c[b];if(typeof a=="function"){a=a.toString();a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))}else a="";c[b]=new Function("event",d+" "+a)}function ValidatorGetValue(b){var a;a=document.getElementById(b);return typeof a.value=="string"?a.value:ValidatorGetValueRecursive(a)}function ValidatorGetValueRecursive(a){if(typeof a.value=="string"&&(a.type!="radio"||a.checked==true))return a.value;for(var b,c=0;c<a.childNodes.length;c++){b=ValidatorGetValueRecursive(a.childNodes[c]);if(b!="")return b}return""}function Page_ClientValidate(b){Page_InvalidControlToBeFocused=null;if(typeof Page_Validators=="undefined")return true;for(var a=0;a<Page_Validators.length;a++)ValidatorValidate(Page_Validators[a],b,null);ValidatorUpdateIsValid();ValidationSummaryOnSubmit(b);Page_BlockSubmit=!Page_IsValid;return Page_IsValid}function ValidatorCommonOnSubmit(){Page_InvalidControlToBeFocused=null;var a=!Page_BlockSubmit;if(typeof window.event!="undefined"&&window.event!=null)window.event.returnValue=a;Page_BlockSubmit=false;return a}function ValidatorEnable(a,b){a.enabled=b!=false;ValidatorValidate(a);ValidatorUpdateIsValid()}function ValidatorOnChange(b){b=b||window.event;Page_InvalidControlToBeFocused=null;var a;if(typeof b.srcElement!="undefined"&&b.srcElement!=null)a=b.srcElement;else a=b.target;var c;if(typeof a.Validators!="undefined")c=a.Validators;else if(a.tagName.toLowerCase()=="label"){a=document.getElementById(a.htmlFor);c=a.Validators}if(c)for(var d=0;d<c.length;d++)ValidatorValidate(c[d],null,b);ValidatorUpdateIsValid()}function ValidatedTextBoxOnKeyPress(a){a=a||window.event;if(a.keyCode==13){ValidatorOnChange(a);var b;if(typeof a.srcElement!="undefined"&&a.srcElement!=null)b=a.srcElement.Validators;else b=a.target.Validators;return AllValidatorsValid(b)}return true}function ValidatedControlOnBlur(b){b=b||window.event;var a;if(typeof b.srcElement!="undefined"&&b.srcElement!=null)a=b.srcElement;else a=b.target;if(typeof a!="undefined"&&a!=null&&Page_InvalidControlToBeFocused==a){a.focus();Page_InvalidControlToBeFocused=null}}function ValidatorValidate(a,b,c){a.isvalid=true;if((typeof a.enabled=="undefined"||a.enabled!=false)&&IsValidationGroupMatch(a,b))if(typeof a.evaluationfunction=="function"){a.isvalid=a.evaluationfunction(a);!a.isvalid&&Page_InvalidControlToBeFocused==null&&typeof a.focusOnError=="string"&&a.focusOnError=="t"&&ValidatorSetFocus(a,c)}ValidatorUpdateDisplay(a)}function ValidatorSetFocus(d,b){var a;if(typeof d.controlhookup=="string"){var c;if(typeof b!="undefined"&&b!=null)if(typeof b.srcElement!="undefined"&&b.srcElement!=null)c=b.srcElement;else c=b.target;if(typeof c!="undefined"&&c!=null&&typeof c.id=="string"&&c.id==d.controlhookup)a=c}if(typeof a=="undefined"||a==null)a=document.getElementById(d.controltovalidate);if(typeof a!="undefined"&&a!=null&&(a.tagName.toLowerCase()!="table"||typeof b=="undefined"||b==null)&&(a.tagName.toLowerCase()!="input"||a.type.toLowerCase()!="hidden")&&(typeof a.disabled=="undefined"||a.disabled==null||a.disabled==false)&&(typeof a.visible=="undefined"||a.visible==null||a.visible!=false)&&IsInVisibleContainer(a)){if(a.tagName.toLowerCase()=="table"&&(typeof __nonMSDOMBrowser=="undefined"||__nonMSDOMBrowser)||a.tagName.toLowerCase()=="span"){var f=a.getElementsByTagName("input"),e=f[f.length-1];if(e!=null)a=e}if(typeof a.focus!="undefined"&&a.focus!=null){a.focus();Page_InvalidControlToBeFocused=a}}}function IsInVisibleContainer(a){return typeof a.style!="undefined"&&(typeof a.style.display!="undefined"&&a.style.display=="none"||typeof a.style.visibility!="undefined"&&a.style.visibility=="hidden")?false:typeof a.parentNode!="undefined"&&a.parentNode!=null&&a.parentNode!=a?IsInVisibleContainer(a.parentNode):true}function IsValidationGroupMatch(c,a){if(typeof a=="undefined"||a==null)return true;var b="";if(typeof c.validationGroup=="string")b=c.validationGroup;return b==a}function ValidatorOnLoad(){if(typeof Page_Validators=="undefined")return;for(var val,i=0;i<Page_Validators.length;i++){val=Page_Validators[i];if(typeof val.evaluationfunction=="string")eval("val.evaluationfunction = "+val.evaluationfunction+";");if(typeof val.isvalid=="string")if(val.isvalid=="False"){val.isvalid=false;Page_IsValid=false}else val.isvalid=true;else val.isvalid=true;if(typeof val.enabled=="string")val.enabled=val.enabled!="False";typeof val.controltovalidate=="string"&&ValidatorHookupControlID(val.controltovalidate,val);typeof val.controlhookup=="string"&&ValidatorHookupControlID(val.controlhookup,val)}Page_ValidationActive=true}function ValidatorConvert(d,l,b){function p(a){var c=b.cutoffyear%100,d=b.cutoffyear-c;return a>c?d-100+a:d+a}var c,k,a,h;if(l=="Integer"){h=/^\s*[-\+]?\d+\s*$/;if(d.match(h)==null)return null;c=parseInt(d,10);return isNaN(c)?null:c}else if(l=="Double"){h=new RegExp("^\\s*([-\\+])?(\\d*)\\"+b.decimalchar+"?(\\d*)\\s*$");a=d.match(h);if(a==null)return null;if(a[2].length==0&&a[3].length==0)return null;k=(a[1]!=null?a[1]:"")+(a[2].length>0?a[2]:"0")+(a[3].length>0?"."+a[3]:"");c=parseFloat(k);return isNaN(c)?null:c}else if(l=="Currency"){var o=b.digits>0,n,m,j=parseInt(b.groupsize,10);if(!isNaN(j)&&j>0){n="{1,"+j+"}";m="{"+j+"}"}else n=m="+";h=new RegExp("^\\s*([-\\+])?((\\d"+n+"(\\"+b.groupchar+"\\d"+m+")+)|\\d*)"+(o?"\\"+b.decimalchar+"?(\\d{0,"+b.digits+"})":"")+"\\s*$");a=d.match(h);if(a==null)return null;if(a[2].length==0&&o&&a[5].length==0)return null;k=(a[1]!=null?a[1]:"")+a[2].replace(new RegExp("(\\"+b.groupchar+")","g"),"")+(o&&a[5].length>0?"."+a[5]:"");c=parseFloat(k);return isNaN(c)?null:c}else if(l=="Date"){var q=new RegExp("^\\s*((\\d{4})|(\\d{2}))([-/]|\\. ?)(\\d{1,2})\\4(\\d{1,2})\\.?\\s*$");a=d.match(q);var i,e,g;if(a!=null&&(typeof a[2]!="undefined"&&a[2].length==4||b.dateorder=="ymd")){i=a[6];e=a[5];g=a[2].length==4?a[2]:p(parseInt(a[3],10))}else{if(b.dateorder=="ymd")return null;var r=new RegExp("^\\s*(\\d{1,2})([-/]|\\. ?)(\\d{1,2})(?:\\s|\\2)((\\d{4})|(\\d{2}))(?:\\sг\\.|\\.)?\\s*$");a=d.match(r);if(a==null)return null;if(b.dateorder=="mdy"){i=a[3];e=a[1]}else{i=a[1];e=a[3]}g=typeof a[5]!="undefined"&&a[5].length==4?a[5]:p(parseInt(a[6],10))}e-=1;var f=new Date(g,e,i);g<100&&f.setFullYear(g);return typeof f=="object"&&g==f.getFullYear()&&e==f.getMonth()&&i==f.getDate()?f.valueOf():null}else return d.toString()}function ValidatorCompare(f,g,e,c){var d=c.type,a,b;if((a=ValidatorConvert(f,d,c))==null)return false;if(e=="DataTypeCheck")return true;if((b=ValidatorConvert(g,d,c))==null)return true;switch(e){case"NotEqual":return a!=b;case"GreaterThan":return a>b;case"GreaterThanEqual":return a>=b;case"LessThan":return a<b;case"LessThanEqual":return a<=b;default:return a==b}}function CompareValidatorEvaluateIsValid(a){var d=ValidatorGetValue(a.controltovalidate);if(ValidatorTrim(d).length==0)return true;var b="";if(typeof a.controltocompare!="string"||typeof document.getElementById(a.controltocompare)=="undefined"||null==document.getElementById(a.controltocompare)){if(typeof a.valuetocompare=="string")b=a.valuetocompare}else b=ValidatorGetValue(a.controltocompare);var c="Equal";if(typeof a.operator=="string")c=a.operator;return ValidatorCompare(d,b,c,a)}function CustomValidatorEvaluateIsValid(val){var value="";if(typeof val.controltovalidate=="string"){value=ValidatorGetValue(val.controltovalidate);if(ValidatorTrim(value).length==0&&(typeof val.validateemptytext!="string"||val.validateemptytext!="true"))return true}var args={Value:value,IsValid:true};if(typeof val.clientvalidationfunction=="string")eval(val.clientvalidationfunction+"(val, args) ;");return args.IsValid}function RegularExpressionValidatorEvaluateIsValid(c){var a=ValidatorGetValue(c.controltovalidate);if(ValidatorTrim(a).length==0)return true;var d=new RegExp(c.validationexpression),b=d.exec(a);return b!=null&&a==b[0]}function ValidatorTrim(b){var a=b.match(/^\s*(\S+(\s+\S+)*)\s*$/);return a==null?"":a[1]}function RequiredFieldValidatorEvaluateIsValid(a){return ValidatorTrim(ValidatorGetValue(a.controltovalidate))!=ValidatorTrim(a.initialvalue)}function RangeValidatorEvaluateIsValid(a){var b=ValidatorGetValue(a.controltovalidate);return ValidatorTrim(b).length==0?true:ValidatorCompare(b,a.minimumvalue,"GreaterThanEqual",a)&&ValidatorCompare(b,a.maximumvalue,"LessThanEqual",a)}function ValidationSummaryOnSubmit(k){if(typeof Page_ValidationSummaries=="undefined")return;for(var b,c,d,e,h,f,g,j=0;j<Page_ValidationSummaries.length;j++){b=Page_ValidationSummaries[j];b.style.display="none";if(!Page_IsValid&&IsValidationGroupMatch(b,k)){var a;if(b.showsummary!="False"){b.style.display="";if(typeof b.displaymode!="string")b.displaymode="BulletList";switch(b.displaymode){case"List":d="<br>";e="";h="";f="<br>";g="";break;case"BulletList":default:d="";e="<ul>";h="<li>";f="</li>";g="</ul>";break;case"SingleParagraph":d=" ";e="";h="";f=" ";g="<br>"}c="";if(typeof b.headertext=="string")c+=b.headertext+d;c+=e;for(a=0;a<Page_Validators.length;a++)if(!Page_Validators[a].isvalid&&typeof Page_Validators[a].errormessage=="string")c+=h+Page_Validators[a].errormessage+f;c+=g;b.innerHTML=c;window.scrollTo(0,0)}if(b.showmessagebox=="True"){c="";if(typeof b.headertext=="string")c+=b.headertext+"\r\n";var i=Page_Validators.length-1;for(a=0;a<=i;a++)if(!Page_Validators[a].isvalid&&typeof Page_Validators[a].errormessage=="string")switch(b.displaymode){case"List":c+=Page_Validators[a].errormessage;if(a<i)c+="\r\n";break;case"BulletList":default:c+="- "+Page_Validators[a].errormessage;if(a<i)c+="\r\n";break;case"SingleParagraph":c+=Page_Validators[a].errormessage+" "}alert(c)}}}}
