// Check the Login form.
function checkLoginForm() {
	var login = frmLogin.txtLogin.value;
	var passwd = frmLogin.txtPasswd.value;
	
	if ( !login ) {
		alert("Please fill in login field.");
		frmLogin.txtLogin.focus();
		return false;
	} 
	
	if ( !passwd ) {
		alert("Please fill in password field.");
		frmLogin.txtPasswd.focus();
		return false;
	} 
	
	return true;
}