The problem is that if your original windows was not generated by javascript, it might not have a name.
Brings me to wonder: Why would you want to do that anyway? Can't you just keep all the processes i nthe same window? Most users are old and wise enough to decide they want a new window, or close one?