There are nice examples in the docs which cover your problem but you forbid to give doc references. It's a pity but I respect this.

((small side node:
Quote Originally Posted by Bong.Da.City View Post
Me and i
Ehm, is that an alarm signal of schizophrenia? Considering the red eyes of your avatar I am a little scared right now.))

@squidge: You caused me a stroke with your renaming! I thought that it couldn't be that there is suddenly a guy with more than 1500 post I never have heard of. Then finally I saw your footer. Thank heaven, I am relieved. Please, don't change your name too often!