"; function alertUser(webPage) { if (logged != "") { self.location.href= webPage; } else { alert("Please login to access this page"); } }