document.write("  <table cellspacing=0 cellpadding=0 border=0 height=30 width=100% bgcolor=#ffffff align=center><tr><td height=1 bgcolor=#9C9C9C></td></tr><tr><td background=http://i0.sinaimg.cn/gm/ol/wow/gb/26/5_12.gif><table cellspacing=0 cellpadding=0 border=0 height=28 width=980 align=center>");
document.write("<form name=form method=post action=http://games2.sina.com.cn/member/login.php target=_blank>");
document.write("<tr align=center><td width=70><a class=a07 href=\"http://games2.sina.com.cn/\" target=_blank><IMG SRC=http://i1.sinaimg.cn/gm/ol/wow/gb/26/5_17.gif WIDTH=64 HEIGHT=19 border=0></a></td><td width=150><B><font color=#000000>登录名</font></B> <input type=text name=name class=SD_inputT value='' style=\"width:100px;height=19px\" onclick=\"this.value=''\"></td><td width=140><font color=#000000><B>密码</B></font> <input type=password name=pass value='' class=SD_inputT style=\"width:100px;height=19px\"></td><td width=200>");
document.write("<input onfocus=this.blur(); onclick=\"login_click()\" type=image src=http://i2.sinaimg.cn/gm/ol/wow/gb/26/5_14.gif class=SD_singbt style=\"height:28px;width:194px\">");
document.write("</td><td width=140><a onFocus=this.blur() class=a01 href=\"http://games2.sina.com.cn/member/register/s_reg.php\" target=_blank><B>免费注册</B></a>　<a onFocus=this.blur() class=a01 href=\"http://games2.sina.com.cn/member/register/send_pass.php\" target=_blank><B>忘记密码？</B></a></td><td width=160></td><td width=120><IMG SRC=http://i3.sinaimg.cn/gm/ol/wow/gb/26/5_20.gif WIDTH=7 HEIGHT=9> <a class=a01 href=http://games2.sina.com.cn/fun/ target=_blank><B>近期精彩活动列表</B></a></td>");
document.write("</tr></form>");
document.write("</table></td></tr><tr><td height=1 bgcolor=#9C9C9C></td></tr><tr><td height=3></td></tr></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=/";

//	}

}