Code from JavaScript Web Applications by Alec MacCaw