Por fin 
erlingfiallos y 
MaBoRaK 
El codigo final quedo asi:  
 Código PHP:
    <?
  ini_set('session.cache_limiter', '');
  header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  header('Pragma: no-cache');
  session_start();
  include_once ('lee_base.php');
  include ('configuracion/abrirbd.php');  //Establece conexion a BD
  include_once("agent.php");
  session_register("resultado");
  session_register("ag");
  $ag = $agent->init();
  funcion_1();  //Genera matriz resultado
  mostrar_resultado();  //Muestra Matriz resultado en un form
  function funcion_1() {
     global $db, $resultado;
     $query = "Select * from diarios";
     $resultado = lee_todo($query); // Ejecuta el query y deja el resultado en matriz multidimensional
  }
 function  funcionPhp($parametro1, $parametro2) {
   global $resultado;
     print_r($resultado);
     return "";
  }
  function mostrar_resultado() {
     global $resultado, $ag;
?>
<html>
  <head><script languaje="javascript">
<!--
function ve_saldos(i) {
var val = document.getElementById('valor1'+i).value;
agent.call('','funcionPhp','Resultado',val,i);
}
function Resultado(obj) {
alert(obj);
}
--></script>
</head>
<body bgcolor="#ffcdef">
<form name="depe" method="post" action="<?= $PHP_SELF; ?>">
  <tr></tr>
      <table>
          <tr>
 <?         for ($i=0; $i<count($resultado); $i++) {
                   extract($resultado[$i]);
                   echo "<tr><td><input type='text' id='valor1$i' name='valor$i' value='$diario' OnBlur='ve_saldos($i);' ></td>";
                   echo "<td>$nom_diario</td></tr>";
              }
?>
           </tr>
      </table>
</form>
</body>
</html>
<? } ?>    
  Lo que no pude fue que teniendo las variables registradas como de sesion no declararlas como globales en las otras funciones, es decir, fue necesario tambien delararlas como globales dentro de las funciones.
 
  
Agradezco inmensamente la colaboracion por ustedes brindada  
