document.write("<DIV align=center id=\"softkeyboard\" name=\"softkeyboard\" style=\"position:absolute; left:0px; top:0px; width:500px; z-index:180;display:none\"> <table id=\"CalcTable\" width=\"\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"\"> <FORM id=Calc name=Calc action=\"\" method=post autocomplete=\"off\"> <tr> <td title=\"尊敬的用户:为了保证您的密码安全,建议使用密码输入器输入密码!\" align=\"right\" valign=\"middle\" bgcolor=\"\" style=\"cursor: default;height:30\"> <INPUT type=hidden value=\"\" name=password> <INPUT type=hidden value=ok name=action2> 密码输入器                 <INPUT style=\"width:100px;height:20px;background-color:#54BAF1;\" type=button value=\"使用键盘输入\" bgtype=\"1\" onclick=\"password1.readOnly=0;password1.focus();softkeyboard.style.display='none';password1.value='';\"><span style=\"width:2px;\"></span></td> </tr> <tr align=\"center\"> <td align=\"center\" bgcolor=\"#FFFFFF\"> <table align=\"center\" width=\"%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n <tr align=\"left\" valign=\"middle\"> \n <td> <input type=button value=\" ~ \"></td>\n <td> <input type=button value=\" ! \"></td>\n <td> <input type=button value=\" @ \"></td>\n <td> <input type=button value=\" # \"></td>\n <td> <input type=button value=\" $ \"></td>\n <td> <input type=button value=\" % \"></td>\n <td> <input type=button value=\" ^ \"></td>\n <td> <input type=button value=\" & \"></td>\n <td> <input type=button value=\" * \"></td>\n <td> <input type=button value=\" ( \"></td>\n <td> <input type=button value=\" ) \"></td>\n <td> <input type=button value=\" _ \"></td>\n <td> <input type=button value=\" + \"></td>\n <td> <input type=button value=\" | \"></td>\n <td colspan=\"1\" rowspan=\"2\"> <input name=\"button10\" type=button value=\" 退格\" onclick=\"setpassvalue();\" onDblClick=\"setpassvalue();\" style=\"width:100px;height:42px\"> \n </td>\n </tr>\n <tr align=\"left\" valign=\"middle\"> \n <td> <input type=button value=\" ` \"></td>\n <td> <input type=button value=\" 1 \"></td>\n <td> <input type=button value=\" 2 \"></td>\n <td> <input type=button value=\" 3 \"></td>\n <td> <input type=button value=\" 4 \"></td>\n <td> <input type=button value=\" 5 \"></td>\n <td> <input type=button value=\" 6 \"></td>\n <td> <input type=button value=\" 7 \"></td>\n <td> <input type=button value=\" 8 \"></td>\n <td> <input type=button value=\" 9 \"></td>\n <td> <input name=\"button6\" type=button value=\" 0 \"></td>\n <td> <input type=button value=\" - \"></td>\n <td> <input type=button value=\" = \"></td>\n <td> <input type=button value=\" \\ \"></td>\n <td> </td>\n </tr>\n <tr align=\"left\" valign=\"middle\"> \n <td> <input type=button value=\" q \"></td>\n <td> <input type=button value=\" w \"></td>\n <td> <input type=button value=\" e \"></td>\n <td> <input type=button value=\" r \"></td>\n <td> <input type=button value=\" t \"></td>\n <td> <input type=button value=\" y \"></td>\n <td> <input type=button value=\" u \"></td>\n <td> <input type=button value=\" i \"></td>\n <td> <input type=button value=\" o \"></td>\n <td> <input name=\"button8\" type=button value=\" p \"></td>\n <td> <input name=\"button9\" type=button value=\" { \"></td>\n <td> <input type=button value=\" } \"></td>\n <td> <input type=button value=\" [ \"></td>\n <td> <input type=button value=\" ] \"></td>\n <td><input name=\"button9\" type=button onClick=\"capsLockText();setCapsLock();\" onDblClick=\"capsLockText();setCapsLock();\" value=\"切换大/小写\" style=\"width:100px;\"></td>\n </tr>\n <tr align=\"left\" valign=\"middle\"> \n <td> <input type=button value=\" a \"></td>\n <td> <input type=button value=\" s \"></td>\n <td> <input type=button value=\" d \"></td>\n <td> <input type=button value=\" f \"></td>\n <td> <input type=button value=\" g \"></td>\n <td> <input type=button value=\" h \"></td>\n <td> <input type=button value=\" j \"></td>\n <td> <input name=\"button3\" type=button value=\" k \"></td>\n <td> <input name=\"button4\" type=button value=\" l \"></td>\n <td> <input name=\"button5\" type=button value=\" : \"></td>\n <td> <input name=\"button7\" type=button value=\" " \"></td>\n <td> <input type=button value=\" ; \"></td>\n <td> <input type=button value=\" ' \"></td>\n <td rowspan=\"2\" colspan=\"2\"> <input name=\"button12\" type=button onclick=\"OverInput();\" value=\" 确定 \" style=\"width:130px;height:42\"></td>\n </tr>\n <tr align=\"left\" valign=\"middle\"> \n <td> <input name=\"button2\" type=button value=\" z \"></td>\n <td> <input type=button value=\" x \"></td>\n <td> <input type=button value=\" c \"></td>\n <td> <input type=button value=\" v \"></td>\n <td> <input type=button value=\" b \"></td>\n <td> <input type=button value=\" n \"></td>\n <td> <input type=button value=\" m \"></td>\n <td> <input type=button value=\" < \"></td>\n <td> <input type=button value=\" > \"></td>\n <td> <input type=button value=\" ? \"></td>\n <td> <input type=button value=\" , \"></td>\n <td> <input type=button value=\" . \"></td>\n <td> <input type=button value=\" / \"></td>\n </tr>\n </table></td> </FORM> </tr> </table></DIV>")
//给输入的密码框添加新值
function addValue(newValue)
{
if (CapsLockValue==0)
{
var str=Calc.password.value;
if(str.length<password1.maxLength)
{
Calc.password.value += newValue;
}
if(str.length<=password1.maxLength)
{
password1.value=Calc.password.value;
}
}
else
{
var str=Calc.password.value;
if(str.length<password1.maxLength)
{
Calc.password.value += newValue.toUpperCase();
}
if(str.length<=password1.maxLength)
{
password1.value=Calc.password.value;
}
}
}
//实现BackSpace键的功能
function setpassvalue()
{
var longnum=Calc.password.value.length;
var num
num=Calc.password.value.substr(0,longnum-1);
Calc.password.value=num;
var str=Calc.password.value;
password1.value=Calc.password.value;
}
//输入完毕
function OverInput()
{
//m_pass.mempass.value=Calc.password.value;
var str=Calc.password.value;
password1.value=Calc.password.value;
//alert(theForm.value);
//theForm.value=m_pass.mempass.value;
softkeyboard.style.display="none";
Calc.password.value="";
password1.readOnly=1;
//password1.value=Calc.password.value;
}
//关闭软键盘
function closekeyboard(theForm)
{
//eval("var theForm="+theForm+";");
//theForm.value="";
softkeyboard.style.display="none";
//Calc.password.value="";
}
//显示软键盘
function showkeyboard()
{
if(event.y+140)
softkeyboard.style.top=event.y+document.body.scrollTop+15;