function checkLogin(res){
	if(res=='nologin'){
		window.location.href = login_url;
		return false;
	}else{
		return true;
	}
}