function popupChat() {
        win=window.open("popup.html", "JPilotChat",
                   "height=220,width=520");
}     


function send()
{
   if (document.UserInfo.NICKNAME.value == null ||
                                        document.UserInfo.NICKNAME.value == "")
   {
        window.alert("You must enter your nick name.")
        return false
   }

 var USERNICK = document.UserInfo.NICKNAME.value

 win=window.open("","IRC","resizable=no,height=550,width=640")
 win.document.write('<html><head><title>Welcome to the Chelada.com REAL IRC Chat Server</title></head>')
 win.document.write('<body bgcolor="#FFFFFF">')
 win.document.write('<DIV ALIGN="CENTER"><IMG SRC="cafe_header.jpg"><BR>')
 win.document.write('<TABLE BORDER="1" BGCOLOR="black" CELLPADDING="0" CEllSPACING="0"><TR><TD>')
 win.document.write('<applet archive="jirc_nss.zip" code=Chat.class width=620 height=350 >')         
 win.document.write('<param name="CABBASE" value="jirc_mss.cab">');
 win.document.write('<param name="ServerPort" value="6667">')
 win.document.write('<param name="ServerName1" value="irc.rwc.quadrunner.com">')
 win.document.write('<param name="Channel1" value="LocaBoca">')
 win.document.write('<param name="AllowURL" value="true">')
 win.document.write('<param name="AllowIdentd" value="true">')
 win.document.write('<param name="WelcomeMessage" value=" Welcome to Chelada Chat!">')
 win.document.write('<param name="RealName" value="JPilot jIRC applet user">')
 win.document.write('<param name="NickName" value="'+USERNICK+'">')
 win.document.write('<param name="UserName" value="jirc">')
 win.document.write('<param name="isLimitedServers" value="true">')
 win.document.write('<param name="isLimitedChannels" value="true">')
 win.document.write('<param name="MessageCol" value="80">')
 win.document.write('<param name="BackgroundColor" value="yellow">')
 win.document.write('<param name="TextColor" value="black">')
 win.document.write('<param name="TextScreenColor" value="white">')    
 win.document.write('<param name="ListTextColor" value="yellow">')
 win.document.write('<param name="ListScreenColor" value="black">')
 win.document.write('<param name="TextFontName" value="TimesNewRoman">')
 win.document.write('<param name="TextFontSize" value="12">')
 win.document.write('<param name="DirectStart" value="true"> ')
 win.document.write('<param name="FGColor" value="black">')
 win.document.write('<param name="IgnoreLevel" value="0">') 
 win.document.write('<param name="TitleBackgroundColor" value="black">')
 win.document.write('<param name="TitleForegroundColor" value="yellow">')
 win.document.write('</applet>')
 win.document.write('</td></tr></table>')
 win.document.write('</body>')
 win.document.write('</html>')
 win.document.close()


 //document.location=document.referrer
 //document.location="intro.html"

 return true
}            

