Advertisement
Guest User

Untitled

a guest
Jan 27th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(window).load(function () {   
  2.     $("#postfrom").live("submit", function () {
  3.         Cookie("mm2", '1', 1);
  4.         var a = $("#mm").val() + Utf8.encode($("#message").val()) + $("#ppw").val();
  5.         var l = a.length,
  6.             h = 2 ^ l,
  7.             i = 0,
  8.             k, m = 1540483477,
  9.             ff = 255,
  10.             ffff = 65535;
  11.         while (l >= 4) {
  12.             k = ((a.charCodeAt(i) & ff)) | ((a.charCodeAt(++i) & ff) << 8) | ((a.charCodeAt(++i) & ff) << 16) | ((a.charCodeAt(++i) & ff) << 24);
  13.             k = (((k & ffff) * m) + ((((k >>> 16) * m) & ffff) << 16));
  14.             k ^= k >>> 24;
  15.             k = (((k & ffff) * m) + ((((k >>> 16) * m) & ffff) << 16));
  16.             h = (((h & ffff) * m) + ((((h >>> 16) * m) & ffff) << 16)) ^ k;
  17.             l -= 4;
  18.             ++i
  19.         }
  20.         switch (l) {
  21.         case 3:
  22.             h ^= (a.charCodeAt(i + 2) & ff) << 16;
  23.         case 2:
  24.             h ^= (a.charCodeAt(i + 1) & ff) << 8;
  25.         case 1:
  26.             h ^= (a.charCodeAt(i) & ff);
  27.             h = (((h & ffff) * m) + ((((h >>> 16) * m) & ffff) << 16))
  28.         }
  29.         h ^= h >>> 13;
  30.         h = (((h & ffff) * m) + ((((h >>> 16) * m) & ffff) << 16));
  31.         h ^= h >>> 15;
  32.         var c = h >>> 0;
  33.     Cookie("mm", c, 1);
  34.         return true
  35.     })
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement