Also, I know that I sent you a better solution, but I noticed something revisiting this post. Using "x.rawValue.length == 0" is probably not the best way to go. If "x.rawValue" is null, "x.rawValue.length" will be undefined and so, your script will not enter the "if" statement. Use "x.rawValue == null" instead.
Ryan D. Lunka
Cardinal Solutions Group
rlunka@cardinalsolutions.com