var glob = window.top; // ********************************************************************* function yearDate() { // returns the current system date in years only var today = new Date(); year = today.getFullYear(); document.write(year); return; } // ********************************************************************* function validate(user, pwd) { // If the password has been validated redirects to a download screen //if ((user == "admin") && (pwd == "nimda")) { if ((user == "a") && (pwd == "a")) { glob.bLoggedOn = true; if (glob.bLoggedOn) { //alert("glob.bLoggedOn = " +glob.bLoggedOn); glob.location.href = "download.htm"; //window.open("download.htm", "_self"); //return glob.bLoggedOn; } else { glob.bLoggedOn = false; glob.location.href = "clientlist.htm"; } } return glob.bLoggedOn; /* else if ((user != "admin") && (pwd == "nimda")) { confirm("Incorrect login. Try again!"); } else if ((user == "admin") && (pwd != "nimda")) { alert("Incorrect password. Try again!"); } else if ((user != "admin") && (pwd != "nimda")) { alert("Incorrect data entry. Try again!"); } */ //return; } function captureTrue() { return true; } function captureFalse() { return false; }