/* Hook for a custom function called after the element has been updated 
  (i.e. when the user has selected an entry). This function is called after 
  the built-in function that adds the list item text to the input field. 
  The function receives two parameters, the autocompletion input field and 
  the selected item (the <li> item selected). 
  For further information: http://script.aculo.us */
  
/* This is the default function called when you forgot to specify a function 
  in the "afterUpdateElement" property of your autocomplete field. */  
function defaultHookAfterUpdateElement(selectedText, selectedItem) {  
  //do nothing  
}

/* A simple example function that shows the selected value */
function exampleHookAfterUpdateElement(selectedText, selectedItem) {  
  alert('selectedValue: ' + selectedText.value);  
}
