function popupChat() {
        win=window.open("popup.html", "Sheridan's Homepage CHAT!!",
                   "height=220,width=520");
}     


function send()
{
   if (document.UserInfo.NICKNAME.value == null ||
                                        document.UserInfo.NICKNAME.value == "")
   {
        window.alert("Be kell írnod egy nicknevet magadnak.")
        return false
   }
  if (document.UserInfo.PORT.value == null ||
                                        document.UserInfo.PORT.value == "")
   {
        window.alert("Portszám nélkül nem lehet csatlakozni. Általában a 6667 a legmegfelelőbb.")
        return false
   }

 var USERNICK = document.UserInfo.NICKNAME.value
 var USERSERV = document.UserInfo.SERVER.value
 var USERCHAT = document.UserInfo.CSATI.value
 var USERPORT = document.UserInfo.PORT.value
 var USERRANK = document.UserInfo.USERRANK.value

 win=window.open("","IRC","resizable=no,height=320,width=500")
 win.document.write('<html><head><link rel="stylesheet" href="ie.css" type="text/css"><title>SHP CHAT!! || Irc Kliens OnLine ||</title></head>')
 win.document.write('<body bgcolor="#C0C0C0">')

 win.document.write('<applet archive="jirc_nss.zip" code=Chat.class width=490 height=300 >')         

win.document.write('<param name="CABBASE" value="jirc_mss.cab">');
win.document.write('<param name="LicenseKey" value="3679797969-22236604930866346083298204-66888886550909171717143160343417344414661909-01349213340493449293777894566083136688779311198178679346936688888655090931281760831366881485064414043488">')
 win.document.write('<param name="ServerPort" value="'+USERPORT+'">')
 win.document.write('<param name="ServerName1" value="'+USERSERV+'">')
 win.document.write('<param name="Channel1" value="'+USERCHAT+'">')
 win.document.write('<param name="AllowURL" value="true">')
 win.document.write('<param name="AllowIdentd" value="true">')
 win.document.write('<param name="WelcomeMessage" value="SHP-CHAT! Wellcome. Logging on...">')
 win.document.write('<param name="RealName" value="'+USERRANK+'">')
 win.document.write('<param name="NickName" value="'+USERNICK+'">')
 win.document.write('<param name="UserName" value="SheriPage">')
 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="99,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('</applet>')
 win.document.write('</body>')
 win.document.write('</html>')
 win.document.close()


 //document.location=document.referrer
 //document.location="intro.html"

 return true
}            

