function popupChat() {
        win=window.open("popup.html", "JPilotChat",
                   "height=320,width=550");
}     


function send()
{
   if (document.UserInfo.NICKNAME.value == null ||
                                        document.UserInfo.NICKNAME.value == "")
   {
        window.alert("Escribe tu nick :)")
        return false
   }

 var USERNICK = document.UserInfo.NICKNAME.value

 win=window.open("","IRC","resizable=no,height=420,width=650")
 win.document.write('<html><head><title>Chat de lugonet</title></head>')
 win.document.write('<body bgcolor="#FFFFFF" >')
 win.document.write('<CENTER><a TARGET="_blank" href="http://cgi.lugonet.com/Banner/ServeBanner.asp?lugar=LUGONET1"><img width=468 height=60 src="http://cgi.lugonet.com/Banner/ServeBanner.asp?lugar=LUGONET1" border=0></a><BR><BR></CENTER>')
 win.document.write('<TABLE CELLPADDING="0" CELLSPACING="0"><TR><TD STYLE="border-left: 1px solid Black; border-top: 1px solid Black; border-right: 1px solid Black;">')
 win.document.write('<applet archive="jirc_nss.zip" code=Chat.class width=600 height=300 >')         
 win.document.write('<param name="CABBASE" value="jirc_mss.jar">');
 win.document.write('<param name="ServerPort" value="6667">')
 win.document.write('<param name="ServerName1" value="kalisto.irc-hispano.org">')
 win.document.write('<param name="ServerName2" value="libres.irc-hispano.org">')
 win.document.write('<param name="NoConfig" value="true">')
 win.document.write('<param name="Channel1" value="lugonet">')
 win.document.write('<param name="AllowURL" value="true">')
 win.document.write('<param name="AllowIdentd" value="true">')
 win.document.write('<param name="TotalChannelsAllow" value="5">')
  win.document.write('<param name="WelcomeMessage" value=" Bienvenido al chat de Lugonet">')
 win.document.write('<param name="RealName" value="Usuario de Lugonet">')
 win.document.write('<param name="NickName" value="'+USERNICK+'">')
 win.document.write('<param name="UserName" value="lugonauta">')
 win.document.write('<param name="isLimitedServers" value="true">')
 win.document.write('<param name="isLimitedChannels" value="false">')
 win.document.write('<param name="MessageCol" value="80">')
 win.document.write('<param name="BackgroundColor" value="110,132,181">')
 win.document.write('<param name="TextColor" value="black">')
 win.document.write('<param name="TextScreenColor" value="white">')    
 win.document.write('<param name="ListTextColor" value="blue">')
 win.document.write('<param name="ListScreenColor" value="white">')
 win.document.write('<param name="TextFontName" value="Helvetica">')
 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="LicenseKey" value="3687363659-28191323043488-6688888655090917171714281913230434881485239109-01349213340493449293777894566083136688779311198178679346936688888655090931281760831366881485064414043488">') 
 win.document.write('</applet>')
 win.document.write('')
 win.document.write('</TD><TD VALIGN="BOTTOM"><img src=shadow.e.gif width=12 height=300 ALIGN="BOTTOM"></TD></TR><TR><TD COLSPAN="2" VALIGN="top" ALIGN="right"><img src=shadow.s.gif width=490 height=12 align=top><img src=shadow.se.gif width=12 height=12 align=top></TD></TR></TABLE>')
 win.document.write('</body>')
 win.document.write('</html>')
 win.document.close()


 //document.location=document.referrer
 //document.location="intro.html"

 return true
}            
