Remember there ARE NO GLOBAL SCRIPTS. You will be pasting code into each activity or you might do as others have done where you put the code into a Panel Label (as long as it is less than 32KB) and then use eval(CF.widget(...).label) from Activity Script to create your classes, common functions, etc..
This has been discussed before so search for +panel +label +eval for last 2 years and I'm sure you'll find some hits to clear up any questions you might have.
Also see the "so you think... " PEPV2 sticky thread about setting the font on these 'Script' labels to something other than 0/None/FONT_NONE.