sanitize_pageresults($resultcount,$pagenumber,$perpage,$maxperpage,$defaultperpage); $pagenav=construct_page_nav($pagenumber,$perpage,$resultcount,$pagebaseurl);