if (document.cookie.indexOf('username') != -1) {
document.write('<a href="/editaccount.php">Edit Your Account</a></td>');
document.write('<td align="right\">');
document.write('<a href="/logout.php">Logout</a>');
} else {
document.write('<a href="/signup.html">Create an Account</a></td>');
document.write('<td align="right\">');
document.write('<form method="post" action="/login.php">u: <input type="text" name="u" size="8">p: <input type="text" name="p" size="8"><input type="image" name="Login" value="Login" src="/images/login.gif"></form>');
}

