James Larus - 2011-06-19

Bug caused by change to type of underlying windows; subsequent dynamic casting returns null pointer that is dereferenced
Need to eliminate option to write HTML since PlainText does not support it.
Cleaned up dialog as well.