function WelcomeText(inValue){ var custom = inValue+" "; var area = document.getElementById("top_info"); var text = area.innerHTML.replace("Welcome ", custom); document.getElementById("top_info").innerHTML = text; } function LogoutText(inValue){ var custom = inValue+" "; var area = document.getElementById("top_info"); var text = area.innerHTML.replace("[Sign Out]", custom); document.getElementById("top_info").innerHTML = text; } function InboxText(inValue){ var custom = inValue+" "; var area = document.getElementById("top_menu"); var text = area.innerHTML.replace("Inbox ", custom); document.getElementById("top_menu").innerHTML = text; } function PreText(inValue){ var custom = inValue+" "; var area = document.getElementById("top_menu"); var text = area.innerHTML.replace("Preferences", custom); document.getElementById("top_menu").innerHTML = text; } WelcomeText("Hello, "); LogoutText("[Log Out]"); InboxText("Messages "); PreText("User Controls");