I'm posting some information to a url, using javascript, and I want there to be some kinda timer on the post where, if it "times out" I stop doing the post and continue on with the script.

Ideas?