You just use them. You problem is shadowing. The inner function arguments are overwriting the outer function ones because they have the same name.
Normally, any local variables are available with no trickyness to any function declared in the same scope. Meaning you just use them, as long as you dont shadow them with new local variables of the same name.
function blabla(a, b) {
// Something
httpReq.onreadystatechange = function(c, d) {
// logs undefined, because no arguments are actually passed in
// so the variables are undefined.
console.log(c, d);
// log arguments passed to blabla() because it picks up the reference
// the parent scope.
console.log(a, b);
}
}
blabla('Hi', 'There'); // should log "Hi", "There"
This just works, so long as you use a unique variable name for the arguments to each function.