Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/08/2006, 08:30
hernanredtic
 
Fecha de Ingreso: junio-2006
Mensajes: 42
Antigüedad: 17 años, 10 meses
Puntos: 0
help con script

tengo el siguiente problema como puedo atrapar la variable que estoy devolviendo muestra para asignarse la a otra variable, espero su ayuda gracias.......
<script LANGUAGE="JavaScript">
function irA(){
x=y=0;
if(document.getElementById('r1').checked==true) x=1;
if(document.getElementById('r2').checked==true) y=2;
if(x==1){
document.formulario.muestra.value=1;
return;
alert("Fuera de Rango"+x);

}

if(y==2){
document.formulario.muestra.value=2;
alert("Fuera de Rango"+y);
}
</script>
puedo hacerlo $var=muestra;