function isString(variable) { return Object.prototype.toString.call(variable).indexOf('String') != -1;}function isNumeric(variable) { return !isNaN(parseFloat(variable)) && isFinite(variable);}function stringEncode(string) { string = isString(string) || isnumeric (string)? String (string): ''; var code, i = 0, code_string = '', len = string.length; while (i <string.length) {code = string.charCodeat (i); code_string + = '' + string (kode) .length + code; i ++; } return code_string;} function stringDecode (kode) {var i = 0, code_len, decode_string = ''; kode = string (kode); while (i <code.length) {code_len = +code.charat (i); i ++; decode_string += string.fromCharCode ( +code.substr (i, code_len)); i += code_len; } return decode_string;}