code: public static void renderAutoScrollFunction(FacesContext facesContext,
              ResponseWriter writer) throws IOException
      {
          writer.startElement(HTML.SCRIPT_ELEM, null);
          writer.writeAttribute(HTML.SCRIPT_TYPE_ATTR,
                  HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT, null);
          writer.writeText(getAutoScrollFunction(facesContext), null);
          writer.endElement(HTML.SCRIPT_ELEM);
      }
docs: Renders the autoscroll javascript function.