function test(x) { if (typeof(x) == 'undefined') x = 1; // blah blah // please consult with Javascript documentation found no // http://developer.netscape.com }