%
'------------- List ---------------------------------------------------
'1. ¹®Àڿó¸®ÇÔ¼ö1 - InputValue(strvalue)
'2. ¹®Àڿó¸®ÇÔ¼ö2 - InputValue2(strvalue) -->textareaÀû¿ë½Ã¿¡»ç¿ë..
'3. ´ëºÐ·ù¸í±¸Çϱâ - fun_cateLName(CateL_idx)
'4. ¼ÒºÐ·ù¸í±¸Çϱâ - fun_cateSName(CateL_idx, CateS_idx)
'5. »ý³â¿ùÀÏ·Î ³ªÀ̱¸Çϱâ - mnai (ssn)
'6. Àαâ°Ë»ö¾î³ªÅ¸³»±â - TopSearch_Keyword(val)
'7. DBConnection - dbconnect() ->subÇÔ¼ö
'8. °ü¸®ÀÚÆäÀÌÁö üũ - security_ad_cms()
'9. ij½¬ÃʱâÈ - no_cache()
'10. Æú´õ°Ë»çÈÄ ¾øÀ¸¸é »ý¼º - FolderCreate(strDir)
'11. DB¿¬°áÇØÁ¦ - DBnothing() -->»èÁ¦¿¹Á¤..
'12.
¸¶¿ì½º¿À¹ö½Ã»ö»óÀû¿ë - trmouseover(clr)
'13. ·¹ÄÚµå¼Â¿¬°áÇØÁ¦ - RSnothing(rsobj)
'14. °ü¸®ÀÚÆäÀÌÁöŸÀÌÆ²
'15. °Ô½ÃÆÇ Á¦¸ñ¾Ë¾Æ³»±â bbs_name_str(a_num)
'16. ÆË¾÷¶ç¿ì´Â¸ðµâ popup_view()
'----------------------------------------------------------------------
'Set func = server.CreateObject("func.sites")
'************** Information ****************************************
' Program Title : ¹®Àڿ󸮱¸¹®1
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
'function InputValue(strvalue)
' strvalue = trim(strvalue)
' strvalue = Replace(strvalue,"'","''")
'strvalue = Replace(strvalue,chr(34), """)
'strvalue = Replace(strvalue,",", "")
'strvalue = Replace(strvalue,"%", "")
'strvalue = Replace(strvalue,"<", "<")
'strvalue = Replace(strvalue,">", ">")
'strvalue = Replace(strvalue, "", "")
'strvalue = Replace(strvalue, "", "")
'strvalue = Replace(strvalue,chr(13),"
")
'strvalue = Replace(strvalue,"\","")
' strvalue = Replace(strvalue," "," ")
' strvalue = Replace(strvalue,"\t"," ")
' InputValue = strvalue
'end function
'function InputValue(strvalue)
' strvalue = func.InputValue(strvalue)
' InputValue = strvalue
'end function
'************** Information ****************************************
' Program Title : ¹®Àڿ󸮱¸¹®2
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
'function InputValue2(strvalue)
'strvalue = trim(strvalue)
'strvalue = Replace(strvalue,"'","''")
'strvalue = Replace(strvalue,",", "")
'strvalue = Replace(strvalue,"%", "")
'strvalue = Replace(strvalue,"<", "<")
'strvalue = Replace(strvalue,">", ">")
'strvalue = Replace(strvalue, "", "")
'strvalue = Replace(strvalue, "", "")
'strvalue = Replace(strvalue,chr(13),"
")
'strvalue = Replace(strvalue,"\","")
' strvalue = Replace(strvalue," "," ")
' strvalue = Replace(strvalue,"\t"," ")
' InputValue2 = strvalue
'end function
'************** Information ****************************************
' Program Title : ¹®Àڿ󸮱¸¹®1
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function InputValue(strvalue)
strvalue = trim(strvalue)
strvalue = Replace(strvalue,"'","''")
strvalue = Replace(strvalue,chr(34), """)
strvalue = Replace(strvalue, "", "")
strvalue = Replace(strvalue, "", "")
InputValue = strvalue
end function
'************** Information ****************************************
' Program Title : ¹®Àڿ󸮱¸¹®2
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function InputValue2(strvalue)
strvalue = trim(strvalue)
strvalue = Replace(strvalue,"'","''")
strvalue = Replace(strvalue, "", "")
strvalue = Replace(strvalue, "", "")
InputValue2 = strvalue
end function
'************** Information ****************************************
' Program Title : ¹®Àڿ󸮱¸¹®3
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : ÃÖ °æ ¼ö 2006. 3. 14
'*********************************************************************
Function InputValue3( CheckValue )
CheckValue = replace(CheckValue, "&" , "&")
CheckValue = replace(CheckValue, "<", "<")
CheckValue = replace(CheckValue, ">", ">")
CheckValue = replace(CheckValue, "'", "`")
CheckValue = replace(CheckValue, " ", " ")
CheckValue = replace(CheckValue, vbcrlf,"
")
InputValue3 = CheckValue
End Function
'************** Information ****************************************
' Program Title : ¹®Àڿ󸮱¸¹®4
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : ÃÖ °æ ¼ö 2006. 3. 14
'*********************************************************************
function InputValue4(strvalue)
strvalue = trim(strvalue)
strvalue = Replace(strvalue,"'","''")
InputValue4 = strvalue
end Function
'ÅØ½ºÆ®¿¡¸®¾î¿¡¼ ºÒ·¯Áú °æ¿ì
Function outputValue( CheckValue )
CheckValue = replace(CheckValue, "&", "&")
CheckValue = replace(CheckValue, "<", "<")
CheckValue = replace(CheckValue, ">", ">")
CheckValue = replace(CheckValue, " ", " ")
CheckValue = replace(CheckValue, "
", vbcrlf)
outputValue = CheckValue
End Function
'************** Information ****************************************
' Program Title : ÅØ½ºÆ®¸ðµå
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function getTextmode(strvalue)
if strvalue <> "" or not isnull(strvalue) then
strvalue=Replace(strvalue, "<" , "<")
strvalue=Replace(strvalue, ">" , ">")
strvalue=Replace(strvalue,chr(13),"
")
strvalue=Replace(strvalue," "," ")
strvalue=Replace(strvalue,"\t"," ")
getTextmode = strvalue
end if
end Function
function InputValue6(strvalue)
strvalue = trim(strvalue)
strvalue = Replace(strvalue," ","")
strvalue = left(strvalue,16)
strvalue = left(strvalue,10)&"-"&right(strvalue,6)
strvalue = Replace(strvalue,":","-")
InputValue6 = strvalue
end function
'************** Information ****************************************
' Program Title : ´ëºÐ·ù¸í
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function fun_cateLName(CateL_idx)
SQL = "SELECT CateL_name FROM C_CateL WHERE CateL_idx="&CateL_idx
Set Rsx = Dbcon.Execute(SQL)
CateL_name = Rsx(0)
Set Rsx = Nothing
fun_cateLName = CateL_name
end function
'************** Information ****************************************
' Program Title : ¼ÒºÐ·ù¸í
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function fun_cateSName(CateL_idx, CateS_idx)
SQL = "SELECT CateS_name FROM C_CateS WHERE CateL_idx="&CateL_idx&"and CateS_idx = "&CateS_idx
Set Rsx = Dbcon.Execute(SQL)
CateS_name = Rsx(0)
Set Rsx = Nothing
fun_cateSName = CateS_name
end function
'************** Information ****************************************
' Program Title : ³ªÀ̱¸ÇÏ´ÂÇÔ¼ö
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 10
'*********************************************************************
function mnai (ssn)
dim y_mon, ssn_r
y_mon=cint((year(date())-cint("19" & left(ssn,2)))/4)
if mid(ssn,7,1)="1" or mid(ssn,7,1)="2" then
ssn_r = "19" & left(ssn,2) & "-" & mid(ssn,3,2) & "-" & mid(ssn,5,2)
else
ssn_r = "20" & left(ssn,2) & "-" & mid(ssn,3,2) & "-" & mid(ssn,5,2)
end if
mnai = fix((datediff("d",cdate(ssn_r),date())-y_mon)/365)
End Function
'************** Information ****************************************
' Program Title : Àαâ°Ë»ö¾î
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function TopSearch_Keyword(val)
sql = "select top "&val&" search_keyword, count(search_keyword) as tot from C_search group by search_keyword order by tot desc"
set rs_keyword = dbcon.execute(sql)
do while not rs_keyword.eof
response.write " "&rs_keyword("search_keyword")
rs_keyword.MoveNext
Loop
Set rs_keyword = Nothing
end function
'************** Information ****************************************
' Program Title : °ü¸®ÀÚÆäÀÌÁö üũ
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function security_ad_cms()
If Request.Cookies("security_ad_cms") <> "ok" then
response.write "" & VbCrLf
response.end
end if
end function
'************** Information ****************************************
' Program Title : ȸ¿ø·Î±×ÀΠüũ
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function member_login_chk(url)
If Request.Cookies("M_id") = "" then
response.write "" & VbCrLf
set dbcon = nothing
response.end
end if
end function
'************** Information ****************************************
' Program Title : °ü¸®ÀÚ Ã¼Å©
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function no_cache()
Response.Expires = -1
Response.Expiresabsolute = Now() - 1
Response.AddHeader "Pragma", "no_cache"
Response.AddHeader "cache-control", "no-cache"
Response.CacheControl = "no-cache"
end function
'************** Information ****************************************
' Program Title : Æú´õ°Ë»çÈÄ ¾øÀ¸¸é »ý¼º
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function FolderCreate(strDir)
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
If FSO.FolderExists(strDir) = False Then 'Æú´õ°¡ ¾øÀ¸¸é »õ·Î »ý¼ºÇÑ´Ù..
FSO.CreateFolder(strDir)
End if
set FSO = nothing
end function
'************** Information ****************************************
' Program Title : DB¿¬°áÇØÁ¦
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function DBnothing()
dbcon.close
set dbcon = nothing
end function
'************** Information ****************************************
' Program Title : DB¿¬°áÇØÁ¦
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function page(url)
v_temp = Int((v_page - 1) / v_block) * v_block + 1
If v_temp = 1 Then
'Response.Write "[ÀÌÀü " & v_block & "°³]"
Else
Response.Write"[ÀÌÀü]"
End If
v_loop = 1
Do Until v_loop > v_block Or v_temp > v_totalpage
If v_temp = CInt(v_page) Then
Response.Write "" & v_temp &" "
Else
Response.Write"" & v_temp & " "
End If
v_temp = v_temp + 1
v_loop = v_loop + 1
Loop
If v_temp > v_totalpage Then
'Response.Write "[´ÙÀ½ " &v_block&"°³]"
Else
Response.Write"[´ÙÀ½]"
End If
end function
'************** Information ****************************************
' Program Title : ÆäÀÌÁö2
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function page2(url)
v_temp = Int((v_page - 1) / v_block) * v_block + 1
If v_temp = 1 Then
'Response.Write "[ÀÌÀü " & v_block & "°³]"
Else
Response.Write"
"
End If
v_loop = 1
Do Until v_loop > v_block Or v_temp > v_totalpage
If v_temp = CInt(v_page) Then
Response.Write "" & v_temp &" "
Else
Response.Write"[" & v_temp & "] "
End If
v_temp = v_temp + 1
v_loop = v_loop + 1
Loop
If v_temp > v_totalpage Then
'Response.Write "[´ÙÀ½ " &v_block&"°³]"
Else
Response.Write"
"
End If
end function
'************** Information ****************************************
' Program Title : ÆäÀÌÁö3
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : ÃÖ °æ ¼ö 2006. 03. 14
'*********************************************************************
Function page3(url, getCode)
v_temp = Int((v_page - 1) / v_block) * v_block + 1
If v_temp = 1 Then
'Response.Write "[ÀÌÀü " & v_block & "°³]"
Else
Response.Write"[ÀÌÀü]"
End If
v_loop = 1
Do Until v_loop > v_block Or v_temp > v_totalpage
If v_temp = CInt(v_page) Then
Response.Write "" & v_temp &" "
Else
Response.Write"" & v_temp & " "
End If
v_temp = v_temp + 1
v_loop = v_loop + 1
Loop
If v_temp > v_totalpage Then
'Response.Write "[´ÙÀ½ " &v_block&"°³]"
Else
Response.Write"[´ÙÀ½]"
End If
end Function
'************** Information ****************************************
' Program Title :
¸¶¿ì½º¿À¹ö½Ã»ö»óÀû¿ë
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05. 13
'*********************************************************************
function trmouseover(clr)
response.write "onMouseOver=this.style.backgroundColor='"&clr&"' onMouseOut=this.style.backgroundColor=''"
end function
'************** Information ****************************************
' Program Title : ·¹ÄÚµå¼Â¿¬°áÇØÁ¦
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05.
'*********************************************************************
function RSnothing(rsobj)
rsobj.close
set rsobj = nothing
end function
'************** Information ****************************************
' Program Title : ŸÀÌÆ²
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05.
'*********************************************************************
function title_str(str,w)
%>
 |
<%=str%> |
|
<%
end function
'************** Information ****************************************
' Program Title : ŸÀÌÆ²
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05.
'*********************************************************************
function title_str2(str,w,help)
%>
|
| <%=str%> |
<%=help%> |
![]() |
|
<%
end function
'************** Information ****************************************
' Program Title : ŸÀÌÆ²
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 05.
'*********************************************************************
function title_str3(str,path)
%>
<%=str%> |
<%=path%> |
<%
end function
'************** Information ****************************************
' Program Title : °Ô½ÃÆÇ Á¦¸ñ¾Ë¾Æ³»±âbbs_name_str(a_num)
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 03. 05
'*********************************************************************
function bbs_name_str(a_num)
if a_num <> "" then
sql = "select a_bbsname from bbs_ad_cms where a_num="&a_num
set rs = dbcon.execute(sql)
a_bbsname = rs(0)
set rs = nothing
end if
bbs_name_str = a_bbsname
end function
'************** Information ****************************************
' Program Title : ÆË¾÷¶ç¿ì´Â ¸ðµâ popup_view()
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2004. 09. 03
'*********************************************************************
function popup_view()
getdate_str = replace(left(now(),10),"-","")
sql = " select * from popup "
sql = sql&" where status = 'Y' and "
'sql = sql&" left(edate,10) >= left(getdate(),10) and left(sdate,10) <= left(getdate(),10)"
sql = sql&" convert(int,convert(varchar(20),edate,112)) >= CONVERT(int,'"&getdate_str&"') and "
sql = sql&" convert(int,convert(varchar(20),sdate,112)) <= CONVERT(int,'"&getdate_str&"')"
set rs = Dbcon.Execute(sql)
do while not rs.eof
idx = trim(rs("idx"))
w_width = trim(rs("w_width"))
w_height = trim(rs("w_height"))
w_top = trim(rs("w_top"))
w_left = trim(rs("w_left"))
ck_chk = trim(rs("ck_chk"))
ck_val = trim(rs("ck_val"))
scrollbars = trim(rs("scrollbars"))
toolbar = trim(rs("toolbar"))
menubar = trim(rs("menubar"))
locations = trim(rs("locations"))
if ck_val = "" then ck_val = "1"
%>
<%
rs.movenext
loop
end function
'************** Information ****************************************
' Program Title : ÁÁÀº½Ã º¸±â goodsi_view()
' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055
' Creator : À± Á¾ ¿ì 2006-01-27
'*********************************************************************
function goodsi_view()
getdate_str = replace(left(now(),10),"-","")
sql = " select * from goodsi "
sql = sql&" where status = 'Y' and "
'sql = sql&" left(edate,10) >= left(getdate(),10) and left(sdate,10) <= left(getdate(),10)"
sql = sql&" convert(int,convert(varchar(20),edate,112)) >= CONVERT(int,'"&getdate_str&"') and "
sql = sql&" convert(int,convert(varchar(20),sdate,112)) <= CONVERT(int,'"&getdate_str&"')"
set rs = Dbcon.Execute(sql)
%>
<%
end function
'--------------------------------------------------------------'
' ű׻èÁ¦ remove_tags( str )
'--------------------------------------------------------------'
function remove_tags( str )
dim temp, dest, length, i, ch, tag
tag = false
dest = ""
temp = str
length = len(temp)
for i=1 to length
ch = mid( temp, i, 1 )
if ( ch="<" ) then tag = true
if ( ch=">" ) then
tag = false
ch=""
end if
if not tag and ch<>chr(13) and ch<>chr(10) and ch<>chr(9) then dest = dest+ch
next
dest = replace( dest, " ", "" )
remove_tags = dest
end function
'À̹ÌÁö »çÀÌÁî °¡Á®¿À±â
Function GetImageSize(Virtual_Image_Path)
Image_Path = Server.MapPath("/")&Virtual_Image_Path
Set objPic = LoadPicture(Image_Path)
imgWidth = CLng(CDbl(objPic.Width) * 24 / 635)
imgHeight = CLng(CDbl(objPic.Height) * 24 / 635)
Set objPic = Nothing
GetImageSize =imgWidth&","&imgHeight
End Function
Function GetImageSize_w(Virtual_Image_Path)
Image_Path = Server.MapPath("/")&Virtual_Image_Path
Set objPic = LoadPicture(Image_Path)
imgWidth = CLng(CDbl(objPic.Width) * 24 / 635)
imgHeight = CLng(CDbl(objPic.Height) * 24 / 635)
Set objPic = Nothing
GetImageSize_w =imgWidth
End Function
Function GetImageSize_h(Virtual_Image_Path)
Image_Path = Server.MapPath("/")&Virtual_Image_Path
Set objPic = LoadPicture(Image_Path)
imgWidth = CLng(CDbl(objPic.Width) * 24 / 635)
imgHeight = CLng(CDbl(objPic.Height) * 24 / 635)
Set objPic = Nothing
GetImageSize_h =imgHeight
End Function
'--------------------------------------------------------------'
' ÁöÁ¤ÇÑ Æø(max)¸¸Å ¹®ÀÚ¿ Á¶Àý (ÇѱÛÀ» 2¹ÙÀÌÆ®·Î ÀνÄ)
'--------------------------------------------------------------'
'
' str : Àß¶ó³¾ ¹®ÀÚ¿ º¯¼ö
' max : Àß¶ó³¾ ±æÀÌ
' br : max´ÜÀ§·Î
ű׸¦ ºÙ¿©ÁØ´Ù.
'
' ¹®ÀÚ¿À» ÇÑÁÙ¿¡ 80ÀÚ¾¿ ¸¸µé °æ¿ì
' : StringToHTML( str, 80, true )
'
' 80ÀÚ ±îÁö¸¸ Ãâ·ÂÇÏ°í ´õ ±æ¸é "..."À» ºÙ¿©ÁÖ·Á¸é
' : StringToHTML( str, 80, false )
'
'--------------------------------------------------------------'
function StringToHTML( str, max, br )
Dim i, length, buf, tmp, count, count2, ch, first
first = false
if ( isnull(str) ) then
StringToHTML = "¤»¤»¤»"
Exit Function
end if
if max>0 then
buf = Trim( str )
'buf = Replace( buf, CHR(9), " " )
'buf = Replace( buf, CHR(13), "" )
length = len( buf )
count = 1
count2 = 0
tmp = ""
for i=1 to length
if count>max then
if br=false then
tmp = tmp & "..."
exit for
end if
if i"
count = 1
first = true
end if
ch = mid( buf, i, 1 )
if ch=CHR(10) then
if br=false then
exit for
end if
tmp = tmp & "
"
count = 1
first = true
elseif count>1 AND ch=CHR(32) then
if not first then
tmp = tmp & " "
end if
elseif count = 1 and ch = CHR(32) then
tmp = tmp
else
tmp = tmp & ch
first = false
end if
if asc(ch)<0 then 'ÇѱÛÀ̸é
count = count+2
else '¿µ¹®À̸é
count = count+1
end if
next
else
tmp = str
tmp = Trim( tmp )
tmp = Replace( tmp, "&", "&" )
tmp = Replace( tmp, "<", "<" )
tmp = Replace( tmp, ">", ">" )
'tmp = Replace( tmp, CHR(10), "
" )
'tmp = Replace( tmp, CHR(32), " " )
end if
StringToHTML = tmp
end function
'---------------------sms ¿ë ¼öÁ¤ ÃÖ°æ¼ö---------------
function StringToHTML2( str, max, br )
Dim i, length, buf, tmp, count, count2, ch, first
first = false
if ( isnull(str) ) then
StringToHTML = "¤»¤»¤»"
Exit Function
end if
if max>0 then
buf = Trim( str )
'buf = Replace( buf, CHR(9), " " )
'buf = Replace( buf, CHR(13), "" )
length = len( buf )
count = 1
count2 = 0
tmp = ""
for i=1 to length
if count>max then
if br=false then
tmp = tmp & "..."
exit for
end if
if i"
count = 1
first = true
end if
ch = mid( buf, i, 1 )
'if ch=CHR(10) then
'if br=false then
' exit for
'end if
'tmp = tmp & "
"
'count = 1
'first = true
'Else
if count>1 AND ch=CHR(32) then
if not first then
tmp = tmp & " "
end if
elseif count = 1 and ch = CHR(32) then
tmp = tmp
else
tmp = tmp & ch
first = false
end if
if asc(ch)<0 then 'ÇѱÛÀ̸é
count = count+2
else '¿µ¹®À̸é
count = count+1
end if
next
else
tmp = str
tmp = Trim( tmp )
tmp = Replace( tmp, "&", "&" )
tmp = Replace( tmp, "<", "<" )
tmp = Replace( tmp, ">", ">" )
'tmp = Replace( tmp, CHR(10), "
" )
'tmp = Replace( tmp, CHR(32), " " )
end if
StringToHTML2 = tmp
end function
sub loding(st,strlink)
%>