function validateForm(par1) { var arg = [].slice.call(arguments,1) alert(JSON.stringify(arg)) } validateForm(1,2,3,4,5)