I confess to swiping the expat userbox code from here and the Wirral userbox code from Shrew.
Original 2016
Revised 2024