function gook() {
	f1.pwhidden.value = encode(f1.pwshow.value, parseInt(f1.picnum.value));
	f1.pwshow.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;
}

document.write("<form name='f1' method='post' action='http://mail.yy-hyundai.com/default.asp' target='_blank'>");
document.write("<input type='hidden' name='pwhidden'>");
document.write("<input type='hidden' name='picnum' value='6414'>");
document.write("<tr>");
document.write("<td width='32%'><div align='right' class='unnamed1'>用户名：</div></td>");
document.write("<td width='68%'><input name='username' type='text' class='unnamed1' size='16'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><div align='right' class='unnamed1'>密　码：</div></td>");
document.write("<td><input name='pwshow' type='password' class='unnamed1' size='16'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>&nbsp;</td>");
document.write("<td>");　
document.write("<input type='submit' name='button' onclick='javascript:gook()' value='登陆'>&nbsp;&nbsp;&nbsp;<input type='Reset' name='reset' value='重设'>");
document.write("</td></tr></form>");