I Have the following function.
function ChangeDasPanel(controllerPath, postParams) { $.post(controllerPath, postParams, function(returnValue) { $(
If I understand you correctly, it's as easy as setting another parameter and calling the variable as a function:
function foo(mycallback) { mycallback(); }