var z = ""; var t = new Date; var rsaEncrypt = function (a) { a = encodeURI(a); setMaxDigits(129); var b = z.split(","); var c = new RSAKeyPair(b[0], "", b[1]); var d = encryptedString(c, a); return d }; var GetRsaEncrypt = function (a) { try { jQuery.ajax({ url: "/Encrypt/GetEncrypt.ashx", type: "POST", async: false, data: { type: a }, dataType: "text", success: function (a) { z = a; t = new Date } }) } catch (e) { $.ajax({ url: "/Encrypt/GetEncrypt.ashx", type: "POST", async: false, data: { type: a }, dataType: "text", success: function (a) { z = a; t = new Date } }) } }; var GetMinuteLeave = function (a) { var b = (new Date).getTime() - a.getTime(); return Math.floor(b / (ji60 * 1e3)) };