There's a neat solution to this described here:

http://www.smartkey.co.uk/blogArticl...ticleNumber=87