<!--#include file=../system/include/config.asp-->
<!--#include file=../share/conn_system.asp-->
<!--#include file=../system/include/function.asp-->
<!--#include file=../system/include/access_zj.asp-->

<%
	dim checkbox,strSql
	checkbox=request("checkbox")

	if checkbox="" then %>

<SCRIPT LANGUAGE=vbscript>
<!--
msgbox("ÄúÎ´Ñ¡ÔñÒªÉ¾³ýµÄ¼ÇÂ¼!")
Sub window_onload
window.history.back
End Sub
-->
</SCRIPT>

	<% response.end
	 end if

checkbox=replace(checkbox," ","")
checkbox=replace(checkbox,","," or id=")

if session("house")="hack" then
   strSql="delete from [house_hack] where id=" & checkbox
end if
if session("house")="hire" then
   strSql="delete from [house_hire] where id=" & checkbox
end if
if session("house")="sell" then
   strSql="delete from [house_sell] where id=" & checkbox
end if
if session("house")="buy" then
   strSql="delete from [house_buy] where id=" & checkbox
end if
	conn.execute(strSql)
        response.redirect "view_house.asp?house=" & session("house")

%>
