Try changing:
code:
function onEvent_Timer(timer)
to:
code:
function OnEvent_Timer(timer)
It's getting called five seconds after you sent the first smiley to your contact, perhaps you didn't wait that long.
If you want it to wait 5 seconds before sending each smiley, you can either use
Sleep (would freeze Messenger), or you can send the smiley inside the OnEvent_Timer function.