That took a bit of fumbling, but this is the (working) result:
Create a "filename.js" with e.g. text:
Code:
<!-- Start
function dothis()
{
document.write('<SELECT NAME="surname" CLASS="quoteform">');
document.write('<option selected> Select');
document.write('<option>Allen ');
document.write('<option>Anderson ');
document.write('<option>Barrett ');
etc.
document.write('</select>');
}
dothis();
// End -->
And in the main HTLM source, you only need to enter something like this:
Code:
Surname:
<script language="JavaScript" src="filename.js"></script>