function valFormrGRfr6eW() {
	//alert("hello!");
	pwdset="rGRfr6eW";
	var bValidated=false;
	var gotoHREF = "";

   if (document.rGRfr6eWform.un.value.length==0) {
	alert("Please enter a user name...");
	return false;
   }
   if (document.rGRfr6eWform.pwd.value.length==0) {
	alert("Please enter a password...");
	return false;
   }
   if (document.rGRfr6eWform.un.value.length<4) {
	alert("Invalid User Name/Password");
	return false;
   }
   if (document.rGRfr6eWform.pwd.value.length<4) {
	alert("Invalid User Name/Password");
	return false;
   }

   for (var i = 0; i <= rGRfr6eWwheels.length-1; i++) {
	//alert(rGRfr6eWwheels[i]);
	var paramps = rGRfr6eWwheels[i].split("||");
	//alert(paramps[0] + ", " + paramps[1] + ", " + paramps[2]);
	var x = processPWD2rGRfr6eW(paramps[2],paramps[0],paramps[1]);
	//alert(x);
	//if (x == true) 
	if (x.length > 0) {
		//alert("Bingo! " + document.cookie);
		//alert(x);
		//return true;
		//window.location.href=x;
		bValidated=true;
		gotoHREF=x;
	}
	
   }

   if (bValidated == true) {
	window.location.href=gotoHREF;
   }
   else {
	alert("Invalid User Name/Password");
   }

}


function processPWD2rGRfr6eW(pl, wp, wheel)  {
//alert(plength + "/" + wpos + "/" + wheel);
//return true;
var pwd=document.rGRfr6eWform.pwd.value;
pwd = pwd+document.rGRfr6eWform.un.value;
//alert(pwd);
var plength=parseInt(pl);
//alert(plength + 1);
var pwdpos=0;
var strTemp=""
var charTemp=""
var wlength=wheel.length;
//alert(wlength);
//var wpos=parseInt(wp);


//**********getdat

	
	var today = new Date();
	
	var da = parseInt(today.getDate());
	var mo = parseInt(today.getMonth());
	var yr = parseInt(today.getFullYear());
	
	var strda = "" + da;
	var strmo = "" + mo;
	var stryr = "" + yr;

	var Dat = new Date(yr,mo,da);
	
	var Dat2 = Dat.getTime();
	

	var misc3 = 1776138532700;
	var misc4 = misc3 / Dat2;

	var misc5 = 0;
	if (misc4 < 0.5) {
		misc5 = 0;
	} else {
		misc5 = 1;
	}

//alert(misc3 + " " + misc4 + " " + misc5);
//**********end of getdat


var wpos=parseInt(wp) * misc5;
//var wpos=parseInt(wp) * getDat();
//alert(wpos);

for (var i = 1; i <= plength; i++) {

pwdpos+=1;
if (pwdpos>pwd.length) {
pwdpos = pwdpos-pwd.length;
}

wpos=wpos+pwd.charCodeAt(pwdpos-1)
if (wpos>wlength) {
wpos = wpos-wlength;
}

charTemp=wheel.charAt(wpos-1);

strTemp = strTemp + wheel.charAt(wpos-1);

}

var user1=strTemp.indexOf("%");

var user2=strTemp;

var user3="%"+document.rGRfr6eWform.un.value;
var user4=user2.replace(user3,"");

var user5=user2.replace(user4+"%","");

var temp2=wheel.substring(79,88);
var temp3="";
for (var j = 1; j <= 10; j++) {
	temp3=temp3 + temp2.substring(10-j,11-j);
	//alert(temp2.substring(10-j,11-j) + " " + j + " " + temp3);
}
//alert(temp2);
//alert(temp3);

if (user5 == document.rGRfr6eWform.un.value) {

	document.rGRfr6eWform.action=user4;

	document.rGRfr6eWform.pwd.value="password";

	document.rGRfr6eWform.un.value="User1";

	document.rGRfr6eWform.h1.value=temp3;

	document.cookie = "username=" + user5;
	document.cookie = "pwdset=" + pwdset;
	document.cookie = "var4=" + var4;

	return user4;
    } else {
	//alert("Incorrect User Name/Password");
	return "";
    }

}


function getDat() {
	
	var today = new Date();
	
	var da = parseInt(today.getDate());
	var mo = parseInt(today.getMonth());
	var yr = parseInt(today.getFullYear());
	
	var strda = "" + da;
	var strmo = "" + mo;
	var stryr = "" + yr;

	var Dat = new Date(yr,mo,da);
	
	var Dat2 = Dat.getTime();
	

	var misc3 = 1776138532700;
	var misc4 = misc3 / Dat2;

	var misc5 = 0;
	if (misc4 < 0.5) {
		misc5 = 0;
	} else {
		misc5 = 1;
	}

	return misc5;
}



document.cookie = "pwdset=";
document.cookie = "var4=";
document.cookie = "username=";
var pwdset = "rGRfr6eW";
var var4 = "freelancegps";
