﻿// JScript File - MssMembers.js - rudimentary security code
// MicroSystemsSupportCorp - 1/28/2010
window.onload = CheckWhereFrom;

function CheckWhereFrom()
{
    // get the url of the page that preceded this page
    var TheReferrer = document.referrer;
    TheReferrer=TheReferrer.toUpperCase();
    // If they did not come from the Members Only Password page (Password.aspx) then yell at them & send them to the password page
    if (TheReferrer.indexOf("tda.harvestmanager.net")<0)
        {alert("You must Login on the Members Onlyxx Page first");
         window.location = "http://tda.harvestmanager.net/password.aspx";}
}
    



