User enhancements to make life quicker

Added form.focus on the pages which have forms and also added a little replace function on the history.php page to remove AS and spaces if they are pasted into the text box.