锘?%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
锘?%
function advs(adid)
dim rs,sql,i,ProductName,NewFlag
set rs = server.createobject("adodb.recordset")
sql="select * from Ameav_ADs where ViewFlag and id="&adid&" order by id desc"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "
鏆傛棤骞垮憡淇℃伅
"
else
if rs("fiewFlag")=0 then
response.write"
"
else
response.write""
end if
end if
rs.close
set rs=nothing
end function
function replaceText(str)
dim regEx
set regEx=New RegExp
regEx.Pattern="<[^>]*>"
regEx.Ignorecase=True
regEx.Global=True
replaceText=regEx.Replace(str,"")
End function
function cutstr(str,strlen)
if str<>"" then
If len(replaceText(str))>strlen Then
str=replace(str,"
")
str=replace(str,"@BR@"," ")
End If
end if
cutstr=str
End function
function StrLen(Str)
if Str="" or isnull(Str) then
StrLen=0
exit function
else
dim regex
set regex=new regexp
regEx.Pattern ="[^\x00-\xff]"
regex.Global =true
Str=regEx.replace(Str,"^^")
set regex=nothing
StrLen=len(Str)
end if
end function
function StrLeft(Str,StrLen)
dim L,T,I,C
if Str="" then
StrLeft=""
exit function
end if
Str=Replace(Replace(Replace(Replace(Str," "," "),""",Chr(34)),">",">"),"<","<")
L=Len(Str)
T=0
for i=1 to L
C=Abs(AscW(Mid(Str,i,1)))
if C>255 then
T=T+2
else
T=T+1
end if
if T>=StrLen then
StrLeft=Left(Str,i) & "鈥?
exit for
else
StrLeft=Str
end if
next
StrLeft=Replace(Replace(Replace(replace(StrLeft," "," "),Chr(34),"""),">",">"),"<","<")
end function
function StrReplace(Str)'琛ㄥ崟瀛樺叆鏇挎崲瀛楃
if Str="" or isnull(Str) then
StrReplace=""
exit function
else
StrReplace=replace(str," "," ") '" "
StrReplace=replace(StrReplace,chr(13)," ")'" "
StrReplace=replace(StrReplace,"<","<")' "<"
StrReplace=replace(StrReplace,">",">")' ">"
end if
end function
function ReStrReplace(Str)'鍐欏叆琛ㄥ崟鏇挎崲瀛楃
if Str="" or isnull(Str) then
ReStrReplace=""
exit function
else
ReStrReplace=replace(Str," "," ") '" "
ReStrReplace=replace(ReStrReplace," ",chr(13))'" "
ReStrReplace=replace(ReStrReplace," ",chr(13))'" "
ReStrReplace=replace(ReStrReplace,"<","<")' "<"
ReStrReplace=replace(ReStrReplace,">",">")' ">"
end if
end function
function HtmlStrReplace(Str)'鍐欏叆Html缃戦〉鏇挎崲瀛楃
if Str="" or isnull(Str) then
HtmlStrReplace=""
exit function
else
HtmlStrReplace=replace(Str," "," ")'" "
end if
end function
function ViewNoRight(GroupID,Exclusive)
dim rs,sql,GroupLevel
set rs = server.createobject("adodb.recordset")
sql="select GroupLevel from Ameav_MemGroup where GroupID='"&GroupID&"'"
rs.open sql,conn,1,1
GroupLevel=rs("GroupLevel")
rs.close
set rs=nothing
ViewNoRight=true
if session("GroupLevel")="" then session("GroupLevel")=0
select case Exclusive
case ">="
if not session("GroupLevel") >= GroupLevel then
ViewNoRight=false
end if
case "="
if not session("GroupLevel") = GroupLevel then
ViewNoRight=false
end if
end select
end function
Function GetUrl()
GetUrl="http://"&Request.ServerVariables("SERVER_NAME")&Request.ServerVariables("URL")
If Request.ServerVariables("QUERY_STRING")<>"" Then GetURL=GetUrl&"?"& Request.ServerVariables("QUERY_STRING")
End Function
function HtmlSmallPic(GroupID,PicPath,Exclusive)
dim rs,sql,GroupLevel
set rs = server.createobject("adodb.recordset")
sql="select GroupLevel from Ameav_MemGroup where GroupID='"&GroupID&"'"
rs.open sql,conn,1,1
GroupLevel=rs("GroupLevel")
rs.close
set rs=nothing
HtmlSmallPic=PicPath
if session("GroupLevel")="" then session("GroupLevel")=0
select case Exclusive
case ">="
if not session("GroupLevel") >= GroupLevel then HtmlSmallPic="../Images/NoRight.jpg"
case "="
if not session("GroupLevel") = GroupLevel then HtmlSmallPic="../Images/NoRight.jpg"
end select
if HtmlSmallPic="" or isnull(HtmlSmallPic) then HtmlSmallPic="../Images/NoPicture.jpg"
end function
function IsValidMemName(memname)
dim i, c
IsValidMemName = true
if not (3<=len(memname) and len(memname)<=16) then
IsValidMemName = false
exit function
end if
for i = 1 to Len(memname)
c = Mid(memname, i, 1)
if InStr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-", c) <= 0 and not IsNumeric(c) then
IsValidMemName = false
exit function
end if
next
end function
function IsValidEmail(email)
dim names, name, i, c
IsValidEmail = true
names = Split(email, "@")
if UBound(names) <> 1 then
IsValidEmail = false
exit function
end if
for each name in names
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Mid(name, i, 1)
if InStr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
end if
next
if Left(name, 1) = "." or Right(name, 1) = "." then
IsValidEmail = false
exit function
end if
next
if InStr(names(1), ".") <= 0 then
IsValidEmail = false
exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
IsValidEmail = false
exit function
end if
if InStr(email, "..") > 0 then
IsValidEmail = false
end if
end function
'================================================
'鍑芥暟鍚嶏細FormatDate
'浣溿鐢細鏍煎紡鍖栨棩鏈?
'鍙傘鏁帮細DateAndTime (鍘熸棩鏈熷拰鏃堕棿)
' Format (鏂版棩鏈熸牸寮?
'杩斿洖鍊硷細鏍煎紡鍖栧悗鐨勬棩鏈?
'================================================
Function FormatDate(DateAndTime, Format)
On Error Resume Next
Dim yy,y, m, d, h, mi, s, strDateTime
FormatDate = DateAndTime
If Not IsNumeric(Format) Then Exit Function
If Not IsDate(DateAndTime) Then Exit Function
yy = CStr(Year(DateAndTime))
y = Mid(CStr(Year(DateAndTime)),3)
m = CStr(Month(DateAndTime))
If Len(m) = 1 Then m = "0" & m
d = CStr(Day(DateAndTime))
If Len(d) = 1 Then d = "0" & d
h = CStr(Hour(DateAndTime))
If Len(h) = 1 Then h = "0" & h
mi = CStr(Minute(DateAndTime))
If Len(mi) = 1 Then mi = "0" & mi
s = CStr(Second(DateAndTime))
If Len(s) = 1 Then s = "0" & s
Select Case Format
Case "1"
strDateTime = y & "-" & m & "-" & d & " " & h & ":" & mi & ":" & s
Case "2"
strDateTime = yy & m & d & h & mi & s
'杩斿洖12浣?鐩村埌绉?鐨勬椂闂村瓧绗︿覆
Case "3"
strDateTime = yy & m & d & h & mi
'杩斿洖12浣?鐩村埌鍒?鐨勬椂闂村瓧绗︿覆
Case "4"
strDateTime = yy & "骞? & m & "鏈? & d & "鏃?
Case "5"
strDateTime = m & "-" & d
Case "6"
strDateTime = m & "/" & d
Case "7"
strDateTime = m & "鏈? & d & "鏃?
Case "8"
strDateTime = y & "骞? & m & "鏈?
Case "9"
strDateTime = y & "-" & m
Case "10"
strDateTime = y & "/" & m
Case "11"
strDateTime = y & "-" & m & "-" & d
Case "12"
strDateTime = y & "/" & m & "/" & d
Case "13"
strDateTime = yy & "." & m & "." & d
Case Else
strDateTime = DateAndTime
End Select
FormatDate = strDateTime
End Function
function WriteMsg(Message)
response.write "
" &_
"
" &_
"
" &_
"
" &_
"
MESSAGE
" &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
Message &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
"
" &_
" " &_
"" &_
"
"
end function
'****************************************************
'杩囩▼鍚嶏細WriteErrMsg
'浣? 鐢細鏄剧ず閿欒鎻愮ず淇℃伅
'鍙? 鏁帮細鏃?
'****************************************************
sub WriteErrMsg()
dim strErr
strErr=strErr & "閿欒淇℃伅_妗傛灄鍦ㄧ嚎" & vbcrlf
strErr=strErr & "" & vbcrlf
strErr=strErr & "
" & vbcrlf
strSuccess=strSuccess & "" & vbcrlf
response.write strSuccess
end sub
function getFileExtName(fileName)
dim pos
pos=instrrev(filename,".")
if pos>0 then
getFileExtName=mid(fileName,pos+1)
else
getFileExtName=""
end if
end function
%>
oil painting oil painting,original art,oil painting reproduction,photo to ...
oil painting,Chinaoilpaintingwholesale reproduce various styles of oil paintings
,we offer oil painting reproduction,original art,fine art reproduction,photo ...
pearl necklaces Necklace - Pearl Choker, Princess, Matinee, Opera and Rope ...
Buy necklace on Shecy Pearls, A leading pearl jewelry company since 1994.Save up
to 90% on pearl strand, pearl choker, pearl pendant necklace.
Dofus est un dofus kamas, le joueur incarne un ou plusieurs personnages. On y
retrouve une multitude acheter des dofus kamas et d'quipements en tout genre
...
hochzeitskleid *** Romantik PUR Traum Hochzeitskleid Gr. 40/42 von privat ...
Ich biete hier ein Traumkleid in zart Rosa an... Ich hoffe es ist auf den Fotos
gut zu erkennen.. schicke gerne noch ausfhrliche bei Bedarf ;-) Gr. ist ...
french maid costume Vestidos de Festa: cetim, seda pura, bordado, musseline de seda ...
10 Dez 1999 ... Apesar do ecletismo que anda regendo a moda, sempre fica aquela dvida quando a
questo encontrar o vestido ideal para ser usado em um ...