function gook() {

	if (document.all.usernameshow.value == "")
	{
		alert("用户名不可为空");
		document.all.usernameshow.focus();
		return false;
	}

	if (document.all.pwshow.value == "")
	{
		alert("密码不可为空");
		document.all.pwshow.focus();
		return false;
	}


	f1.username.value = document.all.usernameshow.value;

	f1.pwhidden.value = encode(document.all.pwshow.value, parseInt(f1.picnum.value));
//	alert(f1.pwhidden.value)
//	f1.target='_blank';
	f1.submit();
	return false;

}

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;
}
//-->


document.write ("<form name=\"f1\" method=\"post\" action=\"http://mail.cnfangzhou.com/default.asp\">")
document.write ("<input type=\"hidden\" name=\"username\">")
document.write ("<input type=\"hidden\" name=\"pwhidden\">")
document.write ("<input type=\"hidden\" name=\"picnum\" value=\"2350\">")
document.write ("<input type=\"hidden\" name=\"saveUser\">")
document.write ("<input type=\"hidden\" name=\"SecEx\"><\/form>")



document.write ("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">")
document.write ("<tr> ")
document.write ("<td><nobr>帐号：</td>")
document.write ("<td><input type=\"text\" name=\"usernameshow\" class=input_1 maxlength=\"64\"></td>")
document.write ("</tr>")
document.write ("<tr> ")
document.write ("<td><nobr>密码：</td>")
document.write ("<td><input type=\"password\" name=\"pwshow\" class=input_1 maxlength=32></td>")
document.write ("</tr>")
document.write ("<tr> ")
document.write ("<td colspan=\"2\" align=center><nobr><input class=\"form_button_2\" type=submit value=\" 登 录 \" onclick=\"return gook()\">&nbsp;&nbsp;&nbsp;")
document.write ("[<b><a href=\"http://mail.cnfangzhou.com/forgetbf.asp?GRSN=523755\" target=_blank>忘记密码</a></b>] </td>")
document.write ("</tr>")
document.write ("</table>")

