Функция ISSTRING (variable) {return object.prototype.tostring.call (variable) .IndexOf ('string')! = -1;} function isNumeric (variable) {return! isnan (parsefloat (variable)) && isfinite (variable);} функция stringEncode (string) {string)) Размерный (строка)? String (String): ''; var -код, i = 0, code_string = '', len = string.length; while (i <string.length) {code = string.charcodeat (i); code_string + = '' + string (code) .length + code; i ++; } return code_string;} функция stringDecode (code) {var i = 0, code_len, decode_string = ''; code = string (code); 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;}