// Gaia Ajax Widgets Copyright (C) 2007 - 2008 Gaiaware AS. details at http://ajaxwidgets.com/
Gaia.ListBox=Class.create();Object.extend(Gaia.ListBox.prototype,Gaia.WebControl.prototype);Object.extend(Gaia.ListBox.prototype,Gaia.ListControl.prototype);Object.extend(Gaia.ListBox.prototype,{initialize:function(element,options){this.initializeListBox(element,options);},initializeListBox:function(element,options){this.initializeWebControl(element,options);},setTabIndex:function(value){this.element.tabIndex=value;return this;},_getElementPostValue:function(){var selectedValues=$F(this.element.id);var callbackName=this.getCallbackName();var retVal='';if(selectedValues){if(selectedValues.each){selectedValues.each(function(idx){retVal+='&'+callbackName+'='+idx;}.bind(this));}else{retVal+='&'+callbackName+'='+selectedValues;}}
return retVal;},_getElementPostValueEvent:function(){return this._getElementPostValue()+'&__EVENTTARGET='+this.getCallbackName();}});Gaia.ListBox.browserFinishedLoading=true;