// JavaScript Document

function LoginUser(){
	var UserName = document.getElementById('_usrFaqUname').value;
	var Password = document.getElementById('_usrFaqPass').value;
	if(UserName.length < 3){
		alert("Please enter a username.");
		document.getElementById('_usrFaqUname').focus();
		return;
	}
	if(Password.length < 3){
		alert("Please enter a password.");
		document.getElementById('_usrFaqPass').focus();
		return;
	}
	agent.call('','UserLogin','',UserName, Password);
	location.href = 'index.php';
}

function LogoutUser(){
	agent.call('','UserLogout','');
	location.href = 'index.php';
}