document.write("Hello,"); document.write(""); document.write("Visitor "); document.write("Register "); document.write("Sign-In"); document.write(""); document.write(""); document.write("There "); document.write("Profile "); document.write("Logout"); document.write(""); if(cookie_ul = document.cookie.match(new RegExp('(^|;)\\s*l_st=([^;\\s]*)'))) { if(username_ul = unescape(cookie_ul[2]).match(new RegExp('(^|&)*un=([^&]*)'))) { document.getElementById('username').firstChild.nodeValue=username_ul[2]; } document.getElementById('logged_out').style.display='none'; document.getElementById('logged_in').style.display=''; }