Small utility functions implemented using vbscript