btw, may I ask why your code has %> followed immediately by <% on the next line in so many places?<BR><BR>ASP is interpreted, so it interprets the ASP line-by-line. You're telling it "stop ...