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("Please enter your first name.\n\nThis will help us when we are analyzing the transcript of the focus session.\nThank-you!")
        return false
   }

   if (document.UserInfo.PASSWORD.value != "smri")
   {
        window.alert("You have entered an incorrect password for the SMRI Online Focus Groups.\nPlease see the instructions on the Focus Groups homepage for more information.")
        return false
   }

   if (document.UserInfo.SESSION_NUM.value == null)
   {
        window.alert("Please enter your SMRI Issued Session Number.")
        return false
   }


 var USERNICK = document.UserInfo.NICKNAME.value + "-"
 var ROOM = "SMRI_FG_" + document.UserInfo.SESSION_NUM.value

 win=window.open("","IRC","resizable=no,height=320,width=610")
 win.document.write('<html><head><title>SMRI Interactive: Online Focus Group</title></head>')
 win.document.write('<body bgcolor="black">')

 win.document.write('<table border=0 width=100%><tr><td align=left valign=top width=100><img src="images/ofg_logo_small.gif" width=85>')
 win.document.write('</td><td width=500 align=right>')


 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="ServerPort" value="6667">')
 win.document.write('<param name="ServerName1" value="irc.chatcircuit.com">')
 win.document.write('<param name="ServerName2" value="irc.blackened.com">')
 win.document.write('<param name="Channel1" value="'+ROOM+'">')
 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 SMRI Interactive!">')
 win.document.write('<param name="RealName" value="SMRI Focus Group 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="120,120,140">')
 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="2">') 
 win.document.write('</applet>')

 win.document.write('</td></tr><td>&nbsp;')
 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
}            
