I am not sure if this is the correct forum to ask this question (feeling like I don't know enough to know what I don't know, ya know?)

I have built a site in Front Page 2000 using frames (banner/nav/main (contents)

I am trying to use a javascript to ask a user for a password to enter a protected Page.

Currently all pages sit at the root.

This is my problem:

When I enter the password, it is opening the page in a new window, which I don't want. I want it to open in the 'main' frame.

I have my Header on all content pages set to <base target="main">

The button to click to enter the password is contained within a form and the form porperties are also set to target the main frame.

This is the js I am using:

<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "hello") {
;
window.open('thatpage.htm');
break;
}
testV+=1;
var pass1 =
prompt('Password Incorrect, Please Try Again - or contact us at 1-555-555-1212.','Password');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>

I am not sure where else to look or where to go from here. Can you help?

thank you