>I misread your first message, I didn't realize you wanted a bit string of 1s and 0s. It sounds like you'll be doing quite a lot of this function so you might consider using a lookup instead of doing so much bit/string manipulation
I realized that when I checked out your site :) Thanks for the further idea, looks like a good one...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.