function doSubmitForm(){
    var obj = document.frm.nickname;
    if(isEmpty(obj.value)){
        obj.focus();
        alert("请填写用户帐号！");
        return;
    }else{
        if(!isLetters(obj.value)){
            obj.focus();
            alert("不正确的用户帐号！");
            return;
        }
        if (isEmpty(document.frm.txtOldPwd.value)) {
            document.frm.txtOldPwd.focus();
            alert("请填写登录密码！");
            return;
        }
        obj = document.frm.txtOldPwd;
        //    document.frm.passwd.value = calcMD5(obj.value);
        if(vPlainSend)
            obj.value = "";// 不发送原始密码
        obj=document.frm.chkHttps
        if(obj!=null&&obj.checked){
            var vAction = document.frm.action;
            vAction = vAction.substring(vAction.lastIndexOf("/") + 1);
            document.frm.action = vSSLUrl + vAction;
        }
        //    document.frm.btLogin.disabled = true;
        document.frm.submit();
    }
}

function doLossPWD(){
  popup = window.open('cc_user_lospwd.jsp');
}

function doRegisterAccount(){
  var url = "cc_reg_phone_manual.jsp";// "cc_reg_index.jsp";
  window.location = url;
}

function KeypressForm(index){
  if(index == 13){
    doSubmitForm();
    //document.frm.submit();
  }
}
