<html>
<head>
<title>pop up</title>
<head>
<script language="javascript">
function acc(){
var TmpOpt = new Option("opcion1.jpg","opcion1.jpg");
var obj = top.window.opener.document.getElementById('slct');
var obj2 = document.getElementById('slct2');
var obj3 = top.window.opener.document.getElementById('texto');
document.getElementById("log").value = document.getElementById("log").value + "objeto texto: " + obj3+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto texto.text: " + obj3.value+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto select: " + obj+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto select.type local: " + obj2.type+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto select.type remoto: " + obj.type+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto tmpopt: " + TmpOpt+"\n";
document.getElementById("log").value = document.getElementById("log").value + "valor tmpopt: " + TmpOpt.value+"\n";
document.getElementById("log").value = document.getElementById("log").value + "texto tmpopt: " + TmpOpt.text+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto select options: " + obj.options+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto select options[0].value: " + obj.options[0].value+"\n";
document.getElementById("log").value = document.getElementById("log").value + "objeto select options[0].text: " + obj.options[0].text+"\n";
obj3.value = "texto cambiado desde ventana remota";
obj2.options[1] = TmpOpt;
obj.options[1] = TmpOpt; // por que no funciona esto?????
}
</script>
<body>
<input type="button" value="accion" onClick="javascript:acc();"><br><br>
<textarea name="log" cols="50" rows="12"></textarea>
<select name="slct2" id="slct" size="3">
<option value="sin valor local">sin texto local</option>
</select>
</body>
</html>