Best thing to do is create a file: functions.php
Create all of your functions in there.
At the top of all the documents that you require a function from that file do:
include_once("functions.php");
The function definition will now be available for use.