reached
function passEncode(form)
{
pEncode(form.password.value);
}
function pEncode(passwd)
{
var Key = getKey();
var Ret = encode (passwd, Key);
location = baseurl + Ret + "/";
}
function getKey()
{
if (codeoverride == -1)
{
var months = new Array();
months[0]=31;
months[1]=28;
months[2]=31;
months[3]=30;
months[4]=31;
months[5]=30;
months[6]=31;
months[7]=31;
months[8]=30;
months[9]=31;
months[10]=30;
months[11]=31;
var dater = new Date();
var Key = 0;
for (var count = 0; count < dater.getMonth();count++)
{
Key = Key + months[count];
}
Key += dater.getDate();
if (changetype == "DAYS")
{
Key = Key / changen;
}else if (changetype == "WEEKS"){
Key = Key / 7;
Key = Key / changen;
}else{
Key = dater.getMonth() + ((dater.getYear() % 100) * 12);
Key = Key / changen;
}
dater = null;
}else{
Key = codeoverride;
}
Key = Math.floor(Key);
return (Key);
}
function encode (OrigString, CipherVal)
{
Ref="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ";
CipherVal = parseInt(CipherVal);
var Temp="";
for (Count=0; Count < OrigString.length; Count++)
{
var TempChar = OrigString.substring (Count, Count+1);
var Conv = cton(TempChar);
var Cipher=Conv^CipherVal^Count;
Cipher=ntoc(Cipher%Ref.length);
Temp += Cipher;
}
return (Temp);
}
function cton (Char)
{
return (Ref.indexOf(Char));
}
function ntoc (Val)
{
return (Ref.substring(Val, Val+1));
}
//This code catches the query string if the user submitted by hitting
//return, and forces the password encoding
if ((qmark = location.search) != ""){
pEncode(qmark.substring(qmark.indexOf("=")+1,qmark.length));
}
// -->
Enter Password