samuel marin wrote:I have a function that creates a Combo box on the fly:
No. There's no such things as a "combo". I assume you mean a select dropdown? Please read: HtmlHasNoComboBox
Also, your code will be much easier to read with proper indentation. I'd suggest editing your post. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.