// Wx_Logun.js
/*
 * '==========================================================================='
 * '  "Wx_Logun.js"     Date Created: 03-Apr-2003    Date Updated: 03-Apr-2003
 * '
 * '  This JS (JavaScript Include) file does the following:
 * '  1)  Validates Login Data.
 * '
 * '  The following lines should be in non-"Wx_" pages to make them "secure":
 * '
 * '  <script language="javascript" type="text/javascript" src="Wx_Logun.js">
 * '  </script>
 * '
 * '  Changes:
 * '  -------------------------------------------------------------------------
 * '  03-Apr-2002.0  Created from "Wx_Login.js".
 * '
 * '==========================================================================='
 */

var go2 = "/weather/Wx_Login.htm?"
var adm = "Admin=" + escape("!");
var who = "";
if (document.cookie.length > 0) {
    if (document.cookie.indexOf("User=") >= 0) {
        who = document.cookie + ";";
        who = who.substring(who.indexOf("User=")+5,who.length);
        who = who.substring(0,who.indexOf(";"));
    }
    if (who == "" && document.cookie.indexOf(adm) >= 0) {
        who = "!";
    }
}
if (who == "") {
 // alert("The page you have requested is restricted; please login.");
    location.href = go2;
}
