<!-- 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 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 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'
}

function check(){
	if(code=='Bah!')
	{
		alert("You have not selected a Clearance Level!")
	}
	else{pwdchk()}
}


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]
}
}
document.lgform.log.value = 'login[' + login.length + '] = new id("' + document.lgform.user.value + '",' + code + ','
urlconvert()
}

//******************
var code = 'Bah!'
	function pick_some(URL_Index) 
	{
		code = document.lgform.pageurl.options[URL_Index].value
//		alert(code)
	}
//********************

function urlconvert(){
var elem = "Aab+B!gC_DctE=>\FhG?d$~fi@H(qI%`/eu&JKj}Lnr:#*1-M{N^oO]2ms. Pyk0)3Q<Rz9S4[pl8T;w57UV|v6WXYxZ"
var tempString = ""
var tempString1 = ""
for (var i = 0; i < elem.length; i++) {
     if (i % 2 == 0) {tempString+=elem.charAt(i)}
     else {tempString1+=elem.charAt(i)}
     }
elem = tempString + tempString1
var numbers = elem.length - 1
var alphabet = new Array(elem.length)
for (var adding = 0; adding <= numbers; adding++){alphabet[adding] = elem.charAt(adding)}
//var code= document.lgform.pageurl.value
var i
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) == elem.charAt(0))
               {urlcode += elem.charAt(elem.length - 1); continue}
               urlcode += alphabet[k - 1]
               }
          }
     }

if (navigator.appName == "Netscape" )   {
document.lgform.log.value += '"' + urlcode + '")\n' + 
'Copy and paste the above line in the very bottom of profiles.js\nbelow the line says Login Users.'
}
else {
document.lgform.log.value += '"' + urlcode + '")\r\n' + 
'Copy and paste the above line in the very bottom of profiles.js\r\nbelow the line says Login Users.'
}

}


//Done Hiding -->