convert preprocess functions from faq.new_page.inc