
<!-- Hiding
// This is an modification of the original Password Pro created by Lefteris Haritou
// http://www.geocities.com/~lef
// Please notice that this script among with others is copyrighted under the Greek copyright office which
// make it valid worldwide except USA.
// Some of Mr. Haritou's latest Script are also copyrighted under the US copyright office as well
// (http://www.loc.gov/copyright/)

// Edited by Howard Chen
// Script compatible by Internet Explorer 3.02 or above
//                      Netscape Navigator 3.0 or above
// Get more JavaScripts at http://start.at/javascripts/
// Bugs report to hchen007@geocities.com
// This script is free as long as you keep the above credits

var base= new Array("A","a","B","C","D","E","t","u","F","G","b","s","W","v","9","H",
     "h","8","r","7","I","J","w","K","X","6","g","q","L","Y","5","x","M","0","N","p",
     "i","y","c","4","O","P","o","3","f","z","Q","2","j","R","n","1","e","S","T","d","U","k","m","V","l","Z")
var alphabet= "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"

var z=23;
var y=28;
var f= new Array();
var K= new Array();
var lgnum=0;
for (x=0; x<10; x++){
f[x]=x<<9
f[x]+=x
}
for (x=10; x<36; x++){
y=y<<1
v= Math.sqrt(y)
v = parseInt(v,16)
v+=y
f[x]=v
y++
}
for (x=36; x<62; x++){
z=z<<1
v= Math.sqrt(z)
v = parseInt(v,16)
v+=z
f[x]=v
z++
}


function encode(code)
{
var ooOO = "Aab+B!gC_DctE=>\FhG?d$~fi@H(qI%`/eu&JKj}Lnr:#*1-M{N^oO]2ms. Pyk0)3Q<Rz9S4[pl8T;w57UV|v6WXYxZ"
var oOOo = ""
var oOoO = ""
for (var i = 0; i < ooOO.length; i++) {
if (i % 2 == 0) {oOOo+=ooOO.charAt(i)}
else {oOoO+=ooOO.charAt(i)}
}
ooOO = oOOo + oOoO
var numbers = ooOO.length - 1
var alphabet = new Array(ooOO.length)
for (var adding = 0; adding <= numbers; adding++){alphabet[adding] = ooOO.charAt(adding)}
var i
var k
var j = code.length
var urlcode = ""
for (i=0; i<= j; i++) {
for (k = 0; k <= numbers; k++) {
if (code.charAt(i) == alphabet[k]) {
if (code.charAt(i) == ooOO.charAt(ooOO.length - 1)) {
urlcode += ooOO.charAt(0); continue
}
urlcode += alphabet[k + 1]
}
}
}
return urlcode
}

function cton (Char) {
        return (Ref.indexOf(Char));
}

function ntoc (Val) {
        return (Ref.substring(Val, Val+1))
}
function  inc()
{
iCounter--
if (iCounter > 0){
alert('Login / Password Incorrect\n\nPlease try again')
document.lgform.user.value=""
document.lgform.passwd.value=""
lgnum=0
}
else {
location.href='denied.html'

//    document.open();
//    document.write("<HTML><HEAD><TITLE>403 Forbidden</TITLE></HEAD><BODY><H1>403 Access Forbidden</H1>You do not have permission to enter the protected area.</BODY></HTML>");
//    document.close();
    }
}
function check(){
if (lgnum<login.length){
if (document.lgform.user.value==login[lgnum].usid)
pwdchk()
else{
lgnum++
check()
}
}
else
inc()
}


function pwdchk(){
var pass=document.lgform.passwd.value
var lpass=pass.length
for (l=0; l<lpass; l++){
K[l]=pass.charAt(l)
}
var code=0;
for (y=0; y<lpass; y++){
for(x=0; x<62; x++){
if (K[y]==base[x])
code+=(y+1)*f[x]
}
}
if (code==login[lgnum].pwd) {
//window.open('http://members.xoom.com/7432/','','width=500,height=400,toolbar=yes,status=yes,scrollbars=yes,resizable=yes')
go(encode(login[lgnum].pgurl))
}
else
inc()
}


function go(site)
{
	//added the next line
	//alert(document.lgform.user.value)
	SetCookie("Student",document.lgform.user.value)
	SetCookie("Lightarian",site)
	location = site + ".html"			
}
//End modification
var iCounter=3

//-->