Functions and function parameters

I have some examples of that here http://forum.mikrotik.com/t/useful-scripts/36579/1

Icosa.