<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hola Leo,</DIV>
<DIV></DIV>
<DIV>Te pido una ayuda porque ya no se como solucionarlo, tengo un problema con 
las funciones ajax , el tema es que actualiza 1 pagina bien y las demás que se 
enlazan no.</DIV>
<DIV>Las funciones las llamo en el index con un include:</DIV>
<DIV> </DIV>
<DIV><STRONG><U>index:</U></STRONG></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV><EM><?php</EM></DIV>
<DIV><EM>// Llama Funciones de redirección de Pagina (Ajax).</EM></DIV>
<DIV><EM>include('web/funciones_recarga.php');</EM></DIV>
<DIV><EM>?></EM></DIV>
<DIV><EM>&nbsp; <br></EM></DIV>
<DIV><EM><div class="titulo"></EM></DIV>
<DIV><EM><?php</EM></DIV>
<DIV><EM>include('web/head.php');</EM></DIV>
<DIV><EM>?></EM></DIV>
<DIV><EM><br></EM></DIV>
<DIV><EM></div></EM></DIV>
<DIV><EM></head></EM></DIV>
<DIV><EM></EM></DIV>
<DIV><EM><body></EM></DIV>
<DIV><EM>&nbsp; <br></EM></DIV>
<DIV><EM><div class="contenido" id="contenido"></EM></DIV>
<DIV><EM><?php</EM></DIV>
<DIV><EM>include('web/login.php');</EM></DIV>
<DIV><EM>?></EM></DIV>
<DIV><EM><br></EM></DIV>
<DIV><EM></div></EM></DIV>
<DIV><EM><div class="pie"></EM></DIV>
<DIV><EM><?php</EM></DIV>
<DIV><EM>include('web/pie.php');</EM></DIV>
<DIV><EM>?></EM></DIV>
<DIV><EM></div></EM></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000><STRONG><U>funciones_recarga:</U></STRONG></FONT></DIV>
<DIV><STRONG><U></U></STRONG> </DIV>
<DIV><EM><script type="text/javascript"></EM></DIV>
<DIV><EM>function ajaxFunction() {</EM></DIV>
<DIV><EM>  var xmlHttp;</EM></DIV>
<DIV><EM>  </EM></DIV>
<DIV><EM>  try {</EM></DIV>
<DIV><EM>   </EM></DIV>
<DIV><EM>    xmlHttp=new XMLHttpRequest();</EM></DIV>
<DIV><EM>    return xmlHttp;</EM></DIV>
<DIV><EM>  } catch (e) {</EM></DIV>
<DIV><EM>    </EM></DIV>
<DIV><EM>    try {</EM></DIV>
<DIV><EM>      xmlHttp=new 
ActiveXObject("Msxml2.XMLHTTP");</EM></DIV>
<DIV><EM>      return xmlHttp;</EM></DIV>
<DIV><EM>    } catch (e) {</EM></DIV>
<DIV><EM>      </EM></DIV>
<DIV><EM>      try {</EM></DIV>
<DIV><EM>        xmlHttp=new 
ActiveXObject("Microsoft.XMLHTTP");</EM></DIV>
<DIV><EM>        return xmlHttp;</EM></DIV>
<DIV><EM>      } catch (e) {</EM></DIV>
<DIV><EM>        alert("Tu navegador no 
soporta AJAX!");</EM></DIV>
<DIV><EM>        return false;</EM></DIV>
<DIV><EM>      }}}</EM></DIV>
<DIV><EM>}</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>function Enviar(_pagina,capa) {</EM></DIV>
<DIV><EM>    var ajax;</EM></DIV>
<DIV><EM>    ajax = ajaxFunction();</EM></DIV>
<DIV><EM>    ajax.open("POST", _pagina, true);</EM></DIV>
<DIV><EM>    ajax.onreadystatechange = function() {</EM></DIV>
<DIV><EM>        if 
(ajax.readyState==1){</EM></DIV>
<DIV><EM>            
document.getElementById(capa).innerHTML = " Aguarde por favor...";</EM></DIV>
<DIV><EM>                 
}</EM></DIV>
<DIV><EM>        if (ajax.readyState == 4) 
{</EM></DIV>
<DIV><EM>           
</EM></DIV>
<DIV><EM>                
document.getElementById(capa).innerHTML=ajax.responseText; </EM></DIV>
<DIV><EM>             
}}</EM></DIV>
<DIV><EM>             
</EM></DIV>
<DIV><EM>    ajax.send(null);</EM></DIV>
<DIV><EM>} </EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM></script></EM></DIV>
<DIV><STRONG><U></U></STRONG> </DIV>
<DIV> </DIV>
<DIV><STRONG><U>login:</U></STRONG></DIV>
<DIV><EM><div class='login'></EM></DIV>
<DIV><EM>    <form action ='' method='post'></EM></DIV>
<DIV><EM>        
&nbsp;<br></EM></DIV>
<DIV><EM>        
<span><p>Usuario</p></EM></DIV>
<DIV><EM>        <input type='text' 
class='usuario' maxlength="20" name="usuario" 
value=''></span><br></EM></DIV>
<DIV><EM>        
&nbsp;<br></EM></DIV>
<DIV><EM>        
<span><p>Contraseña</p></EM></DIV>
<DIV><EM>        <input type='password' 
class='pass' maxlength="30" name="pass" 
value=''></span><br></EM></DIV>
<DIV><EM>        <input class="submit" 
type="submit" name="aceptar" value="Aceptar"/></EM></DIV>
<DIV><EM>    
</form>                
</EM></DIV>
<DIV><EM></div></EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM></EM> </DIV>
<DIV><EM></EM> </DIV>
<DIV><EM><?php</EM></DIV>
<DIV><EM>    if ( isset($_POST['aceptar']))</EM></DIV>
<DIV><EM>    {</EM></DIV>
<DIV><EM>        if ( $_POST['usuario'] == "" 
)</EM></DIV>
<DIV><EM>        {</EM></DIV>
<DIV><EM>            //ya 
esta validado con ajax e informado</EM></DIV>
<DIV><EM>        }else</EM></DIV>
<DIV><EM>        {</EM></DIV>
<DIV><EM>            if ( 
$_POST['pass'] == "" )</EM></DIV>
<DIV><EM>            
{</EM></DIV>
<DIV><EM>                
//ya esta validado con ajax e informado</EM></DIV>
<DIV><EM>            
}else</EM></DIV>
<DIV><EM>            
{</EM></DIV>
<DIV><EM>                
session_start();</EM></DIV>
<DIV><EM>                
$_SESSION['uss']=$_POST['usuario'];</EM></DIV>
<DIV><EM>                
$_SESSION['pass']=$_POST['pass'];</EM></DIV>
<DIV><EM>                
print("<script 
type='text/javascript'>Enviar('web/login_verifica.php','contenido');</script>");</EM></DIV>
<DIV><EM>            
}</EM></DIV>
<DIV><EM>        }</EM></DIV>
<DIV><EM>    }</EM></DIV>
<DIV><EM>?></EM></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV> </DIV>
<DIV>En el login verifico que no ingresen nada vacío y ejecuto de nuevo la 
funciones ajax y me redirecciona  lo mas bien, el problema esta que 
después, en la otra pagina (<EM>login_verifica.php) </EM>no me permite ningún 
código con javascript, ni si quiera un simple alert, no se porque pasa eso, no 
me tira error  y si pongo código php se ejecuta lo mas bien.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>                                                                                                                                                                                                                                                                                                                                                        Gracias Leo.</DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>