i suspect this line is the cause of your problems:
<%
if (Request.ServerVariables("Request_Method") = "POST") then
Session("CID") = "" & cStr(cStr(Request.Form("Facility2"))) & ""
end if%>
this will set the session any time a form is posted, since the insert form does not have a Facility2 element, the session is being cleared.