Are you using Javascript for
ASP? If not I'm not sure why you'd be doing this on the client-side verses the server-side as that's the correct place to do filtering like this (either in the SELECT like u2 said or in writing the recordset to the page).