var oWinLoc=window.document.location, sWinPath = oWinLoc.protocol + '//' + oWinLoc.host + '/'; //fn_for_loadjs(Top); AtachSEvents(w); init(); function Hlp(sArg){ var sAddP=(!w.VIPPATH)?'':VIPPATH; x='../help/'+sAddP+LLangID+'/index.html#'+sArg; ((isIE)&&(bKiosk))?w.showModelessDialog(x,w):w.open(x,'_blank','height=500,width=500,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes'); } function toColor(x){ window.location.href=location.pathname+'?t=RT_2Auth.login_frame&L='+LLangID+'&colorstyle='+x; colorstyle=x; } function fnOnEnter(w){ if(MessageBoxObject.AlertBox && MessageBoxObject.AlertBox.IsShow)return; try{ var b1= SubCheckEmpty(w,'A','','',true); var b2= SubCheckEmpty(w,'B','','',true); if(b1 && b2){ try{ $(w,'A').blur(); $(w,'B').blur(); }catch(e){} SD(); }else _Focus(w,((!b1)?'A':'B')); }catch(e){} } function mess(s,err){$(w,'CLT').innerHTML=transformMsg(w,s,err);} function LoadNewCaptcha(){ var oImg=$(w,'Captcha'),ID=$(window,'IdCaptcha'); oImg.src = "bsi.dll?T=rt_2Reg.InitCaptcha&ID="+ID.value+"&tms="+fnRnd(); } function init(){ // IEVer=NormalizeMoney(IEVer); mess(AuthLRS0,1); var oB=$(w,'SDB'); DisblObj(oB,false); //(IsOpera)?oB.setAttribute('onclick','w.SD();'):(oB.onclick = new Function("w.SD();")); _addEvent(w,oB,'click',SD); $(w,'A').focus(); var bool=$(w,'bShow').value=='yes'; if (bool){ var oLoginTbl = $(w, 'LoginTbl'); for(i=0; i0xFF) k-=0x350; if(k==7622) k=185; TempPass=TempPass.length>1?TempPass.substr(1, TempPass.length):''; if(Pass!='')Pass=Pass+';'; Pass=Pass+PassTemplate[k]; } }else{ var Pass=$(w, 'B').value; } CreateBSSHTTPRequest(); BSSHTTPRequest.init('T=RT_2Auth.CL', 'A='+$(w,'A').value, 'B='+Pass, 'L='+LLangID, 'C='+($(w,'C')?$(w,'C').value:''), 'IdCaptcha='+$(w,'IdCaptcha').value, 'IMode='+$(window,'IMode').value, 'sTypeInterface='+$(window,'TypeInterface').value, 'MapID='+($(window,'MapID')?$(window,'MapID').value:'') ); BSSHTTPRequest.resultMethod=logonResult; BSSHTTPRequest.sendData(); } function logonResult(xHTTP){ if(xHTTP.errorCode>0){ switch(xHTTP.errorCode){ case 50: var oLoginTbl = $(w, 'LoginTbl'); for(i=0; i'); window.ogIntOCX = window.setInterval("check_AX();",100); }else Auth(); } function fn_onSystemResError(w){mess(AuthLRS0,1);} function fn_onResult(w,xHTTP){ if(xHTTP.errorCode>0){ mess(AuthLRS0,1); fn_alert(w,xHTTP.error,2); doLogin=false; try{$(w,'LoginTbl').focus();}catch(e){} return; } try{ SID = xHTTP.getElm('SID'); USR = xHTTP.getElm('USR'); CSN = xHTTP.getElm('CSN'); DTO = xHTTP.getElm('DTO'); SGTXTID = xHTTP.getElm('SGID'); IsLegal = xHTTP.getElm('ISL'); //URLdllSid = BSI+"sid="+SID+"&t="; URLdllSid = location.pathname+"?sid="+SID+"&t="; Tclss="RT_2Auth.CloseSess"; clssURL=URLdllSid+Tclss; FHLP = xHTTP.getElm('HLP'); FHLP2 = xHTTP.getElm('HLP2'); FHLP3 = xHTTP.getElm('HLP3'); AUTHSCH = xHTTP.getElm('ASCH'); BDEMO = xHTTP.getElm('DEMO')=='1'; ClientName=xHTTP.getElm('CNS'); VIPPATH=xHTTP.getElm('VIPFOLDER'); document.title = ClientName +' '+document.title; colorstyle = xHTTP.getElm('COLOR'); NOAX=0; if (xHTTP.getElm('TANAUTH')=='1'){ DisplayAuthPage('TAN'); return; } if (xHTTP.getElm('SMSAUTH')=='1'){ DisplayAuthPage('SMSCODE'); return; } if (xHTTP.getElm('ETOKENAUTH')=='1'){ DisplayAuthPage('ETOKEN'); return; } if(AUTHSCH=='pki'){ if(IMode=='info'){ NOAX = 1; Auth(); return; } if(!isIE){ NOAX = 1; fn_alert(w,AuthLRS16,1,'Auth()'); return; } mess(AuthLRS14,8); window.OCXCODEBASE = sWinPath + xHTTP.getElm('OCXC'); window.OCXVERSION = xHTTP.getElm('OCXV'); window.OCXServerName = xHTTP.getElm('OCXSN'); w.document.body.insertAdjacentHTML('afterEnd',''); window.ogIntOCX = window.setInterval("check_AX();",100); }else Auth(); }catch(e){} } function check_AX(){ try{result=IsReadyState(w.document.all.AX,window.ogIntOCX);}catch(e){result=1;w.clearInterval(window.ogIntOCX);} if(result==2)return; NOAX=result; if(NOAX == 1)fn_alert(window,LRSLoad4,3,'Auth()') else Auth(); } function IsReadyState(Obj,oInt){ result=2; if(!Obj){clearInterval(oInt);return(result);} Rst = Obj.readyState; if (Rst == 4){ clearInterval(oInt); var s = (typeof(Obj.LastError)=='undefined') ? 1 : Obj.LastError; R = (s) ? 0 : 1; result=(!R)?1:0; } return(result); } function ReloadCaptcha(){ var oImg=$(w,'Captcha'),ID=$(window,'IdCaptcha'); ID.value++; oImg.src = "bsi.dll?T=rt_2Reg.ReloadCaptcha&ID="+ID.value+"&tms="+fnRnd(); } doLogin=false;