
var RHSelect = Class.create(RBaseElementObject,{

	initialize :

		function($super,rhForm,key) 
		{
			$super(rhForm,key) ;
		},


	/** OPTION °ª ¼¼ÆÃ	**/
	/** assoc : °ª/ÅØ½ºÆ® Hash  , index : Àû¿ëÇÒ index **/
	/** index °¡ ¾øÀ¸¸é ÀüÃ¼ Àû¿ë **/
	setOption :

		function(assoc,index)
		{
			this.iter(
				function(item,cur)
				{
					var aOption = null ;
					

					for(var key in assoc) 
						if(assoc.hasOwnProperty(key))	
							this.makeOption(item,assoc[key],key) ;	

					return ( index != cur ) 
				}
			) ;

			return this ;
		},


	/** ¿É¼Ç ¸¸µé±â **/
	/** index : ¿¤·¹¸ÕÆ® index , name : option text , value : option value **/
	makeOption :

		function(index,name,value)
		{
			var ele = this.getOrg()[index] ;
		
			var aOption = document.createElement("OPTION");
			aOption.text	= name	;
			aOption.value	= value	;

			ele.add(aOption) ;

		},
	

	/** return : OPTION °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù. **/
	getOption :

		function(index)
		{
			var ele = this.getOrg()[index] ;

			return ele.options(ele.selectedIndex) ;
		}


}) ;

