I am still not seeing the params in the applet... In your rchat.tmpl file you should have:
[code]
<applet
codebase="http://client.sigmachat.com/current/"
code="Client.class" archive="scclient_en.zip"
width=600 height=350>
<param name="room" value="38360">
<param name="cabbase" value="scclient_en.cab">
<param name="username" value="$Username">
<param name="password" value="$Password">
<param name="autologin" value="yes">
</applet>
Your rchat.php file should be populating the $Username and $Password variables.