Allow selecting of text inside pre tags
 - functions borrowed form phpBB's forum_fn.js file