<!--#include file="../conn/conn2.asp" -->
<!--#include file="../conn/function.asp" -->
<%
O_id=request("O_id")
if O_id="" then
response.End()
else
sql="select * from SL_orders where O_id="&O_id
set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,1
		if not rs.eof then
		O_state=rs("O_state")
		end if
		rs.close
		set rs=nothing
response.Write O_state
end if
%>