Is there ways to create optional arguments to functions in vb script allowing you to write functions something like...
myFunc(\"happy\")
myFunc(\"happy\", 1,
Obviosly this depends on your environment and whether it supports using both JScript and VBScript in the same file, but I've had some success using Windows Script Host (*.wsf files), ie
where you can define your function in JScript and reference it in VBScript. A better way may well be to include your JScript functions as an external file ie