document.write("<table width=100% border=0 cellspacing=0 cellpadding=0>")
document.write("  <tr>")
document.write("    <td width=100% align=center><img src=http://news.fjnet.com/images/fj_r1_c2.jpg width=802 height=30 border=0 usemap=#Map></td>")
document.write("  </tr>")
document.write("</table>")
document.write("<table width=758 border=0 align=center cellpadding=0 cellspacing=0>")
document.write("  <tr> ")
document.write("    <td width=597 height=25>&nbsp;</td>")
document.write("    <td width=163 align=right><a href=http://news.fjnet.com class=fa>简体中文</a>")
document.write(" <a href=http://big5.fjnet.com/gate/big5/news.fjnet.com class=fa>繁体中文</a> ")
document.write("      <a href=# class=fa>ENGLISH</a></td>")
document.write("  </tr>")
document.write("</table>")
document.write("<table width=760 height=45 border=0 align=center cellpadding=0 cellspacing=0>")
document.write("  <tr> ")
document.write("    <td width=52>")
document.write("	<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=50 height=50>")
document.write("        <param name=movie value=http://news.fjnet.com/images/logo.swf>")
document.write("        <param name=quality value=high>")
document.write("        <embed src=http://news.fjnet.com/images/logo.swf quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=50 height=50></embed></object>")
document.write("</td>")
document.write("    <td width=171><img src=http://news.fjnet.com/images/logo.gif width=155 height=47></td>")
document.write("    <td width=537 align=right bgcolor=#FFFFFF> <table width=537 height=49 border=0 cellpadding=0 cellspacing=0>")
document.write("        <tr> ")
document.write("          <td width=371 height=20 align=right> <table width=366 border=0 cellspacing=0 cellpadding=0>")
document.write("              <FORM name=f1 action=http://mail.fjnet.com/default1.asp method=post><INPUT type=hidden name=username><INPUT type=hidden name=pwhidden>")
document.write("<INPUT type=hidden value=6034 name=picnum><INPUT type=hidden name=saveUser> <INPUT type=hidden name=SecEx><INPUT type=hidden name=MailServer></FORM>")
document.write("                <tr> ")
 document.write("                 <td width=40 valign=middle class=66> 用户名</td>")
document.write("                  <td width=50 align=center valign=middle>")
document.write(" <input name=usernameshow type=text class=in size=6 maxlength=15> ")
document.write("                  </td>")
document.write("                  <td width=35 valign=middle class=66>密码</td>")
document.write("                  <td width=78 align=center> <input type=password name=pwshow type=text class=in size=6 maxlength=15> <INPUT type=hidden name=showsaveUser>")
document.write("                  </td>")
document.write("                  <td width=128 align=center valign=middle> <SELECT size=1 name=mserver>")
document.write("                      <OPTION value=fjnet.com selected>@fjnet.com</OPTION>")
document.write("                      <OPTION value=vip.fjnet.com>@vip.fjnet.com</OPTION>")
document.write("                      <OPTION value=mail.fjnet.com>@mail.fjnet.com</OPTION>")
document.write("                    </select> </td>")
document.write("                  <td width=41 align=center valign=middle> <input type=image name=imagefield22 src=http://news.fjnet.com/images/login.gif onclick=javascript:gook()>")
document.write("                  </td>")
document.write("                </tr>")
document.write("            </table></td>")
document.write("          <td width=166 align=right><a href=# class=head>忘记密码</a> <a href=# class=head>注册用户</a> ")
document.write("            <a href=http://news.fjnet.com onClick=this.style.behavior='url(#default#homepage)';this.setHomePage('http://news.fjnet.com'); class=head>设为首页</a></td>")
document.write("        </tr>")
document.write("        <tr align=right> ")
document.write("          <td colspan=2 class=fontjj>")
document.write(" <a href=../ty.htm class=head target=_blank>特约信息服务</a>/<a href=http://news.fjnet.com/fbxx/admin/login.asp class=head target=_blank>我要发布消息</a>/")
document.write("<a href=http://news.fjnet.com/ly/index.asp class=head target=_blank>我要留言</a>/<a href=mailto:news@fjnet.com class=head>投稿</a>/")
document.write("<a href=# class=head>特约通讯员</a>/<a href=# class=head>协作机构</a>/")
document.write("<a href=# class=head>支持机构</a>/<a href=http://news.fjnet.com/freecode/regnews.asp class=head target=_blank>信息共享</a> </td>")
document.write("        </tr>")
document.write("      </table></td>")
document.write("  </tr>")
document.write("</table>")
document.write("<map name=Map>")
document.write("  <area shape=rect coords=41,6,97,24 href=http://www.fjnet.com target=_blank>")
document.write("  <area shape=rect coords=119,7,176,25 href=http://news.fjnet.com target=_blank>")
document.write("  <area shape=rect coords=194,6,249,25 href=# target=_blank>")
document.write("  <area shape=rect coords=266,7,324,24 href=# target=_blank>")
document.write("  <area shape=rect coords=340,4,397,25 href=http://218.97.133.9 target=_blank>")
document.write("  <area shape=rect coords=413,6,472,27 href=http://bbs.fjnet.com target=_blank>")
document.write("  <area shape=rect coords=488,4,547,25 href=# target=_blank>")
document.write("  <area shape=rect coords=562,3,623,24 href=# target=_blank>")
document.write("  <area shape=rect coords=639,3,698,24 href=# target=_blank>")
document.write("  <area shape=rect coords=712,5,776,27 href=# target=_blank>")
document.write("</map>")

if (top.location !== self.location) {
top.location=self.location;
}

function window_onload() {

	usernameshow.focus();

}

function gook() {

	if (usernameshow.value == "")
	{
		alert("用户名不可为空");
		usernameshow.focus();
		return ;
	}

	if (pwshow.value == "")
	{
		alert("密码不可为空");
		pwshow.focus();
		return ;
	}


	f1.saveUser.value = showsaveUser.value;
	f1.username.value = usernameshow.value;
	f1.MailServer.value=mserver.value;

	//f1.SecEx.value = showSecEx.checked;
	f1.pwhidden.value = encode(pwshow.value, parseInt(f1.picnum.value));

	f1.submit();
}

function encode(datastr, bassnum) {
	var tempstr;
	var tchar;
	var newdata = "";

	for (var i = 0; i < datastr.length; i++)
	{
		tchar = 65535 + bassnum - datastr.charCodeAt(i);
		tchar = tchar.toString();

		while(tchar.length < 5)
		{
			tchar = "0" + tchar;
		}

		newdata = newdata + tchar;
	}

	return newdata;
}

