function popupChat() {
        win=window.open("popup.html", "Doom-metal.com chat",
                   "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=320,width=500")
 win.document.write('<html><head><title>Doom-metal.com Chat</title></head>')
 win.document.write('<body bgcolor="black" text="white">')

 win.document.write('<applet archive="jirc_nss.zip" code=Chat.class width=490 height=300 >')

 win.document.write('<param name="LicenseKey" value="3650877539-0363132360828866-171717142923239146913488822814852391098566828809856682881466889128-706634939134348883041386288285349331236093292323914691348882289331820463">');
 win.document.write('<param name="CABBASE" value="jirc_mss.cab">');
 win.document.write('<param name="ServerPort" value="6660">')
 win.document.write('<param name="ServerName1" value="Oslo.NO.EU.Undernet.org">')
 win.document.write('<param name="ServerName2" value="Milan.it.eu.undernet.org">')
 win.document.write('<param name="ServerName3" value="losangeles.ca.us.undernet.org">')
 win.document.write('<param name="ServerName4" value="sanjose.ca.us.undernet.org">')
 win.document.write('<param name="Channel1" value="Doom-metal">')
 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 #Doom-metal!">')
 win.document.write('<param name="RealName" value="Visitor from doom-metal.com">')
 win.document.write('<param name="NickName" value="'+USERNICK+'">')
 win.document.write('<param name="UserName" value="doomster">')
 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="black">')
 win.document.write('<param name="TextColor" value="black">')
 win.document.write('<param name="TextScreenColor" value="204,204,204">')
 win.document.write('<param name="ListTextColor" value="black">')
 win.document.write('<param name="ListScreenColor" value="204,204,204">')
 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
}
