(Minor plug)
SAGE-AU set up the Open Source Developers' Agreement Initiative. They have a set of documents about this:
http://www.sage-au.org.au/osda/index.html
These are publicly available, and includes suitable agreements for most common circumstances. There is also an FAQ for employers.
Using these will help prevent code that you develop for the F/LOSS world being accidentally claimable by your employer.
-R