//+ Jonas Raoni Soares Silva //@ http://jsfromhell.com/geral/utf-8 [v1.0] UTF8 = { encode: function(s){ for(var c, i = -1, l = (s = s.split("")).length, o = String.fromCharCode; ++i < l; s[i] = (c = s[i].charCodeAt(0)) >= 127 ? o(0xc0 | (c >>> 6)) + o(0x80 | (c & 0x3f)) : s[i] ); return s.join(""); }, decode: function(s){ for(var a, b, i = -1, l = (s = s.split("")).length, o = String.fromCharCode, c = "charCodeAt"; ++i < l; ((a = s[i][c](0)) & 0x80) && (s[i] = (a & 0xfc) == 0xc0 && ((b = s[i + 1][c](0)) & 0xc0) == 0x80 ? o(((a & 0x03) << 6) + (b & 0x3f)) : o(128), s[++i] = "") ); return s.join(""); } }; function searchCheck_u8() { var form = document.top_search; var val1 = form.kwd.value; //escape(UTF8.decode(form.kwd.value)); if(val1.replace(/ /gi,"") == "") { alert("검색어를입력해 주세요"); // location.href = "http://find.joins.com/"; return false; } else { form.action = "http://find.joins.com/mediaSearch/total_search.asp"; return true; } }