add some more functions to urlparams.php to work out header links