var __aspxInvalidDimension=-10000;var __aspxInvalidPosition=-10000;var __aspxAbsoluteLeftPosition=-10000;var __aspxAbsoluteRightPosition=10000;var __aspxMenuZIndex=21998;var __aspxPopupControlZIndex=11998;var __aspxCheckSizeCorrectedFlag=true;var __aspxCallbackSeparator=":";var __aspxItemIndexSeparator="i";var __aspxCallbackResultPrefix="/*^^^DX^^^*/";var __aspxItemClassName="dxi";var __aspxAccessibilityEmptyUrl="javascript:;";var __aspxHTMLLoaded=false;var __aspxEmptyAttributeValue=new Object();var __aspxEmptyCachedValue=new Object();var __aspxCachedRules=new Object();var __aspxDateFormatInfo={twoDigitYearMax:2029,ts:":",ds:"/",am:"AM",pm:"PM"};function _aspxGetInvariantDateString(date){if(!date)return "01/01/0001";var day=date.getDate();var month=date.getMonth()+1;var year=date.getFullYear();var result="";if(month<10)result+="0";result+=month.toString()+"/";if(day<10)result+="0";result+=day.toString()+"/"+year.toString();return result;} function _aspxGetInvariantDateTimeString(date){var dateTimeString=_aspxGetInvariantDateString(date);var time={h:date.getHours(),m:date.getMinutes(),s:date.getSeconds()};for(var key in time){var str=time[key].toString();if(str.length<2)str="0"+str;time[key]=str;} dateTimeString+=" "+time.h+":"+time.m+":"+time.s;var msec=date.getMilliseconds();if(msec>0)dateTimeString+="."+msec.toString();return dateTimeString;} var ASPxKey={F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Ctrl:17,Shift:16,Alt:18,Enter:13,Home:36,End:35,Left:37,Right:39,Up:38,Down:40,PageUp:33,PageDown:34,Esc:27,Space:32,Tab:9,Backspace:8,Delete:46,Insert:45,ContextMenu:93,Windows:91};var __aspxServerForm=null;function _aspxGetServerForm(){if(typeof(window.__aspxServerFormID)=="undefined")return null;if(!_aspxIsExistsElement(__aspxServerForm))__aspxServerForm=_aspxGetElementById(window.__aspxServerFormID);return __aspxServerForm;} function _aspxGetActiveElement(){try{return document.activeElement;} catch(e){}return null;} var __aspxAgent=navigator.userAgent.toLowerCase();var __aspxOpera=(__aspxAgent.indexOf("opera")>-1);var __aspxOpera9=(__aspxAgent.indexOf("opera/9")>-1||__aspxAgent.indexOf("opera 9")>-1);var __aspxOperaVersion=__aspxOpera?parseFloat(__aspxAgent.slice("opera/".length)):-1;var __aspxOperaLaterThan9_5=__aspxOperaVersion>=9.6;var __aspxSafariFamily=__aspxAgent.indexOf("safari")>-1;var __aspxChrome=__aspxSafariFamily&&__aspxAgent.indexOf("chrome/")>-1;var __aspxSafari=__aspxSafariFamily&&!__aspxChrome;var __aspxSafari3=__aspxSafari&&__aspxAgent.indexOf("version/3")>-1;var __aspxSafariMacOS=__aspxSafari&&__aspxAgent.indexOf("macintosh")>-1;var __aspxIE=(__aspxAgent.indexOf("msie")>-1&&!__aspxOpera);var __aspxIE55=(__aspxAgent.indexOf("5.5")>-1&&__aspxIE);var __aspxIE7=(__aspxAgent.indexOf("7.")>-1&&__aspxIE);var __aspxNotIEOperaSafari=!__aspxSafariFamily&&!__aspxIE&&!__aspxOpera;var __aspxFirefox=(__aspxAgent.indexOf("firefox")>-1)&&__aspxNotIEOperaSafari;var __aspxFirefox2=(__aspxAgent.indexOf("firefox/2.")>-1)&&__aspxNotIEOperaSafari;var __aspxFirefox3=(__aspxAgent.indexOf("firefox/3.")>-1)&&__aspxNotIEOperaSafari;var __aspxMozilla=(__aspxAgent.indexOf("mozilla")>-1)&&__aspxNotIEOperaSafari;var __aspxNetscape=(__aspxAgent.indexOf("netscape")>-1)&&__aspxNotIEOperaSafari;var __aspxNS=__aspxFirefox||__aspxMozilla||__aspxNetscape;function _aspxArrayPush(array,element){if(_aspxIsExists(array.push))array.push(element);else array[array.length]=element;} function _aspxArrayInsert(array,element,position){if(0<=position&&positionposition;i--)array[i]=array[i-1];array[position]=element;}else _aspxArrayPush(array,element);} function _aspxArrayRemove(array,element){var index=_aspxArrayIndexOf(array,element);if(index>-1)_aspxArrayRemoveAt(array,index);} function _aspxArrayRemoveAt(array,index){if(index>=0&&index0)array.pop();} function _aspxArrayIndexOf(array,element){for(var i=0;i>1));var compareResult=binarySearchComparer(array[middle],value);if(compareResult==0)return middle;if(compareResult<0)startIndex=middle+1;else endIndex=middle-1;}return-(startIndex+1);} function _aspxApplyReplacement(text,replecementTable){for(var i=0;i/g,'>']]);} function _aspxDecodeHtml(html){return _aspxApplyReplacement(html,[[/>/g,'>'],[/>x;/g,'>'],[/</g,'<'],[/<x;/g,'<'],[/&/g,'&'],[/&x;/g,'&'],[/"/g,'"'],[/"x;/g,'"']]);} function _aspxParseShortcutString(shortcutString){var isCtrlKey=false;var isShiftKey=false;var isAltKey=false;var keyCode=null;var shcKeys=shortcutString.toString().split("+");if(shcKeys.length>0){for(var i=0;i-1)window.clearTimeout(timerID);return-1;} function _aspxSetInterval(callString,interval){return window.setInterval(callString,interval);} function _aspxClearInterval(timerID){if(timerID>-1)window.clearInterval(timerID);return-1;} function _aspxSetInnerHtml(element,html){element.innerHTML=" "+html;element.removeChild(element.firstChild);} function _aspxGetInnerText(container){if(__aspxMozilla)return container.textContent;else if(__aspxSafariFamily){var filter=_aspxGetHtml2PlainTextFilter();filter.innerHTML=container.innerHTML;_aspxSetElementDisplay(filter,true);var innerText=filter.innerText;_aspxSetElementDisplay(filter,false);return innerText;}else return container.innerText;} var __aspxHtml2PlainTextFilter=null;function _aspxGetHtml2PlainTextFilter(){if(__aspxHtml2PlainTextFilter==null){__aspxHtml2PlainTextFilter=document.createElement("DIV");__aspxHtml2PlainTextFilter.style.width="0";__aspxHtml2PlainTextFilter.style.height="0";_aspxSetElementDisplay(__aspxHtml2PlainTextFilter,false);document.body.appendChild(__aspxHtml2PlainTextFilter);}return __aspxHtml2PlainTextFilter;} function _aspxCreateHiddenField(name,id){var input=document.createElement("INPUT");input.setAttribute("type","hidden");if(_aspxIsExists(name))input.setAttribute("name",name);if(_aspxIsExists(id))input.setAttribute("id",id);return input;} function _aspxCloneObject(srcObject){if(typeof(srcObject)!='object'||srcObject==null)return srcObject;var newObject=new Object();for(var i in srcObject)newObject[i]=srcObject[i];return newObject;} function _aspxIsExistsType(type){return type!="undefined";} function _aspxIsExists(obj){return(typeof(obj)!="undefined")&&(obj!=null);} function _aspxIsFunction(obj){return typeof(obj)=="function";} function _aspxGetDefinedValue(value,defaultValue){return(typeof(value)!="undefined")?value:defaultValue;} function _aspxGetKeyCode(srcEvt){return __aspxNS?srcEvt.which:srcEvt.keyCode;} function _aspxSetInputSelection(input,startPos,endPos){startPos=_aspxGetDefinedValue(startPos,0);endPos=_aspxGetDefinedValue(endPos,input.value.length);if(__aspxIE){var range=input.createTextRange();range.collapse(true);range.moveStart("character",startPos);range.moveEnd("character",endPos-startPos);range.select();}else input.setSelectionRange(startPos,endPos);} function _aspxGetSelectionInfo(input){var start,end;if(__aspxIE){var range=document.selection.createRange();var rangeCopy=range.duplicate();range.move('character',-input.value.length);range.setEndPoint('EndToStart',rangeCopy);start=range.text.length;end=start+rangeCopy.text.length;}else{start=input.selectionStart;end=input.selectionEnd;}return{startPos:start,endPos:end};} function _aspxHasInputSelection(input){var selectionInfo=_aspxGetSelectionInfo(input);return selectionInfo.startPos==selectionInfo.endPos;} function _aspxPreventElementDragAndSelect(element,isSkipMouseMove){if(__aspxIE){_aspxAttachEventToElement(element,"selectstart",new function(){return false;});if(!isSkipMouseMove)_aspxAttachEventToElement(element,"mousemove",_aspxClearSelectionOnMouseMove);_aspxAttachEventToElement(element,"dragstart",_aspxPreventDragStart);}} function _aspxSetElementAsUnselectable(element,isWithChild){if(_aspxIsExists(element)&&(element.nodeType==1)){element.unselectable="on";if(__aspxNS)element.onmousedown=new function(){return false;};if(isWithChild===true){for(var j=0;j-1)return element;} element=element.parentNode;}return null;} function _aspxGetElementsByPartialId(element,partialName,list){if(!_aspxIsExists(element.id))return;if(element.id.indexOf(partialName)>-1){list.push(element);}for(var i=0;i"+element.innerHTML+"");_aspxRemoveElement(element);}else{var docFragment=element.ownerDocument.createDocumentFragment();var newElem=element.ownerDocument.createElement(newTagName);docFragment.appendChild(newElem);for(var i=0;i"+element.outerHTML+"");wrapElement=element.ownerDocument.getElementById(id);_aspxRemoveElement(element);_aspxRemoveAttribute(wrapElement,"id");}else{var docFragment=element.ownerDocument.createDocumentFragment();wrapElement=element.ownerDocument.createElement(newElementTagName);docFragment.appendChild(wrapElement);wrapElement.appendChild(element.cloneNode(true));element.parentNode.replaceChild(docFragment,element);}return wrapElement;} function _aspxGetEvent(evt){return(typeof(event)!="undefined"&&event!=null)?event:evt;} function _aspxPreventEvent(evt){if(__aspxNS)evt.preventDefault();else evt.returnValue=false;return false;} function _aspxPreventEventAndBubble(evt){_aspxPreventEvent(evt);if(__aspxNS)evt.stopPropagation();evt.cancelBubble=true;return false;} function _aspxCancelBubble(evt){evt.cancelBubble=true;return false;} function _aspxGetEventSource(evt){evt=_aspxGetEvent(evt);if(!_aspxIsExists(evt))return null;return __aspxIE?evt.srcElement:evt.target;} function _aspxGetEventX(evt){return evt.clientX-_aspxGetIEDocumentClientOffsetInternal(true)+((__aspxSafari&&!__aspxSafari3)?0:_aspxGetDocumentScrollLeft());} function _aspxGetEventY(evt){return evt.clientY-_aspxGetIEDocumentClientOffsetInternal(false)+((__aspxSafari&&!__aspxSafari3)?0:_aspxGetDocumentScrollTop());} function _aspxGetIEDocumentClientOffset(IsX){return 0;} function _aspxGetIEDocumentClientOffsetInternal(IsX){var clientOffset=0;if(__aspxIE){if(_aspxIsExists(document.documentElement))clientOffset=IsX?document.documentElement.clientLeft:document.documentElement.clientTop;if(clientOffset==0&&_aspxIsExists(document.body))var clientOffset=IsX?document.body.clientLeft:document.body.clientTop;}return clientOffset;} function _aspxGetIsLeftButtonPressed(evt){evt=_aspxGetEvent(evt);if(!_aspxIsExists(evt))return false;if(__aspxIE)return evt.button==1;else if(__aspxNS||__aspxSafariFamily)return evt.which==1;else if(__aspxOpera)return evt.button==0;return true;} function _aspxGetWheelDelta(evt){var ret=__aspxNS?-evt.detail:evt.wheelDelta;if(__aspxOpera&&!__aspxOpera9)ret=-ret;return ret;} function _aspxDelCookie(name){_aspxSetCookieInternal(name,"",new Date(1970,1,1));} function _aspxGetCookie(name){var cookies=document.cookie.split(';');for(var i=0;i-1;return style.direction.toUpperCase().indexOf("RTL")>-1;} function _aspxCreateStyleSheetInDocument(doc){if(__aspxIE)return doc.createStyleSheet();else{var styleSheet=doc.createElement("STYLE");_aspxGetChildByTagName(doc,"HEAD",0).appendChild(styleSheet);return doc.styleSheets[doc.styleSheets.length-1];}} function _aspxCreateStyleSheet(){return _aspxCreateStyleSheetInDocument(document);} function _aspxGetStyleSheetRules(styleSheet){try{return __aspxIE?styleSheet.rules:styleSheet.cssRules;} catch(e){return null;}} function _aspxGetStyleSheetRule(className){if(_aspxIsExists(__aspxCachedRules[className])){if(__aspxCachedRules[className]!=__aspxEmptyCachedValue)return __aspxCachedRules[className];return null;}for(var i=0;i0&&rules.length>=index){if(__aspxIE)styleSheet.removeRule(index);else styleSheet.deleteRule(index);}} function _aspxAddStyleSheetRule(styleSheet,selector,cssText){if(!_aspxIsExists(cssText)||cssText=="")return;if(__aspxIE)styleSheet.addRule(selector,cssText);else styleSheet.insertRule(selector+" { "+cssText+" }",styleSheet.cssRules.length);} function _aspxGetPointerCursor(){return __aspxIE?"hand":"pointer";} function _aspxSetPointerCursor(element){if(element.style.cursor=="")element.style.cursor=_aspxGetPointerCursor();} var _aspxWebKit3TDRealInfo={GetOffsetTop:function(tdElement){switch(_aspxGetCurrentStyle(tdElement).verticalAlign){case "middle":return Math.round(tdElement.offsetTop-(tdElement.offsetHeight-tdElement.clientHeight)/2+tdElement.clientTop);case "bottom":return tdElement.offsetTop-tdElement.offsetHeight+tdElement.clientHeight+tdElement.clientTop;}return tdElement.offsetTop;},GetClientHeight:function(tdElement){var valign=_aspxGetCurrentStyle(tdElement).verticalAlign;switch(valign){case "middle":return tdElement.clientHeight+tdElement.offsetTop*2;case "top":return tdElement.offsetHeight-tdElement.clientTop*2;case "bottom":return tdElement.clientHeight+tdElement.offsetTop;}return tdElement.clientHeight;}} function _aspxGetIsValidPosition(pos){return pos!=__aspxInvalidPosition&&pos!=-__aspxInvalidPosition;} function _aspxGetAbsoluteX(curEl){return _aspxGetAbsolutePositionX(curEl);} function _aspxGetAbsoluteY(curEl){return _aspxGetAbsolutePositionY(curEl);} function _aspxSetAbsoluteX(element,x){element.style.left=_aspxPrepareClientPosForElement(x,element,true)+"px";} function _aspxSetAbsoluteY(element,y){element.style.top=_aspxPrepareClientPosForElement(y,element,false)+"px";} function _aspxGetAbsolutePositionX(element){if(__aspxIE)return _aspxGetAbsolutePositionX_IE(element);else if(__aspxFirefox3)return _aspxGetAbsolutePositionX_FF3(element);else if(__aspxOpera)return _aspxGetAbsolutePositionX_Opera(element);else if(__aspxNS&&!__aspxFirefox3)return _aspxGetAbsolutePositionX_NS(element);else if(__aspxSafariFamily)return _aspxGetAbsolutePositionX_Safari(element);else return _aspxGetAbsolutePositionX_Other(element);} function _aspxGetAbsolutePositionX_Opera(curEl){var isFirstCycle=true;var pos=_aspxGetAbsoluteOffsetX_OperaFFSafari(curEl);while(curEl!=null){pos+=curEl.offsetLeft;if(!isFirstCycle)pos-=curEl.scrollLeft;curEl=curEl.offsetParent;isFirstCycle=false;} pos+=document.body.scrollLeft;return pos;} function _aspxGetAbsolutePositionX_IE(element){if(element==null||__aspxIE&&element.parentNode==null)return 0;return element.getBoundingClientRect().left+_aspxGetDocumentScrollLeft()-_aspxGetIEDocumentClientOffsetInternal(true);} function _aspxGetAbsolutePositionX_FF3(element){if(element==null)return 0;var x=element.getBoundingClientRect().left+_aspxGetDocumentScrollLeft()-_aspxGetIEDocumentClientOffsetInternal(true);return Math.round(x);} function _aspxGetAbsolutePositionX_NS(curEl){var pos=_aspxGetAbsoluteOffsetX_OperaFFSafari(curEl);var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetLeft;if(!isFirstCycle&&curEl.offsetParent!=null)pos-=curEl.scrollLeft;if(!isFirstCycle&&__aspxFirefox){var style=_aspxGetCurrentStyle(curEl);if(curEl.tagName=="DIV"&&style.overflow!="visible")pos+=_aspxPxToInt(style.borderLeftWidth);} isFirstCycle=false;curEl=curEl.offsetParent;}return pos;} function _aspxGetAbsolutePositionX_Safari(curEl){var pos=_aspxGetAbsoluteOffsetX_OperaFFSafari(curEl);var isSafari3OrChrome=__aspxSafari3||__aspxChrome;if(curEl!=null){var isFirstCycle=true;if(isSafari3OrChrome&&curEl.tagName=="TD"){pos+=curEl.offsetLeft;curEl=curEl.offsetParent;isFirstCycle=false;}while(curEl!=null){pos+=curEl.offsetLeft;if(isSafari3OrChrome&&!isFirstCycle&&(curEl.tagName=="TD"||curEl.tagName=="TABLE"))pos+=curEl.clientLeft;isFirstCycle=false;curEl=curEl.offsetParent;}}return pos;} function _aspxGetAbsoluteOffsetX_OperaFFSafari(curEl){var pos=0;var isFirstCycle=true;while(curEl!=null){if(curEl.tagName=="BODY")break;var style=_aspxGetCurrentStyle(curEl);if(!__aspxSafariFamily&&style.position=="absolute")break;if(!isFirstCycle&&curEl.tagName=="DIV"&&(__aspxSafariFamily||style.position==""||style.position=="static"))pos-=curEl.scrollLeft;curEl=curEl.parentNode;isFirstCycle=false;}return pos;} function _aspxGetAbsolutePositionX_Other(curEl){var pos=0;var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetLeft;if(!isFirstCycle&&curEl.offsetParent!=null)pos-=curEl.scrollLeft;isFirstCycle=false;curEl=curEl.offsetParent;}return pos;} function _aspxGetAbsolutePositionY(element){if(__aspxIE)return _aspxGetAbsolutePositionY_IE(element);else if(__aspxFirefox3)return _aspxGetAbsolutePositionY_FF3(element);else if(__aspxOpera)return _aspxGetAbsolutePositionY_Opera(element);else if(__aspxNS&&!__aspxFirefox3)return _aspxGetAbsolutePositionY_NS(element);else if(__aspxSafariFamily)return _aspxGetAbsolutePositionY_Safari(element);else return _aspxGetAbsolutePositionY_Other(element);} function _aspxGetAbsolutePositionY_Opera(curEl){var isFirstCycle=true;if(curEl&&curEl.tagName=="TR"&&curEl.cells.length>0)curEl=curEl.cells[0];var pos=_aspxGetAbsoluteOffsetY_OperaFFSafari(curEl);while(curEl!=null){pos+=curEl.offsetTop;if(!isFirstCycle)pos-=curEl.scrollTop;curEl=curEl.offsetParent;isFirstCycle=false;} pos+=document.body.scrollTop;return pos;} function _aspxGetAbsolutePositionY_IE(element){if(element==null||__aspxIE&&element.parentNode==null)return 0;return element.getBoundingClientRect().top+_aspxGetDocumentScrollTop()-_aspxGetIEDocumentClientOffsetInternal(false);} function _aspxGetAbsolutePositionY_FF3(element){if(element==null)return 0;var y=element.getBoundingClientRect().top+_aspxGetDocumentScrollTop()-_aspxGetIEDocumentClientOffsetInternal(false);return Math.round(y);} function _aspxGetAbsolutePositionY_NS(curEl){var pos=_aspxGetAbsoluteOffsetY_OperaFFSafari(curEl);var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetTop;if(!isFirstCycle&&curEl.offsetParent!=null)pos-=curEl.scrollTop;if(!isFirstCycle&&__aspxFirefox){var style=_aspxGetCurrentStyle(curEl);if(curEl.tagName=="DIV"&&style.overflow!="visible")pos+=_aspxPxToInt(style.borderTopWidth);} isFirstCycle=false;curEl=curEl.offsetParent;}return pos;} function _aspxGetAbsolutePositionY_Safari(curEl){var pos=_aspxGetAbsoluteOffsetY_OperaFFSafari(curEl);var isSafari3OrChrome=__aspxSafari3||__aspxChrome;if(curEl!=null){var isFirstCycle=true;if(isSafari3OrChrome&&curEl.tagName=="TD"){pos+=_aspxWebKit3TDRealInfo.GetOffsetTop(curEl);curEl=curEl.offsetParent;isFirstCycle=false;}while(curEl!=null){pos+=curEl.offsetTop;if(isSafari3OrChrome&&!isFirstCycle&&(curEl.tagName=="TD"||curEl.tagName=="TABLE"))pos+=curEl.clientTop;isFirstCycle=false;curEl=curEl.offsetParent;}}return pos;} function _aspxGetAbsoluteOffsetY_OperaFFSafari(curEl){var pos=0;var isFirstCycle=true;while(curEl!=null){if(curEl.tagName=="BODY")break;var style=_aspxGetCurrentStyle(curEl);if(!__aspxSafariFamily&&style.position=="absolute")break;if(!isFirstCycle&&curEl.tagName=="DIV"&&(__aspxSafariFamily||style.position==""||style.position=="static"))pos-=curEl.scrollTop;curEl=curEl.parentNode;isFirstCycle=false;}return pos;} function _aspxGetAbsolutePositionY_Other(curEl){var pos=0;var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetTop;if(!isFirstCycle&&curEl.offsetParent!=null)pos-=curEl.scrollTop;isFirstCycle=false;curEl=curEl.offsetParent;}return pos;} function _aspxPrepareClientPosForElement(pos,element,isX){pos-=_aspxGetPositionElementOffset(element,isX);return pos;} function _aspxGetPositionElementOffset(element,isX){var curEl=element.offsetParent;var offset=0;var scroll=0;var isThereFixedParent=false;var isFixed=false;var position="";while(curEl!=null){var tagName=curEl.tagName;if(tagName=="HTML"||tagName=="BODY")break;if(tagName!="TD"&&tagName!="TR"){var style=_aspxGetCurrentStyle(curEl);isFixed=style.position=="fixed";if(isFixed)isThereFixedParent=true;if(style.position=="absolute"||isFixed||style.position=="relative"){offset+=isX?curEl.offsetLeft:curEl.offsetTop;if(__aspxIE||__aspxOpera9||__aspxSafariMacOS)offset+=_aspxPxToInt(isX?style.borderLeftWidth:style.borderTopWidth);}} scroll+=isX?curEl.scrollLeft:curEl.scrollTop;curEl=curEl.offsetParent;} offset-=scroll;if((__aspxIE7||__aspxFirefox3)&&isThereFixedParent)offset+=isX?_aspxGetDocumentScrollLeft():_aspxGetDocumentScrollTop();return offset;} function _aspxPxToInt(px){var result=0;if(px!=null&&px!=""){try{var indexOfPx=px.indexOf("px");if(indexOfPx>-1)result=parseInt(px.substr(0,indexOfPx));} catch(e){}}return result;} function _aspxGetClearClientWidth(element){var currentStyle=_aspxGetCurrentStyle(element);return element.offsetWidth-_aspxPxToInt(currentStyle.paddingLeft)-_aspxPxToInt(currentStyle.paddingRight)-_aspxPxToInt(currentStyle.borderLeftWidth)-_aspxPxToInt(currentStyle.borderRightWidth);} function _aspxGetClearClientHeight(element){var currentStyle=_aspxGetCurrentStyle(element);return element.offsetHeight-_aspxPxToInt(currentStyle.paddingTop)-_aspxPxToInt(currentStyle.paddingBottom)-_aspxPxToInt(currentStyle.borderTopWidth)-_aspxPxToInt(currentStyle.borderBottomWidth);} function _aspxSetOffsetWidth(element,widthValue){var currentStyle=_aspxGetCurrentStyle(element);var value=widthValue-_aspxPxToInt(currentStyle.marginLeft)-_aspxPxToInt(currentStyle.marginRight);if(__aspxIE)value-=_aspxPxToInt(currentStyle.paddingLeft)+_aspxPxToInt(currentStyle.paddingRight)+_aspxPxToInt(currentStyle.borderLeftWidth)+_aspxPxToInt(currentStyle.borderRightWidth);if(value>-1)element.style.width=value+"px";} function _aspxSetOffsetHeight(element,heightValue){var currentStyle=_aspxGetCurrentStyle(element);var value=heightValue-_aspxPxToInt(currentStyle.marginTop)-_aspxPxToInt(currentStyle.marginBottom);if(__aspxIE)value-=_aspxPxToInt(currentStyle.paddingTop)+_aspxPxToInt(currentStyle.paddingBottom)+_aspxPxToInt(currentStyle.borderTopWidth)+_aspxPxToInt(currentStyle.borderBottomWidth);if(value>-1)element.style.height=value+"px";} function _aspxFindOffsetParent(element){if(__aspxIE)return element.offsetParent;var currentElement=element.parentNode;while(_aspxIsExistsElement(currentElement)&¤tElement.tagName!="BODY"){if(currentElement.offsetWidth>0&¤tElement.offsetHeight>0)return currentElement;currentElement=currentElement.parentNode;}return document.body;} function _aspxGetDocumentScrollTop(){if(__aspxSafariFamily||__aspxIE55||document.documentElement.scrollTop==0)return document.body.scrollTop;else return document.documentElement.scrollTop;} function _aspxGetDocumentScrollLeft(){if(__aspxSafariFamily||__aspxIE55||document.documentElement.scrollLeft==0)return document.body.scrollLeft;else return document.documentElement.scrollLeft;} function _aspxGetDocumentClientWidth(){if(__aspxSafariFamily||__aspxIE55||document.documentElement.clientWidth==0)return document.body.clientWidth;else return document.documentElement.clientWidth;} function _aspxGetDocumentClientHeight(){if(__aspxSafariFamily)return window.innerHeight;else if(__aspxOpera){return __aspxOperaLaterThan9_5?document.documentElement.clientHeight:document.body.clientHeight;}else if(__aspxIE55||document.documentElement.clientHeight==0)return document.body.clientHeight;else return document.documentElement.clientHeight;} function _aspxSetStylePosition(element,x,y){element.style.left=x+"px";element.style.top=y+"px";} function _aspxSetStyleSize(element,width,height){element.style.width=width+"px";element.style.height=height+"px";} function _aspxGetDocumentWidthWithoutScroll(){if(__aspxIE){var bodyWidth=document.body.offsetWidth;var bodyScrollWidth=document.body.scrollWidth;return _aspxGetMaxDimensionOf(bodyWidth,bodyScrollWidth);}return _aspxGetDocumentWidth();} function _aspxGetDocumentWidth(){var bodyWidth=document.body.offsetWidth;var docWidth=document.documentElement.offsetWidth;var bodyScrollWidth=document.body.scrollWidth;var docScrollWidth=document.documentElement.scrollWidth;return _aspxGetMaxDimensionOf(bodyWidth,docWidth,bodyScrollWidth,docScrollWidth);} function _aspxGetDocumentHeight(){var bodyHeight=document.body.offsetHeight;var docHeight=document.documentElement.offsetHeight;var bodyScrollHeight=document.body.scrollHeight;var docScrollHeight=document.documentElement.scrollHeight;var maxHeight=_aspxGetMaxDimensionOf(bodyHeight,docHeight,bodyScrollHeight,docScrollHeight);if(__aspxOpera&&__aspxOperaLaterThan9_5){maxHeight=_aspxGetMaxDimensionOf(window.outerHeight,maxHeight);}return maxHeight;} function _aspxGetDocumentMaxClientWidth(){var bodyWidth=document.body.offsetWidth;var docWidth=document.documentElement.offsetWidth;return _aspxGetMaxDimensionOf(bodyWidth,docWidth);} function _aspxGetDocumentMaxClientHeight(){var bodyHeight=document.body.offsetHeight;var docHeight=document.documentElement.offsetHeight;return _aspxGetMaxDimensionOf(bodyHeight,docHeight);} function _aspxGetMaxDimensionOf(){var max=__aspxInvalidDimension;for(var i=0;i>8)&0xFF;var b=(colorValue>>16)&0xFF;return "#"+_aspxToHex(r)+_aspxToHex(g)+_aspxToHex(b);}if(colorValue&&(colorValue.substr(0,3)=="rgb")){var re=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/;var regResult=colorValue.match(re);if(regResult){var r=parseInt(regResult[1]);var g=parseInt(regResult[2]);var b=parseInt(regResult[3]);return "#"+_aspxToHex(r)+_aspxToHex(g)+_aspxToHex(b);}return null;}if(colorValue&&(colorValue.charAt(0)=="#"))return colorValue;return null;} function _aspxFormatCallbackArg(prefix,arg){if(prefix==null||prefix==""||arg==null)return "";if(arg!=null&&!_aspxIsExists(arg.length)&&_aspxIsExists(arg.value))arg=arg.value;arg=arg.toString();return[prefix,'|',arg.length,'|',arg].join('');} function _aspxFormatCallbackArgs(callbackData){var sb=new ASPxStringBuilder();for(var i=0;i=0;i--){var handlerInfo=this.handlerInfoList[i];if(handlerInfo.handler==handler&&(!executionContext||handlerInfo.executionContext==executionContext)){_aspxArrayRemoveAt(this.handlerInfoList,i);return;}}},ClearHandlers:function(){this.handlerInfoList.length=0;},FireEvent:function(obj,args){for(var i=0;i0)?height+"px":"100%";table.style.width=(width>0)?width+"px":"100%";var tbody=document.createElement("TBODY");table.appendChild(tbody);var tr=document.createElement("TR");tbody.appendChild(tr);var td=document.createElement("TD");tr.appendChild(td);td.align="center";td.vAlign="middle";element=this.CloneLoadingPanel(element,td);_aspxSetElementDisplay(element,true);this.loadingPanelElement=element;return element;}else parentElement.innerHTML=" ";return null;},CreateLoadingPanelWithAbsolutePosition:function(parentElement,offsetElement){if(parentElement==null)return null;if(!_aspxIsExists(offsetElement))offsetElement=parentElement;var element=this.GetLoadingPanelElement();if(element!=null){element=this.CloneLoadingPanel(element,parentElement);element.style.position="absolute";_aspxSetElementDisplay(element,true);this.SetLoadingPanelLocation(offsetElement,element);this.loadingPanelElement=element;return element;}return null;},CreateLoadingPanelInline:function(parentElement){if(parentElement==null)return null;var element=this.GetLoadingPanelElement();if(element!=null){element=this.CloneLoadingPanel(element,parentElement);_aspxSetElementDisplay(element,true);this.loadingPanelElement=element;return element;}return null;},HideLoadingPanel:function(){if(_aspxIsExistsElement(this.loadingPanelElement)){_aspxRemoveElement(this.loadingPanelElement);this.loadingPanelElement=null;}},SetLoadingPanelLocation:function(offsetElement,loadingPanel,x,y,offsetX,offsetY){if(!_aspxIsExists(x)||!_aspxIsExists(y)){var x1=_aspxGetAbsoluteX(offsetElement)-_aspxGetIEDocumentClientOffset(true);var y1=_aspxGetAbsoluteY(offsetElement)-_aspxGetIEDocumentClientOffset(false);var x2=x1;var y2=y1;if(offsetElement==document.body){x2+=_aspxGetDocumentMaxClientWidth();y2+=_aspxGetDocumentMaxClientHeight();}else{x2+=offsetElement.offsetWidth;y2+=offsetElement.offsetHeight;}if(x1<_aspxGetDocumentScrollLeft())x1=_aspxGetDocumentScrollLeft();if(y1<_aspxGetDocumentScrollTop())y1=_aspxGetDocumentScrollTop();if(x2>_aspxGetDocumentScrollLeft()+_aspxGetDocumentClientWidth())x2=_aspxGetDocumentScrollLeft()+_aspxGetDocumentClientWidth();if(y2>_aspxGetDocumentScrollTop()+_aspxGetDocumentClientHeight())y2=_aspxGetDocumentScrollTop()+_aspxGetDocumentClientHeight();x=x1+((x2-x1-loadingPanel.offsetWidth)/2);y=y1+((y2-y1-loadingPanel.offsetHeight)/2);}if(_aspxIsExists(offsetX)&&_aspxIsExists(offsetY)){x+=offsetX;y+=offsetY;} loadingPanel.style.left=_aspxPrepareClientPosForElement(x,loadingPanel,true)+"px";loadingPanel.style.top=_aspxPrepareClientPosForElement(y,loadingPanel,false)+"px";},GetLoadingDiv:function(){return _aspxGetElementById(this.name+"_LD");},CreateLoadingDiv:function(parentElement,offsetElement){if(parentElement==null)return null;if(!_aspxIsExists(offsetElement))offsetElement=parentElement;var div=this.GetLoadingDiv();if(div!=null){div=div.cloneNode(true);parentElement.appendChild(div);_aspxSetElementDisplay(div,true);this.SetLoadingDivBounds(offsetElement,div);this.loadingDivElement=div;return div;}return null;},SetLoadingDivBounds:function(offsetElement,loadingDiv){var absX=(offsetElement==document.body)?0:_aspxGetAbsoluteX(offsetElement);var absY=(offsetElement==document.body)?0:_aspxGetAbsoluteY(offsetElement);loadingDiv.style.left=_aspxPrepareClientPosForElement(absX,loadingDiv,true)+"px";loadingDiv.style.top=_aspxPrepareClientPosForElement(absY,loadingDiv,false)+"px";var width=(offsetElement==document.body)?_aspxGetDocumentWidthWithoutScroll():offsetElement.offsetWidth;var height=(offsetElement==document.body)?_aspxGetDocumentHeight():offsetElement.offsetHeight;_aspxSetStyleSize(loadingDiv,width,height);var realWidth=loadingDiv.offsetWidth;var realHeight=loadingDiv.offsetHeight;_aspxSetStyleSize(loadingDiv,2*width-realWidth,2*height-realHeight);},HideLoadingDiv:function(){if(_aspxIsExistsElement(this.loadingDivElement)){_aspxRemoveElement(this.loadingDivElement);this.loadingDivElement=null;}},RaiseInit:function(){if(!this.Init.IsEmpty()){var args=new ASPxClientEventArgs();this.Init.FireEvent(this,args);}},RaiseBeginCallback:function(command){if(!this.BeginCallback.IsEmpty()){var args=new ASPxClientBeginCallbackEventArgs(command);this.BeginCallback.FireEvent(this,args);}if(_aspxIsExistsType(typeof(aspxGetGlobalEvents)))aspxGetGlobalEvents().OnBeginCallback(this,command);},RaiseEndCallback:function(){if(!this.EndCallback.IsEmpty()){var args=new ASPxClientEndCallbackEventArgs();this.EndCallback.FireEvent(this,args);}if(_aspxIsExistsType(typeof(aspxGetGlobalEvents)))aspxGetGlobalEvents().OnEndCallback(this);},RaiseCallbackError:function(message){if(!this.CallbackError.IsEmpty()){var args=new ASPxClientCallbackErrorEventArgs(message);this.CallbackError.FireEvent(this,args);if(args.handled)return{isHandled:true,errorMessage:args.message};}if(_aspxIsExistsType(typeof(aspxGetGlobalEvents))){var args=new ASPxClientCallbackErrorEventArgs(message);aspxGetGlobalEvents().OnCallbackError(this,args);if(args.handled)return{isHandled:true,errorMessage:args.message};}return{isHandled:false,errorMessage:message};},IsVisible:function(){var element=this.GetMainElement();while(_aspxIsExists(element)&&element.tagName!="BODY"){if(!_aspxGetElementVisibility(element)||!_aspxGetElementDisplay(element))return false;element=element.parentNode;}return true;},IsDisplayed:function(){var element=this.GetMainElement();while(_aspxIsExists(element)&&element.tagName!="BODY"){if(!_aspxGetElementDisplay(element))return false;element=element.parentNode;}return true;},Focus:function(){},GetClientVisible:function(){return this.GetVisible();},SetClientVisible:function(visible){this.SetVisible(visible);},GetVisible:function(){return this.clientVisible;},SetVisible:function(visible){if(this.clientVisible!=visible){this.clientVisible=visible;_aspxSetElementDisplay(this.GetMainElement(),visible);if(visible){this.AdjustControl(__aspxCheckSizeCorrectedFlag);var mainElement=this.GetMainElement();if(_aspxIsExists(mainElement))aspxGetControlCollection().AdjustControls(mainElement,__aspxCheckSizeCorrectedFlag);}}},InCallback:function(){return this.requestCount>0;},DoBeginCallback:function(command){if(!_aspxIsExists(command))command="";this.RaiseBeginCallback(command);aspxGetControlCollection().Before_WebForm_InitCallback();if(_aspxIsExistsType(typeof(WebForm_InitCallback))&&_aspxIsExists(WebForm_InitCallback)){__theFormPostData="";__theFormPostCollection=new Array();this.ClearPostBackEventInput("__EVENTTARGET");this.ClearPostBackEventInput("__EVENTARGUMENT");WebForm_InitCallback();this.savedFormPostData=__theFormPostData;this.savedFormPostCollection=__theFormPostCollection;}},ClearPostBackEventInput:function(id){var element=_aspxGetElementById(id);if(element!=null)element.value="";},CreateCallback:function(arg,command){if(_aspxIsExistsType(typeof(WebForm_DoCallback))&&_aspxIsExists(WebForm_DoCallback))this.CreateCallbackInternal(arg,command,true);else{if(!_aspxIsExists(this.savedCallbacks))this.savedCallbacks=[];this.savedCallbacks.push([arg,command]);}},CreateCallbackInternal:function(arg,command,viaTimer){if(!this.CanCreateCallback())return;this.requestCount++;this.DoBeginCallback(command);if(typeof(arg)=="undefined")arg="";if(typeof(command)=="undefined")command="";if(viaTimer)window.setTimeout("aspxCreateCallback('"+this.name+"', '"+escape(arg)+"', '"+escape(command)+"');",0);else this.CreateCallbackCore(arg,command);},CreateCallbackCore:function(arg,command){__theFormPostData=this.savedFormPostData;__theFormPostCollection=this.savedFormPostCollection;this.callBack(arg);},CanCreateCallback:function(){return this.allowMultipleCallbacks||!this.InCallback();},DoLoadCallbackScripts:function(){_aspxProcessScriptsAndLinks(this.name);},DoEndCallback:function(){this.RaiseEndCallback();},DoFinalizeCallback:function(){},HideLoadingPanelOnCallback:function(){return true;},DoCallback:function(result){this.requestCount--;if(this.HideLoadingPanelOnCallback()){this.HideLoadingDiv();this.HideLoadingPanel();}if(result.indexOf(__aspxCallbackResultPrefix)!=0)this.ProcessCallbackGeneralError(result);else{try{var resultObj=eval(result);if(_aspxIsExists(resultObj.redirect))window.location.href=resultObj.redirect;else if(_aspxIsExists(resultObj.generalError))this.ProcessCallbackGeneralError(resultObj.generalError);else{var errorObj=resultObj.error;if(_aspxIsExists(errorObj))this.ProcessCallbackError(errorObj);else{if(resultObj.cp){for(var name in resultObj.cp)this[name]=resultObj.cp[name];} this.ProcessCallback(resultObj.result);} this.DoLoadCallbackScripts();}} catch(e){this.ProcessCallbackGeneralError(e.message);}}},DoCallbackError:function(result){this.HideLoadingDiv();this.HideLoadingPanel();this.OnCallbackGeneralError(result);},DoControlClick:function(evt){this.OnControlClick(_aspxGetEventSource(evt),evt);},ProcessCallback:function(result){this.OnCallback(result);},OnCallback:function(result){},ProcessCallbackError:function(errorObj){var data=_aspxIsExists(errorObj.data)?errorObj.data:null;var result=this.RaiseCallbackError(errorObj.message);if(!result.isHandled)this.OnCallbackError(result.errorMessage,data);},OnCallbackError:function(errorMessage,data){if(errorMessage)alert(errorMessage);},ProcessCallbackGeneralError:function(errorMessage){var result=this.RaiseCallbackError(errorMessage);if(!result.isHandled)this.OnCallbackGeneralError(result.errorMessage);},OnCallbackGeneralError:function(errorMessage){this.OnCallbackError(errorMessage,null);},SendPostBack:function(params){__doPostBack(this.uniqueID,params);}});ASPxIdent={};ASPxIdent.IsDate=function(obj){return _aspxIsExists(obj)&&obj.constructor==Date;};ASPxIdent.IsRegExp=function(obj){return _aspxIsExists(obj)&&obj.constructor===RegExp;};ASPxIdent.IsArray=function(obj){return _aspxIsExists(obj)&&obj.constructor==Array;} ASPxIdent.IsASPxClientControl=function(obj){return _aspxIsExists(obj.isASPxClientControl)&&obj.isASPxClientControl;};ASPxIdent.IsASPxClientEdit=function(obj){return _aspxIsExists(obj.isASPxClientEdit)&&obj.isASPxClientEdit;};ASPxClientControl.GetControlCollection=function(){return aspxGetControlCollection();} var __aspxControlCollection=null;function aspxGetControlCollection(){if(__aspxControlCollection==null)__aspxControlCollection=new ASPxClientControlCollection();return __aspxControlCollection;} function aspxCAInit(){aspxGetControlCollection().AtlasInitialize();} function aspxCreateCallback(name,arg,command){var control=aspxGetControlCollection().Get(name);if(control!=null)control.CreateCallbackCore(unescape(arg),unescape(command));} function aspxCallback(result,context){var collection=aspxGetControlCollection();collection.DoFinalizeCallback();var control=collection.Get(context);if(control!=null)control.DoCallback(result);} function aspxCallbackError(result,context){var control=aspxGetControlCollection().Get(context);if(control!=null)control.DoCallbackError(result,false);} function aspxCClick(name,evt){var control=aspxGetControlCollection().Get(name);if(control!=null)control.DoControlClick(evt);} var __aspxStateItemsExist=false;var __aspxHoverStyleSheet=null;var __aspxPressedStyleSheet=null;var __aspxSelectedStyleSheet=null;var __aspxDisabledStyleSheet=null;var __aspxFocusedItemKind="FocusedStateItem";var __aspxHoverItemKind="HoverStateItem";var __aspxPressedItemKind="PressedStateItem";var __aspxSelectedItemKind="SelectedStateItem";var __aspxDisabledItemKind="DisabledStateItem";var __aspxStyleCount=0;var __aspxStyleNameCache=new Object();ASPxStateItem=_aspxCreateClass(null,{constructor:function(name,className,cssText,postfixes,imageUrls,imagePostfixes,kind){this.name=name;this.className=className;this.customClassName="";this.resultClassName="";this.cssText=cssText;this.postfixes=postfixes;this.imageUrls=imageUrls;this.imagePostfixes=imagePostfixes;this.kind=kind;this.enabled=true;this.elements=null;this.images=null;this.linkColor=null;this.lintTextDecoration=null;},CreateStyleRule:function(){if(this.cssText=="")return "";var styleSheet=this.GetStyleSheet();if(_aspxIsExists(styleSheet)){if(_aspxIsExists(__aspxStyleNameCache[this.cssText]))return __aspxStyleNameCache[this.cssText];else{var cssText="";var attributes=this.cssText.split(";");for(var i=0;i0){this.elements=new Array();var parentNode=element.parentNode;if(_aspxIsExists(parentNode)){for(var i=0;i0){var elements=this.GetElements(element);for(var i=0;i0)this.ApplyImage(element);} catch(e){}},ApplyStyle:function(element){var elements=this.GetElements(element);for(var i=0;i-1&&savedLinkCount<=linkCount)break;var link=elements[index]["link"+linkCount];if(!_aspxIsExists(link)){link=_aspxGetChildByTagName(elements[index],"A",linkCount);if(!_aspxIsExists(link))link=_aspxGetChildByTagName(elements[index],"SPAN",linkCount);if(_aspxIsExists(link))elements[index]["link"+linkCount]=link;}if(_aspxIsExists(link))this.ApplyStyleToLinkElement(link);else elements[index]["savedLinkCount"]=linkCount;linkCount++;}while(link!=null)},ApplyStyleToLinkElement:function(link){if(this.GetLinkColor()!="")_aspxChangeAttributeExtended(link.style,"color",link,"saved"+this.kind+"Color",this.GetLinkColor());if(this.GetLinkTextDecoration()!="")_aspxChangeAttributeExtended(link.style,"textDecoration",link,"saved"+this.kind+"TextDecoration",this.GetLinkTextDecoration());},ApplyImage:function(element){var images=this.GetImages(element);for(var i=0;i0)this.CancelImage(element);} catch(e){}},CancelStyle:function(element){var elements=this.GetElements(element);for(var i=0;i-1&&savedLinkCount<=linkCount)break;var link=elements[index]["link"+linkCount];if(!_aspxIsExists(link)){link=_aspxGetChildByTagName(elements[index],"A",linkCount);if(!_aspxIsExists(link))link=_aspxGetChildByTagName(elements[index],"SPAN",linkCount);if(_aspxIsExists(link))elements[index]["link"+linkCount]=link;}if(_aspxIsExists(link))this.CancelStyleFromLinkElement(link);else elements[index]["savedLinkCount"]=linkCount;linkCount++;}while(link!=null)},CancelStyleFromLinkElement:function(link){if(this.GetLinkColor()!="")_aspxRestoreAttributeExtended(link.style,"color",link,"saved"+this.kind+"Color");if(this.GetLinkTextDecoration()!="")_aspxRestoreAttributeExtended(link.style,"textDecoration",link,"saved"+this.kind+"TextDecoration");},CancelImage:function(element){var images=this.GetImages(element);for(var i=0;i0){for(var i=0;i0){for(var i=0;i-1)text=text.substr(pos+comment.length);return text;} function _aspxAppendScript(script){var parent=document.getElementsByTagName("head")[0];if(!_aspxIsExists(parent))parent=document.body;if(_aspxIsExists(parent)){parent.appendChild(script);}} function _aspxIsAlphaFilterUsed(img){return(__aspxIE&&img.style.filter.indexOf("progid:DXImageTransform.Microsoft.AlphaImageLoader")>-1);} function _aspxIsKnownIncludeScript(script){return _aspxIsExists(__aspxIncludeScriptsCache[script.src]);} function _aspxCacheIncludeScript(script){__aspxIncludeScriptsCache[script.src]=1;} function _aspxProcessScriptsAndLinks(ownerName){_aspxProcessScripts(ownerName);_aspxSweepDuplicatedLinks();_aspxMoveLinkElements();__aspxCachedRules={};} function _aspxGetStartupScripts(){return _aspxGetScriptsCore(__aspxStartupScriptPrefix);} function _aspxGetIncludeScripts(){return _aspxGetScriptsCore(__aspxIncludeScriptPrefix);} function _aspxGetScriptsCore(prefix){var result=[];var scripts=document.getElementsByTagName("SCRIPT");for(var i=0;imax)pos=max;if(pos0||isMoreFreeSpaceLeft);if(isInverted)x=rightX-hOffset;else x=leftX+hOffset;}else if(hAlign=="LeftSides"){x=innerLeftX+hOffset;x=_aspxAdjustPositionToClientScreen(element,shadowWidth,x,true);}else if(hAlign=="Center"){x=elementX+Math.round((popupElement.offsetWidth-width)/2)+hOffset;}else if(hAlign=="RightSides"){x=innerRightX+hOffset;x=_aspxAdjustPositionToClientScreen(element,shadowWidth,x,true);}else if(hAlign=="OutsideRight"){isInverted=!(rightX+widthbodyWidth&&x-scrollX>bodyWidth/2;if(isInverted)x=x-width-hOffset;else x=x+hOffset;}if(__aspxIE55)x-=_aspxGetIEDocumentClientOffset(true);return new _aspxPopupPosition(x,isInverted);} function _aspxGetPopupAbsoluteY(element,shadowHeight,popupElement,vAlign,vOffset,y,top){var height=element.offsetHeight;var bodyHeight=_aspxGetDocumentClientHeight();var elementY=_aspxGetAbsoluteY(popupElement);var scrollY=_aspxGetDocumentScrollTop();if(vAlign=="WindowCenter")return new _aspxPopupPosition(Math.ceil(bodyHeight/2-height/2)+scrollY+vOffset,false);if(_aspxIsExists(popupElement)){var bottomY=elementY+popupElement.offsetHeight;var topY=elementY-height;var innerBottomY=elementY+popupElement.offsetHeight-height;var innerTopY=elementY;var isMoreFreeSpaceAbove=bodyHeight-(bottomY+height)0||isMoreFreeSpaceAbove);if(isInverted)y=bottomY-vOffset;else y=topY+vOffset;}else if(vAlign=="TopSides"){y=innerTopY+vOffset;y=_aspxAdjustPositionToClientScreen(element,shadowHeight,y,false);}else if(vAlign=="Middle"){y=elementY+Math.round((popupElement.offsetHeight-height)/2)+vOffset;}else if(vAlign=="BottomSides"){y=innerBottomY+vOffset;y=_aspxAdjustPositionToClientScreen(element,shadowHeight,y,false);}else if(vAlign=="Below"){isInverted=!(bottomY+heightbodyHeight&&y-_aspxGetDocumentScrollTop()>bodyHeight/2;if(isInverted)y=y-height-vOffset;else y=y+vOffset;}if(__aspxIE55)y-=_aspxGetIEDocumentClientOffset(false);return new _aspxPopupPosition(y,isInverted);} function _aspxGetIntersectionRect(left1,top1,left2,top2,width,height){var segment1=_aspxGetIntersectionSegment(left1,left2,width);var segment2=_aspxGetIntersectionSegment(top1,top2,height);if(segment1!=null&&segment2!=null){var left=segment1.pos;var top=segment2.pos;var width=segment1.len;var height=segment2.len;return new _aspxRect(left,top,width,height);}return null;} function _aspxGetIntersectionSegment(pos1,pos2,len){var posDifferense=Math.abs(pos1-pos2);if(posDifferense<=len){var pos=pos1>pos2?pos1:pos2;var len=len-posDifferense;return new _aspxSegment(pos,len);}return null;} function _aspxInitAnimationDiv(element,x,y,onTimerString,onAnimStopCallString){element.animationStart=new Date();element.absoluteLeft=x;element.absoluteTop=y;element.popuping=true;element.onTimerString=onTimerString;element.onAnimStopCallString=onAnimStopCallString;element.style.overflow="hidden";element.style.position="absolute";_aspxSetStylePosition(element,x,y);_aspxSetStyleSize(element,element.offsetWidth,element.offsetHeight);} function _aspxOnAnimationTimer(animationDivElement,element,mainCell,iframeElement,animationDelay,animationMaxDelay,animationAccelerator){animationDivElement.timerID=_aspxClearTimer(element.timerID);var timeExpired=new Date()-animationDivElement.animationStart>animationMaxDelay;if(timeExpired)_aspxAnimationFinished(animationDivElement);var left=animationDivElement.popuping?_aspxGetNextAnimationPosInternal(element.offsetLeft,animationAccelerator):0;var top=animationDivElement.popuping?_aspxGetNextAnimationPosInternal(element.offsetTop,animationAccelerator):0;if(left==0&&top==0)_aspxAnimationFinished(animationDivElement);element.style.top=top+"px";element.style.left=left+"px";var rect=_aspxGetIntersectionRect(animationDivElement.offsetLeft,animationDivElement.offsetTop,element.offsetLeft+animationDivElement.offsetLeft,element.offsetTop+animationDivElement.offsetTop,mainCell.offsetWidth,mainCell.offsetHeight);if(_aspxIsExists(rect)&&_aspxIsExists(iframeElement)){_aspxSetStylePosition(iframeElement,rect.left,rect.top);_aspxSetStyleSize(iframeElement,rect.width,rect.height);}if(!timeExpired&&animationDivElement.popuping)animationDivElement.timerID=window.setTimeout(animationDivElement.onTimerString,animationDelay);} function _aspxGetNextAnimationPosInternal(pos,animationAccelerator){pos=Math.round(pos*animationAccelerator);if(Math.abs(pos)<__aspxAnimationDiscardPixels)pos=0;return pos;} function _aspxAnimationFinished(element){if(_aspxStopAnimation(element)&&_aspxIsExists(element.onAnimStopCallString)&&element.onAnimStopCallString!==""){eval(element.onAnimStopCallString);}} function _aspxStopAnimation(element){if(element.popuping){element.popuping=false;element.onTimerString="";element.style.overflow="visible";return true;}return false;} function _aspxGetAnimationHorizontalDirection(popupPosition,horizontalAlign,verticalAlign){if(_aspxIsInnerAlign(horizontalAlign)&&!_aspxIsInnerAlign(verticalAlign)&&!_aspxIsAlignNotSet(verticalAlign))return 0;var toTheLeft=(horizontalAlign=="OutsideLeft"||horizontalAlign=="RightSides")^popupPosition.isInverted;return toTheLeft?1:-1;} function _aspxGetAnimationVerticalDirection(popupPosition,horizontalAlign,verticalAlign){if(_aspxIsInnerAlign(verticalAlign)&&!_aspxIsInnerAlign(horizontalAlign)&&!_aspxIsAlignNotSet(horizontalAlign))return 0;var toTheTop=(verticalAlign=="Above"||verticalAlign=="BottomSides")^popupPosition.isInverted;return toTheTop?1:-1;} function _aspxHideBodyScroll(){if(__aspxIE){_aspxChangeAttribute(document.body,"scroll","no");_aspxChangeStyleAttribute(document.documentElement,"overflow","hidden");}else if(__aspxFirefox&&!__aspxFirefox3){var scrollTop=document.documentElement.scrollTop;_aspxChangeStyleAttribute(document.body,"overflow","hidden");document.documentElement.scrollTop=scrollTop;}else _aspxChangeStyleAttribute(document.body,"overflow","hidden");_aspxChangeStyleAttribute(document.body,"marginRight","16px");} function _aspxRestoreBodyScroll(){if(__aspxIE){_aspxRestoreAttribute(document.body,"scroll");_aspxRestoreStyleAttribute(document.documentElement,"overflow");}else _aspxRestoreStyleAttribute(document.body,"overflow");_aspxRestoreStyleAttribute(document.body,"marginRight");if(__aspxSafariFamily){var scrollTop=document.body.scrollTop;document.body.scrollTop++;document.body.scrollTop--;document.body.scrollTop=scrollTop;}} var __aspxDragHelper=null;ASPxClientDragHelper=_aspxCreateClass(null,{constructor:function(e,root,clone){if(__aspxDragHelper!=null)__aspxDragHelper.cancelDrag();this.dragArea=5;this.lastX=e.clientX+_aspxGetDocumentScrollLeft();this.lastY=e.clientY+_aspxGetDocumentScrollTop();this.canDrag=true;if(typeof(root)=="string")root=_aspxGetParentByTagName(_aspxGetEventSource(e),root);this.obj=root&&root!=null?root:_aspxGetEventSource(e);this.clone=clone;this.dragObj=null;this.additionalObj=null;this.onDoClick=new Function();this.onEndDrag=new Function();this.onCancelDrag=new Function();this.onDragDivCreating=new Function();this.onCloneCreating=null;this.onCloneCreated=new Function();this.dragDiv=null;__aspxDragHelper=this;},drag:function(e){if(!this.canDrag)return;if(!this.isDragging()){if(!this.isOutOfDragArea(e.clientX,e.clientY))return;this.startDragCore(e);}if(__aspxIE&&!_aspxGetIsLeftButtonPressed(e)){this.cancelDrag(e);return;} this.clearSelection();this.dragCore(e);},clearSelection:function(){if(!window.getSelection)return;var sel=window.getSelection();if(sel&&sel.removeAllRanges){sel.removeAllRanges();}},startDragCore:function(e){this.dragObj=this.clone!=true?this.obj:this.createClone();},dragCore:function(e){var x=e.clientX+_aspxGetDocumentScrollLeft();var y=e.clientY+_aspxGetDocumentScrollTop();var nx=this.dragObj.offsetLeft+x-this.lastX;var ny=this.dragObj.offsetTop+y-this.lastY;this.dragObj.style.left=nx+"px";this.dragObj.style.top=ny+"px";this.lastX=x;this.lastY=y;},endDrag:function(e){if(!this.isDragging()&&!this.isOutOfDragArea(e.clientX,e.clientY))this.onDoClick(this);else this.onEndDrag(this);this.cancelDrag();},cancelDrag:function(){if(this.dragDiv!=null){document.body.removeChild(this.dragDiv);this.dragDiv=null;} this.onCancelDrag(this);__aspxDragHelper=null;},isDragging:function(){return this.dragObj!=null;},createClone:function(){this.dragDiv=document.createElement("div");this.onDragDivCreating(this,this.dragDiv);this.dragDiv.style.position="absolute";this.dragDiv.style.cursor="move";this.dragDiv.style.left=_aspxGetAbsoluteX(this.obj)+"px";this.dragDiv.style.top=_aspxGetAbsoluteY(this.obj)+"px";this.dragDiv.style.width=this.obj.offsetWidth+"px";this.dragDiv.style.height=this.obj.offsetHeight+"px";this.dragDiv.select=DragHelper_onselectstart;this.dragDiv.style.zIndex=20000;this.dragDiv.style.padding="0px";this.dragDiv.style.margin="0px";this.dragDiv.style.borderStyle="none";this.dragDiv.style.borderWidth="0px";this.dragDiv.style.backgroundColor="transparent";var clone=this.creatingClone();this.onCloneCreated(clone);this.dragDiv.appendChild(clone);document.body.appendChild(this.dragDiv);return this.dragDiv;},creatingClone:function(){var clone=this.obj.cloneNode(true);if(!_aspxIsExists(this.onCloneCreating))return clone;return this.onCloneCreating(clone);},addElementToDragDiv:function(element){if(this.dragDiv==null)return;this.additionalObj=element.cloneNode(true);this.additionalObj.style.visibility="visible";this.dragDiv.appendChild(this.additionalObj);},removeElementFromDragDiv:function(){if(this.additionalObj==null||this.dragDiv==null)return;this.dragDiv.removeChild(this.additionalObj);this.additionalObj=null;},isOutOfDragArea:function(newX,newY){return Math.max(Math.abs(newX+_aspxGetDocumentScrollLeft()-this.lastX),Math.abs(newY+_aspxGetDocumentScrollTop()-this.lastY))>=this.dragArea;}});function DragHelper_onmouseup(e){if(__aspxDragHelper!=null){__aspxDragHelper.endDrag(e);return true;}} function DragHelper_onmousemove(e){if(__aspxDragHelper!=null){__aspxDragHelper.drag(e);return true;}} function DragHelper_onkeydown(e){if(__aspxDragHelper==null)return;if(e.keyCode==ASPxKey.Esc){if(_aspxIsExists(__aspxDragHelper.onEscKeyDown))__aspxDragHelper.onEscKeyDown();else __aspxDragHelper.cancelDrag();}return true;} function DragHelper_onselectstart(e){if(__aspxDragHelper!=null){if(!__aspxDragHelper.canDrag)return true;document.selection.empty();return false;}} _aspxAttachEventToDocument("mouseup",DragHelper_onmouseup);_aspxAttachEventToDocument("mousemove",DragHelper_onmousemove);_aspxAttachEventToDocument("keydown",DragHelper_onkeydown);_aspxAttachEventToDocument("selectstart",DragHelper_onselectstart);var __aspxCursorTargets=null;ASPxClientCursorTargets=_aspxCreateClass(null,{constructor:function(){this.list=new Array();this.starttargetElement=null;this.starttargetTag=0;this.oldtargetElement=null;this.oldtargetTag=0;this.targetElement=null;this.targetTag=0;this.x=0;this.y=0;this.removedX=0;this.removedY=0;this.removedWidth=0;this.removedHeight=0;this.onTargetChanging=new Function();this.onTargetChanged=new Function();this.onTargetAdding=null;__aspxCursorTargets=this;},addElement:function(element){if(!this.canAddElement(element))return null;var target=new ASPxClientCursorTarget(element);this.list.push(target);return target;},removeElement:function(element){for(var i=0;i-1)this.addFunc(element);for(var i=0;ithis.removedX&&x<(this.removedX+this.removedWidth)&&y>this.removedY&&y<(this.removedY+this.removedHeight);}});ASPxClientCursorTarget=_aspxCreateClass(null,{constructor:function(element){this.element=element;this.targetElement=element;this.absoluteX=_aspxGetAbsoluteX(element);this.absoluteY=_aspxGetAbsoluteY(element);},contains:function(x,y){return x>=this.absoluteX&&x<=this.absoluteX+this.element.offsetWidth&&y>=this.absoluteY&&y<=this.absoluteY+this.element.offsetHeight;}});function CursorTarget_onmouseup(e){if(__aspxCursorTargets!=null){__aspxCursorTargets.onmouseup(e);return true;}} function CursorTarget_onmousemove(e){if(__aspxCursorTargets!=null){__aspxCursorTargets.onmousemove(e);return true;}} _aspxAttachEventToDocument("mouseup",CursorTarget_onmouseup);_aspxAttachEventToDocument("mousemove",CursorTarget_onmousemove);var __aspxDialogFormCallbackStatus="DialogForm";var __aspxCurrentControlNameInDialog="";var __aspxAreKeyboardEventsInitialized=false;function aspxAdjustControlsSizeInDialogWindow(){var control=aspxGetControlCollection().Get(__aspxCurrentControlNameInDialog);var curDialog=control!=null?ASPxDialog.GetLastDialog(control):null;if(curDialog!=null)ASPxClientControl.GetControlCollection().AdjustControls(curDialog.GetDialogPopup().GetMainElement());} ASPxDialog=_aspxCreateClass(null,{constructor:function(name){this.name=name;this.initInfo=null;this.editorKeyDownProccesed=false;this.keyDownHandlers={};this.InitializeKeyHandlers();},InitializeKeyHandlers:function(){this.AddKeyDownHandler("ESC","HideDialog");},AddKeyDownHandler:function(shortcutString,handler){this.keyDownHandlers[_aspxParseShortcutString(shortcutString)]=handler;},DoCustomAction:function(result,params){},GetDialogCaptionText:function(){return "";},GetInitInfoObject:function(){return null;},InitializeDialogFields:function(initInfo){},SetFocusInField:function(){},Execute:function(ownerControl,popupElementID){this.ownerControl=ownerControl;__aspxCurrentControlNameInDialog=this.ownerControl.name;ASPxDialog.PushDialogToCollection(this.ownerControl,this);this.InitializePopupEvents();this.GetDialogPopup().SetHeaderText(this.GetDialogCaptionText());if(_aspxIsExists(popupElementID))this.GetDialogPopup().ShowAtElementByID(popupElementID);else this.GetDialogPopup().Show();if(this.GetDialogContent(this.name)==null){this.SendCallbackForDialogContent();this.ShowLoadingPanelInDialogPopup();}else{this.ExecuteInternal(this.GetDialogContent(this.name));_aspxRunStartupScripts();this.OnInitComplete();}},ExecuteInternal:function(result){this.initInfo=this.GetInitInfoObject();this.GetDialogPopup().SetContentHtml(result);if(this.GetDialogPopup().IsVisible())this.GetDialogPopup().UpdatePosition();},GetDialogPopup:function(){if(_aspxIsExists(this.ownerControl.GetDialogPopupControl))return this.ownerControl.GetDialogPopupControl();return null;},AddDialogContentToHash:function(name,content){this.GetDialogContentHashTable()[this.name]=content;},GetDialogContent:function(name){return _aspxIsExists(this.GetDialogContentHashTable()[this.name])?this.GetDialogContentHashTable()[this.name]:null;},GetDialogContentHashTable:function(){if(_aspxIsExists(this.ownerControl.dialogContentHashTable))return this.ownerControl.dialogContentHashTable;return null;},InitializePopupEvents:function(){if(this.GetDialogPopup().CloseButtonClick.IsEmpty()){var func=_aspxCreateEventHandlerFunction("aspxOnDialogCloseButtonClick",this.ownerControl.name,false);this.GetDialogPopup().CloseButtonClick.AddHandler(func);func=_aspxCreateEventHandlerFunction("aspxOnDialogClose",this.ownerControl.name,false);this.GetDialogPopup().CloseUp.AddHandler(func);}},InitCustomKeyboardHandling:function(){if(!__aspxAreKeyboardEventsInitialized){__aspxAreKeyboardEventsInitialized=true;_aspxAttachEventToDocument("keypress",aspxDialogDocumentKeypress);if(__aspxNS)this.ReplaceKBSIKeyDown();}},ReplaceKBSIKeyDown:function(){var original=aspxKBSIKeyDown;aspxKBSIKeyDown=function(name,evt){var isProcessed=original(name,evt);var ownerControl=aspxGetControlCollection().Get(__aspxCurrentControlNameInDialog);var curDialog=ownerControl!=null?ASPxDialog.GetLastDialog(ownerControl):null;if(curDialog!=null)curDialog.OnInnerEditorKeyDown(evt,isProcessed);return isProcessed;};},SendCallbackForDialogContent:function(){this.ownerControl.callbackOwner=this;this.ownerControl.SendCallback(__aspxDialogFormCallbackStatus,this.name,false);},ShowLoadingPanelInDialogPopup:function(){this.GetDialogPopup().SetContentHtml("");var contentElement=this.GetDialogPopup().GetWindowContentElement(-1);this.ownerControl.CreateLoadingDiv(contentElement);this.ownerControl.CreateLoadingPanelInsideContainer(contentElement);},ShowLoadingPanelOverDialogPopup:function(){var offsetElement=__aspxNS?this.GetDialogPopup().GetWindowElement(-1):_aspxGetParentByTagName(this.GetDialogPopup().GetWindowContentElement(-1),"table");this.ownerControl.CreateLoadingDiv(document.body,offsetElement);this.ownerControl.CreateLoadingPanelWithAbsolutePosition(document.body,offsetElement);},HideLoadingPanelOverDialogPopup:function(){this.ownerControl.HideLoadingDiv();this.ownerControl.HideLoadingPanel();},HideDialog:function(){this.GetDialogPopup().Hide();this.OnCloseButtonClick();this.OnClose();},OnCallback:function(result){this.ExecuteInternal(result);this.AddDialogContentToHash(this.name,result);},OnCallbackError:function(result,data){this.ownerControl.callbackOwner=null;},OnEndCallback:function(){this.ownerControl.callbackOwner=null;this.OnInitComplete();},OnClose:function(){ASPxDialog.RemoveLastDialog(this.ownerControl);},OnCloseButtonClick:function(){},OnComplete:function(result,params){this.GetDialogPopup().Hide();this.DoCustomAction(result,params);},OnDocumentKeyPress:function(evt){if(!this.editorKeyDownProccesed){var handler=this.keyDownHandlers[_aspxGetShortcutCode(evt.keyCode,evt.ctrlKey,evt.shiftKey,evt.altKey)];if(_aspxIsExists(handler))this[handler](evt);} this.editorKeyDownProccesed=false;},OnInnerEditorKeyDown:function(evt,isProcessed){this.editorKeyDownProccesed=_aspxIsExists(isProcessed)?!isProcessed:false;},OnInitComplete:function(){this.InitCustomKeyboardHandling();this.InitializeDialogFields(this.initInfo);this.SetFocusInField();}});ASPxDialog.PushDialogToCollection=function(ownerControl,dialog){if(!_aspxIsExists(ownerControl.dialogArray))ownerControl.dialogArray=new Array();_aspxArrayPush(ownerControl.dialogArray,dialog);} ASPxDialog.GetLastDialog=function(ownerControl){if(_aspxIsExists(ownerControl.dialogArray)){var length=ownerControl.dialogArray.length;return length>0?ownerControl.dialogArray[length-1]:null;}return null;} ASPxDialog.RemoveLastDialog=function(ownerControl){var array=ownerControl.dialogArray;if(_aspxIsExists(array)&&array.length>0)_aspxArrayRemoveAt(array,array.length-1);} function aspxOnDialogCloseButtonClick(name){var ownerControl=aspxGetControlCollection().Get(name);var curDialog=ownerControl!=null?ASPxDialog.GetLastDialog(ownerControl):null;if(curDialog!=null)return curDialog.OnCloseButtonClick();} function aspxOnDialogClose(name){var ownerControl=aspxGetControlCollection().Get(name);var curDialog=ownerControl!=null?ASPxDialog.GetLastDialog(ownerControl):null;if(curDialog!=null)return curDialog.OnClose();} function aspxDialogComplete(result,params){var ownerControl=aspxGetControlCollection().Get(__aspxCurrentControlNameInDialog);var curDialog=ownerControl!=null?ASPxDialog.GetLastDialog(ownerControl):null;if(curDialog!=null)return curDialog.OnComplete(result,params);} function aspxDialogDocumentKeypress(evt){var ownerControl=aspxGetControlCollection().Get(__aspxCurrentControlNameInDialog);var curDialog=ownerControl!=null?ASPxDialog.GetLastDialog(ownerControl):null;if(curDialog!=null)ASPxDialog.GetLastDialog(ownerControl).OnDocumentKeyPress(evt);} var __aspxWindowResizer=null;var __aspxClientPopupFilterWindow=null;ASPxClientWindowResizer=_aspxCreateClass(null,{constructor:function(e,resizedEl){__aspxWindowResizer=this;this.resizedEl=resizedEl;this.minWidth=50;this.minHeight=50;this.lastX=e.clientX;this.lastY=e.clientY;this.newWidth=resizedEl.offsetWidth;this.newHeight=resizedEl.offsetHeight;this.startWidth=this.newWidth;this.startHeight=this.newHeight;this.virtWidth=this.newWidth;this.virtHeight=this.newHeight;this.onSetSize=null;this.onEndResizing=new Function();},doResizing:function(e){this.virtWidth=this.virtWidth+e.clientX-this.lastX;this.virtHeight=this.virtHeight+e.clientY-this.lastY;this.lastX=e.clientX;this.lastY=e.clientY;this.newWidth=this.virtWidth;this.newHeight=this.virtHeight;if(this.newWidth=0&&__aspxClientPopupFilterWindow.IsShowing()&&_aspxGetIsParent(header,src)){__aspxClientPopupFilterWindowShowAgain=true;}return __aspxClientPopupFilterWindow.onMouseDown(e);} function PopupFilterWindow_WindowOnResize(e){if(__aspxClientPopupFilterWindow==null)return;__aspxClientPopupFilterWindow.Hide();} function PopupFilterWindow_WindowOnLoad(e){_aspxAttachEventToDocument("mousedown",PopupFilterWindow_DocumentOnMouseDown);_aspxAttachEventToElement(window,"resize",PopupFilterWindow_WindowOnResize);} _aspxAttachEventToDocument("mouseup",WindowResizer_onmouseup);_aspxAttachEventToDocument("mousemove",WindowResizer_onmousemove);_aspxAttachEventToDocument("keydown",WindowResizer_onkeydown);_aspxAttachEventToDocument("selectstart",WindowResizer_onselectstart);_aspxAttachEventToElement(window,"load",PopupFilterWindow_WindowOnLoad);ASPxDateFormatter=_aspxCreateClass(null,{constructor:function(){this.date=new Date(2000,0,1);this.mask;this.specifiers={};this.spPositions=[];this.knownSpecifiers=["d","M","y","H","h","m","s","f","F","g","t"];this.savedYear=-1;this.isYearParsed=false;this.parsedMonth=-1;this.replacers={"d":this.ReplaceDay,"M":this.ReplaceMonth,"y":this.ReplaceYear,"H":this.ReplaceHours23,"h":this.ReplaceHours12,"m":this.ReplaceMinutes,"s":this.ReplaceSeconds,"F":this.ReplaceMsTrimmed,"f":this.ReplaceMs,"g":this.ReplaceEra,"t":this.ReplaceAmPm};this.parsers={"d":this.ParseDay,"M":this.ParseMonth,"y":this.ParseYear,"H":this.ParseHours,"h":this.ParseHours,"m":this.ParseMinutes,"s":this.ParseSeconds,"F":this.ParseMs,"f":this.ParseMs,"g":this.ParseEra,"t":this.ParseAmPm};},Format:function(date){this.date=date;var sp;var pos;var replacerKey;var result=this.mask;for(var i=0;i-1)this.date.setMonth(this.parsedMonth);else this.date.setMonth(now.getMonth());return this.date;},SetFormatString:function(mask){if(mask.length==2&&mask.charAt(0)=="%")mask=mask.charAt(1);this.specifiers={};this.spPositions=[];this.mask="";var subt=0;var pos=0;var startPos=0;var ch;var prevCh="";var skip=false;var backslash=false;var sp="";while(true){ch=mask.charAt(pos);if(ch==""){if(sp.length>0)this.RegisterSpecifier(startPos,sp);break;}if(ch=="\\"&&!backslash){backslash=true;subt++;}else{if(!backslash&&(ch=="'"||ch=='"')){skip=!skip;subt++;}else{if(!skip){if(ch=="/")ch=__aspxDateFormatInfo.ds;else if(ch==":")ch=__aspxDateFormatInfo.ts;else if(this.IsKnownSpecifier(ch)){if(prevCh.length==0)prevCh=ch;if(ch==prevCh)sp+=ch;else{if(sp.length>0)this.RegisterSpecifier(startPos,sp);sp=ch;startPos=pos-subt;}}} this.mask+=ch;} backslash=false;} prevCh=ch;pos++;} this.spPositions.reverse();},RegisterSpecifier:function(pos,sp){this.spPositions.push(pos);this.specifiers[pos]=sp;},ReplaceDay:function(length){if(length<3){var value=this.date.getDate().toString();return length==2?this.padLeft(value,2):value;}else if(length==3){return __aspxDateFormatInfo.abbrDayNames[this.date.getDay()];}else{return __aspxDateFormatInfo.dayNames[this.date.getDay()];}},ReplaceMonth:function(length){var value=1+this.date.getMonth();switch(length){case 1:return value.toString();case 2:return this.padLeft(value.toString(),2);case 3:return __aspxDateFormatInfo.abbrGenMonthNames[value-1];default:return __aspxDateFormatInfo.genMonthNames[value-1];}},ReplaceYear:function(length){var value=this.date.getFullYear();if(length<=2)value=value%100;return this.padLeft(value.toString(),length);},ReplaceHours23:function(length){var value=this.date.getHours().toString();return length>1?this.padLeft(value,2):value;},ReplaceHours12:function(length){var value=this.date.getHours()%12;if(value==0)value=12;value=value.toString();return length>1?this.padLeft(value,2):value;},ReplaceMinutes:function(length){var value=this.date.getMinutes().toString();return length>1?this.padLeft(value,2):value;},ReplaceSeconds:function(length){var value=this.date.getSeconds().toString();return length>1?this.padLeft(value,2):value;},ReplaceMsTrimmed:function(length){return this.formatMs(length,true);},ReplaceMs:function(length){return this.formatMs(length,false);},ReplaceEra:function(length){return "A.D.";},ReplaceAmPm:function(length){var value=this.date.getHours()<12?__aspxDateFormatInfo.am:__aspxDateFormatInfo.pm;return length<2?value.charAt(0):value;},catchNumbers:function(str){this.parseNumbers=[];var regex=/\d+/g;var match;for(;;){match=regex.exec(str);if(!match)break;this.parseNumbers.push(this.parseDecInt(match[0]));} var spCount=0;var now=new Date();for(var i in this.specifiers){var sp=this.specifiers[i];if(sp.constructor!=String||!this.IsNumericSpecifier(sp))continue;spCount++;if(this.parseNumbers.length0)this.parseNumbers.splice(spCount,excess);this.currentParseNumber=this.parseNumbers.length-1;},popParseNumber:function(){return this.parseNumbers[this.currentParseNumber--];},findAbbrMonth:function(){return this.findMonthCore(__aspxDateFormatInfo.abbrGenMonthNames);},findFullMonth:function(){return this.findMonthCore(__aspxDateFormatInfo.genMonthNames);},findMonthCore:function(monthNames){var inputLower=this.strToParse.toLowerCase();for(var i=0;i0&&inputLower.indexOf(monthName)>-1){var empty="";for(var j=0;j31)return false;this.date.setDate(value);}return true;},ParseMonth:function(length){var value;switch(length){case 1:case 2:value=this.popParseNumber();break;case 3:value=this.findAbbrMonth();break;default:value=this.findFullMonth();break;}if(value<1||value>12)return false;this.parsedMonth=value-1;return true;},ParseYear:function(length){var value=this.popParseNumber();if(value>9999)return false;if(value<100)value=this.ExpandTwoDigitYear(value);this.date.setFullYear(value);this.isYearParsed=true;return true;},ParseHours:function(length){var value=this.popParseNumber();if(value>23)return false;this.date.setHours(value);return true;},ParseMinutes:function(length){var value=this.parseMinSecCore();if(value==-1)return false;this.date.setMinutes(value);return true;},ParseSeconds:function(length){var value=this.parseMinSecCore();if(value==-1)return false;this.date.setSeconds(value);return true;},ParseMs:function(length){if(length>3)length=3;var thr=1;for(var i=0;ithr)value/=10;this.date.setMilliseconds(Math.round(value));return true;},ParseEra:function(length){return true;},ParseAmPm:function(length){this.hasAmPm=__aspxDateFormatInfo.am.length>0&&__aspxDateFormatInfo.pm.length>0;return true;},parseDecInt:function(str){return parseInt(str,10);},padLeft:function(str,length){while(str.length59?-1:value;},fixHours:function(){var am=__aspxDateFormatInfo.am.charAt(0).toLowerCase();var pm=__aspxDateFormatInfo.pm.charAt(0).toLowerCase();var str=this.strToParse.toLowerCase();var state=null;if(str.indexOf(am)>-1)state="A";else if(str.indexOf(pm)>-1)state="P";if(!state)return true;var h=this.date.getHours();switch(state){case "P":if(h>12)return false;if(h<12)this.date.setHours(12+h);break;case "A":if(h==12)this.date.setHours(0);}return true;},IsNumericSpecifier:function(sp){var ch=sp.charAt(0);if(ch=="g"||ch=="t"||((ch=="M"||ch=="d")&&sp.length>2))return false;return true;},IsKnownSpecifier:function(sp){if(sp.length>1)sp=sp.charAt(0);for(var i=0;i0)?args:[];this.callDate=new Date();this.exitDate=null;this.Exit=function(){this.exitDate=new Date();} this.GetEnterInfo=function(){return this.GetInfo(">>");} this.GetExitInfo=function(){if(this.exitDate==null)throw 'JSProfilerCallInfo Exit() method was not called.';return this.GetInfo("<<",true);} this.GetInfo=function(prefix,writeExecutionTime){var info="";info+=prefix;info+=" ";info+="";info+=this.procName;info+="(";info+="";for(var i=0;i"+this.GetExecutionSeconds(this.callDate,this.exitDate)+" sec)";return info;} this.GetExecutionTime=function(){return this.GetExecutionSeconds(this.callDate,this.exitDate);} this.GetExecutionSeconds=function(callDate,exitDate){return(exitDate.getTime()-callDate.getTime())/1000.0;}} var ASPxJSProfiler={callStack:[],Enter:function(procName,args,needWriteResultToBody){needWriteResultToBody=_aspxIsExists(needWriteResultToBody)?needWriteResultToBody:true;var callInfo=new ASPxJSProfilerCallInfo(procName,args);if(needWriteResultToBody)ASPxJSProfiler.WriteMessage(callInfo.GetEnterInfo());ASPxJSProfiler.callStack.push(callInfo);},Exit:function(needWriteResultToBody){needWriteResultToBody=_aspxIsExists(needWriteResultToBody)?needWriteResultToBody:true;if(ASPxJSProfiler.callStack.length==0)throw "CallStack is empty.";var callInfo=ASPxJSProfiler.callStack[ASPxJSProfiler.callStack.length-1];callInfo.Exit();ASPxJSProfiler.callStack.pop();var exitInfo=callInfo.GetExitInfo();if(needWriteResultToBody)ASPxJSProfiler.WriteMessage(exitInfo);else return{message:exitInfo,executionTime:callInfo.GetExecutionTime()};},CreateIndentString:function(){var indent="";for(var i=0;iimageElement.offsetLeft)this.offsetLeft=imageElement.offsetLeft;} var indentElement=(indexPath!="")?menu.GetItemIndentCell(indexPath):null;if(indentElement!=null){this.clientWidth+=indentElement.clientWidth;this.offsetWidth+=indentElement.offsetWidth;} var textElement=(indexPath!="")?menu.GetItemTextCell(indexPath):null;if(textElement!=null){this.clientWidth+=textElement.clientWidth;this.offsetWidth+=textElement.offsetWidth;if(this.clientLeft==0)this.clientLeft=_aspxGetClientLeft(textElement);if(this.offsetLeft>textElement.offsetLeft)this.offsetLeft=textElement.offsetLeft;this.clientTop=_aspxGetClientTop(textElement);this.offsetHeight+=textElement.offsetHeight;this.offsetTop=textElement.offsetTop;this.clientHeight=textElement.clientHeight;if(__aspxSafari3||__aspxChrome){if(!menu.IsVertical(indexPath))this.clientHeight=_aspxWebKit3TDRealInfo.GetClientHeight(textElement);if(imageElement!=null&&this.clientHeightpopOutImageElement.offsetLeft)this.offsetLeft=popOutImageElement.offsetLeft;}}});ASPxClientMenuBase=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.allowSelectItem=false;this.allowCheckItems=false;this.appearAfter=300;this.animationDelay=30;this.animationMaxDelay=400;this.disappearAfter=500;this.enableAnimation=true;this.checkedItems=new Array();this.itemCheckedGroups=new Array();this.lockHoverEvents=false;this.popupToLeft=false;this.popupCount=0;this.rootItem=null;this.showSubMenus=false;this.savedCallbackHoverItem=null;this.savedCallbackHoverElement=null;this.rootSubMenuFIXOffset=0;this.rootSubMenuFIYOffset=0;this.rootSubMenuLIXOffset=0;this.rootSubMenuLIYOffset=0;this.rootSubMenuXOffset=0;this.rootSubMenuYOffset=0;this.subMenuFIXOffset=0;this.subMenuFIYOffset=0;this.subMenuLIXOffset=0;this.subMenuLIYOffset=0;this.subMenuXOffset=0;this.subMenuYOffset=0;this.ItemClick=new ASPxClientEvent();this.ItemMouseOver=new ASPxClientEvent();this.ItemMouseOut=new ASPxClientEvent();this.PopUp=new ASPxClientEvent();this.CloseUp=new ASPxClientEvent();aspxGetMenuCollection().Add(this);},InlineInitialize:function(){this.InitializeInternal(true);if(this.IsCallbacksEnabled()){this.showSubMenus=this.GetLoadingPanelElement()!=null;this.CreateCallback();_aspxInitializeScripts();}else this.showSubMenus=true;},InitializeInternal:function(inline){this.InitializeCheckedItems();this.InitializeSelectedItem();this.InitializeEnabledAndVisible(!inline||!this.IsCallbacksEnabled());},InitializeEnabledAndVisible:function(recursive){if(this.rootItem==null)return;for(var i=0;iimagePos){position=imagePos;element=imageElement;}if(textElement!=null&&position>textPos){position=textPos;element=textElement;}if(popOutImageElement!=null&&position>popOutImagePos){position=popOutImagePos;element=popOutImageElement;}}if(element!=null&&_aspxIsExistsAbsolutePosParent(element))position-=_aspxGetIEDocumentClientOffset(true);}return position;},GetSubMenuYPosition:function(indexPath,menuElement){var position=0;var element=this.GetItemTextOrImageCell(indexPath);if(element!=null){if(this.IsVertical(indexPath)){position=_aspxGetAbsoluteY(element);}else{if(__aspxNS||__aspxOpera9||__aspxSafari3||__aspxChrome)position=_aspxGetAbsoluteY(element)+element.offsetHeight-_aspxGetClientTop(element);else if(__aspxSafariFamily)position=_aspxGetAbsoluteY(element)+element.offsetHeight+element.offsetTop-_aspxGetClientTop(element);else position=_aspxGetAbsoluteY(element)+element.clientHeight+_aspxGetClientTop(element);}if(_aspxIsExistsAbsolutePosParent(element))position-=_aspxGetIEDocumentClientOffset(false);}return position;},GetClientSubMenuXPosition:function(element,x,indexPath){var itemInfo=new ASPxClientMenuItemInfo(this,indexPath);var itemWidth=itemInfo.clientWidth;var itemOffsetWidth=itemInfo.offsetWidth;var menuWidth=this.GetMenuMainCell(element).offsetWidth;var bodyWidth=_aspxGetDocumentClientWidth();if(this.IsVertical(indexPath)){var left=x-_aspxGetDocumentScrollLeft();var right=left+menuWidth;var toLeftX=x-menuWidth-itemWidth;var toLeftLeft=left-menuWidth-itemWidth;var toLeftRight=right-menuWidth-itemWidth;if(this.popupToLeft){if(toLeftLeft<0&&toLeftLeftbodyHeight&&top-menuHeight+itemHeight>bodyHeight-bottom)return y-menuHeight+itemHeight;}else{if(bottom>bodyHeight&&top-menuHeight-itemHeight>bodyHeight-bottom)return y-menuHeight-itemHeight;}return y;},HasChildren:function(indexPath){return(this.GetMenuElement(indexPath)!=null);},IsVertical:function(indexPath){return true;},IsRootItem:function(indexPath){return this.GetMenuLevel(indexPath)<=1;},IsParentElementPositionStatic:function(indexPath){return this.IsRootItem(indexPath);},GetItemIndexPath:function(indexes){return aspxGetMenuCollection().GetItemIndexPath(indexes);},GetItemIndexes:function(indexPath){return aspxGetMenuCollection().GetItemIndexes(indexPath);},GetItemIndexPathById:function(id){return aspxGetMenuCollection().GetIndexPathById(id,false);},GetMenuIndexPathById:function(id){return aspxGetMenuCollection().GetIndexPathById(id,true);},GetIndexPathById:function(id,checkMenu){var indexPath=this.GetItemIndexPathById(id);if(indexPath==""&&checkMenu)indexPath=this.GetMenuIndexPathById(id);return indexPath;},GetMenuLevel:function(indexPath){return aspxGetMenuCollection().GetMenuLevel(indexPath);},GetParentIndexPath:function(indexPath){var indexes=this.GetItemIndexes(indexPath);indexes.length--;return(indexes.length>0)?this.GetItemIndexPath(indexes):"";},GetFirstChildIndexPath:function(indexPath){var indexes=this.GetItemIndexes(indexPath);indexes[indexes.length]=0;var newIndexPath=this.GetItemIndexPath(indexes);return this.GetFirstSiblingIndexPath(newIndexPath);},GetFirstSiblingIndexPath:function(indexPath){var indexes=this.GetItemIndexes(indexPath);var i=0;while(true){indexes[indexes.length-1]=i;var newIndexPath=this.GetItemIndexPath(indexes);if(!this.IsItemExist(newIndexPath))return null;if(this.IsItemExistAndEnabled(newIndexPath))return newIndexPath;i++;}return null;},GetLastSiblingIndexPath:function(indexPath){var indexes=this.GetItemIndexes(indexPath);var newIndexPath=null;var i=indexes[indexes.length-1]+1;while(true){indexes[indexes.length-1]=i;var nextIndexPath=this.GetItemIndexPath(indexes);if(!this.IsItemExist(nextIndexPath))return newIndexPath;if(this.IsItemExistAndEnabled(nextIndexPath))newIndexPath=nextIndexPath;i++;}return null;},GetNextSiblingIndexPath:function(indexPath){if(this.IsLastItem(indexPath))return null;var indexes=this.GetItemIndexes(indexPath);var i=indexes[indexes.length-1]+1;while(true){indexes[indexes.length-1]=i;var newIndexPath=this.GetItemIndexPath(indexes);if(!this.IsItemExist(newIndexPath))return null;if(this.IsItemExistAndEnabled(newIndexPath))return newIndexPath;i++;}return null;},GetPrevSiblingIndexPath:function(indexPath){if(this.IsFirstItem(indexPath))return null;var indexes=this.GetItemIndexes(indexPath);var i=indexes[indexes.length-1]-1;while(true){indexes[indexes.length-1]=i;var newIndexPath=this.GetItemIndexPath(indexes);if(!this.IsItemExist(newIndexPath))return null;if(this.IsItemExistAndEnabled(newIndexPath))return newIndexPath;i--;}return null;},IsLastElement:function(element){return _aspxIsExists(element)&&(!_aspxIsExists(element.nextSibling)||!_aspxIsExists(element.nextSibling.tagName));},IsLastItem:function(indexPath){if(this.IsVertical(indexPath)){var itemElement=this.GetItemElement(indexPath);return this.IsLastElement(itemElement);}else{var imageCell=this.GetItemImageCell(indexPath);if(this.IsLastElement(imageCell))return true;var textCell=this.GetItemTextCell(indexPath);if(this.IsLastElement(textCell))return true;var popOutImageCell=this.GetItemPopOutImageCell(indexPath);if(this.IsLastElement(popOutImageCell))return true;return false;}},IsFirstElement:function(element){return _aspxIsExists(element)&&(!_aspxIsExists(element.previousSibling)||!_aspxIsExists(element.previousSibling.tagName));},IsFirstItem:function(indexPath){if(this.IsVertical(indexPath)){var itemElement=this.GetItemElement(indexPath);return this.IsFirstElement(itemElement);}else{var imageCell=this.GetItemImageCell(indexPath);if(this.IsFirstElement(imageCell))return true;var textCell=this.GetItemTextCell(indexPath);if(this.IsFirstElement(textCell))return true;var popOutImageCell=this.GetItemPopOutImageCell(indexPath);if(this.IsFirstElement(popOutImageCell))return true;return false;}},IsItemExist:function(indexPath){return _aspxIsExists(this.GetItemTextOrImageCell(indexPath));},IsItemExistAndEnabled:function(indexPath){var cell=this.GetItemTextOrImageCell(indexPath);if(_aspxIsExists(cell)){var link=_aspxGetChildByTagName(cell,"A",0);if(link!=null)return!_aspxIsExists(cell.enabled)||cell.enabled;}return false;},GetClientSubMenuPos:function(element,indexPath,pos,isXPos){if(!_aspxGetIsValidPosition(pos)){pos=isXPos?this.GetSubMenuXPosition(indexPath,element):this.GetSubMenuYPosition(indexPath,element);if(__aspxSafariFamily){if(!this.IsParentElementPositionStatic(indexPath))pos-=isXPos?document.body.offsetLeft:document.body.offsetTop;}} var clientPos=isXPos?this.GetClientSubMenuXPosition(element,pos,indexPath):this.GetClientSubMenuYPosition(element,pos,indexPath);var isInverted=pos!=clientPos;var offset=isXPos?this.GetSubMenuXOffset(indexPath):this.GetSubMenuYOffset(indexPath);clientPos+=isInverted?-offset:offset;clientPos-=_aspxGetPositionElementOffset(this.GetMenuElement(indexPath),isXPos);return new _aspxPopupPosition(clientPos,isInverted);},GetSubMenuXOffset:function(indexPath){if(indexPath=="")return 0;else if(this.IsRootItem(indexPath)){if(this.IsFirstItem(indexPath))return this.rootSubMenuFIXOffset;else if(this.IsLastItem(indexPath))return this.rootSubMenuLIXOffset;else return this.rootSubMenuXOffset;}else{if(this.IsFirstItem(indexPath))return this.subMenuFIXOffset;else if(this.IsLastItem(indexPath))return this.subMenuLIXOffset;else return this.subMenuXOffset;}},GetSubMenuYOffset:function(indexPath){if(indexPath=="")return 0;else if(this.IsRootItem(indexPath)){if(this.IsFirstItem(indexPath))return this.rootSubMenuFIYOffset;else if(this.IsLastItem(indexPath))return this.rootSubMenuLIYOffset;else return this.rootSubMenuYOffset;}else{if(this.IsFirstItem(indexPath))return this.subMenuFIYOffset;else if(this.IsLastItem(indexPath))return this.subMenuLIYOffset;else return this.subMenuYOffset;}},ClearAppearTimer:function(){aspxGetMenuCollection().ClearAppearTimer();},ClearDisappearTimer:function(){aspxGetMenuCollection().ClearDisappearTimer();},IsAppearTimerActive:function(){return aspxGetMenuCollection().IsAppearTimerActive();},IsDisappearTimerActive:function(){return aspxGetMenuCollection().IsDisappearTimerActive();},SetAppearTimer:function(indexPath){aspxGetMenuCollection().SetAppearTimer(this.name,indexPath,this.appearAfter);},SetDisappearTimer:function(){aspxGetMenuCollection().SetDisappearTimer(this.name,this.disappearAfter);},DoItemClick:function(indexPath,hasItemLink,htmlEvent){var processOnServer=this.RaiseItemClick(indexPath,htmlEvent);if(processOnServer&&!hasItemLink)this.SendPostBack("CLICK:"+indexPath);else{this.ClearDisappearTimer();this.ClearAppearTimer();if(!this.HasChildren(indexPath))aspxGetMenuCollection().DoHidePopupMenus(null,-1,this.name,false,"");else if(this.IsItemEnabled(indexPath))this.ShowSubMenu(indexPath);}},DoShowPopupMenu:function(element,x,y,indexPath){if(element!=null&&this.IsCallbacksEnabled()){var mainCell=this.GetMenuMainCell(element);if(mainCell!=null&&mainCell.innerHTML=="")this.CreateLoadingPanelInsideContainer(mainCell);}if(__aspxNS)_aspxSetStylePosition(element,-1000,-1000);_aspxSetElementDisplay(element,true);if(this.popupCount==0)this.popupToLeft=false;var horizontalPopupPosition=this.GetClientSubMenuPos(element,indexPath,x,true);var verticalPopupPosition=this.GetClientSubMenuPos(element,indexPath,y,false);var clientX=horizontalPopupPosition.position;var clientY=verticalPopupPosition.position;var toTheLeft=horizontalPopupPosition.isInverted;var toTheTop=verticalPopupPosition.isInverted;if(this.enableAnimation){this.StartAnimation(element,indexPath,horizontalPopupPosition,verticalPopupPosition);}else{_aspxSetStylePosition(element,clientX,clientY);_aspxSetElementVisibility(element,true);this.DoShowPopupMenuIFrame(element,clientX,clientY,__aspxInvalidDimension,__aspxInvalidDimension,indexPath);this.DoShowPopupMenuBorderCorrector(element,clientX,clientY,indexPath,toTheLeft,toTheTop);} aspxGetMenuCollection().RegisterVisiblePopupMenu(this.name,element.id);this.popupCount++;this.RaisePopUp(indexPath);},DoShowPopupMenuIFrame:function(element,x,y,width,height,indexPath){if(!this.renderIFrameForPopupElements)return;var iFrame=element.overflowElement;if(!_aspxIsExists(iFrame)){iFrame=this.GetMenuIFrameElement(indexPath);element.overflowElement=iFrame;}if(_aspxIsExists(iFrame)){var cell=this.GetMenuMainCell(element);if(width<0)width=cell.offsetWidth;if(height<0)height=cell.offsetHeight;_aspxSetStyleSize(iFrame,width,height);_aspxSetStylePosition(iFrame,x,y);_aspxSetElementDisplay(iFrame,true);}},DoShowPopupMenuBorderCorrector:function(element,x,y,indexPath,toTheLeft,toTheTop){var borderCorrectorElement=this.GetMenuBorderCorrectorElement(indexPath);if(_aspxIsExists(borderCorrectorElement)){var itemInfo=new ASPxClientMenuItemInfo(this,indexPath);var menuXOffset=_aspxGetClientLeft(this.GetMenuMainCell(element));var menuYOffset=_aspxGetClientTop(this.GetMenuMainCell(element));var menuClientWidth=this.GetMenuMainCell(element).clientWidth;var menuClientHeight=this.GetMenuMainCell(element).clientHeight;var width=0,height=0,left=0,top=0;if(this.IsVertical(indexPath)){var commonClientHeight=itemInfo.clientHeight0)width+=itemInfo.clientLeft;} _aspxSetStyleSize(borderCorrectorElement,width,height);_aspxSetStylePosition(borderCorrectorElement,left,top);_aspxSetElementVisibility(borderCorrectorElement,true);_aspxSetElementDisplay(borderCorrectorElement,true);element.borderCorrectorElement=borderCorrectorElement;}},DoHidePopupMenu:function(evt,element){this.DoHidePopupMenuBorderCorrector(element);this.DoHidePopupMenuIFrame(element);_aspxStopAnimation(element);_aspxSetElementVisibility(element,false);_aspxSetElementDisplay(element,false);this.CancelSubMenuItemHoverItem(element);aspxGetMenuCollection().UnregisterVisiblePopupMenu(this.name,element.id);this.popupCount--;var indexPath=this.GetIndexPathById(element.id,true);this.RaiseCloseUp(indexPath);},DoHidePopupMenuIFrame:function(element){if(!this.renderIFrameForPopupElements)return;var iFrame=element.overflowElement;if(_aspxIsExists(iFrame))_aspxSetElementDisplay(iFrame,false);},DoHidePopupMenuBorderCorrector:function(element){var borderCorrectorElement=element.borderCorrectorElement;if(_aspxIsExists(borderCorrectorElement)){_aspxSetElementVisibility(borderCorrectorElement,false);_aspxSetElementDisplay(borderCorrectorElement,false);element.borderCorrectorElement=null;}},SetHoverElement:function(element){this.lockHoverEvents=true;aspxGetStateController().SetCurrentHoverElementBySrcElement(element);this.lockHoverEvents=false;},ApplySubMenuItemHoverItem:function(element,hoverItem,hoverElement){if(_aspxGetElementDisplay(element)&&!_aspxIsExists(element.hoverItem)){var newHoverItem=hoverItem.Clone();element.hoverItem=newHoverItem;element.hoverElement=hoverElement;newHoverItem.Apply(hoverElement);}},CancelSubMenuItemHoverItem:function(element){if(_aspxIsExists(element.hoverItem)){element.hoverItem.Cancel(element.hoverElement);element.hoverItem=null;element.hoverElement=null;}},ShowSubMenu:function(indexPath){var element=this.GetMenuElement(indexPath);if(element!=null){var level=this.GetMenuLevel(indexPath);aspxGetMenuCollection().DoHidePopupMenus(null,level-1,this.name,false,element.id);if(!_aspxGetElementDisplay(element))this.DoShowPopupMenu(element,__aspxInvalidPosition,__aspxInvalidPosition,indexPath);} this.ClearAppearTimer();},SelectItem:function(indexPath){var element=this.GetItemTextOrImageCell(indexPath);if(element!=null)aspxGetStateController().SelectElementBySrcElement(element);},DeselectItem:function(indexPath){var element=this.GetItemTextOrImageCell(indexPath);if(element!=null){var hoverItem=null;var hoverElement=null;var menuElement=this.GetMenuElement(indexPath);if(menuElement!=null&&_aspxIsExists(menuElement.hoverItem)){hoverItem=menuElement.hoverItem;hoverElement=menuElement.hoverElement;this.CancelSubMenuItemHoverItem(menuElement);} aspxGetStateController().DeselectElementBySrcElement(element);if(menuElement!=null&&hoverItem!=null)this.ApplySubMenuItemHoverItem(menuElement,hoverItem,hoverElement);}},InitializeSelectedItem:function(){if(!this.allowSelectItem)return;var inputElement=this.GetSelectedItemInputElement();if(inputElement!=null)this.SelectItem(inputElement.value);},SetSelectedItemInternal:function(indexPath,modifyHotTrackSelection){if(modifyHotTrackSelection)this.SetHoverElement(null);var inputElement=this.GetSelectedItemInputElement();if(inputElement!=null){this.DeselectItem(inputElement.value);inputElement.value=indexPath;this.SelectItem(inputElement.value);}if(modifyHotTrackSelection){var element=this.GetItemTextOrImageCell(indexPath);if(element!=null)this.SetHoverElement(element);}},InitializeCheckedItems:function(){if(!this.allowCheckItems)return;var inputElement=this.GetCheckedItemsInputElement();if(inputElement!=null){var indexPathes=inputElement.value.split(";");for(var i=0;i1){if(!this.IsCheckedItem(indexPath)){for(var i=0;i-1)return this.itemCheckedGroups[i];}return null;},IsCheckedItem:function(indexPath){return _aspxArrayIndexOf(this.checkedItems,indexPath)>-1;},UpdateCheckedInputElement:function(inputElement){var state="";for(var i=0;i1){for(var i=0;i=0;i--){if(parent.GetItem(i).GetVisible())return true;}return false;},GetItemIndentElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_II");},GetItemSeparatorElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_IS");},GetItemSeparatorIndentElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_ISI");},RaiseItemClick:function(indexPath,htmlEvent){var processOnServer=this.autoPostBack||this.IsServerEventAssigned("ItemClick");if(!this.ItemClick.IsEmpty()){var item=this.GetItemByIndexPath(indexPath);var htmlElement=this.GetItemTextOrImageCell(indexPath);var args=new ASPxClientMenuItemClickEventArgs(processOnServer,item,htmlElement,htmlEvent);this.ItemClick.FireEvent(this,args);processOnServer=args.processOnServer;}return processOnServer;},RaiseItemMouseOver:function(indexPath){if(!this.ItemMouseOver.IsEmpty()){var item=this.GetItemByIndexPath(indexPath);var htmlElement=this.GetItemTextOrImageCell(indexPath);var args=new ASPxClientMenuItemMouseEventArgs(item,htmlElement);this.ItemMouseOver.FireEvent(this,args);}},RaiseItemMouseOut:function(indexPath){if(!this.ItemMouseOut.IsEmpty()){var item=this.GetItemByIndexPath(indexPath);var htmlElement=this.GetItemTextOrImageCell(indexPath);var args=new ASPxClientMenuItemMouseEventArgs(item,htmlElement);this.ItemMouseOut.FireEvent(this,args);}},RaisePopUp:function(indexPath){var item=this.GetItemByIndexPath(indexPath);if(!this.PopUp.IsEmpty()){var args=new ASPxClientMenuItemEventArgs(false,item);this.PopUp.FireEvent(this,args);}},RaiseCloseUp:function(indexPath){var item=this.GetItemByIndexPath(indexPath);if(!this.CloseUp.IsEmpty()){var args=new ASPxClientMenuItemEventArgs(false,item);this.CloseUp.FireEvent(this,args);}},GetItemCount:function(){return(this.rootItem!=null)?this.rootItem.GetItemCount():0;},GetItem:function(index){return(this.rootItem!=null)?this.rootItem.GetItem(index):null;},GetItemByName:function(name){return(this.rootItem!=null)?this.rootItem.GetItemByName(name):null;},GetSelectedItem:function(){var inputElement=this.GetSelectedItemInputElement();if(inputElement!=null&&inputElement.value!="")return this.GetItemByIndexPath(inputElement.value);return null;},SetSelectedItem:function(item){var indexPath=(item!=null)?item.GetIndexPath():"";this.SetSelectedItemInternal(indexPath,false);}});ASPxClientMenuBase.GetMenuCollection=function(){return aspxGetMenuCollection();} ASPxClientMenuCollection=_aspxCreateClass(ASPxClientControlCollection,{constructor:function(){this.constructor.prototype.constructor.call(this);this.appearTimerID=-1;this.disappearTimerID=-1;this.visibleSubMenusMenuName="";this.visibleSubMenuIds=new Array();this.overXPos=-1;this.overYPos=-1;},RegisterVisiblePopupMenu:function(name,id){_aspxArrayPush(this.visibleSubMenuIds,id);this.visibleSubMenusMenuName=name;},UnregisterVisiblePopupMenu:function(name,id){_aspxArrayRemove(this.visibleSubMenuIds,id);if(this.visibleSubMenuIds.length==0)this.visibleSubMenusMenuName="";},GetMenu:function(id){return this.Get(this.GetMenuName(id));},GetMenuName:function(id){var pos=id.lastIndexOf(__aspxMMIdSuffix);if(pos==-1)pos=id.lastIndexOf(__aspxMIIdSuffix);if(pos>-1)return id.substring(0,pos);return id;},GetMenuLevel:function(indexPath){if(indexPath=="")return 0;else{var indexes=this.GetItemIndexes(indexPath);return indexes.length;}},GetMenuLevelById:function(id,isMenu){var indexPath=this.GetIndexPathById(id,isMenu);return this.GetMenuLevel(indexPath);},GetIndexPathById:function(id,isMenu){var idSuffix=isMenu?__aspxMMIdSuffix:__aspxMIIdSuffix;var pos=id.lastIndexOf(idSuffix);if(pos>-1){id=id.substring(pos+idSuffix.length);pos=id.lastIndexOf("_");if(pos>-1)return id.substring(0,pos);}return "";},GetItemIndexPath:function(indexes){var indexPath="";for(var i=0;i-1;},IsDisappearTimerActive:function(){return this.disappearTimerID>-1;},SetAppearTimer:function(name,indexPath,timeout){this.appearTimerID=_aspxSetTimeout("aspxMIMOverTimer(\""+name+"\", \""+indexPath+"\")",timeout);},SetDisappearTimer:function(name,timeout){this.disappearTimerID=_aspxSetTimeout("aspxMIMOutTimer(\""+name+"\")",timeout);},GetMouseDownMenuLevel:function(evt){var srcElement=_aspxGetEventSource(evt);if(this.visibleSubMenusMenuName!=""){var element=_aspxGetParentById(srcElement,this.visibleSubMenusMenuName);if(element!=null)return 1;}for(var i=0;i=0;i--){var menu=this.GetMenu(this.visibleSubMenuIds[i]);if(menu!=null){var menuLevel=this.GetMenuLevelById(this.visibleSubMenuIds[i],true);if((!leavePopups||menuLevel>0)&&exceptId!=this.visibleSubMenuIds[i]){if(menuLevel>level||(menu.name!=name&&name!="")){var element=_aspxGetElementById(this.visibleSubMenuIds[i]);if(element!=null)menu.DoHidePopupMenu(evt,element);}}}}},DoShowAtCurrentPos:function(name,indexPath){var pc=this.Get(name);var element=pc.GetMainElement();if(pc!=null&&!_aspxGetElementDisplay(element))pc.DoShowPopupMenu(element,this.overXPos,this.overYPos,indexPath);},SaveCurrentMouseOverPos:function(evt){this.overXPos=_aspxGetEventX(evt);this.overYPos=_aspxGetEventY(evt);},OnMouseDown:function(evt){var menuLevel=this.GetMouseDownMenuLevel(evt);this.DoHidePopupMenus(evt,menuLevel,"",false,"");},HideAll:function(){this.DoHidePopupMenus(null,-1,"",false,"");}});var __aspxMCollection=null;function aspxGetMenuCollection(){if(__aspxMCollection==null)__aspxMCollection=new ASPxClientMenuCollection();return __aspxMCollection;} ASPxClientMenuItem=_aspxCreateClass(null,{constructor:function(menu,parent,index,name){this.menu=menu;this.parent=parent;this.index=index;this.name=name;this.enabled=true;this.clientEnabled=true;this.visible=true;this.clientVisible=true;this.items=[];this.indexPath=null;},CreateItems:function(itemsProperties){var itemType=this.menu.GetClientItemType();for(var i=0;i-1);}});ASPxClientMenuItemEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer,item){this.constructor.prototype.constructor.call(this,processOnServer);this.item=item;}});ASPxClientMenuItemMouseEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(item,htmlElement){this.constructor.prototype.constructor.call(this);this.item=item;this.htmlElement=htmlElement;}});ASPxClientMenuItemClickEventArgs=_aspxCreateClass(ASPxClientMenuItemEventArgs,{constructor:function(processOnServer,item,htmlElement,htmlEvent){this.constructor.prototype.constructor.call(this,processOnServer,item);this.htmlElement=htmlElement;this.htmlEvent=htmlEvent;}});function aspxMIClick(evt,name,indexPath){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnItemClick(indexPath,evt);if(!__aspxNS)evt.cancelBubble=true;return true;} function aspxAMIMOver(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnAfterItemOver(args.item,args.element);} function aspxBMIMOver(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnBeforeItemOver(args.item,args.element);} function aspxMIMOverTimer(name,indexPath){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnItemOverTimer(indexPath);} function aspxBIDisabled(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnBeforeItemDisabled(args.item,args.element);} function aspxFIKeyDown(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnFocusedItemKeyDown(args.htmlEvent,args.item,args.element);} function aspxAMIMOut(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnAfterItemOut(args.item,args.element,args.toElement);} function aspxMIMOutTimer(name){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnItemOutTimer();} function aspxMContextMenu(evt){return _aspxCancelBubble(evt);} _aspxAttachEventToDocument("mousedown",aspxMenuDocumentMouseDown);function aspxMenuDocumentMouseDown(evt){return aspxGetMenuCollection().OnMouseDown(evt);} function aspxMATimer(name,indexPath){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnAnimationTimer(indexPath);} aspxAddAfterSetFocusedState(aspxAMIMOver);aspxAddAfterClearFocusedState(aspxAMIMOut);aspxAddAfterSetHoverState(aspxAMIMOver);aspxAddAfterClearHoverState(aspxAMIMOut);aspxAddBeforeSetFocusedState(aspxBMIMOver);aspxAddBeforeSetHoverState(aspxBMIMOver);aspxAddBeforeDisabled(aspxBIDisabled);aspxAddFocusedItemKeyDown(aspxFIKeyDown);ASPxClientPopupMenu=_aspxCreateClass(ASPxClientMenuBase,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.popupAction="RightMouseClick";this.popupElementID="";this.popupElement=null;this.popupHorizontalOffset=0;this.popupVerticalOffset=0;this.popupHorizontalAlign=__aspxNotSetAlignIndicator;this.popupVerticalAlign=__aspxNotSetAlignIndicator;this.left=0;this.top=0;this.shadowHeight=5;this.shadowWidth=5;},Initialize:function(){this.GetPopupElement();ASPxClientMenuBase.prototype.Initialize.call(this);},GetPopupElement:function(){if(!_aspxIsExistsElement(this.popupElement)){this.popupElement=_aspxFindPopupElementById(this.popupElementID);if(_aspxIsExistsElement(this.popupElement)){this.popupElement.DXMenu=this;if(this.popupAction=="LeftMouseClick")_aspxAttachEventToElement(this.popupElement,"mouseup",aspxMEvent);else if(this.popupAction=="RightMouseClick")_aspxAttachEventToElement(this.popupElement,"contextmenu",aspxMEvent);else if(this.popupAction=="MouseOver"){_aspxAttachEventToElement(this.popupElement,"mouseover",aspxMEvent);_aspxAttachEventToElement(this.popupElement,"mouseout",aspxMEvent);}if(this.popupAction=="LeftMouseClick"){_aspxAttachEventToElement(this.popupElement,"mousedown",aspxMEvent);this.popupElement.isPopuped=false;}}}return this.popupElement;},IsMenuVisible:function(){var element=this.GetMainElement();return(element!=null)?_aspxGetElementDisplay(element):false;},IsParentElementPositionStatic:function(indexPath){return false;},GetClientSubMenuPos:function(element,indexPath,pos,isXPos){if(indexPath==""){var popupPosition=null;if(isXPos){popupPosition=_aspxGetPopupAbsoluteX(this.GetMenuMainCell(this.GetMainElement()),this.shadowWidth,this.GetPopupElement(),this.popupHorizontalAlign,this.popupHorizontalOffset,pos,this.left);}else{popupPosition=_aspxGetPopupAbsoluteY(this.GetMenuMainCell(this.GetMainElement()),this.shadowHeight,this.GetPopupElement(),this.popupVerticalAlign,this.popupVerticalOffset,pos,this.top);} popupPosition.position-=_aspxGetPositionElementOffset(element,isXPos);return popupPosition;}return ASPxClientMenuBase.prototype.GetClientSubMenuPos.call(this,element,indexPath,pos,isXPos);},GetMenuElement:function(indexPath){if(indexPath=="")return this.mainElement;return ASPxClientMenuBase.prototype.GetMenuElement.call(this,indexPath);},OnItemOverTimer:function(indexPath){if(indexPath==""){aspxGetMenuCollection().DoHidePopupMenus(null,-1,this.name,false,"");aspxGetMenuCollection().DoShowAtCurrentPos(this.name,indexPath);}else ASPxClientMenuBase.prototype.OnItemOverTimer.call(this,indexPath);},DoShow:function(x,y){var element=this.GetMainElement();if(element!=null&&!_aspxGetElementDisplay(element)){aspxGetMenuCollection().DoHidePopupMenus(null,-1,this.name,false,"");this.DoShowPopupMenu(element,x,y,"");}},DoShowByAPI:function(x,y){var enableAnimationBackup=this.enableAnimation;this.enableAnimation=false;this.DoShow(x,y);this.enableAnimation=enableAnimationBackup;},DoHidePopupMenu:function(evt,element){if((__aspxNS||__aspxSafariFamily)&&_aspxIsExists(evt)&&this.GetPopupElement()!=null&&_aspxIsExists(this.GetPopupElement().isPopuped)){if(_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupMenuElement)==this.GetPopupElement()){this.GetPopupElement().isPopuped=true;}} ASPxClientMenuBase.prototype.DoHidePopupMenu.call(this,evt,element);},DoShowPopupMenuBorderCorrector:function(element,x,y,indexPath,toTheLeft,toTheTop){if(indexPath!="")ASPxClientMenuBase.prototype.DoShowPopupMenuBorderCorrector.call(this,element,x,y,indexPath,toTheLeft,toTheTop);},ShowInternal:function(evt){var x=_aspxGetEventX(evt);var y=_aspxGetEventY(evt);if(evt.type=="mouseover")aspxGetMenuCollection().SetAppearTimer(this.name,"",this.appearAfter);else this.DoShow(x,y);},GetAnimationHorizontalDirection:function(indexPath,popupPosition){if(this.GetMenuLevel(indexPath)==0)return _aspxGetAnimationHorizontalDirection(popupPosition,this.popupHorizontalAlign,this.popupVerticalAlign);else return popupPosition.isInverted?1:-1;},GetAnimationVerticalDirection:function(indexPath,popupPosition){if(this.GetMenuLevel(indexPath)==0)return _aspxGetAnimationVerticalDirection(popupPosition,this.popupHorizontalAlign,this.popupVerticalAlign);else return 0;},ReplacePopupElementID:function(newPopupElementID){var popupElementIDBackup=this.popupElementID;this.popupElementID=newPopupElementID;this.popupElement=null;this.GetPopupElement();return popupElementIDBackup;},Hide:function(){var element=this.GetMainElement();if(element!=null)this.DoHidePopupMenu(null,element);},Show:function(){this.DoShowByAPI(__aspxInvalidPosition,__aspxInvalidPosition);},ShowAtElement:function(htmlElement){var popupElementBackup=this.popupElement;this.popupElement=htmlElement;this.DoShowByAPI(__aspxInvalidPosition,__aspxInvalidPosition);this.popupElement=popupElementBackup;},ShowAtElementByID:function(id){var htmlElement=document.getElementById(id);this.ShowAtElement(htmlElement);},ShowAtPos:function(x,y){var popupElementIDBackup=this.ReplacePopupElementID("");this.DoShowByAPI(x,y);this.ReplacePopupElementID(popupElementIDBackup);},GetVisible:function(){return this.IsMenuVisible();},SetVisible:function(visible){if(visible&&!this.IsMenuVisible())this.Show();else if(!visible&&this.IsMenuVisible())this.Hide();}});function aspxMEvent(evt){var element=_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupMenuElement);if(element!=null){if(evt.type=="mouseout")return aspxPMOnMouseOut(evt,element);else if(evt.type=="mouseover")return aspxPMOnMouseOver(evt,element);else if(evt.type=="mousedown")return aspxPMOnMouseDown(evt,element);else return aspxPMOnMouseUp(evt,element);}} function aspxPMOnMouseDown(evt,element){if(!__aspxNS&&!__aspxSafariFamily&&_aspxIsExists(element.isPopuped))element.isPopuped=element.DXMenu.IsMenuVisible();} function aspxPMOnMouseUp(evt,element){if(element.DXMenu.popupAction=="RightMouseClick"||_aspxGetIsLeftButtonPressed(evt)){if(element.DXMenu.popupAction=="RightMouseClick")_aspxPreventContextMenu(evt);if(element.isPopuped!=true)element.DXMenu.ShowInternal(evt);else if((__aspxNS||__aspxSafariFamily)&&_aspxIsExists(element.isPopuped))element.isPopuped=false;return _aspxCancelBubble(evt);}} function aspxPMOnMouseOver(evt,element){if(!element.DXMenu.IsMenuVisible())element.DXMenu.ShowInternal(evt);} function aspxPMOnMouseOut(evt,element){if(!element.DXMenu.IsMenuVisible())aspxGetMenuCollection().ClearAppearTimer();} function aspxTestPopupMenuElement(element){return _aspxIsExists(element.DXMenu);} _aspxAttachEventToDocument("mousemove",aspxPopupControlDocumentMouseMove);function aspxPopupControlDocumentMouseMove(evt){if(aspxGetMenuCollection().IsAppearTimerActive()){var element=_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupMenuElement);if(element!=null&&!element.DXMenu.IsMenuVisible())aspxGetMenuCollection().SaveCurrentMouseOverPos(evt);}} ASPxClientTabControlBase=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.activeTabIndex=0;this.callbackCount=0;this.cookieName="";this.emptyHeight=false;this.emptyWidth=false;this.tabAlign="Left";this.tabPosition="Top";this.tabCount=0;this.tabs=[];this.tabsContentRequest=[];this.handleClickOnWholeTab=true;this.TabClick=new ASPxClientEvent();this.ActiveTabChanged=new ASPxClientEvent();this.ActiveTabChanging=new ASPxClientEvent();this.InitializeOnResize();},Initialize:function(){this.constructor.prototype.Initialize.call(this);this.CorrrectCellsBounds(true);},InlineInitialize:function(){this.InitializeEnabledAndVisible();this.CorrrectCellsBounds(true);},InitializeEnabledAndVisible:function(){for(var i=0;i0)?this.tabsContentRequest[0]:this.activeTabIndex;this.SetCallbackContent(result,callbackTabIndex,true);_aspxArrayRemoveAt(this.tabsContentRequest,0);},SetCallbackContent:function(html,index,isError){var element=this.GetContentElement(index);if(element!=null){if(!isError)element.loaded=true;element.loading=false;element.innerHTML=html;this.callbackCount--;if(this.callbackCount==0){this.UnfixControlSize();this.CorrrectCellsBounds(false);this.CorrectOperaTabCellsAlignment();}}},CreateTabs:function(tabsProperties){for(var i=0;i-1)?this.GetTab(this.activeTabIndex):null;},SetActiveTab:function(tab){if(this.IsTabVisible(tab.index))this.SetActiveTabIndexInternal(tab.index,false);},GetTabCount:function(){return this.tabs.length;},GetTab:function(index){return(0<=index&&index0)?this.groups.length:this.groupCount;},GetIndexPath:function(groupIndex,itemIndex){return(groupIndex!=-1&&itemIndex!=-1)?groupIndex+__aspxItemIndexSeparator+itemIndex:"";},GetGroupIndex:function(indexPath){var indexes=indexPath.split(__aspxItemIndexSeparator);return(indexes.length>0)?indexes[0]:-1;},GetItemIndex:function(indexPath){var indexes=indexPath.split(__aspxItemIndexSeparator);return(indexes.length>1)?indexes[1]:-1;},GetGroupState:function(){var state="";for(var i=0;i=innerElement.offsetHeight):(height<=0))||(new Date()-element.animationStart>this.animationMaxDelay);if(finished){this.ChangeGroupExpandState(groupIndex,element.expanding);element.style.overflow="";element.style.height="";element.style.width="";this.RaiseExpandedChanged(groupIndex);}else{element.style.height=height+"px";element.animationCount++;element.timerID=window.setTimeout("aspxNBAnimT(\""+this.name+"\", "+groupIndex+")",this.animationDelay);}}},OnHeaderClick:function(groupIndex,evt){var processingMode=this.RaiseHeaderClick(groupIndex,evt);var linkElement=_aspxGetParentByTagName(_aspxGetEventSource(evt),"A");if(linkElement==null||linkElement.href==__aspxAccessibilityEmptyUrl){if(processingMode=="Client"&&this.allowExpanding){var expanded=this.groupsExpanding[groupIndex];this.SetExpandedInternal(groupIndex,!expanded);aspxUpdateHoverState(evt);}else if(processingMode=="Server")this.SendPostBack("HEADERCLICK:"+groupIndex);}},OnItemClick:function(groupIndex,itemIndex,evt){var element=this.GetItemElement(groupIndex,itemIndex);var clickedLinkElement=_aspxGetParentByTagName(_aspxGetEventSource(evt),"A");var isLinkClicked=(clickedLinkElement!=null&&clickedLinkElement.href!=__aspxAccessibilityEmptyUrl);var linkElement=(element!=null)?_aspxGetChildByTagName(element,"A",0):null;if(linkElement!=null&&linkElement.href==__aspxAccessibilityEmptyUrl)linkElement=null;aspxClearHoverState();this.SetSelectedItemInternal(groupIndex,itemIndex);aspxUpdateHoverState(evt);this.DoItemClick(groupIndex,itemIndex,isLinkClicked||(linkElement!=null),evt);if(!isLinkClicked&&linkElement!=null)_aspxNavigateUrl(linkElement.href,linkElement.target);},OnCallbackInternal:function(html,index,isError){this.SetCallbackContent(html,index,isError);if(!isError)this.RaiseExpandedChanged(index);_aspxArrayRemoveAt(this.groupsExpandingRequest,0);},OnCallback:function(result){this.OnCallbackInternal(result.html,result.index,false);},OnCallbackError:function(result,data){this.OnCallbackInternal(result,data,true);},OnCallbackGeneralError:function(result){var callbackGroupIndex=(this.groupsExpandingRequest.length>0)?this.groupsExpandingRequest[0]:0;this.SetCallbackContent(result,callbackGroupIndex,true);_aspxArrayRemoveAt(this.groupsExpandingRequest,0);},SetCallbackContent:function(html,index,isError){var element=this.GetGroupContentElement(index);if(element!=null){element.innerHTML=html;if(!isError)element.loaded=true;element.loading=false;}},CreateGroups:function(groupsProperties){for(var i=0;i-1&&itemIndex>-1)return this.GetGroup(groupIndex).GetItem(itemIndex);}return null;},SetSelectedItem:function(item){var groupIndex=(item!=null)?item.group.index:-1;var itemIndex=(item!=null)?item.index:-1;this.SetSelectedItemInternal(groupIndex,itemIndex);},CollapseAll:function(){for(var i=0;i0){if(this.contentUrlArray.length==0)this.InitializeArray(this.contentUrlArray,"");if(this.popupElementIDArray.length==0)this.InitializeArray(this.popupElementIDArray,"");if(this.showOnPageLoadArray.length==0)this.InitializeArray(this.showOnPageLoadArray,false);if(this.isDraggedArray.length==0)this.InitializeArray(this.isDraggedArray,false);if(this.isResizedArray.length==0)this.InitializeArray(this.isResizedArray,false);if(this.zIndexArray.length==0)this.InitializeArray(this.zIndexArray,-1);if(this.leftArray.length==0)this.InitializeArray(this.leftArray,0);if(this.topArray.length==0)this.InitializeArray(this.topArray,0);if(this.widthArray.length==0)this.InitializeArray(this.widthArray,0);if(this.heightArray.length==0)this.InitializeArray(this.heightArray,0);if(__aspxIE){if(this.headerHeightArray.length==0)this.InitializeArray(this.headerHeightArray,-1);if(this.footerHeightArray.length==0)this.InitializeArray(this.footerHeightArray,-1);}}},InitializeArray:function(array,value){for(var i=0;i0){this.FirstShowWindow(index,false);aspxGetPopupControlCollection().SetWindowElementZIndex(element,this.GetZIndex(index));element.isPopupPositionCorrectionOn=true;}}},AfterInitializeWindow:function(index){if(this.GetShowOnPageLoad(index)&&this.GetZIndex(index)<0){this.FirstShowWindow(index,true);var element=this.GetWindowElement(index);if(element!=null)element.isPopupPositionCorrectionOn=true;}},AttachOnDragStartEventToWindowImages:function(index){this.AttachChildImagesPreventDragStartEvent(this.GetWindowHeaderElement(index));this.AttachChildImagesPreventDragStartEvent(this.GetWindowFooterElement(index));},AttachChildImagesPreventDragStartEvent:function(parentElem){var images=parentElem==null?null:_aspxGetElementsByTagName(parentElem,"img");if(images!=null){for(var i=0;i0)?this.windows.length:this.windowCount;},GetWindowIFrame:function(index){var element=this.GetWindowElement(index);var iFrame=element.overflowElement;if(!_aspxIsExists(iFrame)){iFrame=this.FindWindowIFrame(index);element.overflowElement=iFrame;}return iFrame;},FindWindowIFrame:function(index){return _aspxGetElementById(this.name+"_DXPWIF"+index);},GetWindowModalElement:function(index){var element=this.GetWindowElement(index);if(!_aspxIsExists(element))return;var modalElement=element.modalElement;if(!_aspxIsExists(modalElement)){modalElement=this.FindWindowModalElement(index);element.modalElement=modalElement;if(_aspxIsExists(modalElement)){modalElement.DXModalPopupControl=this;modalElement.DXModalPopupWindowIndex=index;}}return modalElement;},FindWindowModalElement:function(index){return _aspxGetElementById(this.name+"_DXPWMB"+index);},GetWindowElementId:function(index){return this.name+__aspxPCWIdSuffix+index;},GetWindowElement:function(index){if(!_aspxIsExistsElement(this.windowElements[index]))this.windowElements[index]=_aspxGetElementById(this.GetWindowElementId(index));return this.windowElements[index];},GetWindowChild:function(index,idPostfix){return _aspxGetChildById(this.GetWindowElement(index),this.name+idPostfix);},GetWindowContentIFrameDivElementID:function(index){return this.name+"_CIFD"+index;},GetWindowContentIFrameDivElement:function(index){return this.GetWindowChild(index,"_CIFD"+index);},GetWindowContentIFrameElementId:function(index){return this.name+"_CIF"+index;},GetWindowContentIFrameElement:function(index){return this.GetWindowChild(index,"_CIF"+index);},GetWindowContentIFrameUrl:function(index){if(0<=index&&index0)return mainCell.firstChild.offsetWidth;return this.GetWindowWidthInternal(index);}},GetCurrentWindowHeight:function(index){var element=this.GetWindowElement(index);if(element!=null){var mainCell=this.GetWindowMainCell(element);if(mainCell.firstChild.offsetHeight>0)return mainCell.firstChild.offsetHeight;return this.GetWindowHeightInternal(index);}},GetClientPopupPos:function(element,popupElement,pos,isX,isDragged){var index=this.GetWindowIndex(element);var popupPosition=null;if(isDragged)popupPosition=new _aspxPopupPosition(this.GetPosition(index,isX),false);else popupPosition=isX?this.GetClientPopupPosX(element,popupElement,pos):this.GetClientPopupPosY(element,popupElement,pos);popupPosition.position=_aspxPrepareClientPosForElement(popupPosition.position,element,isX);if(__aspxFirefox&&!__aspxFirefox3&&_aspxIsExists(this.GetWindowModalElement(index)))popupPosition.position-=isX?_aspxGetDocumentScrollLeft():_aspxGetDocumentScrollTop();if(__aspxIE&&!__aspxIE55&&popupElement!=null&&_aspxIsExistsAbsoluteOrRelativePosParent(popupElement))popupPosition.position-=_aspxGetIEDocumentClientOffset(isX);return popupPosition;},GetClientPopupPosX:function(element,popupElement,x){var mainElement=this.GetWindowMainCell(element);var popupPosition=_aspxGetPopupAbsoluteX(mainElement,this.shadowWidth,popupElement,this.popupHorizontalAlign,this.popupHorizontalOffset,x,this.GetWindowLeft(this.GetWindowIndex(element)));return this.CorrectPopupPositionForClientWindow(element,popupPosition,true);},GetClientPopupPosY:function(element,popupElement,y){var mainElement=this.GetWindowMainCell(element);var popupPosition=_aspxGetPopupAbsoluteY(mainElement,this.shadowHeight,popupElement,this.popupVerticalAlign,this.popupVerticalOffset,y,this.GetWindowTop(this.GetWindowIndex(element)));return(this.allowCorrectYOffsetPosition?this.CorrectPopupPositionForClientWindow(element,popupPosition,false):popupPosition);},CorrectPopupPositionForClientWindow:function(element,popupPosition,isX){if(element.isPopupPositionCorrectionOn){popupPosition.position=_aspxAdjustPositionToClientScreen(element,isX?this.shadowWidth:this.shadowHeight,popupPosition.position,isX);}return popupPosition;},DoShowWindow:function(index,evt){if(!this.InternalIsWindowVisible(index)){var x=_aspxGetEventX(evt);var y=_aspxGetEventY(evt);this.DoShowWindowAtPos(index,x,y,false,true,true);}},DoShowWindowAtPos:function(index,x,y,ignorePopupElement,closeOtherWindows,allowChangeZIndex){var element=this.GetWindowElement(index);if(element!=null){if(this.adjustInnerControlsSizeOnShow){var windowContent=this.GetWindowContentElement(index);var collection=aspxGetControlCollection();collection.CollapseControls(windowContent,__aspxCheckSizeCorrectedFlag);} this.FFTextCurFixShow(index,true);if(closeOtherWindows)aspxGetPopupControlCollection().DoHideAllWindows(null,this.GetWindowElementId(index),false);var isMoving=this.InternalIsWindowVisible(index);_aspxSetElementDisplay(element,true);if(__aspxIE&&!element.isIEContentHeightInit){element.isIEContentHeightInit=true;this.GetWindowContentElement(index).style.height="0px";this.CorrectContentCellHeight(element,false);} var popupElement=ignorePopupElement?null:this.GetPopupElement(index);var isDragged=this.GetIsDragged(index);var horizontalPopupPosition=this.GetClientPopupPos(element,popupElement,x,true,isDragged);var verticalPopupPosition=this.GetClientPopupPos(element,popupElement,y,false,isDragged);var clientX=horizontalPopupPosition.position;var clientY=verticalPopupPosition.position;this.SetWindowPos(index,element,clientX,clientY);this.DoShowWindowModalElement(index);var isAnimationNeed=this.enableAnimation&&!isMoving;if(isAnimationNeed)this.StartAnimation(element,index,horizontalPopupPosition,verticalPopupPosition);else _aspxSetElementVisibility(element,true);if(!isMoving){aspxGetPopupControlCollection().RegisterVisibleWindow(element);this.RaisePopUp(index);if(!this.enableAnimation)this.RaiseShowen(index);}if(allowChangeZIndex){aspxGetPopupControlCollection().ActivateWindowElement(element);}if(!isAnimationNeed&&__aspxNetscape&&_aspxIsExists(this.GetWindowModalElement(index))){_aspxSetElementDisplay(element,false);_aspxSetElementDisplay(element,true);} this.ShowWindowContentUrl(index);if(this.adjustInnerControlsSizeOnShow){collection.AdjustControls(windowContent,__aspxCheckSizeCorrectedFlag);}}},DoShowWindowIFrame:function(index,x,y,width,height){if(!this.renderIFrameForPopupElements)return;var element=this.GetWindowElement(index);var iFrame=this.GetWindowIFrame(index);if(_aspxIsExists(element)&&_aspxIsExists(iFrame)){var cell=this.GetWindowMainCell(element);if(width<0)width=cell.offsetWidth;if(height<0)height=cell.offsetHeight;_aspxSetStyleSize(iFrame,width,height);if(x!=__aspxInvalidPosition&&y!=__aspxInvalidPosition)_aspxSetStylePosition(iFrame,x,y);_aspxSetElementDisplay(iFrame,true);}},DoShowWindowModalElement:function(index){var modalElement=this.GetWindowModalElement(index);if(_aspxIsExists(modalElement)){if(this.hideBodyScrollWhenModal)_aspxHideBodyScroll();_aspxSetElementDisplay(modalElement,true);aspxGetPopupControlCollection().AdjustModalElementBounds(modalElement);_aspxSetElementVisibility(modalElement,true);aspxGetPopupControlCollection().RegisterVisibleModalElement(modalElement);}},DoHideWindow:function(index){if(!this.InternalIsWindowVisible(index))return;this.FFTextCurFixHide(index,true);var element=this.GetWindowElement(index);if(element!=null){element.isHiding=true;this.SetIsDragged(index,false);this.UpdateWindowsStateInputElement();this.UpdateWindowsStateCookie();element.isHiding=false;_aspxStopAnimation(element);_aspxSetElementVisibility(element,false);_aspxSetElementDisplay(element,false);this.DoHideWindowModalElement(element);this.DoHideWindowIFrame(element);aspxGetPopupControlCollection().UnregisterVisibleWindow(element);this.RaiseCloseUp(index);}},DoHideWindowIFrame:function(element){if(!this.renderIFrameForPopupElements)return;var iFrame=element.overflowElement;if(_aspxIsExists(iFrame))_aspxSetElementDisplay(iFrame,false);},DoHideWindowModalElement:function(element){var modalElement=element.modalElement;if(_aspxIsExists(modalElement)){aspxGetPopupControlCollection().UnregisterVisibleModalElement(modalElement);if(this.hideBodyScrollWhenModal)_aspxRestoreBodyScroll();_aspxSetStyleSize(modalElement,1,1);_aspxSetElementVisibility(modalElement,false);_aspxSetElementDisplay(modalElement,false);}},SetWindowDisplay:function(index,value){var pcwElement=this.GetWindowElement(index);this.SetFFTextCurFixShowing(index,value,false);_aspxSetElementDisplay(pcwElement,value);},GetTextCurFixDiv:function(index){return _aspxGetElementById(this.name+"_"+"TCFix"+index);},FFTextCurFixShow:function(index,isSetVisibility){this.SetFFTextCurFixShowing(index,true,isSetVisibility);},FFTextCurFixHide:function(index,isSetVisibility){this.SetFFTextCurFixShowing(index,false,isSetVisibility);},IsFFTextCurFixRequired:function(index){return __aspxFirefox&&_aspxIsExists(this.GetWindowModalElement(index));},SetFFTextCurFixShowing:function(index,value,isSetVisibility){if(this.IsFFTextCurFixRequired(index)){var fixDiv=this.GetTextCurFixDiv(index);if(_aspxIsExists(fixDiv)){if(isSetVisibility)_aspxSetElementVisibility(fixDiv,value);_aspxSetElementDisplay(fixDiv,value);}}},SetWindowPos:function(index,element,x,y){_aspxSetStylePosition(element,x,y);this.DoShowWindowIFrame(index,x,y,__aspxInvalidDimension,__aspxInvalidDimension);this.SetIsDragged(index,true);this.SetWindowLeft(index,_aspxGetAbsoluteX(element));this.SetWindowTop(index,_aspxGetAbsoluteY(element));this.UpdateWindowsStateInputElement();this.UpdateWindowsStateCookie();},CorrectContentCellHeight:function(element,isResizing){if(__aspxIE){var index=this.GetWindowIndex(element);var clientTable=this.GetWindowClientTable(index);var headerCell=this.GetWindowHeaderElement(index);var contentCell=this.GetWindowContentElement(index);var footerCell=this.GetWindowFooterElement(index);var windowMainCell=this.GetWindowMainCell(element);var mainCellHeight=windowMainCell.clientHeight-this.GetTwoVerticalPaddingSize(windowMainCell);var headerHeight=_aspxIsExists(headerCell)?headerCell.offsetHeight:0;var footerHeight=_aspxIsExists(footerCell)?footerCell.offsetHeight:0;if(isResizing){headerHeight=this.GetHeaderHeight(index);footerHeight=this.GetFooterHeight(index);}else{this.SetHeaderHeight(index,headerHeight);this.SetFooterHeight(index,footerHeight);} var correctedHeight=mainCellHeight-headerHeight-footerHeight;contentCell.style.height=correctedHeight+"px";var verticalsPaddings=contentCell.offsetHeight-correctedHeight;contentCell.style.height=correctedHeight-verticalsPaddings+"px";}},GetTwoVerticalPaddingSize:function(element){var heightWithBorders=element.clientHeight;var paddingTopBackup=element.style.paddingTop;var paddingBottomBackup=element.style.paddingBottom;element.style.paddingTop="0px";element.style.paddingBottom="0px";var heightWithoutBorders=element.clientHeight;element.style.paddingTop=paddingTopBackup;element.style.paddingBottom=paddingBottomBackup;return(heightWithBorders-heightWithoutBorders);},InternalIsWindowVisible:function(index){var element=this.GetWindowElement(index);return(element!=null)?_aspxGetElementVisibility(element):false;},OnActivate:function(index){var element=this.GetWindowElement(index);if(element!=null)aspxGetPopupControlCollection().ActivateWindowElement(element);},OnAnimationTimer:function(index){var animationDivElement=this.GetWindowElement(index);if(_aspxIsExists(animationDivElement)){var element=this.GetWindowMainTable(animationDivElement);var mainCell=this.GetWindowMainCell(animationDivElement);var iframeElement=this.GetWindowIFrame(index);_aspxOnAnimationTimer(animationDivElement,element,mainCell,iframeElement,this.animationDelay,this.animationMaxDelay,__aspxPCAnimationAccelerator);}},OnAnimationStop:function(index){this.RaiseShowen(index);},OnDragStart:function(evt,index){this.SetIsDragged(index,true);this.ShowDragCursor(index);var element=this.GetWindowElement(index);var gragXOffset=_aspxGetAbsoluteX(element)-_aspxGetEventX(evt)-_aspxGetIEDocumentClientOffset(true);var gragYOffset=_aspxGetAbsoluteY(element)-_aspxGetEventY(evt)-_aspxGetIEDocumentClientOffset(false);var xClientCorrection=_aspxGetPositionElementOffset(element,true);var yClientCorrection=_aspxGetPositionElementOffset(element,false);gragXOffset-=xClientCorrection;gragYOffset-=yClientCorrection;aspxGetPopupControlCollection().InitDragObject(this,index,gragXOffset,gragYOffset,xClientCorrection,yClientCorrection);},OnDrag:function(index,x,y,xClientCorrection,yClientCorrection){var element=this.GetWindowElement(index);if(element!=null){_aspxSetStylePosition(element,x,y);this.SetWindowLeft(index,x+xClientCorrection);this.SetWindowTop(index,y+yClientCorrection);var iFrame=element.overflowElement;if(_aspxIsExists(iFrame))_aspxSetStylePosition(iFrame,x,y);if(__aspxOpera)_aspxClearSelection();}},OnDragStop:function(index){var element=this.GetWindowElement(index);this.HideDragCursor(index);this.UpdateWindowsStateInputElement();this.UpdateWindowsStateCookie();},CreateResizePanel:function(index){var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);var resizePanel=document.createElement("DIV");element.parentNode.appendChild(resizePanel);resizePanel.style.overflow="hidden";resizePanel.style.position="absolute";resizePanel.style.zIndex=__aspxPopupControlZIndex+aspxGetPopupControlCollection().visiblePopupWindowIds.length*2+2;if(!this.isLiveResizingMode)resizePanel.style.border="black 1px dotted";return resizePanel;},OnResizeStart:function(evt,index){if(!aspxGetPopupControlCollection().IsResizeInint()){this.SetIsResized(index,true);var cursor=this.CreateResizeCursorInfo(evt,index);if(cursor.course!=""){var resizePanel=this.CreateResizePanel(index);this.UpdateResizeCursor(resizePanel,cursor.verticalDirection,cursor.horizontalDirection);aspxGetPopupControlCollection().InitResizeObject(this,index,cursor,resizePanel);this.OnResize(evt,index,cursor,resizePanel);}}return aspxGetPopupControlCollection().IsResizeInint();},OnResize:function(evt,index,cursor,resizePanel){this.OnResizePanel(evt,index,cursor,resizePanel);if(this.isLiveResizingMode)this.OnResizeWindow(index,cursor,resizePanel);if(!__aspxIE)_aspxClearSelection();},OnResizePanel:function(evt,index,cursor,resizePanel){var x=_aspxGetEventX(evt);var y=_aspxGetEventY(evt);var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);var clientWindow=this.GetWindowClientTable(index);var left=_aspxGetAbsoluteX(mainCell);var top=_aspxGetAbsoluteY(mainCell);var newLeft=_aspxGetAbsoluteX(element);var newTop=_aspxGetAbsoluteY(element);var newHeight=mainCell.offsetHeight;var newWidth=mainCell.offsetWidth;if(cursor.horizontalDirection=="e")newWidth=x-newLeft+cursor.horizontalOffset+1;if(cursor.verticalDirection=="s")newHeight=y-newTop+cursor.verticalOffset+1;if(cursor.horizontalDirection=="w"){newLeft=_aspxPrepareClientPosForElement(x,element,true)-cursor.horizontalOffset;newWidth=newWidth-(x-left)+cursor.horizontalOffset;}else newLeft=_aspxPrepareClientPosForElement(newLeft,element,true);if(cursor.verticalDirection=="n"){newTop=_aspxPrepareClientPosForElement(y,element,false)-cursor.verticalOffset;newHeight=newHeight-(y-top)+cursor.verticalOffset;}else newTop=_aspxPrepareClientPosForElement(newTop,element,false);if(!this.isLiveResizingMode){newWidth-=2;newHeight-=2;}if(newWidth>0&&newHeight>0){_aspxSetStylePosition(resizePanel,newLeft-_aspxGetIEDocumentClientOffset(true),newTop-_aspxGetIEDocumentClientOffset(false));_aspxSetStyleSize(resizePanel,newWidth,newHeight);this.SetWindowLeft(index,_aspxGetAbsoluteX(element));this.SetWindowTop(index,_aspxGetAbsoluteY(element));}},OnResizeWindow:function(index,cursor,resizePanel){this.SetClientWindowSize(index,resizePanel.offsetWidth,resizePanel.offsetHeight);var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);var heightCorrection=mainCell.offsetHeight-resizePanel.offsetHeight;var widthCorrection=mainCell.offsetWidth-resizePanel.offsetWidth;var left=_aspxGetAbsoluteX(resizePanel)-(cursor.horizontalDirection=="w"?widthCorrection:0)-_aspxGetIEDocumentClientOffset(true);var top=_aspxGetAbsoluteY(resizePanel)-(cursor.verticalDirection=="n"?heightCorrection:0)-_aspxGetIEDocumentClientOffset(false);left=_aspxPrepareClientPosForElement(left,element,true);top=_aspxPrepareClientPosForElement(top,element,false);_aspxSetStylePosition(element,left,top);this.DoShowWindowIFrame(index,left,top,__aspxInvalidDimension,__aspxInvalidDimension);},OnResizeStop:function(evt,index,cursor,resizePanel){if(this.allowResize){if(!this.isLiveResizingMode){var collection=aspxGetControlCollection();var windowElement=this.GetWindowElement(index);collection.CollapseControls(windowElement);this.OnResizeWindow(index,cursor,resizePanel);} this.CreateResizeCursorInfo(evt,index);this.UpdateWindowsStateInputElement();this.UpdateWindowsStateCookie();this.RaiseResize(index);if(!this.isLiveResizingMode)collection.AdjustControls(windowElement);}},SetClientWindowSize:function(index,width,height){var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);var clientWindow=this.GetWindowClientTable(index);var windowHorizontalTwoBorderSize=mainCell.offsetWidth-clientWindow.offsetWidth;var windowVerticalTwoBorderSize=mainCell.offsetHeight-clientWindow.offsetHeight;var contentIFrameDiv=this.GetWindowContentIFrameDivElement(index);var contentIFrame=this.GetWindowContentIFrameElement(index);width-=windowHorizontalTwoBorderSize;height-=windowVerticalTwoBorderSize;if(width>=0&&height>=0){this.RaiseBeforeResizing(index);if(__aspxIE){this.GetWindowContentElement(index).style.height="0px";mainCell.style.height="0px";}else{if(_aspxIsExists(contentIFrame))contentIFrame.style.height="0px";if(_aspxIsExists(contentIFrameDiv))contentIFrameDiv.style.height="0px";} _aspxSetStyleSize(clientWindow,width,height);_aspxSetStyleSize(mainCell,width,height);if(__aspxMozilla){_aspxSetElementDisplay(element,false);_aspxSetElementDisplay(element,true);} _aspxSetStyleSize(element,clientWindow.offsetWidth+this.shadowWidth+windowHorizontalTwoBorderSize,clientWindow.offsetHeight+this.shadowHeight+windowVerticalTwoBorderSize);this.CorrectContentCellHeight(element,true);this.SetWindowWidth(index,clientWindow.offsetWidth);this.SetWindowHeight(index,clientWindow.offsetHeight);if(_aspxIsExists(contentIFrameDiv))contentIFrameDiv.style.height="100%";if(_aspxIsExists(contentIFrame))contentIFrame.style.height="100%";this.RaiseAfterResizing(index);}},CreateResizeCursorInfo:function(evt,index){var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);var clientWindow=this.GetWindowClientTable(index);var headerElement=this.GetWindowHeaderElement(index);var left=_aspxGetAbsoluteX(mainCell);var top=_aspxGetAbsoluteY(mainCell);var x=_aspxGetEventX(evt);var y=_aspxGetEventY(evt);var leftOffset=Math.abs(x-left);var rightOffset=Math.abs(x-left-mainCell.offsetWidth+1);var topOffset=Math.abs(y-top);var bottomOffset=Math.abs(y-top-mainCell.offsetHeight+1);var cursorInfo=this.CreateResizeBorderCursorInfo(index,leftOffset,rightOffset,topOffset,bottomOffset);var gripCell=this.GetWindowHeaderGripElement(index);if(gripCell){var gripCursorInfo=this.CreateGripCursorInfo(index,mainCell,gripCell,rightOffset,bottomOffset);if(_aspxIsExists(gripCursorInfo))cursorInfo=gripCursorInfo;} this.UpdateResizeCursor(clientWindow,cursorInfo.verticalDirection,cursorInfo.horizontalDirection);this.UpdateResizeCursor(mainCell,cursorInfo.verticalDirection,cursorInfo.horizontalDirection);if(_aspxIsExists(headerElement))this.UpdateResizeCursor(headerElement,cursorInfo.verticalDirection,cursorInfo.horizontalDirection);return cursorInfo;},CreateGripCursorInfo:function(index,mainCell,gripCell,rightOffset,bottomOffset){var gripWidth=mainCell.offsetWidth-(_aspxGetAbsoluteX(gripCell)-_aspxGetAbsoluteX(mainCell));var gripHeight=mainCell.offsetHeight-(_aspxGetAbsoluteY(gripCell)-_aspxGetAbsoluteY(mainCell));if(gripHeight>bottomOffset&&gripWidth>rightOffset)return new ASPxPCResizeCursorInfo("e","s",rightOffset,bottomOffset);return null;},CreateResizeBorderCursorInfo:function(index,leftOffset,rightOffset,topOffset,bottomOffset){var ResizeBorderSize=this.ResizeBorderSize;var verticalDirection=this.GetResizeVerticalCourse(ResizeBorderSize,topOffset,bottomOffset);ResizeBorderSize=verticalDirection!=""?this.ResizeCornerBorderSize:this.ResizeBorderSize;var horizontalDirection=this.GetResizeHorizontalCourse(ResizeBorderSize,leftOffset,rightOffset);if(verticalDirection==""&&horizontalDirection!="")verticalDirection=this.GetResizeVerticalCourse(this.ResizeCornerBorderSize,topOffset,bottomOffset);var horizontalOffset=leftOffsettopOffset)return "n";if(ResizeBorderSize>bottomOffset)return "s";return "";},GetResizeHorizontalCourse:function(ResizeBorderSize,leftOffset,rightOffset){if(ResizeBorderSize>leftOffset)return "w";if(ResizeBorderSize>rightOffset)return "e";return "";},UpdateResizeCursor:function(element,verticalDirection,horizontalDirection){var cursor=verticalDirection+horizontalDirection;if(cursor!=""){cursor+="-resize";this.ShowTemporaryCursor(element,cursor);}else this.HideTemporaryCursor(element);},ShowTemporaryCursor:function(element,cursor){_aspxChangeStyleAttribute(element,"cursor",cursor);},HideTemporaryCursor:function(element){_aspxRestoreStyleAttribute(element,"cursor");},ResizeWindowIFrame:function(index){if(!this.renderIFrameForPopupElements)return;if(!this.InternalIsWindowVisible(index))return;var iFrame=this.GetWindowIFrame(index);if(_aspxIsExists(iFrame)){var cell=this.GetWindowMainCell(this.GetWindowElement(index));_aspxSetStyleSize(iFrame,cell.offsetWidth,cell.offsetHeight);}},ShowDragCursor:function(index){var dragElement=this.GetDragElement(index);if(dragElement)this.ShowTemporaryCursor(dragElement,"move");},HideDragCursor:function(index){var dragElement=this.GetDragElement(index);if(dragElement!=null)this.HideTemporaryCursor(dragElement);},GetDragElement:function(index){var headerElement=this.GetWindowHeaderElement(index);var element=this.GetWindowElement(index);if(element!=null)return(headerElement!=null?headerElement:this.GetWindowMainCell(element));return null;},OnActivateMouseDown:function(evt,index){this.OnActivate(index);},OnCloseButtonClick:function(index){this.RaiseCloseButtonClick(index);this.DoHideWindow(index);},OnMouseDown:function(evt,index,isDraggingAllowed){if(_aspxGetIsLeftButtonPressed(evt)){_aspxClearSelection();var isResizing=false;if(this.allowResize)isResizing=this.OnResizeStart(evt,index);if(isDraggingAllowed&&!isResizing)this.OnDragStart(evt,index);}},OnMouseMove:function(evt,index){this.CreateResizeCursorInfo(evt,index);},StartAnimation:function(animationDivElement,index,horizontalPopupPosition,verticalPopupPosition){var element=this.GetWindowMainTable(animationDivElement);var clientX=horizontalPopupPosition.position;var clientY=verticalPopupPosition.position;var args="(\""+this.name+"\", "+index+")";var onTimerString="aspxPCATimer"+args;var onAnimStopCallString="aspxPCAStop"+args;_aspxInitAnimationDiv(animationDivElement,clientX,clientY,onTimerString,onAnimStopCallString);var horizontalDirection=_aspxGetAnimationHorizontalDirection(horizontalPopupPosition,this.popupHorizontalAlign,this.popupVerticalAlign);var verticalDirection=_aspxGetAnimationVerticalDirection(verticalPopupPosition,this.popupHorizontalAlign,this.popupVerticalAlign);var xPos=horizontalDirection*animationDivElement.offsetHeight;var yPos=verticalDirection*animationDivElement.offsetWidth;_aspxSetStylePosition(element,xPos,yPos);_aspxSetElementVisibility(animationDivElement,true);this.DoShowWindowIFrame(index,clientX,clientY,0,0);animationDivElement.timerID=window.setTimeout(animationDivElement.onTimerString,this.animationDelay);},GetWindowsState:function(){var state="";if(this.HasDefaultWindow()){state+=this.GetWindowState(-1);}for(var i=0;i=0;i--){var id=this.visiblePopupWindowIds[i];if(id==excptId)continue;if(srcElement!=null&&_aspxGetParentById(srcElement,id)!=null)continue;var popupWindow=this.GetPopupWindowFromID(id);if(popupWindow.popupControl!=null&&((popupWindow.popupControl.closeAction!="CloseButton"&&popupWindow.popupControl.closeAction!="None")||applyToAll)){popupWindow.popupControl.DoHideWindow(parseInt(popupWindow.windowIndex));}}},DoShowAtCurrentPos:function(name,index){var pc=this.Get(name);if(pc!=null&&!pc.InternalIsWindowVisible(index))pc.DoShowWindowAtPos(index,this.overXPos,this.overYPos,false,true,true);},ActivateWindowElement:function(element){var visibleWindowsCount=this.visiblePopupWindowIds.length;if(__aspxPopupControlZIndex<=element.style.zIndex&&element.style.zIndex!=visibleWindowsCount*2+__aspxPopupControlZIndex){this.DeleteWindowFromZIndexOrder(element);} this.SetWindowElementZIndex(element,__aspxPopupControlZIndex+visibleWindowsCount*2);},DeleteWindowFromZIndexOrder:function(element){for(var i=this.visiblePopupWindowIds.length-1;i>=0;i--){var windowElement=_aspxGetElementById(this.visiblePopupWindowIds[i]);if(!_aspxIsExists(windowElement))_aspxArrayRemoveAt(this.visiblePopupWindowIds,i);else if(windowElement.style.zIndex>element.style.zIndex)this.SetWindowElementZIndex(windowElement,windowElement.style.zIndex-2);}},SetWindowElementZIndex:function(element,zIndex){element.style.zIndex=zIndex;var iFrame=element.overflowElement;if(_aspxIsExists(iFrame))iFrame.style.zIndex=zIndex-1;var modalElement=element.modalElement;if(_aspxIsExists(modalElement))modalElement.style.zIndex=zIndex-1;this.UpdateWindowsStateInputElement(element.id);this.UpdateWindowsStateCookie(element.id);},AdjustModalElementsBounds:function(){for(var i=0;i-1;},IsDisappearTimerActive:function(){return this.disappearTimerID>-1;},SetAppearTimer:function(name,index,timeout){this.appearTimerID=_aspxSetTimeout("aspxPEMOverTimer(\""+name+"\", "+index+")",timeout);},SetDisappearTimer:function(name,index,timeout){this.disappearTimerID=_aspxSetTimeout("aspxPEMOutTimer(\""+name+"\", "+index+")",timeout);},GerDocScrollDifference:function(){return new _aspxScrollDifference(_aspxGetDocumentScrollLeft()-this.docScrollLeft,_aspxGetDocumentScrollTop()-this.docScrollTop);},IsDocScrolled:function(scroll){return scroll.horizontal!=0||scroll.vertical!=0;},SaveScrollState:function(){this.docScrollLeft=_aspxGetDocumentScrollLeft();this.docScrollTop=_aspxGetDocumentScrollTop();},InitDragObject:function(control,index,x,y,xClientCorrection,yClientCorrection){this.draggingControl=control;this.draggingWindowIndex=index;this.gragXOffset=x;this.gragYOffset=y;this.xClientCorrection=xClientCorrection;this.yClientCorrection=yClientCorrection;this.selectBanned=true;},InitOverObject:function(control,index,evt){this.overControl=control;this.overWindowIndex=index;this.SaveCurrentMouseOverPos(evt);},InitResizeObject:function(control,index,cursor,resizePanel){this.resizeControl=control;this.resizeIndex=index;this.resizeCursor=cursor;this.resizePanel=resizePanel;this.selectBanned=true;},IsResizeInint:function(){return this.resizeControl!=null;},ClearDragObject:function(){this.draggingControl=null;this.draggingWindowIndex=-1;this.gragXOffset=0;this.gragYOffset=0;this.selectBanned=this.resizeControl!=null;},ClearResizeObject:function(){this.resizeControl=null;this.resizeIndex=-2;this.resizeCursor="";this.selectBanned=this.draggingControl!=null;this.resizePanel.parentNode.removeChild(this.resizePanel);},Drag:function(evt){var x=_aspxGetEventX(evt)+this.gragXOffset;var y=_aspxGetEventY(evt)+this.gragYOffset;this.draggingControl.OnDrag(this.draggingWindowIndex,x,y,this.xClientCorrection,this.yClientCorrection);},DragStop:function(){this.draggingControl.OnDragStop(this.draggingWindowIndex);this.ClearDragObject();},ResizeStop:function(evt){this.resizeControl.OnResizeStop(evt,this.resizeIndex,this.resizeCursor,this.resizePanel);aspxGetPopupControlCollection().ClearResizeObject();},OnPWMouseMove:function(evt,name,index){if(this.draggingControl==null&&this.overControl==null&&this.resizeControl==null){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null)pc.OnMouseMove(evt,index);}},OnPWMouseOver:function(evt){if(!_aspxIsExists(this.overControl)||_aspxIsExists(this.draggingControl))return;if(this.IsOverPopupWindow(evt))this.ClearDisappearTimer();},IsOverPopupWindow:function(evt){return _aspxFindEventSourceParentByTestFunc(evt,aspxTestOverPopupWindowElement)!=null;},OnMouseDown:function(evt){var srcElement=_aspxGetEventSource(evt);this.DoHideAllWindows(srcElement,"",false);aspxGetPopupControlCollection().ClearAppearTimer();},OnMouseMove:function(evt){if(this.draggingControl!=null){if(__aspxIE&&!_aspxGetIsLeftButtonPressed(evt))return this.DragStop();else this.Drag(evt);}else if(this.overControl!=null){this.OnMouseOver(evt);}else if(this.resizeControl!=null){if(__aspxIE&&!_aspxGetIsLeftButtonPressed(evt))this.ResizeStop(evt);else this.resizeControl.OnResize(evt,this.resizeIndex,this.resizeCursor,this.resizePanel);}},OnMouseOver:function(evt){var element=_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupControlOverElement);if(element!=null){this.ClearDisappearTimer();this.SaveCurrentMouseOverPos(evt);return _aspxCancelBubble(evt);} this.OnMouseOut();},OnMouseOut:function(){if(!_aspxIsExists(this.overControl)||_aspxIsExists(this.draggingControl))return;this.ClearAppearTimer();if(this.overControl.closeAction=="MouseOut"&&this.overControl.InternalIsWindowVisible(this.overWindowIndex)){if(!this.IsDisappearTimerActive())this.SetDisappearTimer(this.overControl.name,this.overWindowIndex,this.overControl.disappearAfter);}else this.OverStop();},OnMouseUp:function(evt){if(this.draggingControl!=null)this.DragStop();if(this.resizeControl!=null)this.ResizeStop(evt);},OnResize:function(evt){this.AdjustModalElementsBounds();},OnScroll:function(evt){var scroll=this.GerDocScrollDifference();if(this.IsDocScrolled(scroll)){this.FFScrollEmulation(scroll);this.AdjustModalElementsBounds();this.SaveScrollState();}},FFScrollEmulation:function(scroll){if(__aspxFirefox){for(var i=this.visiblePopupWindowIds.length-1;i>=0;i--){var id=this.visiblePopupWindowIds[i];var popupWindow=this.GetPopupWindowFromID(id);if(popupWindow.popupControl!=null&&popupWindow.popupControl.IsFFTextCurFixRequired(popupWindow.windowIndex)){var windowElement=popupWindow.popupControl.GetWindowElement(popupWindow.windowIndex);windowElement.style.left=(windowElement.offsetLeft-scroll.horizontal)+"px";windowElement.style.top=(windowElement.offsetTop-scroll.vertical)+"px";}}}},OnSelectStart:function(){return!this.selectBanned;},OverStop:function(){this.overControl=null;this.overWindowIndex=-1;},SaveCurrentMouseOverPos:function(evt){this.overXPos=_aspxGetEventX(evt);this.overYPos=_aspxGetEventY(evt);},RegisterVisibleModalElement:function(element){if(_aspxArrayIndexOf(this.visibleModalElements,element)==-1)_aspxArrayPush(this.visibleModalElements,element);},UnregisterVisibleModalElement:function(element){_aspxArrayRemove(this.visibleModalElements,element);},RegisterVisibleWindow:function(element){if(_aspxArrayIndexOf(this.visiblePopupWindowIds,element.id)==-1)_aspxArrayPush(this.visiblePopupWindowIds,element.id);},UnregisterVisibleWindow:function(element){this.DeleteWindowFromZIndexOrder(element);_aspxArrayRemove(this.visiblePopupWindowIds,element.id);},UpdateWindowsStateCookie:function(id){var pos=id.lastIndexOf(__aspxPCWIdSuffix);var name=id.substring(0,pos);var popupControl=aspxGetPopupControlCollection().Get(name);if(popupControl!=null)popupControl.UpdateWindowsStateCookie(false);},UpdateWindowsStateInputElement:function(id){var pos=id.lastIndexOf(__aspxPCWIdSuffix);var name=id.substring(0,pos);var popupControl=aspxGetPopupControlCollection().Get(name);if(popupControl!=null)popupControl.UpdateWindowsStateInputElement(false);},HideAllWindows:function(){this.DoHideAllWindows(null,"",true);}});var __aspxPopupControlCollection=null;function aspxGetPopupControlCollection(){if(__aspxPopupControlCollection==null)__aspxPopupControlCollection=new ASPxClientPopupControlCollection();return __aspxPopupControlCollection;} ASPxClientPopupWindow=_aspxCreateClass(null,{constructor:function(popupControl,index,name){this.popupControl=popupControl;this.index=index;this.name=name;},GetHeaderImageUrl:function(){return this.popupControl.GetWindowHeaderImageUrl(this.index);},SetHeaderImageUrl:function(value){this.popupControl.SetWindowHeaderImageUrl(this.index,value);},GetFooterImageUrl:function(){return this.popupControl.GetWindowFooterImageUrl(this.index);},SetFooterImageUrl:function(value){this.popupControl.SetWindowFooterImageUrl(this.index,value);},GetHeaderNavigateUrl:function(){return this.popupControl.GetWindowHeaderNavigateUrl(this.index);},SetHeaderNavigateUrl:function(value){this.popupControl.SetWindowHeaderNavigateUrl(this.index,value);},GetFooterNavigateUrl:function(){return this.popupControl.GetWindowFooterNavigateUrl(this.index);},SetFooterNavigateUrl:function(value){this.popupControl.SetWindowFooterNavigateUrl(this.index,value);},GetHeaderText:function(){return this.popupControl.GetWindowHeaderText(this.index);},SetHeaderText:function(value){this.popupControl.SetWindowHeaderText(this.index,value);},GetFooterText:function(){return this.popupControl.GetWindowFooterText(this.index);},SetFooterText:function(value){this.popupControl.SetWindowFooterText(this.index,value);}});ASPxClientPopupWindowEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(processOnServer,window){this.constructor.prototype.constructor.call(this);this.window=window;}});function _aspxPopupWindow(popupControl,windowIndex){this.popupControl=popupControl;this.windowIndex=windowIndex;} function _aspxScrollDifference(horizontal,vertical){this.horizontal=horizontal;this.vertical=vertical;} function aspxPEMOverTimer(name,index){aspxGetPopupControlCollection().DoShowAtCurrentPos(name,index);} function aspxPEMOutTimer(name,index){var pc=aspxGetPopupControlCollection().Get(name);aspxGetPopupControlCollection().OverStop();if(pc!=null)pc.DoHideWindow(index);} function aspxPWCBClick(name,index){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null)pc.OnCloseButtonClick(index);} function aspxPWCBMDown(evt){return _aspxCancelBubble(evt);} function aspxPEMOver(evt){var element=_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupControlElement);if(element!=null){var popupControl=element.DXPopupControl;var index=element.DXPopupWindowIndex;if(!popupControl.InternalIsWindowVisible(index)){aspxGetPopupControlCollection().SetAppearTimer(popupControl.name,index,popupControl.appearAfter);aspxGetPopupControlCollection().InitOverObject(popupControl,index,evt);}}} function aspxPWEMOver(evt){aspxGetPopupControlCollection().OnPWMouseOver(evt);} function aspxPWMEMDown(evt){var element=_aspxGetEventSource(evt);if(element!=null){var popupElement=element.DXModalPopupControl.GetPopupElement(element.DXModalPopupWindowIndex);popupElement.isPopuped=true;}} function aspxPEMEvent(evt){var element=_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupControlElement);if(element!=null){if(evt.type=="mousedown"){if(element.DXPopupControl.InternalIsWindowVisible(element.DXPopupWindowIndex))element.isPopuped=true;else element.isPopuped=false;aspxGetPopupControlCollection().OnMouseDown(evt);}else{if(element.DXPopupControl.popupAction=="RightMouseClick"||_aspxGetIsLeftButtonPressed(evt)){if(element.DXPopupControl.popupAction=="RightMouseClick")_aspxPreventContextMenu(evt);if(!(element.isPopuped&&element.DXPopupControl.closeAction=="OuterMouseClick"))element.DXPopupControl.DoShowWindow(element.DXPopupWindowIndex,evt);if(element.DXPopupControl.closeAction=="MouseOut")aspxGetPopupControlCollection().InitOverObject(element.DXPopupControl,element.DXPopupWindowIndex,evt);return false;}}}} function aspxPWDGMDown(evt,name,index){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null){pc.OnActivateMouseDown(evt,index);pc.OnMouseDown(evt,index,true);}if(!__aspxIE)evt.preventDefault();return aspxPWCBMDown(evt);} function aspxPWGripMDown(evt,name,index){aspxPWMDown(evt,name,index,false);return aspxPWCBMDown(evt);} function aspxPWMDown(evt,name,index,isDraggingAllowed){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null){pc.OnActivateMouseDown(evt,index);pc.OnMouseDown(evt,index,isDraggingAllowed);}} function aspxPWResize(name,index){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null)pc.ResizeWindowIFrame(index);} function aspxPWMMove(evt,name,index){aspxGetPopupControlCollection().OnPWMouseMove(evt,name,index);} function aspxPCATimer(name,index){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null)pc.OnAnimationTimer(index);} function aspxPCAStop(name,index){var pc=aspxGetPopupControlCollection().Get(name);if(pc!=null)pc.OnAnimationStop(index);} _aspxAttachEventToDocument("mousedown",aspxPopupControlDocumentMouseDown);function aspxPopupControlDocumentMouseDown(evt){if(_aspxFindEventSourceParentByTestFunc(evt,aspxTestPopupControlElement)==null)return aspxGetPopupControlCollection().OnMouseDown(evt);} _aspxAttachEventToDocument("mouseup",aspxPopupControlDocumentMouseUp);function aspxPopupControlDocumentMouseUp(evt){return aspxGetPopupControlCollection().OnMouseUp(evt);} _aspxAttachEventToDocument("mousemove",aspxPopupControlDocumentMouseMove);function aspxPopupControlDocumentMouseMove(evt){if(typeof(aspxGetPopupControlCollection)!="undefined")aspxGetPopupControlCollection().OnMouseMove(evt);} _aspxAttachEventToDocument("mouseout",aspxPopupControlDocumentMouseOut);function aspxPopupControlDocumentMouseOut(){if(typeof(aspxGetPopupControlCollection)!="undefined")aspxGetPopupControlCollection().OnMouseOut();} _aspxAttachEventToElement(window,"resize",aspxPopupControlWindowResize);function aspxPopupControlWindowResize(evt){aspxGetPopupControlCollection().OnResize(evt);} _aspxAttachEventToElement(window,"scroll",aspxPopupControlWindowScroll);function aspxPopupControlWindowScroll(evt){aspxGetPopupControlCollection().OnScroll(evt);} _aspxAttachEventToDocument("selectstart",aspxPopupControlDocumentSelectStart);function aspxPopupControlDocumentSelectStart(evt){var ret=aspxGetPopupControlCollection().OnSelectStart(evt);if(!ret)return false;} function aspxTestPopupControlElement(element){return(_aspxIsExists(element.DXPopupControl)&&_aspxIsExists(element.DXPopupWindowIndex));} function aspxTestPopupControlOverElement(element){var collection=aspxGetPopupControlCollection();var windowId=collection.overControl.GetWindowElementId(collection.overWindowIndex);var popupElementId=collection.overControl.GetPopupElement(collection.overWindowIndex).id;return(element.id==windowId||element.id==popupElementId);} function aspxTestOverPopupWindowElement(element){var collection=aspxGetPopupControlCollection();var windowId=collection.overControl.GetWindowElementId(collection.overWindowIndex);var popupWindowElementId=collection.overControl.GetWindowElementId(collection.overWindowIndex);return(element.id==popupWindowElementId);} var __aspxTINonProcessingSymbols=["^","\\", "\'"];var __aspxTIWildCards=["*","?"];var __aspxTIGroupElementClassName="dxg";var __aspxTIItemElementClassName="dxtxi";var __aspxTITextElementClassName="dxtxt";var __aspxTIDefaultFilterIntervalDelay=200;ASPxClientTitleIndex=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.allowMultipleCallbacks=false;this.autoFocus=false;this.columnCount=1;this.filterDelay=0;this.rowCount=-1;this.showBackToTop=false;this.groupSpacing=0;this.groupContentPaddingBottom=0;this.groupContentPaddingTop=0;this.lastFilterMask="";this.pasteTimerID=-1;this.filterTimerID=-1;this.mainCellWidth=0;this.columnElements=new Object();this.groupElements=new Object();this.itemElements=new Object();this.ItemClick=new ASPxClientEvent();this.InitializeAutoComplete();},Initialize:function(){if(_aspxIsExists(this.GetFilterInputElement())){this.CleanWhitespaceInControl();if(this.filterDelay>__aspxTIDefaultFilterIntervalDelay)__aspxTIDefaultFilterIntervalDelay=this.filterDelay;}if(this.autoFocus&&_aspxIsExists(this.GetFilterInputElement())&&_aspxIsFocusable(this.GetFilterInputElement()))this.GetFilterInputElement().focus();this.constructor.prototype.Initialize.call(this);},InitializeAutoComplete:function(){var element=this.GetFilterInputElement();if(_aspxIsExists(element))element.autocomplete="off";},GetCategoryHeaderElement:function(rowIndex){return this.GetChild("_CH"+rowIndex);},GetColumnElement:function(index,rowIndex){var columnId=(this.rowCount>0)?"_C"+index+"_"+rowIndex:"_C"+index;if(!_aspxIsExistsElement(this.columnElements[columnId]))this.columnElements[columnId]=this.GetChild(columnId);return this.columnElements[columnId];},GetContentTDWidth:function(){return _aspxGetParentByTagName(this.GetCategoryHeaderElement(0),'td').clientWidth;},GetEmptyResultCaptionElement:function(){return this.GetChild("_TI_E");},GetFilterInputElement:function(){return this.GetChild("_FI");},GetGroupElements:function(columnElement){if(!_aspxIsValidElements(this.groupElements[columnElement.id]))this.groupElements[columnElement.id]=_aspxGetChildsByClassName(columnElement,__aspxTIGroupElementClassName);return this.groupElements[columnElement.id];},GetItemText:function(nodeElement){var textElem=this.GetItemTextElement(nodeElement);if(_aspxIsExists(textElem)&&_aspxIsExists(textElem.nodeValue))return _aspxTrim(textElem.nodeValue);else return "";},GetItemElements:function(groupElement){var groupText=this.GetItemText(groupElement);if(!_aspxIsValidElements(this.itemElements[groupText]))this.itemElements[groupText]=_aspxGetChildsByClassName(groupElement,__aspxTIItemElementClassName);return this.itemElements[groupText];},GetItemTextElement:function(nodeElement){var textElement=_aspxGetChildsByClassName(nodeElement,__aspxTITextElementClassName)[0];return _aspxIsExists(textElement)?_aspxGetChildTextNode(textElement,0):null;},GetIndexPanelIndexInputElement:function(){return _aspxGetElementById(this.name+"PI");},GetContentCell:function(){return this.GetChild("_CCell");},GetTreeViewCell:function(){return this.GetChild("_ICell");},SetPrevFilterMask:function(filterMask){if(!_aspxIsExists(this.lastFilterMask))this.lastFilterMask="";this.lastFilterMask=filterMask;},SetFilterTimer:function(fi,timeout){var str="aspxSFilterTimer(\""+this.name+"\")";if(timeout==0)eval(str);else this.filterTimerID=_aspxSetTimeout(str,timeout);},SetPasteTimer:function(){var str="aspxSPasteTimer(\""+this.name+"\")";this.pasteTimerID=_aspxSetInterval(str,__aspxTIDefaultFilterIntervalDelay);},ClearFilterTimer:function(){this.filterTimerID=_aspxClearTimer(this.filterTimerID);},ClearPasteTimer:function(){this.pasteTimerID=_aspxClearInterval(this.pasteTimerID);},CleanWhitespaceInControl:function(){if(this.rowCount>0)this.CleanWhitespace(_aspxGetParentByTagName(this.GetCategoryHeaderElement(0),"table"));else{for(var j=0;j-1){switch(index){case 0:regExString+=".*";break;case 1:regExString+=".{1}";break;}}else{var index=_aspxArrayIndexOf(__aspxTINonProcessingSymbols,filterMask.charAt(i));if(index==-1)regExString+="["+filterMask.charAt(i)+"]";}} regExString+=".*";return new RegExp(regExString,'i');},OnCallback:function(result){var inputElement=this.GetIndexPanelIndexInputElement();if(inputElement!=null)inputElement.value=result.index;var element=this.GetContentCell();if(element!=null)element.innerHTML=result.html;},IsAllowableKeyCode:function(keyCode){return(((keyCode>=48)&&(keyCode<=57))||((keyCode>=186)&&(keyCode<=192))||((keyCode>=219)&&(keyCode<=226))||((keyCode>=65)&&(keyCode<=90))||((keyCode>=65)&&(keyCode<=90))||((keyCode>=96)&&(keyCode<=107))||((keyCode>=109)&&(keyCode<=111))||keyCode==8||keyCode==45||keyCode==46);},IsFirstCategoryTR:function(categoryElem){var spacingElem=categoryElem.parentNode.previousSibling;return!_aspxIsExists(spacingElem);},IsFirstCategory:function(categoryElem,index){var i=index-1;while(i>=0){if(_aspxGetElementDisplay(this.GetCategoryHeaderElement(i).parentNode))return false;i--;}return true;},IsFirstGroupInColumn:function(groupIndex,columnElem){var groupElements=this.GetGroupElements(columnElem);var i=groupIndex-1;while(i>=0){if(_aspxGetElementDisplay(groupElements[i]))return false;i--;}return true;},IsFilterTimerActive:function(){return this.filterTimerID>-1;},IsFilterMaskChanged:function(filterMask){if(!_aspxIsExists(this.lastFilterMask))this.lastFilterMask="";return this.lastFilterMask.toUpperCase()!=filterMask.toUpperCase();},CorrectCategorySpacing:function(categoryElem,index){var headerTR=categoryElem.parentNode;if(!this.IsFirstCategoryTR(categoryElem)&&(this.groupSpacing!=0)&&this.IsFirstCategory(categoryElem,index))_aspxSetElementDisplay(headerTR.previousSibling,false);},CorrectNodesPaddings:function(columnIndex,rowIndex){var columnElem=this.GetColumnElement(columnIndex,rowIndex);var groupElements=this.GetGroupElements(columnElem);for(var i=0;i0){var categoryCount=0;if(this.GetContentTDWidth()!=0)this.mainCellWidth=this.GetContentTDWidth();for(var i=0;i0){visibleGroupCount++;this.ShowGroup(groupElements[i]);}else this.HideGroup(groupElements[i]);}if(visibleGroupCount!=0){_aspxSetElementVisibility(columnElem,true);this.SetColumnSeparatorDisplay(columnElem,true,columnIndex,rowIndex);}else{_aspxSetElementVisibility(columnElem,false);this.SetColumnSeparatorDisplay(columnElem,false,columnIndex,rowIndex);}return visibleGroupCount;},FilterColumnInCategory:function(columnIndex,rowIndex,filterMask,filterRegEx){var columnElem=this.GetColumnElement(columnIndex,rowIndex);var visibleItemCount=0;if(_aspxIsExists(columnElem)){var itemElements=this.GetItemElements(columnElem);for(var i=0;i0&&(this.mainCellWidth>0))elem.style.width=this.mainCellWidth+"px";_aspxSetElementDisplay(elem,true);},HideEmptyResultCaption:function(){var elem=this.GetEmptyResultCaptionElement();_aspxSetElementDisplay(elem,false);},ShowGroup:function(nodeElement){if(!_aspxGetElementDisplay(nodeElement))_aspxSetElementDisplay(nodeElement,true);},HideGroup:function(nodeElement){_aspxSetElementDisplay(nodeElement,false);},SetColumnSeparatorDisplay:function(columnElem,value,columnIndex,rowIndex){if(columnIndex!=this.columnCount-1)this.SetRightColumnSeparatorDisplay(columnElem,value);else{var prevColumn=this.GetColumnElement(columnIndex-1,rowIndex);if((prevColumn!=null)&&(_aspxGetElementDisplay(prevColumn))){this.SetLeftColumnSeparatorDisplay(columnElem,value);}}},SetLeftColumnSeparatorDisplay:function(columnElem,value){var curElem=columnElem.previousSibling;while((curElem!=null)&&(curElem.id=="")){_aspxSetElementVisibility(curElem,value);curElem=curElem.previousSibling;}},SetRightColumnSeparatorDisplay:function(columnElem,value){var curElem=columnElem.nextSibling;while((curElem!=null)&&(curElem.id=="")){_aspxSetElementVisibility(curElem,value);curElem=curElem.nextSibling;}},OnFilterInputBlur:function(evt){this.ClearPasteTimer();},OnFilterInputChange:function(evt){if(this.GetFilterInputElement().value!=""){if(this.IsFilterTimerActive())this.ClearFilterTimer();this.DoFilter(this.GetFilterInputElement().value);}},OnFilterInputFocus:function(){this.SetPasteTimer();},OnFilterInputKeyUp:function(evt){if(this.IsAllowableKeyCode(evt.keyCode)){if(this.IsFilterTimerActive())this.ClearFilterTimer();this.SetFilterTimer(this.GetFilterInputElement(),this.filterDelay);}},OnFilterInputKeyPress:function(evt){if(evt.keyCode==ASPxKey.Enter)return false;}});ASPxClientTitleIndexItemEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer,name,htmlElement,htmlEvent){this.constructor.prototype.constructor.call(this,processOnServer);this.name=name;this.htmlElement=htmlElement;this.htmlEvent=htmlEvent;}});function aspxSIFBlur(name){var si=aspxGetControlCollection().Get(name);if(si!=null)si.OnFilterInputBlur();return true;} function aspxSIFChange(evt,name){var si=aspxGetControlCollection().Get(name);if(si!=null)si.OnFilterInputChange(evt);return true;} function aspxSIFFocus(name){var si=aspxGetControlCollection().Get(name);if(si!=null)si.OnFilterInputFocus();return true;} function aspxSIFKeyUp(evt,name){var si=aspxGetControlCollection().Get(name);if(si!=null)si.OnFilterInputKeyUp(evt);return true;} function aspxSIFKeyPress(evt,name){var si=aspxGetControlCollection().Get(name);if(si!=null)return si.OnFilterInputKeyPress(evt);return true;} function aspxSFilterTimer(name){var si=aspxGetControlCollection().Get(name);if(si!=null){si.DoFilter(si.GetFilterInputElement().value);si.ClearFilterTimer();}} function aspxSPasteTimer(name){var si=aspxGetControlCollection().Get(name);if(si!=null)si.DoFilterInternal();} function aspxIPItemClick(name,value){var ti=aspxGetControlCollection().Get(name);if(ti!=null)ti.DoIndexPanelItemClick(value);} ASPxClientTimer=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.interval=60000;this.clientEnabled=true;this.timerID=-1;this.Tick=new ASPxClientEvent();},Initialize:function(){if(this.clientEnabled)this.Start();this.constructor.prototype.Initialize.call(this);},GetStateInputElement:function(index){return _aspxGetElementById(this.name+"S");},Start:function(){this.Stop();this.timerID=_aspxSetInterval("aspxTTick(\""+this.name+"\")",this.interval);},Stop:function(){if(this.timerID==-1)return;this.timerID=_aspxClearInterval(this.timerID);},DoTick:function(){var processOnServer=this.RaiseTick();if(processOnServer)this.SendPostBack("TICK");},GetStateString:function(){return(this.clientEnabled?"1":"0")+";"+this.interval;},UpdateState:function(){var element=this.GetStateInputElement();if(element!=null)element.value=this.GetStateString();},RaiseTick:function(){var processOnServer=this.IsServerEventAssigned("Tick");if(!this.Tick.IsEmpty()){var args=new ASPxClientProcessingModeEventArgs(processOnServer);this.Tick.FireEvent(this,args);processOnServer=args.processOnServer;}return processOnServer;},GetEnabled:function(){return this.clientEnabled;},SetEnabled:function(enabled){if(enabled==this.clientEnabled)return;if(enabled)this.Start();else this.Stop();this.clientEnabled=enabled;this.UpdateState();},GetInterval:function(){return this.interval;},SetInterval:function(interval){if(interval<1)return;this.interval=interval;if(this.clientEnabled){this.Stop();this.Start();} this.UpdateState();}});function aspxTTick(name){var timer=aspxGetControlCollection().Get(name);if(timer!=null)timer.DoTick();} ASPxClientDataView=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.allowMultipleCallbacks=false;},GetPageIndexInputElement:function(){return _aspxGetElementById(this.name+"PI");},GetContentCell:function(){return this.GetChild("_CCell");},GetItemsCell:function(){return this.GetChild("_ICell");},DoPagerClick:function(value){var inputElement=this.GetPageIndexInputElement();if(inputElement!=null)this.CreateCallback(inputElement.value+__aspxCallbackSeparator+value,"PAGERCLICK");},CustomCallback:function(args){if(!_aspxIsExists(this.callBack)){if(this.isInitialized)this.SendPostBack(args);return;} this.CreateCallback(args,"CUSTOMCALLBACK");},OnCallback:function(result){var inputElement=this.GetPageIndexInputElement();if(inputElement!=null)inputElement.value=result.index;var element=this.GetContentCell();if(element!=null)element.innerHTML=result.html;},DoBeginCallback:function(command){this.CreateLoadingPanelWithAbsolutePosition(this.GetItemsCell());ASPxClientControl.prototype.DoBeginCallback.call(this,command);},PerformCallback:function(parameter){this.CustomCallback(parameter);}});function aspxDVPagerClick(name,value){var dv=aspxGetControlCollection().Get(name);if(dv!=null)dv.DoPagerClick(value);} ASPxClientCloudControl=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.ItemClick=new ASPxClientEvent();},RaiseItemClick:function(itemElement,htmlEvent){var processOnServer=this.autoPostBack||this.IsServerEventAssigned("ItemClick");if(!this.ItemClick.IsEmpty()){var name=this.GetItemElementName(itemElement);var args=new ASPxClientCloudControlItemEventArgs(processOnServer,name,itemElement,htmlEvent);this.ItemClick.FireEvent(this,args);processOnServer=args.processOnServer;}return processOnServer;},OnControlClick:function(clickedElement,htmlEvent){var itemElement=_aspxGetParentByClassName(clickedElement,__aspxItemClassName);if(_aspxIsExists(itemElement)){var processOnServer=this.RaiseItemClick(itemElement,htmlEvent);var hasItemLink=this.GetLinkElement(itemElement)!=null;if(processOnServer&&!hasItemLink){var name=this.GetItemElementName(itemElement);this.SendPostBack("CLICK:"+name);}}}});ASPxClientCloudControlItemEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer,name,htmlElement,htmlEvent){this.constructor.prototype.constructor.call(this,processOnServer);this.name=name;this.htmlElement=htmlElement;this.htmlEvent=htmlEvent;}});ASPxClientNewsControl=_aspxCreateClass(ASPxClientDataView,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.TailClick=new ASPxClientEvent();},DoTailClick:function(itemName,evt){var clickedElement=_aspxGetEventSource(evt);this.OnTailClick(clickedElement,itemName,evt);},OnTailClick:function(clickedElement,itemName,htmlEvent){var itemElement=clickedElement;if(_aspxIsExists(itemElement)){var processOnServer=this.RaiseTailClick(itemElement,itemName,htmlEvent);var hasItemLink=this.GetLinkElement(itemElement)!=null;if(processOnServer&&!hasItemLink){this.SendPostBack("CLICK:"+itemName);}}},RaiseTailClick:function(tailElement,itemName,htmlEvent){var processOnServer=this.autoPostBack||this.IsServerEventAssigned("TailClick");if(!this.TailClick.IsEmpty()){var args=new ASPxClientNewsControlItemEventArgs(processOnServer,itemName,tailElement,htmlEvent);this.TailClick.FireEvent(this,args);processOnServer=args.processOnServer;}return processOnServer;}});ASPxClientNewsControlItemEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer,name,htmlElement,htmlEvent){this.constructor.prototype.constructor.call(this,processOnServer);this.name=name;this.htmlElement=htmlElement;this.htmlEvent=htmlEvent;}});function aspxHLTClick(evt,name,itemName){var control=aspxGetControlCollection().Get(name);if(control!=null)control.DoTailClick(itemName,evt);} ASPxRelatedControlManager={storage:{},GetRelatedCollection:function(masterName){if(!_aspxIsExists(this.storage[masterName]))this.storage[masterName]=[];return this.storage[masterName];},RegisterRelatedControl:function(masterName,name){this.GetRelatedCollection(masterName)[name]=name;},RegisterRelatedControls:function(masterName,names){var relatedCollection=this.GetRelatedCollection(masterName);var name;for(var i=0;i0&&!_aspxGetElementDisplay(element))_aspxSetElementDisplay(element,true);this.RaiseFileInputCountChanged();},RemoveFileInput:function(index){var tBody=this.GetFileInputsTBody();_aspxRemoveElement(this.GetFileInputSeparatorRow((index==0)?index:index-1));_aspxRemoveElement(this.GetFileInputRow(index));_aspxRemoveElement(this.GetErrorRow(index));this.RedefineAttributtes(index+1);this.SetFileInputCountInternal(this.GetFileInputCountInternal()-1);var element=this.GetAddUploadButtonsSeparatorRow();if(_aspxIsExists(element)&&this.GetFileInputCountInternal()==0&&_aspxGetElementDisplay(element))_aspxSetElementDisplay(element,false);this.RaiseFileInputCountChanged();},RedefineAttributtes:function(startIndex){var tBody=this.GetFileInputsTBody();for(var index=startIndex;index|]+\\[^\/\\:*?\"<>|]+)(\\[^\/\\:*?\"<>|]+)+(\.[^\/\\:*?\"<>|]+)?$/gi;var fileName=_aspxTrim(this.GetText(i));if((fileName!=""&&!windowsFileNameRegExp.test(fileName))&&!(fileName.length==3&&windowsRootDirectoryNameRegExp.test(fileName))){alert(this.invalidWindowsPathErrorText.replace("{0}",this.GetText(i)));return false;}}return true;},ProcessResponse:function(){try{return eval(this.GetFakeIframeResponseString());} catch(e){}return null;},UpdateErrorMessageCell:function(index,responseObj){if(_aspxIsExists(this.GetErrorRow(index))){var errCell=this.GetErrorCell(index);_aspxSetElementDisplay(this.GetErrorRow(index),!responseObj.isValidArray[index]);if(responseObj.errorTexts[index]!="")errCell.innerHTML=responseObj.errorTexts[index];}},WriteResponseString:function(responseString){try{this.GetFakeIframeDocument().body.innerHTML=responseString;} catch(e){}},OnCompleteFileUpload:function(){if(this.GetIsResponseValid()){var responseObj=this.ProcessResponse();for(var i=0;i