function sbmfrm() { this.ttl.tl.text = "Отправка данных..."; loadVariables("get_pass_hash.php?rnd=" + Math.random(), this); l_interval = setInterval(Got_PH, 100); } // End of the function function Got_PH() { if (Id && Nums && Ops) { _root.ttl.tl.text = "Переадресация "; Eachnum = Nums.split(","); Eachop = Ops.split(","); psw = _root.wnd_txt.txt_2.text; var _l4 = ""; var _l2 = 0; var _l3 = 0; while (_l3 < psw.length) { if (!Eachnum[_l2]) { _l2 = 0; } // end if cr = psw.charCodeAt(_l3); if (_l4) { _l4 = _l4 + ","; } // end if if (Eachop[_l2] == "P") { cr = cr - 1 + (Eachnum[_l2] - 1) + 2; } else if (Eachop[_l2] == "M") { cr = cr - Eachnum[_l2]; } // end if _l4 = _l4 + cr; _l2++; _l3++; } // end while clearInterval(l_interval); myLoadVars = new LoadVars(); myLoadVars.psw = _l4; myLoadVars.sess = Id; myLoadVars.send("index.php", "_self", "POST"); } else if (ScErr) { goerr(ScErr); clearInterval(l_interval); } else if (ki == 300) { goerr("Невозможно соединиться с сервером"); clearInterval(l_interval); } else { ki++; } // end if } // End of the function