	var currentSelectId;
 	var currentSelectIds;
 	function showByIdNode(id, selectId){
 		currentSelectId = selectId; 		
   		tagManager.getsubtagid(id,callLastNodeBackIndex);
	}
	
 	
 	function showLastNode(select, selectId){
 		
 		currentSelectId = selectId;
		currentSelectIds = selectId + 's';
   		tagManager.getsubtagid(select.value,callLastNodeBack);
	}
	
	function callLastNodeBack(brands){
		
		clearNextNode(currentSelectId);
		var nextTagId=document.getElementById(currentSelectId);
		var nextTagIds = document.getElementById(currentSelectIds);
		var option = document.createElement("option");
		var text = document.createTextNode("-ÇëÑ¡Ôñ-");
		option.appendChild(text);
		option.value='';
		nextTagId.appendChild(option);
		for(var k=0;k<brands.length;k++){
			var tag = brands[k];
		    var nextTagId=document.getElementById(currentSelectId);
		    var option = document.createElement("option");
			var text = document.createTextNode(tag.tagName+" "+tag.tagEnName);
			option.appendChild(text);
			option.value=tag.id;
			if(nextTagIds != null){
				if(tag.id == nextTagIds.value){
					option.selected=true;
				}
			}
			
			nextTagId.appendChild(option);
			
			
	    }
	   
	    if(currentSelectId == 'nextTagId'){
			showLastNode(nextTagId,'lastTagId');
		}
		
   	}
   	
   	function callLastNodeBackIndex(brands){
		var nextTagId=document.getElementById(currentSelectId);
		var option = document.createElement("option");
		var text = document.createTextNode("-ÇëÑ¡Ôñ-");
		option.appendChild(text);
		option.value=''
		nextTagId.appendChild(option);
		for(var k=0;k<brands.length;k++){
			var tag = brands[k];
		    var nextTagId=document.getElementById(currentSelectId);
		    var option = document.createElement("option");
			var text = document.createTextNode(tag.tagName+" "+tag.tagEnName);
			option.appendChild(text);
			option.value=tag.id;
			nextTagId.appendChild(option);
	    }	
   	}
   	
   	function clearNextNode(selectId){
    	var obj=document.getElementById(selectId);
    	while(obj.length>0){
       		obj.remove(0)
     	}      
    }
    
    
    