');
var idx = 1;
for (var h in options) {
if (h == '-') {
if (isUndefinedOrNull(options['-'].value)) {
options['-'].value = options['-'].label;
}
HTML.push('
'+options['-'].label+'
');
this.options[options['-'].value] = id+'_option_0';
this.value = options['-'].value;
continue;
}
if (h.charAt(0) != '_') {
HTML.push('');
}
for (var o = 0; o < options[h].length; o++) {
if (isUndefinedOrNull(options[h][o].value)) {
options[h][o].value = options[h][o].label;
}
HTML.push('
'+options[h][o].label+'
');
this.options[options[h][o].value] = id+'_option_'+idx;
idx++;
}
}
this.optionsCount = idx-1;
HTML.push('