well, the only advantage to using a sleep function is that if you want a pause in the middle of your code, you don't have to put the rest of your code in a separate function. also, setTimeout()'s don't wait for you to finish with modal components.... for example... try these two pieces of code...
for(var i = 0; i < 5; i++)
{
setTimeout('alert()', 5000);
}
and:
for(var i = 0; i < 5; i++)
{
alert()
sleep(5000);
}
the second one actaully waits five seconds between alerts, where the first pops them all up one after the other.
its not very practical or efficient, but, it does work. luciddream@subdimension.com