<?php if (!isset ($_SESSION['user'])) { ?>

<div class="content_box">
<div class="content_box_header">Sign in</div>
<div class="content_box_custom">
<?php if ($sign_in_msg != "") { ?>
<div style="border:1px solid #977; background-color:#FDD; color:#666; padding:5px;">
<?php echo $sign_in_msg; ?>
</div>
<?php } ?>
<form action="index.php" method="post">
<input type="hidden" name="login" value="yes" />
<input name="username" value="<?php echo $username; ?>" id="username" style="width:150px" onfocus="eraseText('Username', this.id);" onblur="retrieveText('Username', this.id);" />
<input type="password" name="password" value="<?php echo $password; ?>" id="password" style="width:150px;" onfocus="eraseText('Password', this.id);" onblur="retrieveText('Password', this.id);" />
<br />
<input type="submit" value="Sign in" class="submit" />
</form>
</div>
<div class="content_box_custom">
<div class="title"><a href="#">Forgot Password?</a></div>
<div class="title"><a href="#">Sign up</a></div>
</div>

</div>

<?php } ?>