no he visto tu ultimo codigo porque contiene ASP o JSP y no entiendo nada. de todos modos, aqui un ejemplo usando tu codigo inicial.
Código:
<html>
<head>
<script language="JavaScript">
function cambia(){
with (document.frm){
indice.value = String(selector.selectedIndex);
opcion.value = selector.options[selector.selectedIndex].text;
valor.value = selector.options[selector.selectedIndex].value;
}
}
</script>
</head>
<body>
<form name="frm">
Indice:<input type="text" name="indice"><br>
Opcion:<input type="text" name="opcion"><br>
Valor: <input type="text" name="valor" onkeyup="
var options = this.form.selector.options;
for(var i = 0; i < options.length; i++){
var match = options[i].value == this.value;
if(match)break;
}
this.form.selector.selectedIndex = i;
cambia();
"><br>
Seleccione:<select name="selector" onchange="cambia()">
<option>Seleccione un valor</option>
<option value="1">Uno</option>
<option value="2">Dos</option>
<option value="3">Tres</option>
</select>
</form>
</body>
</html>