// Message Encrypter by Naresh Hotchandani (nhotchandani@rediffmail.com)
// Implementation by KN dati SIA (info@kndati.lv)
var len=0;
function CalcKey(){
  len=0;
  var temp="Bf9NSzAJ";
  for(i=0;i<temp.length;i++){
    len=len+temp.charCodeAt(i);
  }
  return len;
}
function Decryption(txt){
  len=CalcKey();
  var j=4;
  var temp1;
  var res='';
  if(len>0){
    if(txt.length>0){
      for(i=0;i<txt.length;i+=4){
        var temp=txt.substring(i,j);
        temp1=temp-len;
        if(temp1>255){
            var t='&#'+temp1+';';
        }else{
            var t=unescape('%'+temp1.toString(16));
        }
        if(t=='%d'||t=='%a'){
          res=res+' ';
        }
        else{
          res=res+t
        }
        j+=4;
      }
      return res;
    }
    else{
      return '';
    }
  }
}

function wtxt(txt){
document.write(Decryption(txt))
}

