Thanks Anthony, the msleep function is really nice, but I have some problems getting it to work. Somehow it fucks up the system, which becomes unresponsive after I have run it in a javascript. Should I just wait for the next release, or do you want a more detailed error report through the appropriate channels? /Jon