// This is the client-side function that calls the server method:
// (assume objServer is already set as in example 4)
function SynchTest(InValue) {
  // Bounce is the name of the method on the server.
  // DisplayFunction is the name of the function called by the 
      server 
  // when the server finishes. Because DisplayFunction is itself an 
  // object reference, do not place it in quotes.
    objServer.Bounce(InValue, DisplayFunction);
}

// Finally, here is DisplayFunction:
function DisplayFunction(objReturn) {
    alert(objReturn.return_value);
}