separate callback function java script
<p>I'm using from kcfinder in my web page it is ok but only one problem;
i need to separate callback function and use it further ...but i can't</p>

<pre><code>function openKCFinder(div) {
window.KCFinder = {
    callBack: function(url) {
///all action 
}
</code></pre>

<p>//i need something similar this 
///it is not work;</p>

<pre><code>function set_pic(url,div){
    ///all action
}
function openKCFinder(div) {
  window.KCFinder = {
    callBack: set_pic(url,div) ;
 }
</code></pre>

<p>thanks for help me.</p>

<p>and excuse me for poor English.</p>
