document.writeln("<table width=\"750\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">");
document.writeln("  <form name=\"form\" method=\"post\" action=\"/member/login.php\">");
document.writeln("  <tr>");
document.writeln("    <td background=\"http://image2.sina.com.cn/gm/hd/game2/0_06.gif\" height=\"1\"></td>");
document.writeln("  </tr>");
document.writeln("  <tr align=\"center\">");
document.writeln("    <td bgcolor=\"#f9fddf\" height=\"21\">");
document.writeln("      <table width=\"700\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">");
document.writeln("        <tr height=\"25\">");
document.writeln("          <td><img src=\"http://image2.sina.com.cn/gm/hd/game2/0_13.gif\" width=\"7\" height=\"7\" align=\"absmiddle\">登录名 <input type=text name=name class=\"SD_inputT\" value=\"\" style=\"width:96px;height=19px\" onclick=\"if(this.value='UC号/新浪会员名'){this.value='';}\">　 密码 <input type=\"password\" name=\"pass\" class=\"SD_inputT\" style=\"width:80px;height=19px\">　 <input onfocus=\"this.blur();\" onclick=\"login_click()\"  type=\"image\" src=\"http://image2.sina.com.cn/gm/hd/game2/0_10.gif\" width=\"50\" height=\"18\" border=\"0\" align=\"absbottom\">　 <input onfocus=\"this.blur();\" name=\"cookie\" type=\"checkbox\"> 记住我的登录名</td>");
document.writeln("          <td align=\"center\"><img src=\"http://image2.sina.com.cn/gm/hd/game2/0_16.gif\" width=\"7\" height=\"7\"> <a onFocus=\"this.blur()\" class=\"SD_osLink\" href=\"http://hd.games.sina.com.cn/member/register/s_reg.php\">免费注册</a></td>");
document.writeln("          <td align=\"center\"><img src=\"http://image2.sina.com.cn/gm/hd/game2/0_16.gif\" width=\"7\" height=\"7\"> <a onFocus=\"this.blur()\" class=\"SD_osLink\" href=\"http://unipro.sina.com.cn/getpass.html\">忘记密码</a></td>");
document.writeln("        </tr>");
document.writeln("      </table>");
document.writeln("    </td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td bgcolor=\"#c1ef5e\" height=\"1\"></td>");
document.writeln("  </tr>");
document.writeln("  </form>");
document.writeln("</table>");

document.form.name.value = getCookie('LoginName');

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=/";

	}
}
