<%
db="/car/lh100com.mdb"
dim car 
dsnstr1="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"")
set car=server.CreateObject("adodb.connection")
car.Open dsnstr1
%>


<%
Function htmlCode(content)
	TempContent = content
	TempContent = replace(TempContent,"<","&lt;")
	TempContent = replace(TempContent,">","&gt;")
	TempContent = replace(TempContent,vbcrlf,"<br>")
	TempContent = replace(TempContent,chr(32),"&nbsp;")
	TempContent = replace(TempContent,chr(34),"&quot;")
	htmlCode=TempContent
End Function

function code(content)
	TempContent = content
	TempContent = replace(TempContent,chr(34),"&quot;")
	code=TempContent
end function
function sqlstr(dat)
sqlstr=replace(dat,"'","''")
end function

function datastr(title)
dim title1
if len(trim(title))>14 then
title1=mid(title,1,14)
datastr=title1
else
datastr=title
end if
end function
%>