title: calling a javascript from a4j:jsFunction in richfaces 3.3.3
body: <p>i have a javascript which i put in the extraHeaderContent:</p>
  
  <pre><code>&lt;ui:define name="extraHeaderContent"&gt;
      &lt;/script&gt; --&gt;
      &lt;script type="text/javascript"&gt;
      function getTimezoneName() {
          var timezone = jstz.determine_timezone();
          return timezone.name();
      }
      &lt;/script&gt;
  &lt;/ui:define&gt;
  </code></pre>
  
  <p>i want to use this script to get the time zone and then to use it in a4j:jsFunction like this:</p>
  
  <pre><code>&lt;a4j:jsFunction name="getTimezoneName" data="#{usertimezone.userTimeZone}" &gt;
               &lt;a4j:actionparam name="userTimeZone" 
                                assignTo="#{usertimezone.userTimeZone}"
                                /&gt;
  &lt;/a4j:jsFunction&gt;
  </code></pre>
  
  <p>or even like this: </p>
  
  <pre><code>&lt;a4j:jsFunction action="#{usertimezone.prepareTimeZone()}" &gt;
               &lt;a4j:actionparam name="userTimeZone" 
                                value="getTimezoneName()"
                                assignTo="#{usertimezone.userTimeZone}"
                                noEscape="true"/&gt;
  &lt;/a4j:jsFunction&gt;
  </code></pre>
  
  <p>but none of these are working. what am i doing wrong?</p>