<!--[115,18,795] published at 2006-08-16 12:26:05 from #237 by 586-->
document.write("  <table cellspacing=0 cellpadding=0 border=0 height=30 width=750 bgcolor=#ECECEC>");
document.write("     <form name=form method=post action=http://hd.games.sina.com.cn/member/login.php target=_blank>");
document.write("      <tr><td style=padding-left:10px; class=SD_black>　<a class=a07 href=\"http://hd.games.sina.com.cn/\" target=_blank>玩家社区</a>　登录名 <input type=text name=name class=SD_inputT value='' style=\"width:99px;height=19px\" onclick=\"this.value=''\">　密码 <input type=password name=pass value='' class=SD_inputT style=\"width:42px;height=19px\">");
document.write("<input onfocus=this.blur(); onclick=\"login_click()\" type=submit value=\"登录　查看会员全部精彩服务\" class=SD_singbt style=\"height:21px;width:172px\">");
document.write("　<a onFocus=this.blur() class=a07 href=\"http://hd.games.sina.com.cn/member/register/s_reg.php\" target=_blank>免费注册</a>　<a onFocus=this.blur() class=a07 href=\"http://hd.games.sina.com.cn/member/register/send_pass.php\" target=_blank>忘记密码？</a>　<a class=a07 href=http://hd.games.sina.com.cn/fun/ target=_blank>近期精彩活动列表</a></td>");
document.write("             </tr>");
document.write("    </form>");
document.write("  </table>");



document.form.name.value = getCookie('LoginName');



var id=Math.random(10);



function getCookie(name) {



  var search;



  search = name + "="

  offset = document.cookie.indexOf(search) 

  if (offset != -1) {

    offset += search.length ;

    end = document.cookie.indexOf(";", offset) ;

    if (end == -1)

      end = document.cookie.length;

    return unescape(document.cookie.substring(offset, end));

  }

  else

    return "UC号/新浪会员名";

}



function login_click(){

	var expdate = new Date();

	expdate.setTime (expdate.getTime() + (365 * 24 * 60 * 60 * 1000));	



	if(document.form.cookie.checked == true){

		document.cookie = "LoginName=" + escape(document.form.name.value) + "; expires=" + expdate.toGMTString() +  "; path=/";

	}

//	else

//	{

//		document.cookie = "LoginName=; expires=" + expdate.toGMTString() +  "; path=/";

//	}

}