Jacques Marneweck has a tip for Smarty users out there looking for a simpler way to include multiple Javascript files into their templates.
Previously one would have a good chunk of lines to include different javascript files based on what your form was requiring for effects, in the template file where you include the header.tpl file you would specify which set of javascript files to also include.
His solution combines the normal Smarty calls for the different Javascript files into a single, simple insert calls for as many Javascript files you'd like to include.