こんなの使えないかな?
http://brain.x0.com/archives/syohin/br-988