<%call nocache() logindate=getlogin(now) requestid=request.cookies("xlaALSrequest")("requestid") lastlogin=request.cookies("xlaALSrequest")("lastlogin") if requestid="" or datediff("n",lastlogin,logindate)>usertimeout then response.write "" response.end end if '/// Look for new messages in room ALSRoom=application("ALSRoom" & requestid) '/// Is the room closed? if not(isarray(ALSRoom)) then response.write "" response.end end if newmessage=ALSRoom(2)&"" newcommand=ALSRoom(3)&"" repaction=ALSroom(6) if newmessage<>"" then ALSRoom(2)="" if newcommand<>"" then ALSRoom(3)="" if newmessage<>"" or newcommand<>"" then application("ALSRoom" & requestid)=ALSRoom response.buffer=true response.flush %> <% '/// Rep's Actions (is he typing) if instr(repaction,"1")<>0 then response.write "" else response.write "" end if '/// Is there any new message response.write "" %>