var loggedIn = false, username = "", fullname = "", userid = 0; function getLoginStatus() { if(loggedIn) { showLogin(); } }