And you probably don't want a VB script solution.
VBScript is not supported in all browsers.
stay with javascript solution