Share single CUSTOM function across multiple themes
Two options that I can think of:


Make the themes sub-themes of a parent theme and put the function in the parent theme's template.php file. (I like this solution because other assets (css, js, templates) can easily be shared as well. But unless the function has to do with presentation, it probably doesn't semantically belong in a theme at all.)
Create a simple module that contains the function.