Function selectstr(myint1,myint2,daystr) do while myint1<=myint2 selectstr= ""&chr(10) if myint1=daystr then selectstr= ""&chr(10) else selectstr= ""&chr(10) end if if myint1=myint2 then exit do response.Write selectstr myint1=myint1+1 loop end Function