Glenn - just an FYI,

I took the code that you modified and it has 2 limitations.

1. It will not allow me to paste a 120K KiX file into the top portion. It cuts it off long before that.

2. Even using only the portion that was pasted into the top and clicking on the convert button gives me an out of bounds error and quits.

Using the "semi oem" code from Lonkero (I've modified mine to use tables for borders and remove the invalid characters) but otherwise is still the code from Lonkero.

I also added the 2 lines that I mentioned here
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=111485

$txtSource.MaxLength = 0
$txtTarget.MaxLength = 0

The conversion works fine, but it will give a STACK OVERFLOW exception and quit if I try to Preview it.
If I just copy the converted code and post it to KORG it works fine. One LONG post that does not need to be broken into multiple posts.