crappy file - it has some useful code
some more work on sendcoin dialog