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 reset1(){
	//document.f1.reset();
	document.all.usernameshow.value = "";
	document.all.usernameshow.focus();
	document.all.pwshow.value = "";
	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.zjshs.com/home/h4/index.jsp\">")
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=\"95%\"  height=95% border=\"0\" cellspacing=\"0\" cellpadding=\"0\">")
document.write ("<tr> ")
document.write ("<td align=right color=#000 ><font size=2><nobr>USER:</font></td>")
document.write ("<td><input type=\"text\" name=\"usernameshow\" style=\"width:100px;\" class=input maxlength=\"64\"></td>")
document.write ("</tr>")
document.write ("<tr> ")
document.write ("<td align=right color=#000 ><font size=2><nobr>PW:</font></td>")
document.write ("<td><input type=\"password\" name=\"pwshow\" style=\"width:100px;\" class=input maxlength=32></td>")
document.write ("</tr>")
document.write ("<tr> ")
document.write ("<td colspan=\"2\" align=center><nobr><input class=\"input\" type=image src=\"images/denglutubiao.gif\" width=\"48\" height=\"21\" onclick=\"return gook()\">&nbsp;&nbsp;&nbsp;")
document.write (" <input class=\"input\" type=image src=\"images/qx.gif\" width=\"52\" height=\"18\" onclick=\"return reset1()\"></td>")
document.write ("</tr>")
document.write ("</table>")





