/* 
 * Class name : Room 
 * Description : 공실 관련 스크립트
 * Since : Oct 16, 2008 2:40:18 PM
 * Author : IkYong, Choi
 */

Room = {};

/*
 * Function name : Room#toggleYearMon
 * Description : toggle 년/월
 * Since : Oct 16, 2008 4:16:58 PM
 * Author : IkYong, Choi
 */
Room.toggleYearMon = function(index, sub_tag){
    try {
        $('month_list_ui').getElementsBySelector(sub_tag).each(function(ele){
                if(ele.getAttribute("index") == index){
                    ele.className = "x on" 
                }else{
                    ele.className = ""
                }
            }
        );
    	
    } catch (e) {
    	alert("Room#toggleYearMon : "+e.description);
    	return false;
    }
}