Can anyone tell me how to pass on parameters to a function?