<!--#include file="includes/connect.asp"-->

<!--#include file="config.asp" -->

<html>

<head>
<title>Matrimonials, Indian Matrimonial - findyourfate.com marriage website Online chat </title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<%
function SendMail(fromAddr,recipients,adminmail,strSubject,Report,mailComp)
 if mailComp = "EasyMail" then
	set mail = server.createobject("EasyMail.SMTP.5")
	mail.LicenseKey  = "AES/S19I500R1AX30C0Rd000"
	mail.Priority = 1	
	
	mail.AddRecipient recipients, recipients,1
	if adminmail<>"" then mail.AddRecipient adminmail, adminmail,2
	
 	mail.MailServer  = "127.0.0.1"
	mail.Subject =  strSubject
	mail.BodyFormat  = 1
	mail.FromAddr= fromAddr
	mail.BodyText  =Report 
	strMail = mail.Send
	set mail = nothing
	strNote=""
end if
SendMail = strMail
end function

 Set rs1 = Server.CreateObject("ADODB.recordset")
 Set rs=Server.CreateObject("ADODB.recordset")
rs1.Open "SELECT * FROM tbl_user where user_id_pk="&request("id")&"",cn, 3,2
if rs1.eof<>true then
loginname=rs1("loginname")
end if
rs.Open "SELECT * FROM tbl_user where user_id_pk="&request("chatid")&"",cn, 3,2
if rs.eof<>true then
chatname=rs("loginname")


end if






			Set rs=Server.CreateObject("ADODB.recordset")
		
	rs.open "SELECT * FROM setup",strConnString,3,2

		rs.addnew
		rs("IDLETIME")=2
		rs("KICKOUTTIME")=10
		rs("MESSAGESCROLL")="Bottom"
		rs("MESSAGENUMBER")=10
		rs("MESSAGEREFRESHDELAY")=2
		rs("USERREFRESHDELAY")=60
		rs("chatname")=request("id")
	rs.update
	Set rs1=Server.CreateObject("ADODB.recordset")
	rs1.open "SELECT * FROM users",strConnString,3,2

		rs1.addnew
		rs1("username")=loginname
		rs1("chatname")=chatname
		rs1("LOGGEDON")=now()
	rs1.update
%>
<frameset rows="108,*" cols="*" framespacing="0" frameborder="No" border="1" bordercolor="#e3e8d2">
  <frame src="frm_top.asp?id=<%=request("id")%>&chatid=<%=request("chatid")%>" name="head" scrolling="no" noresize marginwidth="0" marginheight="0">
 <frameset rows="*,80" cols="*" frameborder="no" border="0" framespacing="0">

  <frameset rows="*" cols="*,201" framespacing="0" frameborder="no" border="0">
  
    <frame src="frm_messages.asp?id=<%=request("id")%>&chatid=<%=request("chatid")%>" name="main" >
	
		      <frame src="frm_emoticons.asp?id=<%=request("id")%>&chatid=<%=request("chatid")%>" name="emoticons" scrolling="no" noresize>
  </frameset>
   <frame src="nchat10.asp?id=<%=request("id")%>&chatid=<%=request("chatid")%>"  name="form" scrolling="no" noresize>
</frameset>
  <noframes>
  
  <body>
  <p align="center"><img src="<%=application("ChatImage")%>" alt="<%=request("id")%>"></p>
  <p align="center"><font face="Arial"><%=application("lang_chat_1")%></font></p>
  </body>
  </noframes>
</html>