function LoginUser(){
	//document.getElementById('login_error').innerHTML='';
	var username=document.getElementById("username").value;
	var password=document.getElementById("password").value;
	if(username.length==0){
		alert(LANGUAGE['VUser']);
		return false;
	}
	if(password.length==0){
		alert(LANGUAGE['VPass']);
		return false;
	}
	x_validate_user(username,password,LoignUserDisplay);
}
function LoignUserDisplay(res){
	if(res==1){
		window.location='cont.php';
	}else{
		window.location='login.php?err=1';
	}
}