//
//  THIS FILE IS SERVED FROM COMMONAPACHE SERVER.
//
function Validate1()
{
	location.href="../registration/registration_step1.thtml";
	return false;
}
function Validate1()
{
	location.href="../registration/registration_step1.thtml";
}

var qsMatch = document.location.search;
	if(qsMatch)
	{
		var rootArr = qsMatch.split("=");
		
		if(rootArr[1]=="invalid")
		{
			var s=document.getElementById("Error");
			s.innerHTML="Invalid UserName/Password";
		}
		else if(rootArr[1]=="pending")
		{
			var s=document.getElementById("Error");
			s.innerHTML="To activate your account,  please follow the link sent to your email";
		}
		else if(rootArr[1]=="failure_prohibited")
		{
			var s=document.getElementById("Error");
			s.innerHTML="Sorry, You tried to Login from a prohibited network.";
		}
		else if(rootArr[1]=="autoexclude")
		{			
			alert("You are auto excluded")
		}

	}

	   function ValidateLoginForm()
	{
		
	    document.loginform.username.value = document.loginlocal.username.value;
		document.loginform.password.value = document.loginlocal.password.value;
		//alert(document.loginform.username.value);
		//alert(document.loginform.password.value);
    	return Validate();
	}
