i = instr( str , chr(13) )
j = instr( str , chr(34) )
k = len( str )
if i < j and i > 0 then
flag = 1
end if
if i < j and i = 0 then
flag = 2
end if
if j < i and j > 0 then
flag = 2
end if
if j < i and j = 0 then
flag = 1
end if
do while flag <> 0
response.write space(4) & "tmpstr = tmpstr + "
select case flag
case 1
s1 = mid(str,1,i-1)
str = mid(str, i+1, k-i)
case 2
s1 = mid(str,1,j-1)
str = mid(str, j+1, k-j)
end select
response.write chr(34) & s1 & chr(34) & chr(13)
flag = 0
i = instr( str , chr(13) )
j = instr( str , chr(34) )
k = len( str )
if i < j and i > 0 then
flag = 1
end if
if i < j and i = 0 then
flag = 2
end if
if j < i and j > 0 then
flag = 2
end if
if j < i and j = 0 then
flag = 1
end if