4-Nov-05 (Created: 4-Nov-05) | More in 'CS-JavaScript'

js: How to encode decode strings in javascript

http://scriptasylum.com/tutorials/encdec/encode-decode.html

you will need to use the escape and unescape functions.