oboutGrid.prototype.isIEWithDoctype=function(){if(this.isIE==true)if(document.documentElement&&document.documentElement.clientWidth)return true;return false};oboutGrid.prototype.clearChildren=function(a,b){if(typeof b=="undefined")b=false;if(!b)while(a.firstChild!=null)a.removeChild(a.firstChild);else while(a.firstChild&&a.firstChild.nextSibling)a.removeChild(a.firstChild.nextSibling)};oboutGrid.prototype.moveChildren=function(a,b){while(a.firstChild)b.appendChild(a.firstChild)};oboutGrid.prototype.createDelegate=function(a,b){return function(){return b.apply(a,arguments)}};oboutGrid.prototype.urlEncode=function(a){return escape(a).replace(/\+/g,"%2B").replace(/\"/g,"%22").replace(/\'/g,"%27").replace(/\//g,"%2F")};oboutGrid.prototype.urlDecode=function(a){return unescape(a.replace(/%2F/g,"/").replace(/%27/g,"'").replace(/%22/g,'"').replace(/%2B/g,"+"))};oboutGrid.prototype.xmlCdataDecode=function(a){if(a==null)return"";a=a.toString();return a.replace(/(&lt;)/g,"<").replace(/(&gt;)/g,">").replace(/(&amp;)/g,"&").replace(/(&apos;)/g,"'").replace(/(&quot;)/g,'"').replace(/&nbsp;/g," ").replace(/&#160;/g," ")};oboutGrid.prototype.xmlCdataEncode=function(a){if(a==null)return"";a=a.toString();return a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")};oboutGrid.prototype.htmlEncode=function(a){if(a==null)return"";a=a.toString();return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};oboutGrid.prototype.htmlDecode=function(a){if(a==null)return"";a=a.toString();return a.replace(/(&lt;)/g,"<").replace(/(&gt;)/g,">").replace(/&amp;/g,"&")};oboutGrid.prototype.replaceBRsWithLineBreaks=function(a){var b="\r\n";if(a.indexOf("<BR>")!=-1)a=a.replace(/<BR>/g,b);if(a.indexOf("<br>")!=-1)a=a.replace(/<br>/g,b);a=a.replace(/&#160;/g," ").replace(/&nbsp;/g," ");return a};oboutGrid.prototype.replaceLineBreaksWithBRs=function(a){a=a.replace(/ /g,"&#160;").replace(/\r\n/g,"<br />").replace(/\n/g,"<br />");return a};oboutGrid.prototype.getLeft=function(a){var b=0;if(this.isFF==true||this.isOpera==true)var c=[],f=a;if(a.offsetParent)while(a.offsetParent){if(a.nodeName!="TR"||this.isSafari==false)b+=a.offsetLeft-(a.nodeName!="TR"?a.scrollLeft:0);else b+=a.firstChild.offsetLeft-a.firstChild.scrollLeft;if(this.isIE||this.isOpera)if(!isNaN(parseInt(a.currentStyle.borderLeftWidth)))b+=parseInt(a.currentStyle.borderLeftWidth);(this.isFF==true||this.isOpera==true)&&c.push(a);a=a.offsetParent}else if(a.x)b+=a.x;if((this.isFF==true||this.isOpera==true)&&c.length>0){a=f;while(a.parentNode){if(a.nodeName=="DIV"&&a.style.position!="absolute"&&a.style.position!="relative"&&a.style.position!="fixed"){for(var e=false,d=0;d<c.length;d++)if(c[d]==a){e=true;break}if(e==false)b-=a.scrollLeft}a=a.parentNode}}return b};oboutGrid.prototype.getTop=function(a){var b=0;if(this.isFF==true||this.isOpera==true)var c=[],f=a;if(a.offsetParent)while(a.offsetParent){if(a.nodeName!="TR"||this.isSafari==false)b+=a.offsetTop-(a.nodeName!="TR"?a.scrollTop:0);else b+=a.firstChild.offsetTop-a.firstChild.scrollTop;if(this.isIE||this.isOpera)if(!isNaN(parseInt(a.currentStyle.borderTopWidth)))b+=parseInt(a.currentStyle.borderTopWidth);(this.isFF==true||this.isOpera==true)&&c.push(a);a=a.offsetParent}else if(a.y)b+=a.y;if((this.isFF==true||this.isOpera==true)&&c.length>0){a=f;while(a.parentNode){if(a.nodeName=="DIV"&&a.style.position!="absolute"&&a.style.position!="relative"&&a.style.position!="fixed"){for(var e=false,d=0;d<c.length;d++)if(c[d]==a){e=true;break}if(e==false)b-=a.scrollTop}a=a.parentNode}}return b};oboutGrid.prototype.getStyle=function(a,c){var d="";if(document.defaultView&&document.defaultView.getComputedStyle){var b=document.defaultView.getComputedStyle(a,null);if(!b)try{if(a.style.display=="none"){a.style.display="";b=document.defaultView.getComputedStyle(a,null);if(b)d=b.getPropertyValue(c);a.style.display="none"}}catch(e){}if(b&&d=="")d=b.getPropertyValue(c)}else if(a.currentStyle)try{c=c.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});d=a.currentStyle[c]}catch(e){}return d};oboutGrid.prototype.hasVerticalScrollBar=function(a){return a.clientWidth!=0&&a.offsetWidth>a.clientWidth+10?true:false};oboutGrid.prototype.hasHorizontalScrollBar=function(a){return a.clientHeight!=0&&a.offsetHeight>a.clientHeight+10?true:false};oboutGrid.prototype.getVerticalScrollBarWidth=function(a){return a.clientWidth!=0?a.offsetWidth-a.clientWidth:0};oboutGrid.prototype.getHorizontalScrollBarHeight=function(a){return a.clientHeight!=0?a.offsetHeight-a.clientHeight:0};oboutGrid.prototype.checkRightClick=function(a){var b;if(!a)var a=window.event;if(a.which)b=a.which==3;else if(a.button)b=a.button==2;return b};oboutGrid.prototype.getBoxOuterWidth=function(a){var e=parseInt(this.getStyle(a,"padding-left"));if(isNaN(e))e=0;var c=parseInt(this.getStyle(a,"padding-right"));if(isNaN(c))c=0;var f=parseInt(this.getStyle(a,"border-left-width"));if(isNaN(f))f=0;var d=parseInt(this.getStyle(a,"border-right-width"));if(isNaN(d))d=0;var b=0;if(this.isFF==true||this.isOpera==true||this.isSafari==true||this.isChrome==true||this.isIE==true&&document.documentElement&&document.documentElement.clientWidth)if(a.nodeName=="TD"&&a.firstChild!=null&&a.firstChild.nodeName=="DIV"&&(a.firstChild.className==this.CSSResizableContent||a.firstChild.className==this.CSSResizableContentWithWrap)){b=parseInt(this.getStyle(a.firstChild,"padding-left"));if(isNaN(b))b=0}else if(a.nodeName=="TD"&&a.childNodes[1]!=null&&a.childNodes[1].nodeName=="SPAN"&&a.childNodes[1].firstChild!=null&&(a.childNodes[1].firstChild.className==this.CSSResizableContent||a.childNodes[1].firstChild.className==this.CSSResizableContentWithWrap)){b=parseInt(this.getStyle(a.childNodes[1].firstChild,"padding-left"));if(isNaN(b))b=0}if(this.isIE==true)if(document.documentElement&&document.documentElement.clientWidth)if(a.nodeName=="TD"&&a.firstChild!=null&&a.firstChild.nodeName=="DIV"&&(a.firstChild.className==this.CSSResizableContent||a.firstChild.className==this.CSSResizableContentWithWrap)){b=parseInt(this.getStyle(a.firstChild,"padding-left"));if(isNaN(b))b=0}if(a.nodeName=="TD"&&a.firstChild!=null&&a.firstChild.nodeName=="DIV"&&a.firstChild.className==this.CSSCellPadding){b=parseInt(this.getStyle(a.firstChild,"width"));if(isNaN(b))b=0}else if(a.nodeName=="TD"&&a.childNodes!=null&&a.childNodes[1]!=null&&a.childNodes[1].nodeName=="SPAN"&&a.childNodes[1].firstChild.className==this.CSSCellPadding){b=parseInt(this.getStyle(a.childNodes[1].firstChild,"width"));if(isNaN(b))b=0}return e+c+f+d+b};oboutGrid.prototype.getDivOuterWidth=function(b){var a=0;if(this.isIE==true){if(document.documentElement&&document.documentElement.clientWidth){a=parseInt(this.getStyle(b,"padding-left"));if(isNaN(a))a=0}}else if(this.isFF==true||this.isOpera==true||this.isSafari==true){a=parseInt(this.getStyle(b,"padding-left"));if(isNaN(a))a=0}return a};oboutGrid.prototype.convertFixedToRelativeWidth=function(c){var a=0,b=this.GridBodyContainer.offsetWidth;a=c*100/b;return parseInt(a)};oboutGrid.prototype.convertRelativeToFixedWidth=function(c){var a=0,b=this.GridBodyContainer.offsetWidth;a=c*b/100;return parseInt(a)};oboutGrid.prototype.getOuterHTML=function(a){if(a!=null)if(typeof a.outerHTML!="undefined")return a.outerHTML;else{var b=document.createElement("DIV");b.appendChild(a.cloneNode(true));return b.innerHTML}else return""};try{if(Sys)Sys.Application&&Sys.Application.notifyScriptLoaded()}catch(ex){};