I think what FOXPROG requested is something similar to this:
<script>
texts = new Array('one', 'two', 'three');
values = new Array(1, 2, 3);
var total_options = 3;
document.write('<select name=thelist>');
for (n=0; n<total_options; n++)
{
thelist.options[n] = new Option();
thelist.options[n].value = values[n];
thelist.options[n].text = texts[n];
}
document.write('</select>');
</script>
Warning: I wrote this on the fly, so the script can require soem debugging.