From http://www.w3schools.com/vbscript/func_mid.asp