I'm not a big fan of javascript, however I hope this little trick is going to save me some extra retyping: http://www.pmwiki.org/wiki/Cookbook/WikiForms#leaving bram