<!--
	//ÁÂ¿ì °ø¹éÁ¦°Å
	String.prototype.trim = function() 
	{
		return this.replace(/(^ *)|( *$)/g, "");
	}

	//¿ÞÂÊ °ø¹éÁ¦°Å
	String.prototype.ltrim = function() 
	{
		return this.replace(/(^ *)/g, "");
	}

	//¿À¸¥ÂÊ °ø¹éÁ¦°Å
	String.prototype.rtrim = function() 
	{
		return this.replace(/( *$)/g, "");
	}

	//ºñ¾î ÀÖ´ÂÁö ¿©ºÎ(°ø¹éÀÌ ÀÖ´õ¶óµµ ¾ø´Â°ÍÀ¸·Î Ä£´Ù.)
	String.prototype.isEmpty = function()
	{
		if (this==undefined || this==null)
		{
			return true;
		}
		return this.trim().length>0?false:true;
	}

	/* ======================================================================
	 FUNCTION:       isNumeric
	 RETURN:         ¼ýÀÚ¸¸À¸·Î ÀÌ·ç¾îÁ®¾ß true
	 ====================================================================== */
	String.prototype.isNumeric = function() 
	{
		if (this.length > 0) 
		{ 
			for (var i=0; i < this.length; i++) 
			{
				if (!(this.charAt(i) >= '0' && this.charAt(i) <= '9') ) 
				{
					return false;
				}
			}
			return true;
		}
		return false;
	}

	/*-------------------------------------------------------------------------
	 onlyKor()
	 Spec   : ¿µ¹®,¼ýÀÚ,Æ¯¼ö¹®ÀÚ ¹æÁö
	 Argument : 
	 Return   : boolean 
	-------------------------------------------------------------------------*/        
	String.prototype.isKor = function()
	{
		var rtn = true; 
		for (var j=0;j<this.length;j++) 
		{      
			var vAsc = this.charCodeAt(j); 
			if (((vAsc > 96) && (vAsc < 124)) || ((vAsc > 64) && (vAsc < 91)) || ((vAsc > 31) && (vAsc < 48)||(vAsc >= 48) && (vAsc <= 57)))
			{
				rtn = false; 
				break;
			}
		}
		return rtn; 
	}

	String.prototype.escape = function()
	{
			return escape(this);
	}

	String.prototype.urlencode = function()
	{
		var output = '';
		var x = 0;
		//clearString = clearString.toString();
		var regex = /(^[a-zA-Z0-9_.]*)/;
		
		while (x < this.length) 
		{
			var match = regex.exec(this.substr(x));
			if (match != null && match.length > 1 && match[1] != '') 
			{
				output += match[1];
				x += match[1].length;
			} 
			else 
			{
				if (this[x] == ' ')
					output += '+';
				else 
				{
					var charCode = this.charCodeAt(x);
					var hexVal = charCode.toString(16);
					output += '%' + hexVal.toUpperCase();
				}
				x++;
			}
		}
		return output;
	}

	/*-------------------------------------------------------------------------
	formatString(¹®ÀÚ¿­, ÀÚ¸®¼ö, ÂïÀ»¹®ÀÚ)
	 Spec   : ÀÚ¸®¼ö¸¶´Ù Æ¯¼ö¹®ÀÚ Âï±â
	 Argument : 
	 Return   : boolean 
	-------------------------------------------------------------------------*/  
	String.prototype.formatCurrency = function(){
		var string = this;
		var ReverseJoin = '';
		var join = '';

		
		var k = 1;
		var strLen = string.length-1;

		for(var i=strLen;i>=0;i--){
			var spt = string.charAt(i);
			if(spt!=",")
			{
				ReverseJoin += string.charAt(i);

				if( ((k)%3)==0 && k<=strLen )
				{
					ReverseJoin += ",";
				}

				k++;
			}
		}


		for(var j=ReverseJoin.length-1;j>=0;j--){
			join += ReverseJoin.charAt(j);
		}


		/*
		for(var i=spt.length-1;i>=0;i--){
			if((((i+1)%loc)==0)){
				ReverseJoin += spt[i] + chr;
			}
			else{
				ReverseJoin += spt[i];
			}
		}

		spt = ReverseJoin.split('');

		for(var j=spt.length-1;j>=0;j--){
			join += spt[j]; 
		}
		*/
		return join;
	}
//-->