function cutstr(thestr,srlen)
dim l,t,c
l=len(thestr)
t=0
for dxy=1 to l
c=Abs(asc(Mid(thestr,dxy,1)))
if c>255 then
t=t+2
else
t=t+1
end if
if t>=star then
thev=left(thestr,dxy)
exit for
else
bu=star-t
for bui=1 to bu
strbu=
strbuall=strbull&strbu
next
thev=thestr&strbuall
strbu=
strbuall=
end if
next
cutstr=thev
end function
<%
'============================
's_cut_cut(type,num)
'According to: snowflakes
'Instrument type,num
'type:SpecifyException
'num:Enabled license plate keys
'===============================
Function w_cut(types,num)
dim ctypes,cnum,ci,tt,tc,cc
ctypes=types:cnum=int(num):w_cut=:tc=0:cc=0
for ci=1 to length(ctypes)
if cnum<0 then w_cut=w_cut&...:exit for
tt=mid(ctypes,ci,1)
if int ( asc ( tt ) ) >= 0 then
w_cut=w_cut&tt
tc=tc+1:cc=cc+1
if tc=2 then
tc=0:cnum=cnum-1
end if
if cc > 5 then cnum = cnum - 1 : cc =
else
cnum=cnum-1
if cnum<=0 then w_cut=w_cut&...:exit for
w_cut=w_cut&tt
end if
next
End Function
%>