// Gaia Ajax Widgets Copyright (C) 2007  Frost Innovation AS. details at http://ajaxwidgets.com/
Gaia.TextBox=function(element,options){this.initialize(element,options);}
Object.extend(Gaia.TextBox.prototype,Gaia.WebControl.prototype);Object.extend(Gaia.TextBox.prototype,{initialize:function(element,options){this.baseInitializeWebControl(element,options);},setVisible:function(value){var containerEl=$('__'+this.element.id+'__');$A(containerEl.childNodes).each(function(el){value?Element.show(el):Element.hide(el);});return this;},setText:function(value){this.element.value=value;return this;},setTabIndex:function(value){this.element.tabIndex=value;return this;},setAutoCallBack:function(value){return this;},setTextAlign:function(value){var containerEl=$('__'+this.element.id+'__');var elToMove=null;$A(containerEl.childNodes).each(function(el){if(el.id!=this.element.id)
elToMove=el;}.bind(this));containerEl.removeChild(elToMove);if(value=='Left'){containerEl.insertBefore(elToMove,containerEl.firstChild);}else{containerEl.appendChild(elToMove);}
return this;},_getElementPostValue:function(){return'&'+this.getCallbackName()+'='+encodeURIComponent($F(this.element.id));},_getElementPostValueEvent:function(){return'&'+this.getCallbackName()+'='+encodeURIComponent($F(this.element.id))+'&__EVENTTARGET='+this.getCallbackName();}});Gaia.TextBox.browserFinishedLoading=true;