function checkLoginForm() {
	var failed = false;
	if (!checkTextField("login", "username") && !failed) failed = true;
	if (!checkTextField("login", "password") && !failed) failed = true;
	if (failed) {
		alert("One or more required fields were not filled in. Please fill in all the required fields before submitting.");
		return false;
	}
}