Change a javascript function to a jquery
<p>I am using Jquery to load a page into a div. The page the gets loaded is using a javascript. How can i change the javascript shown below into a jquery</p>

<pre><code>window.onload = function(){
    new JsDatePick({
        useMode:2,
        target:"AdddueBy",
        dateFormat:"%d-%m-%Y"           
    });
    new JsDatePick({
        useMode:2,
        target:"bDob",
        dateFormat:"%d-%m-%Y"           
    });
    new JsDatePick({
        useMode:2,
        target:"gDob",
        dateFormat:"%d-%m-%Y"           
    });
};
</code></pre>
