I'm not sure what you mean by 'bscw-server' but it sounds to me like you have folks logging on to an intranet somehow. this would mean that the intranet server somehow recognizes and retains the identity of the user (probably through a session variable or some sort of internal IP address checking mechanism). How is the login accomplished? are you talking about some kind of windows-level login or are you talking about a webserver on your intranet where the login is through HTML or ASP or PHP? You are going to have to somehow retrieve the user's identity from this server or from the windows network and get it into your HTML and/or PHP code.
if you're talking about an operating system level login (like a windows network client login or some such thing) then I don't think you can do this with javascript or HTML (because it would be a security violation to retrieve such sensitive information from a user's machine). i think you're going to need perhaps an applet or activex control or something? you need something that can do a system call to retrieve your identity and login.
if the local login is accomplished through a webserver, then the webserver can probably be helpful...user login info is probably retained either in a cookie or in a session variable somewhere. if so, you are going to need to find out where it is stored so you can pass it along to the external server.
At some point, you are going to try and make the transition from the intranet to the external server and when you do so, the HTTP request you send is going to have to send their login and password (or your server won't be particularly safe).
you are probably going to have to provide more information.