i=0
while not rs.eof
if i=0 then
response.write "<tr>"
end if
response.write "<td>.......</td>"
i=i+1
if i=3 then
response.write "</tr>"
i=0
end if
rs.movenext
loop
if i!=0 then
for i=i to 3
response.write "<td></td>"
next
response.write "</tr>"
end if