Demo entry 6714071

js

   

Submitted by anonymous on Feb 11, 2018 at 06:19
Language: JavaScript. Code size: 1.9 kB.

function  doIt(clickObj,vForm)
{
    
    var vErrorId = vForm.name+"_EEE";
    var errdiv=window.document.getElementById(vErrorId);
    if(document.getElementById('_vToken')!=null && document.getElementById('_vToken').className=="inputtxt"){
        document.getElementById('_vToken').value="";
    }
    if(document.getElementById('_vToken1')!=null && document.getElementById('_vToken1').className=="inputtxt"){
        document.getElementById('_vToken1').value="";
    }
    
        var password = getIBSPassword("powerpass1", ts , "form5_EEE", "密码至少需要六位")
        errdiv.style.color="#ffdf27";
        adJustDiv(window.document.getElementById("form5_EEE"))
        if(password==null)
            return false;
        vForm.Password.value=password;
    
    
            var mfm = getMFMInput("powerutil1", ts , "form5_EEE", "获取机器码失败")
            errdiv.style.color="#ffdf27";
            adJustDiv(errdiv)
            if(mfm==null)
                return false;
        vForm.MachineCode.value=mfm;
     

    showErrDiv1(false);
    myCounter.init(vErrorId);
    myCounter.run();
    post2SRV('login.do',vForm,clickObj,null,  function(flag, answer){
           clearTimeout(myCounter.timer);
           if(!flag){
               postData2SRVWithCallback("Timestamp.do", "", function(flag, answer){ if(flag){   ts = answer;}}  )
               var vTokenImgObj = document.getElementsByName("_tokenImg");
               for(var i=0;i<vTokenImgObj.length;i++){
                   var vImgId = vTokenImgObj[i].id;

                   if(vImgId.substring(0,vImgId.indexOf("_")) ==vForm.name ){
                       reloadTokenImg(vTokenImgObj[i].id);
                       break;
                   }
                  
               }
              
            showpeerrforlogin(flag,answer,true,vForm);
           }
    });
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).