var username = getCookie("username");
// if the cookie wasn't found, ask for the name
if (!username) {
username = document.write("Welcome, visitor!");
}
else {
document.write("<strong>Welcome, " + username + "!</strong>");
}
