<%
	
sql="select * from user where user_name like '%'"
if 	Request("sex")<>"0" then
sql=sql&" and sex='"&Request("sex")&"'"
end if
if      Request("relation")<>"0" then
sql=sql&" and relation='"&Request("relation")&"'"
end if
if      Request("work_province")<>"0" then
sql=sql&" and work_province='"&Request("work_province")&"'"
end if
if Request("age_s")<Request("age_e") then
	min_byear=year(date)-Request("age_e")
	max_byear=year(date)-Request("age_s")
else
	min_byear=year(date)-Request("age_s")
	max_byear=year(date)-Request("age_e")
end if
sql=sql&" and byear>'"&min_byear&"'"
sql=sql&" and byear<'"&max_byear&"'"
	
session("sql")=sql
Response.Redirect "show_search.asp?move=1"
%>
<p>&nbsp;</p>
