");
document.write(" ");
<%
function getCustom()
Dim rs,CustomFields,rs1,i,CustomNames,splitValue,checkstr,selectstr,valstr,topstr,endstr,filetype
CustomFields=""
Set rs=dbsqlr1("select CustomName,Custom,customValues,customOptions,customClass,customplace from [dbpre]Content_custom where Customtype ='gbook' order by CustomOrder asc,CustomID desc")
Do While not rs.Eof
valstr=rs(2)
select case rs(4)
case 0,1
getCustom= getCustom&"
"&rs(0)&":
"
case 2
getCustom= getCustom&"
"&rs(0)&":
"
case 3
getCustom= getCustom&"
"&rs(0)&":
"
case 4,5,6
if ifstrin(rs(3),",") then
getCustom= getCustom&"
"&rs(0)&":
"
if rs(4)=6 then getCustom= getCustom&"
"
end if
end select
rs.MoveNext
Loop
getCustom=topstr&getCustom&endstr
End function
function isred(str)
if not isnul(str) then
isred= "datatype='"&str&"'>*"
else
isred= ">"
end if
end function
%>