if(jieqiUserId != 0 && jieqiUserName != '' && (document.cookie.indexOf('PHPSESSID') != -1 || jieqiUserPassword != '')){
  document.write('<table width="550"  border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr>');
  document.write('<td class="green_12">&nbsp;欢迎您回来“<font color=#ff0000>'+jieqiUserHonor+'</font>”&nbsp;<b><font color=#ff0000>'+jieqiUserName+'</font></b>');
  document.write('&nbsp;&nbsp;<a href="/userdetail.php"><font color=#800080>查看资料</font></a>');  
  document.write(' | <a href="/modules/article/bookcase.php"><font color=#800080>我的书架</font></a>');  
  	if(jieqiNewMessage>0){
		document.write(' | <a href="/message.php?box=inbox"><font color="#ff0000">您有新消息</font></a>');
		}
	else{
		document.write(' | <a href="/message.php?box=inbox"><font color=#800080>查看短信</font></a>');
	}
  document.write(' | <a href="/logout.php" target="_self" class="green_12"><font color=#800080>[退出登陆]</font></a>&nbsp;</td>');
  document.write('</tr>');
  document.write('</table>');

}else{
  var jumpurl="";
  if(location.href.indexOf("jumpurl") == -1){
    jumpurl=location.href;
  }
  document.write('<table width="550"  border="0" cellspacing="0" cellpadding="0">');
  document.write('<form name="framelogin" method="post" target="_top" action="/login.php">');
  document.write('<tr>');
  document.write('<td align=left><font color=#ff0000>您还没有登录!</font>┊<a href="/register.php">注册</a> 登陆↓ 帐号：');
  document.write('<input name="username" type="text" class="text" onkeypress="javascript: if (event.keyCode==32) return false;" value="" size="8" maxlength="30" />');
  document.write('&nbsp;&nbsp;密码：<input type="password" class="text" size="8" maxlength="30" name="password" />');
  document.write('<input type="hidden" name="action" value="login" />');
  document.write('<input type="hidden" name="jumpurl" value="'+jumpurl+'" />');
  document.write('&nbsp;&nbsp;<input type="checkbox" class="mycheckbox" name="usecookie" value="1" />');
  document.write('&nbsp;记录cookie&nbsp;');
  document.write('<input  name="submit" type="image"  src="/css/login.gif" align="middle" />');
  document.write('</td>');
  document.write('</tr>');
  document.write('</form>');
  document.write('</table>');
}
