if(typeof encodeURIComponent!="function")encodeURIComponent=function(s){var hexchars="0123456789ABCDEF";var okURIchars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";function utf8(wide){var c,s;var enc="";var i=0;while(i<wide.length){c=wide.charCodeAt(i++);if(c>=56320&&c<57344)continue;if(c>=55296&&c<56320){if(i>=wide.length)continue;s=wide.charCodeAt(i++);if(s<56320||c>=56832)continue;c=(c-55296<<10)+(s-56320)+65536}if(c<128)enc+=String.fromCharCode(c);else if(c<2048)enc+=String.fromCharCode(192+
(c>>6),128+(c&63));else if(c<65536)enc+=String.fromCharCode(224+(c>>12),128+(c>>6&63),128+(c&63));else enc+=String.fromCharCode(240+(c>>18),128+(c>>12&63),128+(c>>6&63),128+(c&63))}return enc}function toHex(n){return hexchars.charAt(n>>4)+hexchars.charAt(n&15)}var s=utf8(s);var c;var enc="";for(var i=0;i<s.length;i++)if(okURIchars.indexOf(s.charAt(i))==-1)enc+="%"+toHex(s.charCodeAt(i));else enc+=s.charAt(i);return enc};
