<!--
function checkError() {
	i_GV_count = 0;
	s_GV_errMsg = "Error(s):";

	if (isLengthLT("username")) {
		foundError("Username is required.");
	}

	if (isLengthLT("password")) {
		foundError("Password is required.");
	}

	if (i_GV_count > 0) {
		alert(s_GV_errMsg);
		return false;
	}

	return true;
}

function checkOS() {
	s_LV_cO_navAgent = navigator.userAgent.toLowerCase();

	if (s_LV_cO_navAgent.indexOf("mac") != -1) {
		document.f.mac.value = "yes";
	}
}

function doLogin() {
	if (checkError()) {
		checkOS();

		document.f.action = "authenticate.asp";
		document.f.submit();
	}

	return false;
}
// -->
