I can't seem to find the answer. In ASP you can use the Left, Right and Mid functions. But how do you do it in Javascript?