One JavaScript function calling several others
<p>I know that a javascript function is perfectly capable of calling other functions.  I've utilized this several times.</p>

<p>Currently I'm working on a script that will find the html elements of a certain tag, and add in a bit of text based on what kind of tag it is.</p>

<pre><code>function foo() {
dealWithH1();
dealWithH2();           
dealWithH3();
etc...          
}
</code></pre>

<p>I have done a few searches regarding functions like this and what I can't seem to find is a definite, consistent answer to whether or not this is good practice.  I like this way, because there are a lot of function calls to make, and it keeps it very organized.  I just want to make sure before I get too far into it that there isn't some glaring problem with doing something like this.  The function <code>foo()</code> serves no purpose but to be called at <code>onLoad</code> and then call all of these other functions.</p>

<p>Is this okay, or is there a more encouraged way to get this done?</p>
