'if (not isdate(fromdate)) or (not isdate(todate)) then msg = "<font face=verdana size=2 color=red> <b> Enter Valid Dates <br> <br> Go <a href='javascript:history.back();' style='color:red'>Back</a> </b> </font>"
set rs = server.CreateObject("adodb.recordset")
'sql = "select HoardingId, RegDate, FromDate, ToDate, Status from BookingsMaster where ClientId=" + session("ClientId") + " and RegDate>='" + fromdate + "' and RegDate<='" + todate + "'"
sql = "select HoardingId, RegDate, FromDate, ToDate, Status from BookingsMaster where ClientId=" + session("ClientId")
if msg="" then
rs.Open sql, con, 3, 3
if rs.EOF then msg = "<font face=verdana size=2 color=red> <b> No Bookings Available <br> <br> Go <a href='javascript:history.back();' style='color:red'>Back</a> </b> </font>"