Prova cosi....

codice:
function pippo(a,b,c) {
if (a==null) {
 a = 1;
}
if (b==null) {
 b = 1;
}
if (c==null) {
 c = 1;
}
...
}