myAlert=function(a){OboutTextBox1.value(a+"\r\n"+OboutTextBox1.value())};if(typeof Obout=="undefined")if(typeof Type!="undefined"&&typeof Type.registerNamespace!="undefined")Type.registerNamespace("Obout");else Obout=function(){};if(typeof Obout.Interface=="undefined")Obout.Interface=function(){};Obout.Interface.OboutCore=function(){};Obout.Interface.OboutCore.show=function(b,a){if(!b)return;if(typeof a=="undefined")a=false;if(!a)b.style.display="";else b.style.visibility="visible"};Obout.Interface.OboutCore.hide=function(b,a){if(!b)return;if(typeof a=="undefined")a=false;if(!a)b.style.display="none";else b.style.visibility="hidden"};Obout.Interface.OboutCore.enableOffsets=function(a){a.style.visibility="hidden";Obout.Interface.OboutCore.show(a)};Obout.Interface.OboutCore.disableOffsets=function(a){a.style.visibility="visible";Obout.Interface.OboutCore.hide(a)};Obout.Interface.OboutCore.getLeft=function(a){var b=0,h=Obout.Interface.OboutCore.Browser.isIE(),g=Obout.Interface.OboutCore.Browser.isFF(),f=Obout.Interface.OboutCore.Browser.isOpera(),d=Obout.Interface.OboutCore.Browser.isSafari(),e=Obout.Interface.OboutCore.Browser.isChrome();if(h||g||f||e||d)var c=[],k=a;if(a.offsetParent)while(a.offsetParent){if(a.nodeName!="TR"||d==false)b+=a.offsetLeft-(a.nodeName!="TR"?a.scrollLeft:0);else b+=a.firstChild.offsetLeft-a.firstChild.scrollLeft;if(h)if(!isNaN(parseInt(a.currentStyle.borderLeftWidth)))b+=parseInt(a.currentStyle.borderLeftWidth);(g||f||e||d)&&c.push(a);a=a.offsetParent}else if(a.x)b+=a.x;if((h||g||f||e||d)&&c.length>0){a=k;while(a.parentNode){if(a.nodeName=="DIV"&&a.style.position!="absolute"&&a.style.position!="relative"&&a.style.position!="fixed"){for(var j=false,i=0;i<c.length;i++)if(c[i]==a){j=true;break}if(j==false)b-=a.scrollLeft}a=a.parentNode}}return b};Obout.Interface.OboutCore.getTop=function(a){var b=0,e=Obout.Interface.OboutCore.Browser.isIE(),h=Obout.Interface.OboutCore.Browser.isFF(),g=Obout.Interface.OboutCore.Browser.isOpera(),d=Obout.Interface.OboutCore.Browser.isSafari(),f=Obout.Interface.OboutCore.Browser.isChrome();if(e||h||g||f||d)var c=[],k=a;if(a.offsetParent)while(a.offsetParent){if(a.nodeName!="TR"||d==false)b+=a.offsetTop-(a.nodeName!="TR"?a.scrollTop:0);else b+=a.firstChild.offsetTop-a.firstChild.scrollTop;if(e)if(!isNaN(parseInt(a.currentStyle.borderTopWidth)))b+=parseInt(a.currentStyle.borderTopWidth);(e||h||g||f||d)&&c.push(a);a=a.offsetParent}else if(a.y)b+=a.y;if((e||h||g||f||d)&&c.length>0){a=k;while(a.parentNode){if(a.nodeName=="DIV"&&a.style.position!="absolute"&&a.style.position!="relative"&&a.style.position!="fixed"){for(var j=false,i=0;i<c.length;i++)if(c[i]==a){j=true;break}if(j==false)b-=a.scrollTop}a=a.parentNode}}return b};Obout.Interface.OboutCore.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};Obout.Interface.OboutCore.getInnerWidth=function(a){var f=a.offsetWidth,d=parseInt(Obout.Interface.OboutCore.getStyle(a,"padding-left")),b=parseInt(Obout.Interface.OboutCore.getStyle(a,"padding-right")),e=parseInt(Obout.Interface.OboutCore.getStyle(a,"border-left-width")),c=parseInt(Obout.Interface.OboutCore.getStyle(a,"border-right-width"));if(isNaN(d))d=0;if(isNaN(b))b=0;if(isNaN(e))e=0;if(isNaN(c))c=0;return f-d-b-e-c};Obout.Interface.OboutCore.getKeyPressed=function(a){if(!a)a=window.event;var b;if(a.keyCode)b=a.keyCode;else if(a.which)b=a.which;return b};Obout.Interface.OboutCore.stopEventPropagation=function(a){if(!a)a=window.event;if(!a)return false;a.cancelBubble=true;a.stopPropagation&&a.stopPropagation()};Obout.Interface.OboutCore.hasVerticalScrollBar=function(a){return a.clientWidth!=0&&a.offsetWidth>a.clientWidth?true:false};Obout.Interface.OboutCore.hasHorizontalScrollBar=function(a){return a.clientHeight!=0&&a.offsetHeight>a.clientHeight?true:false};Obout.Interface.OboutCore.getVerticalScrollBarWidth=function(a){return a.clientWidth!=0?a.offsetWidth-a.clientWidth:0};Obout.Interface.OboutCore.getHorizontalScrollBarHeight=function(a){return a.clientHeight!=0?a.offsetHeight-a.clientHeight:0};Obout.Interface.OboutCore.getElementIndex=function(a){var b=0;while(a.previousSibling){a=a.previousSibling;b++}return b};Obout.Interface.OboutCore.standardizeEvent=function(a){if(!a)var a=window.event;if(!a.target)a.target=a.srcElement;return a};Obout.Interface.OboutCore.createHandlerFunction=function(b,c){var a={};a.myObj=b;a.calledFunc=c;a.myFunc=function(b){var b=Obout.Interface.OboutCore.standardizeEvent(b);return a.calledFunc.call(a.myObj,b)};return a.myFunc};Obout.Interface.OboutCore.attachEventHandler=function(a,e,f,d,g){var b=null;if(a.addEventListener){var b=Obout.Interface.OboutCore.createHandlerFunction(a,f);a.addEventListener(e,b,g)}else if(a.attachEvent){var b=Obout.Interface.OboutCore.createHandlerFunction(a,f);a.attachEvent("on"+e,b)}if(d&&typeof d.push=="function"){var c={};c.element=a;c.event=e;c.handler=b;d.push(c)}return b};Obout.Interface.OboutCore.detachEventHandler=function(a,b,c){if(a.removeEventListener){a.removeEventListener(b,c,null);return true}else if(a.detachEvent){a.detachEvent("on"+b,c);a.detachEvent("on"+b,c);return true}};Obout.Interface.OboutCore.detachAllEventHandlers=function(b){for(var a=0;a<b.length;a++)Obout.Interface.OboutCore.detachEventHandler(b[a].element,b[a].event,b[a].handler)};Obout.Interface.OboutCore.createDelegate=function(a,b){return function(){return b.apply(a,arguments)}};Obout.Interface.OboutCore.addCssClass=function(a,b){if(a.className.indexOf(" "+b)==-1)a.className=a.className+" "+b};Obout.Interface.OboutCore.removeCssClass=function(a,b){a.className=a.className.replace(" "+b,"")};Obout.Interface.OboutCore.Browser=function(){};Obout.Interface.OboutCore.Browser.isIE=function(){return navigator.userAgent.toLowerCase().indexOf("msie")==-1?false:true};Obout.Interface.OboutCore.Browser.isIE6=function(){return this.isIE()&&navigator.userAgent.toLowerCase().indexOf("msie 7.0")==-1&&navigator.userAgent.toLowerCase().indexOf("msie 8.0")==-1};Obout.Interface.OboutCore.Browser.isIEWithDoctype=function(){return Obout.Interface.OboutCore.Browser.isIE()&&document.documentElement&&document.documentElement.clientWidth};Obout.Interface.OboutCore.Browser.isFF=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")==-1?false:true};Obout.Interface.OboutCore.Browser.isChrome=function(){return navigator.userAgent.toLowerCase().indexOf("chrome")==-1?false:true};Obout.Interface.OboutCore.Browser.isOpera=function(){return navigator.userAgent.toLowerCase().indexOf("opera")==-1?false:true};Obout.Interface.OboutCore.Browser.isSafari=function(){return Obout.Interface.OboutCore.Browser.isChrome()==false&&navigator.userAgent.toLowerCase().indexOf("safari")==-1?false:true};Obout.Interface.OboutCore.Browser.getDocumentLeftMargin=function(){return Obout.Interface.OboutCore.Browser.isIEWithDoctype()?parseInt(Obout.Interface.OboutCore.getStyle(document.body,"margin-left")):Obout.Interface.OboutCore.Browser.isOpera()?0:0};Obout.Interface.OboutCore.Browser.getDocumentTopMargin=function(){return Obout.Interface.OboutCore.Browser.isIEWithDoctype()?parseInt(Obout.Interface.OboutCore.getStyle(document.body,"margin-top")):Obout.Interface.OboutCore.Browser.isOpera()?0:0};Obout.Interface.OboutCore.Browser.getWindowHeight=function(){return typeof window.innerHeight=="number"?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body&&document.body.clientHeight?document.body.clientHeight:0};Obout.Interface.OboutCore.Browser.getWindowWidth=function(){return typeof window.innerWidth=="number"?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body&&document.body.clientWidth?document.body.clientWidth:0};Obout.Interface.OboutCore.Browser.getWindowScrollY=function(){return typeof window.pageYOffset=="number"?window.pageYOffset:document.body&&document.body.scrollTop?document.body.scrollTop:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:0};Obout.Interface.OboutCore.Browser.getWindowScrollX=function(){return typeof window.pageXOffset=="number"?window.pageXOffset:document.body&&document.body.scrollLeft?document.body.scrollLeft:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:0};Obout.Interface.OboutCore.Encoder=function(){};Obout.Interface.OboutCore.Encoder.htmlEncode=function(a){return a.replace(/</g,"&lt;").replace(/>/g,"&gt;")};Obout.Interface.OboutCore.Encoder.htmlDecode=function(a){return a.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")};Obout.Interface.OboutCore.enableDependentControls=function(a){if(a._dependentControlsToEnable==null&&a._controlsToEnable){a._dependentControlsToEnable=[];for(var d=a._controlsToEnable.split(","),b=0;b<d.length;b++){var c=null,f=null;try{c=eval(d[b]);if(typeof c.ID=="undefined")c=null;else f="Obout"}catch(j){}if(c==null)try{c=document.getElementById(d[b]);f="HTML"}catch(j){}if(c!=null){var e={};e.Control=c;e.Type=f;a._dependentControlsToEnable.push(e)}}}if(a._dependentControlsToEnable!=null)for(var b=0;b<a._dependentControlsToEnable.length;b++)if(a.Type!="OboutCheckBox"&&a.Type!="OboutRadioButton"&&a.Type!="OboutDropDownList")if(a._dependentControlsToEnable[b].Type=="Obout")a._dependentControlsToEnable[b].Control.enable();else a._dependentControlsToEnable[b].Control.style.display="";else{if(a._dependentControlsToEnable[b].Control.Type=="OboutButton"&&a._initialStateHandled==false)continue;var h=false;if(a.Type=="OboutCheckBox"||a.Type=="OboutRadioButton")h=a.checked();else{var i=a.value();if((","+a._enablingValues+",").indexOf(","+i+",")!=-1)h=true}if(h||a._dependentControlsToEnable[b].Control.Type=="OboutButton")if(a._dependentControlsToEnable[b].Type=="Obout")a._dependentControlsToEnable[b].Control.enable();else a._dependentControlsToEnable[b].Control.style.display="";else if(a._dependentControlsToEnable[b].Type=="Obout")a._dependentControlsToEnable[b].Control.disable();else a._dependentControlsToEnable[b].Control.style.display="none"}if(a._dependentControlsToDisable==null&&a._controlsToDisable){a._dependentControlsToDisable=[];for(var d=a._controlsToDisable.split(","),b=0;b<d.length;b++){var c=null,f=null;try{c=eval(d[b]);if(typeof c.ID=="undefined")c=null;else f="Obout"}catch(j){}if(c==null)try{c=document.getElementById(d[b]);f="HTML"}catch(j){}if(c!=null){var e={};e.Control=c;e.Type=f;a._dependentControlsToDisable.push(e)}}}if(a._dependentControlsToDisable!=null)for(var b=0;b<a._dependentControlsToDisable.length;b++)if(a.Type!="OboutCheckBox"&&a.Type!="OboutRadioButton"&&a.Type!="OboutDropDownList")if(a._dependentControlsToDisable[b].Type=="Obout"){a._dependentControlsToDisable[b].Control.disable();if(a._dependentControlsToDisable[b].Control.Type=="OboutTextBox"||a._dependentControlsToDisable[b].Control.Type=="OboutDropDownList")a._dependentControlsToDisable[b].Control.value("");else(a._dependentControlsToDisable[b].Control.Type=="OboutCheckBox"||a._dependentControlsToDisable[b].Control.Type=="OboutRadioButton")&&a._dependentControlsToDisable[b].Control.checked(false)}else a._dependentControlsToDisable[b].Control.style.display="none";else{if(a._dependentControlsToDisable[b].Control.Type=="OboutButton"&&a._initialStateHandled==false)continue;var g=false;if(a.Type=="OboutCheckBox"||a.Type=="OboutRadioButton")g=a.checked();else{var i=a.value();if((","+a._disablingValues+",").indexOf(","+i+",")!=-1)g=true}if(g||a._dependentControlsToDisable[b].Control.Type=="OboutButton")if(a._dependentControlsToDisable[b].Type=="Obout"){a._dependentControlsToDisable[b].Control.disable();if(a._dependentControlsToDisable[b].Control.Type=="OboutTextBox"||a._dependentControlsToDisable[b].Control.Type=="OboutDropDownList")a._dependentControlsToDisable[b].Control.value("");else(a._dependentControlsToDisable[b].Control.Type=="OboutCheckBox"||a._dependentControlsToDisable[b].Control.Type=="OboutRadioButton")&&a._dependentControlsToDisable[b].Control.checked(false)}else a._dependentControlsToDisable[b].Control.style.display="none";else if(a._dependentControlsToDisable[b].Type=="Obout")a._dependentControlsToDisable[b].Control.enable();else a._dependentControlsToDisable[b].Control.style.display=""}};try{if(Sys)Sys.Application&&Sys.Application.notifyScriptLoaded()}catch(ex){};