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