I smell a Darwin Award...
You can must use linear optocouplers to get an isolation barrier.
http://www.clare.com/home/pdfs.nsf/www/AN-107.pdf