Ok, i am using NT Challenge and Response..only on my IIS Intranet..but what i want to do is..if the server sends a response 401...it automatically opens up a login box on the client machine...i dont want this..i want to redirect somewhere else if the credentials seem incorrect to the server...i have an idea..of somehow requesting the servers response on the client browser and if it = unauthorised..do a response redirect..but how do i request the servers response code...and do all this before it opens the login dialog box