function loginWindow()
{
//Works in FF and IE, but not in IE-tabs through FF.
if(!logged)
{
//Creates a login window if the user isn't logged in.
//The new window calls the validator() function as th ok-button is clicked.
newWindow = window.open("", "newWindow", "height=100, width=220, toolbar=no, menubar=no");
newWindow.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2//EN'>");
newWindow.document.write("<html><head><title>Login</title><link rel='stylesheet' type='text/css' href='main.css' /></head><body>" +
"Username: <input class='outerInput' id='un' type='text' /><br />Password: <input class='outerInput' id='pw' type='password' />"
+ "<input class='activeField' type=submit value='OK' onclick='opener.validator();'></body></html>");
newWindow.document.close();
}
else
{
//Calls click() to set the internal page to the content div if the user i s logged in.
click("pages/internal.html", "", "html", "internal")
}
}
Bookmarks