1. Post this question in the ASP forum
2. Make sure you're not mixing client and server side coding
3. Make sure you're writing your VB Script to the client where it will get executed