javascript merging parameters
<p>I have an object that looks like this:</p>

<pre><code>StandardFormat({
    HeaderFont: 'greentext2',
    HeaderLinkFont: 'bluelink3',
    Backcolor: 'Black',
        ...
});
</code></pre>

<p>So far, I have a function that has this form:</p>

<pre><code>FormatGrid(ID, HeaderFont, HeaderLinkFont, BackColor,...){}
</code></pre>

<p>All the parameters are listed and must be supplied in the call. What I'd like to do is replace it with this:</p>

<pre><code>FormatGrid(ID, Format){}
</code></pre>

<p>That way, I could write something like this:</p>

<p><code>FormatGrid('TopGrid', StandardFormat)</code>; and be able to send the id of the grid and any format object.</p>

<p>I'm kinda stuck. How do you merge the parameters?</p>

<p>Thanks for your suggestions.</p>
