function forgotPassword()
{
	document.location.href = "/forgot-password.php";	
}


function checkForgotPasswordForm()
{
	fieldVal = document.getElementById("usernameVal").value;
	field    = document.getElementById("username");
	if (fieldVal.length < 3) 
	{	
	    alert("Username must be three characters or longer");
		var thisError = 1;
	} else
	{ 
		field.className = 'required';
		if (!checkAlphaNumeric(fieldVal,1)) { var thisError = 1; }
	}
	if (thisError > 0) { field.className = 'error'; field.focus(); var error = 1;}
	var thisError = 0;
	
	if (error > 0) { return false; } else { return true; }
}