It is working now. I just changed the following code:
from
timerID=setTimeout('init()',100);
to
timerID=setTimeout("init()",100);

And do not leave any line break between code. The server will change line break into [b]<[/b]br /[b]>[/b]