Ahh - now you mention 980 cities... would mean a hell of a lot of data...
I take it this is for a public app though ? If it was LAN based - you might have gotten away with it (just)
Look for a search option as well so you can rifle through the select box, cos trying to do it with that many in the list will be hell....
function search(object)
{
var found = false;
var agent = object.agentText.value.toUpperCase();
if (object.agentText.value.length > -1)
{
for (var i=0; (i < object.agentSelect.length) && !found; i++)
{
var text = object.agentSelect.options[i].text;
agentSelect = text.toUpperCase();
if (agentSelect.indexOf(agent) == 0)
{
found = true;
object.agentSelect.options[i].selected = true;
}
else if (agentSelect > agent)
{
found = true;
object.agentSelect.options[i].selected = true;
}
}
if (!found)
object.agentSelect.options[object.agentSelect.length - 1].selected = true;
}
}
May help you on your quest....
P.S. Bubble - it is a nice little script innit ?