Doublestack,
This is very simple string manipulation. You can use Regular Expressions (which are a little more complicated and you could probably avoid in this case) or use the String.Split() method. (Here's a link that shows
how to use regular expressions in JavaScript)
The String.Split() method returns an array of strings by spliting the string based on a delimiter provided...
So if mystring contains "acct01\username"...then you would split on "\" and the array returned would be ["acct01',"username"].
I'd link you to the MSDN library for help on the String class but I can't access it right now.
Here's a link to the JavaScript
string.split() method....you can even
try using the string.split() method before using it in your code if you want.
String manipulation is one of the first things you learn as a programmer...it's one of the favorite things for tests and stuff at school. You really should familiarize yourself with it.
-Frinny