// ************* FORWARD A LA ULTIMA PAGINA ********* //
// Por revisar!!!!!
//javascript:window.history.forward(history.length);
//if ( history.back() ) javascript:window.history.go(-1);
//if ( history.forward() ) javascript:window.history.go(1);

// ************* VALIDAR ACCESO DE USUARIO ********* //
 
 function valida_usuario() {
 
  var x ,y ;
  x=document.forma.txtlogin.value;
  y=document.forma.txtpassword.value;

  if (x == "")  {
    window.alert ("Debe escribir su Usuario\n");
    self.document.forma.txtlogin.focus();
    return false;
  }
  else  {
    if (y == "")  {
        window.alert ("Debe escribir su Contraseņa\n");
        self.document.forma.txtpassword.focus();
        return false;
    }
    else
       self.document.forma.submit();
  }

 }

 function ir_a_password() {

   if ( event.keyCode == 13 )  {
      self.document.forma.txtpassword.focus();
      return false;
   }
 }

 function ir_a_enviar()  {
 
   if ( event.keyCode == 13 )  { 
      self.document.forma.cmdenviar.focus();
      valida_usuario();
      return false;
   }
 }

