<!--#include file="config.asp" -->
<html>
<head>
<title></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function setRefresh()
	{
		window.setInterval("fnRefresh()",1000);
	}	
	
function fnRefresh()
	{
		document.location.href="pm_messages.asp?from=<%=request("from")%>&toid=<%=request("toid")%>";
	}	
</script>
<body onLoad="setRefresh()"   bgcolor="#e3e8d2" leftmargin="5" topmargin="0">

<%
Set rsShow = Server.CreateObject("ADODB.Recordset")
rsShow.Open "SELECT  * FROM tblShoutbox where username='"&request("from")&"' and toname='"&request("toid")&"'    ORDER BY ID DESC",strConnString,3,2
Do until rsShow.EOF
%>
    <b><span style='font-family:verdana; font-size: 13px;color:#859559'><% response.write  rsshow("username") %></b>:<% response.write rsShow("Msg")%></span><br>
<%	 
 Set rsShow1 = Server.CreateObject("ADODB.Recordset")
rsShow1.Open "SELECT  * FROM tblShoutbox where username='"&rsshow("toname")&"' and toname='"&rsshow("username")&"'    ORDER BY ID DESC",strConnString,3,2
if rsShow1.EOF<>true then
%>
    <b><span style='font-family:verdana; font-size: 13px;color:#859559'><% response.write  rsshow("toname") %></b>:<% response.write rsShow("Msg")%></span><br>
	 

<%end if%>
  
  
  
  
  
  
<%
rsShow.MoveNext
loop
%>


</body>
</html>