/******************************************************************************************** * BlueShoes Framework; This file is part of the php application framework. * NOTE: This code is stripped (obfuscated). To get the clean documented code goto * www.blueshoes.org and register for the free open source *DEVELOPER* version or * buy the commercial version. * * In case you've already got the developer version, then this is one of the few * packages/classes that is only available to *PAYING* customers. * To get it go to www.blueshoes.org and buy a commercial version. * * @copyright www.blueshoes.org * @author Samuel Blume * @author Andrej Arn */ function Bs_FormFieldSelect() { this.hasValue = function(val) { val = val + '';for (var i=0; i -1)) { if (typeof(this.options[selIndex].value) != 'undefined') return this.options[selIndex].value;if (typeof(this.options[selIndex].text) != 'undefined') return this.options[selIndex].text;} return 'undefined';} this.getValueOrText = function(selIndex) { if (typeof(selIndex) == 'undefined') selIndex = this.selectedIndex;if ((selIndex != 'undefined') && (selIndex > -1)) { if (typeof(this.options[selIndex].value) != 'undefined') { if (typeof(this.options[selIndex].outerHTML) == 'string') { if (this.options[selIndex].outerHTML.toLowerCase().indexOf('value=') != -1) { return this.options[selIndex].value;} } else { if (this.options[selIndex].value != '') return this.options[selIndex].value;} } if (typeof(this.options[selIndex].text) != 'undefined') return this.options[selIndex].text;} return false;} this.getTextForValue = function(value) { for (var i=0; i