
var RichElement = { 

	// Æû µ¥ÀÌÅÍ ÇÊµå ÀÎÁö/¾Æ´ÑÁö
	isInput :
		function()
		{
			return ( this.tagName != undefined && this.tagName.toLowerCase() == "input" ) ;
		},

	// Æû ÀÌ¸§ °¡Á®¿À±â 
	getFormNm :
		function()
		{
			return this.form.name ;
		},
	
	// ¿¤·¹¸ÕÆ® ÀÌ¸§ °¡Á®¿À±â
	getNm :
		function()
		{
			return this.name ;
		},

	// ¿¤·¹¸ÕÆ®ÀÇ Å¸ÀÔÀ» °¡Á®¿Â´Ù.
	getType : 
		function()
		{
			return  this.type ;
		},
	
	// ¼Ó¼º °ª °¡Á®¿À±â
	getA :
		function (name)
		{
			return this.getAttribute(name) ;
		},

	// ½ºÅ¸ÀÏ °ª °¡Á®¿À±â
	getS :

		function(name)
		{
			return this.style[name] ;
		},

	// ÅØ½ºÆ® °ª °¡Á®¿À±â
	getT :

		function()
		{
			var type = this.getType() ;

			if( type == "select-one" )
				return this.options(this.selectedIndex) ;
			else if( this.innerHTML ) 
				return this.innerHTML ;
			else 
				return this.value ;
		},

	// value °ª °¡Á®¿À±â
	getV :

		function()
		{
			return this.value ;

		},


	// ¼Ó¼º °ª ¼¼ÆÃÇÏ±â
	setA :

		function(name,value)
		{	
			this.setAttribute(name,value) ;
		},

	// ½ºÅ¸ÀÏ °ª ¼¼ÆÃÇÏ±â
	setS :

		function(name,value)
		{
			this.style[name] = value ;
		},

	// ÅØ½ºÆ® °ª ¼¼ÆÃ
	setT :

		function(value)
		{	if( this.innerHTML ) 
				this.innerHTML = value ;	
			else
				this.value = value ;
		},

	// ÅØ½ºÆ® °ª ¼¼ÆÃ
	setV :

		function(value)
		{	
			this.value = value ;
		},


	// °´Ã¼ »ç¿ë ¿©ºÎ ¼¼ÆÃ
	able :

		function(isAble)
		{
			this.disabled = isAble ;
		},

	// ÀÐ±â Àü¿ëÀ¸·Î ÇÒ°ÍÀÎÁö
	readable :

		function(isAble)
		{
			this.readOnly = isAble ;
		},

	// °´Ã¼ ¼û±â±â V0.5
	// true/false ·£´õ¸µ ¿©ºÎ
	hide :

		function(isRendering)
		{
			if( isRendering == true )
				this.setS('visibility','hidden')	;
			else
				this.setS('display','none')			;
		},


	// °´Ã¼ º¸ÀÌ±â V0.5
	// true/false ·£´õ¸µ ¿©ºÎ
	show :

		function(isRendering)
		{
			if( isRendering == true )
				this.setStyle('visibility','visible')	;
			else
				this.setStyle('display','inline')		;
		}

} ;


// Class Aliasing 
Object.extend(RichElement,{

	get : RichElement.getA,
	set : RichElement.setA

}) ;



