 
			
				25/02/2004, 12:46
			
			
			     |  
        |     |    |    Fecha de Ingreso: diciembre-2003  
						Mensajes: 162
					  Antigüedad: 21 años, 10 meses Puntos: 2     |        |  
  |      Donde esta el error en el javascript?        Hola grupo:   
Tengo un problema en mi pagina ya que no me muestra el javascript en una ventana del navegador lo me me aparece en la direccion es lo siguiente: javascript:nueva_ventana('alta.php') si le doy al enlace de agregar usuario, javascript:nueva_ventana('baja.php') si le doy al enlace de eliminar usuario, y javascript:nueva_ventana('modifica.php') si le doy al enlace de modificar datos.     
Mi codigo es el siguiente:   
<html> 
  <head> 
	<script language="JavaScript"> 
        function nueva_ventana(pagina) 
        { 
		if (document.centro.id.value != "null"){ 
        	ancho = screen.width - 13; 
          	if (ancho > 1280) 
            	ancho = 1270; 
          		alto = screen.height - 50; 
          		window.open("","sobreventana","toolbar=no,location  =no,directories=no,status=yes,membar=no,scrollbars  =yes,resizable=yes,width="+ancho+",height="+alto+"  ,left=0,top=0"); 
				return true; 
        	} 
			else alert("Debe Seleccionar un Centro"); 
			return false;   
		}	 
    </script> 
</head> 
<body bgcolor="#8CB7CA"> 
<hr> 
<table valign="top" width="991"> 
	<td class="menu" width="132">[<a href="JavaScript:nueva_ventana('alta.php')" title="Agregar Usuario" target="sobreventana">Agregar Usuario</a>]</td> 
	<td class="menu" width="133">[<a href="JavaScript:nueva_ventana('baja.php')" title="Eliminar Usuario" target="sobreventana">Eliminar Usuario</a>]</td> 
	<td class="menu" width="622">[<a href="JavaScript:nueva_ventana('modifica.php')" title="Modificar Datos" target="sobreventana">Modificar Datos</a>]</td> 
	<td class="menu" width="84">[<a href="Salir" onClick="javascript:window.close();">Salir</a>]</td> 
</table>  
	<tr width="100%" height="88%" valign="top"> 
    <td valign="top" align="center" colspan="2"> 
<hr> 
    <p align="center"><font color="#285F78" size="5"><b><u>Selección del Select </u></b></font></p> 
	<table width="35%" cellspacing="0" cellpadding="0" align="center"> 
	  	<form name="centro" method="post" action=""> 
			<tr> 
        		<td class="drkblbld">Centro:</td> 
         		<td> 
					<select name="id" onChange="javascript:if (this.options[this.selectedIndex].value!='null'){this.form.submit();}">	   
					<option value="null">Seleccione dato</option> 
					<option value="1">Seleccione 1 </option> 
					<option value="2">Seleccione 2 </option> 
					<option value="3">Seleccione 3 </option>   
			   		</select> 
		  		</td> 
		  	</tr> 
		</form> 
    </table> 
</body> 
</html>   
Por mas que lo miro estoy bloqueado.     
Gracias por todo.   
Un Saludo           |