My pleasure. More correct Japanese would probably be (I'm using romaji as I don't have scim running right now)
sukotto san ni ha (ha being wa in this case) tasukete itadaite arigatou gozaimashita. (Also gozaimasu is seldom written in kanji--mostly we foreigners do it.)
(My first name is Scott, so it's actually sukotto rather than sukottro, but that's not important).
(That's rather polite, especially using itadaite, the same verb base as itadakimasu.) So, to a native Japanese, you'd probably do it that way, tasukete itadaite, and not use kanji for gozaru. (gozaimasu).
However, as I think we're a fairly casual bunch here, and you don't know that I'm ancient in years (or didn't till just now) doing tasukete kurete (as in kurimasu, ) would be fine.
Actually, if writing to a native Japanese, you might even make it more polite to the point of exaggeration and use
itsudemo tasukete itadaite. 
(I'm not sure how advanced you are in Japanese, so if this was yokei na osewa, yurushite kudasai.)
As I mention on my page, it seems to depend not only on application, but on the system. For example, in BSD and CentOS, I need to use LC_CTYPE=ja_JP.UTF-8 for Openoffice to work. On Ubuntu, en_US.UTF-8 works fine with OO as long as I have the GTK_IM_MODULE. You can also at QT_IM_MODULE for safety in case you use some KDE apps.
(Just as an additional argument in the script, on the same line as the rest of it.)
The GTK_IM_MODULE is, as you've realized, necessary for GTK apps. (Though, you can sometimes skip it if you use LC_CTYPE=ja_JP.UTF-8). I left it out of the first set of instructions because it's not necessary for uxterm, but I should have explained it a bit better.
As I said, it can vary, not only between applications, but between distributions and O/S's (e.g., Linux and BSDs.)
Generally speaking the GTK and QT IM_MODULES and LC_CTYPE, as your native language (with UTF-8) and the XMODIFIERS should do it.
There are other GUI centric ways, which I don't use, so I'm not really sure of how they work--e.g., in Ubuntu, I think you can choose input method or something like that from a right click menu. The way I've given you here, however, should work on all systems with any sort of window manager.