selecionar un elemento en un combobox

kaxhy
16 de Diciembre del 2003
cual es el codigo en JavaScript para despues de crear un elemento option selecionarlo si cumple una caracteristica. el codigo es:

function sublist(inform, selecteditem)
{
inform.subcatagory.length = 0
<%
count= 0
y=0
do while not rs.eof
%>
x = <%= trim(y) %>;
subcat = new Array();
subcatagorys = "<%=(rs("modelo")) %>";
subcatagoryof = "<%=(rs("marca"))%>";
subcat[x,0] = subcatagorys;
subcat[x,1] = subcatagoryof;
if (subcat[x,1] == selecteditem) {
var option<%= trim(count) %> = new Option(subcat[x,0], subcat[x,0]);
if subcat[x,0]="<%=(rs("modelo")) %>" { *****CODIGO PARA SELECIONAR EL OPTION*********
}
inform.subcatagory.option[inform.subcatagory.length]=option<%= trim(count)%>;
}
<%
count = count + 1
y = y + 1
rs.movenext
loop
rs.close
%>

Gracias po la ayuda

este codigo lo utilizo para enlazar dos combobox