Prior to implementing something like this at your own company, I'd ring your friendly neighborhood tax accountant and make sure you didn't just create a taxable event for all employees. Much like writing a login form, I think there are a lot of very subtle infelicities in implementations which have very serious consequences.