Invoke two functions with the same name
<p>In short i want to overwrite a javascript function with a newer one, but in that newer function i want to be able to call the old one. So for example:</p>

<pre><code>function test()
{
    alert('original');
}

// then some time later
function test()
{
    alert('new function');
}

// call function
test();
</code></pre>

<p>In this case only the last <code>test()</code> is invoked. So the <code>new function</code> is alerted.</p>

<p>But is there a way to call the first <code>test()</code> method aswell? SO both <code>test()</code> function get invoked?</p>

<hr>

<p>The reason i need this is because a web application generates an <code>onSave()</code> method. This function is triggered when a form is saved through Ajax.</p>

<p>I want to do some additional things when the form is saved but i can't just change the original <code>onSave()</code> function. That is why i'm looking for a way to extend it.</p>

<p>How can i do this?</p>
