Mattquantic,
I'm never fond of creating globals when you actually want to pass a parameter.
You could add a new parameter to an existing function:
f(a,b) {...} becomes f(a,b,c) {...}
where inside f you can test on passing c:
function f(a,b,c) {
c = (c ? c : defaultValueFor_c)
...
}
or...