SQL1 = "select * from jong where jo_start_date between '"&jo_start_date&"' and '"&jo_date_end&"' or jo_date_end between '"&jo_start_date&"' and '"&jo_date_end&"' Or '"&jo_start_date&"' <= '"&jo_start_date&"' and '"&jo_start_date&"' >= '"&jo_start_date&"' and '"&jo_date_end&"' <= '"&jo_date_end&"' and '"&jo_date_end&"' >= '"&jo_date_end&"'"
set rsconn1 = server.createobject("adodb.recordset")
rsconn1.open SQL1,StrConn,1
if rsConn1.recordcount > 0 then
response.redirect "error_jong.asp"
end if