Most environments for writing text have an autosave. There's a PeriodicalExecuter, in Prototype, where you can run a javascript command every n seconds, so you could do a form.submit every 5 minutes or so, to avoid the timeout issue, if this starts becoming major.