/*
	This script is used by login.php to validate the contents of the form.
*/
function ValidateForm()
{
	// Username
	if(!checkString(txtUsername,'Username',false)){return false;}

	// Password
	if(!checkString(txtPassword,'Password',false)){return false;}
}

var txtUsername = getElement("txtUsername");
var txtPassword = getElement("txtPassword");
var txtConfirmPassword = getElement("txtConfirmPassword");

txtUsername.focus();

LinkEvent("btnLogin","click",ValidateForm);