Because the tutorial sent to the magazine, I can't publish it recently, but everyone can download this little thing I wrote.
http://www.cjsdn.net/user/download/107218/lomboz_restart_func.zip