I was wondering, can you create a function with an optional parameter.
Example:
function parameterTest(test) { if exists(test) { alert(\'t
function parameterTest(bool) { if(typeof bool !== 'undefined') { alert('the parameter exists...'); } else { alert('The parameter doesn\'t exist...'); } }