copy object with elements
<p>how to copy an object with some elements?</p>

<p>I want to copy this object, but each <code>elm</code> still refers to the same DOM element?</p>

<pre><code>var fields = {
    account_id_ : {
        name : Lang.get('HDL_ACCOUNT'),
        width : 60,
        elm : $('&lt;input class="inp" type="text" style="text-align:right" /&gt;'),
        value : '',
        focus : true
    },
    name : {
        name : Lang.get('HDL_NAME'),
        width : null,
        elm : $('&lt;input class="inp" type="text" /&gt;'),
        value : ''
    }
};
</code></pre>
