		/**
			0. function :	°Ô½ÃÆÇ ¸®½ºÆ® ·ÎµùÈ­¸é
			1. params	 :
					-id : °´Ã¼ id
				
		*/	
		function fnc_load_list(id,msg,loader_img){
			var int_th_len = $('#'+id+" thead tr th").length;
			var str_load_msg;

			if(msg==null){
				str_load_msg = "<img src='"+loader_img+"'>";
			}	
			else{
				str_load_msg = 	msg;
			}

			$('#'+id+" tbody").empty();
			$('#'+id+" tbody").append("<tr><td colspan='"+int_th_len+"' align='center' style='padding:20px;'></td></tr>");
			$('#'+id+" tbody tr:eq(0) td:eq(0)").html(str_load_msg); 
		}


		/**
			0. function :	BlockUI(Ajax ¿äÃ»½Ã »ç¿ëÀÚ ÀÎÅÍÆäÀÌ½º Â÷´Ü)
			1. params	 :
					-id : °´Ã¼ id
			2. plugin	:	jquery.blockui.js
				
		*/	
		function fnc_blockUI(id,loader_img){
			if(loader_img==null){
				loader_img = "/img/common/ajax-loader_thick_circle.gif";
			}	

			$('#'+id).block('<img src="'+loader_img+'"> ', {backgroundColor:'transparent'}); 
		}

		/**
			0. function :	fnc_blockUI2(Ajax ¿äÃ»½Ã »ç¿ëÀÚ ÀÎÅÍÆäÀÌ½º Â÷´Ü)
			1. params	 :
					-id : °´Ã¼ id
					-msg : ¸Þ¼¼Áö
			2. plugin	:	jquery.blockui.js
				
		*/	
		function fnc_blockUI2(id,msg,color,wdt){
			$('#'+id).block(msg, { width:wdt+'px',height:'30px',border: '2px solid '+color,color:color,backgroundColor:'#FFF',fontSize:'9pt' }); 
		}

		/**
			0. function :	fnc_blockUI2(Ajax ¿äÃ»½Ã »ç¿ëÀÚ ÀÎÅÍÆäÀÌ½º Â÷´Ü)
			1. params	 :
					-id : °´Ã¼ id
					-msg : ¸Þ¼¼Áö
			2. plugin	:	jquery.blockui.js
				
		*/	
		function fnc_blockUI3(id,msg,color,wdt,hgt){
			$('#'+id).block(msg, { width:wdt+'px',height:hgt+'px',border: '2px solid '+color,color:color,backgroundColor:'#FFF',fontSize:'9pt' }); 
		}

		/**
			0. function :	UnBlockUI(Ajax ÀÀ´ä¿Ï·á ÈÄ »ç¿ëÀÚ ÀÎÅÍÆäÀÌ½º Â÷´Ü ÇØÁ¦)
			1. params	 :
					-id : °´Ã¼ id
			2. plugin	:	jquery.blockui.js
				
		*/	
		function fnc_unblockUI(id){
			$('#'+id).unblock(); 
		}

		/**
			0. function :	XMLHttpRequest status Message
			1. params	 :
					-status : status °ª
		*/	
		function fnc_xhr_status(status){
			var str_rtn;
			switch(status){
				case 100	:	str_rtn = status+' : Continue(ÁøÇàÁß..)' ; break;
				case 101	:	str_rtn = status+' : Switching protocols ' ; break;
				case 200	:	str_rtn = status+' : OK(¿äÃ»¼º°ø)' ; break;
				case 201	:	str_rtn = status+' : Created(»ý¼ºµÊ)' ; break;
				case 202	:	str_rtn = status+' : Accepted(½ÂÀÎµÊ)' ; break;
				case 203	:	str_rtn = status+' : Non-Authoritative Information' ; break;
				case 204	:	str_rtn = status+' : No Content' ; break;
				case 205	:	str_rtn = status+' : Reset Content' ; break;
				case 206	:	str_rtn = status+' : Partial Content' ; break;
				case 300	:	str_rtn = status+' : Multiple Choices' ; break;
				case 301	:	str_rtn = status+' : Moved Permanently' ; break;
				case 302	:	str_rtn = status+' : Found' ; break;
				case 303	:	str_rtn = status+' : See Other' ; break;
				case 304	:	str_rtn = status+' : Not Modified' ; break;
				case 305	:	str_rtn = status+' : Use Proxy' ; break;
				case 307	:	str_rtn = status+' : Temporary Redirect' ; break;
				case 400	:	str_rtn = status+' : Bad Request(Àß¸øµÈ ¿äÃ»)' ; break;
				case 401	:	str_rtn = status+' : Unauthorized(±ÇÇÑ¾øÀ½)' ; break;
				case 402	:	str_rtn = status+' : Payment Required' ; break;
				case 403	:	str_rtn = status+' : Forbidden(Á¢±Ù°ÅºÎ)' ; break;
				case 404	:	str_rtn = status+' : Not Found(¿äÃ» ÆäÀÌÁö ¾øÀ½)' ; break;
				case 405	:	str_rtn = status+' : Method Not Allowed' ; break;
				case 406	:	str_rtn = status+' : Not Acceptable(Á¢±ÙºÒ°¡)' ; break;
				case 407	:	str_rtn = status+' : Proxy Authentication Required(ÇÁ·Ï½Ã ÀÎÁõ ÇÊ¿ä)' ; break;
				case 408	:	str_rtn = status+' : Request Timeout(¿äÃ» ¸¸·á)' ; break;
				case 409	:	str_rtn = status+' : Gone' ; break;
				case 410	:	str_rtn = status+' : Continue' ; break;
				case 411	:	str_rtn = status+' : Length Required' ; break;
				case 412	:	str_rtn = status+' : Precondition Failed ' ; break;
				case 413	:	str_rtn = status+' : Request Entity Too Large' ; break;
				case 414	:	str_rtn = status+' : Request-URI Too Long' ; break;
				case 415	:	str_rtn = status+' : Unsupported Media Type(Áö¿øµÇÁö¾Ê´Â ¹Ìµð¾îÅ¸ÀÔ)' ; break;
				case 416	:	str_rtn = status+' : Requested Range Not Suitable' ; break;
				case 417	:	str_rtn = status+' : Expectation Failed' ; break;
				case 500	:	str_rtn = status+' : Internal Server Error(³»ºÎ ¼­¹ö ¿À·ù)' ; break;
				case 501	:	str_rtn = status+' : Not Implemented(¼öÇàµÇÁö¾ÊÀ½)' ; break;
				case 502	:	str_rtn = status+' : Bad Gateway(Àß¸øµÈ °ÔÀÌÆ®¿þÀÌ)' ; break;
				case 503	:	str_rtn = status+' : Service Unavailable(¼­ºñ½º »ç¿ëºÒ°¡)' ; break;
				case 504	:	str_rtn = status+' : Gateway Timeout(°ÔÀÌÆ®¿þÀÌ ¸¸·á)' ; break;
				case 505	:	str_rtn = status+' : HTTP Version Not Supported(HTTP¹öÀü Áö¿øºÒ°¡)' ; break;
			}
			return str_rtn;
		}

		/**
			0. function :	Ajax ¿äÃ»Ã³¸® µð¹ö±ë ÇÔ¼ö
			1. params	 :
		*/	
		function fnc_req_debug(url,qrystr,act){
			if(act){
				alert(qrystr);
				window.open(url+'?'+qrystr,target='_blank');
				return;
			}
		}

		/**
			0. function :	µî·Ï/¼öÃ» È®ÀÎ ¸Þ¼¼Áö
			1. params	 :
		*/	
		var str_msg;
		function fnc_regedt_msg(proc){
			switch(proc){case "cre" : str_msg='##È®ÀÎ!! µî·ÏÇÏ½Ã°Ú½À´Ï±î?';break;case "upt" : str_msg='##È®ÀÎ!! ¼öÁ¤ÇÏ½Ã°Ú½À´Ï±î?';break;default: str_msg='##È®ÀÎ!! »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?';break;}	
		}
	
		/**
			0. function :	Å×ÀÌºí bg,hover ¼¼ÆÃ
			1. params	 :
					-id : °´Ã¼ id
			2. ºñ°í		
				/cominc/js/jq/plugin/ui/tablesorter/themes/blue/style.css ÀÇ Å¬·¡½º ÀÌ¿ë
				¸ÞÀÎ ¸®½ºÆ® Å×ÀÌºíÀÇ Å¬·¡½º¸¦ tablesorter·Î ÁöÁ¤ ÈÄ ÄÁÆ®·ÑÇÒ¼ö ÀÖ´Ù.
		*/	
		function fnc_tbl_stripe(){
			// Â¦¼ö¶óÀÎ bgcolor ³Ö±â
			$(".tablesorter tr:even").addClass('even');
			// È¦¼ö¶óÀÎ over½Ã
			$(".tablesorter tr").hover(function() { 
			   $(this).addClass('over'); 
			}, function() { 
			   $(this).removeClass('over'); 
			}); 
		}

		/**
			0. function :	¼±ÅÃµÈ Ã¼Å©¹Ú½º/¶óµð¿À ¹öÆ° ÆÛ¶ó¹ÌÅÍ ½ºÆ®¸µ »ý¼º(¸Þ´º > »ç¿ëÀÚ±ÇÇÑ ¼öÁ¤ Àü¿ë)
			1. params	 :
					-type : checkbox,radio
					-name : ÁöÁ¤µÈ °´Ã¼¸í
		*/	
		function fnc_make_params(type,name,uncheck){
			var query_string = ''; 
			$("input[@type='"+type+"'][@name='"+name+"']").each( 
				function() 
				{ 
					if (this.checked) 
					{ 
						query_string += "&"+name+"=" + encodeURIComponent(this.value+'|Y'); 
					} 

					if(uncheck){
						if (!this.checked) 
						{ 
							query_string += "&"+name+"=" + encodeURIComponent(this.value+'|N'); 
						} 							
					}
				}); 

			return query_string;
		}

		/**
			0. function :	¼±ÅÃµÈ Ã¼Å©¹Ú½º/¶óµð¿À ¹öÆ° ÆÛ¶ó¹ÌÅÍ ½ºÆ®¸µ »ý¼º(¹ü¿ë)
			1. params	 :
					-type : checkbox,radio
					-name : ÁöÁ¤µÈ °´Ã¼¸í
		*/	
		function fnc_make_params2(type,name){
			var query_string = ''; 
			$("input[@type='"+type+"'][@name='"+name+"']").each( 
				function() 
				{ 
					if (this.checked) 
					{ 
						query_string += "&"+name+"=" + encodeURIComponent(this.value); 
					} 
				}); 

			return query_string;
		}

		/**
			0. function :	¸ðµç input °´Ã¼ ÆÛ¶ó¹ÌÅÍ ½ºÆ®¸µ »ý¼º(¹ü¿ë)
			1. params	 :
					-type : checkbox,radio
					-name : ÁöÁ¤µÈ °´Ã¼¸í
		*/	
		function fnc_make_params3(type,name){
			var query_string = ''; 
			$("input[@type='"+type+"'][@name='"+name+"']").each( 
				function() 
				{ 
					query_string += "&"+name+"=" + encodeURIComponent(this.value); 
				}); 

			return query_string;
		}

		/**
			0. function :	Ã¼Å©¹Ú½º Ã¼Å© À¯È¿¼º È®ÀÎ
			1. params	 :
					-name : ÁöÁ¤µÈ °´Ã¼¸í
		*/	
		function fnc_checkbox_valid(name){
			if($("input[name='"+name+"']").length == 0){
				alert('##¾Ë¸²!! Ã¼Å©ÇÒ Ç×¸ñÀÌ ¾ø½À´Ï´Ù!!');
				return false;
			}
			else{
				if($("input[name='"+name+"']:checked").length == 0){
					alert('##¾Ë¸²!! ¿øÇÏ½Ã´Â Ç×¸ñÀ» ÇÑ°³ÀÌ»ó Ã¼Å©ÇØÁÖ¼¼¿ä!!');
					return false;
				}
			}

			return true;
		}

		/**
		*	¿£ÅÍÅ° ÀÔ·Â ¹× ¹öÆ° Å¬¸¯ °Ë»ö
		*/
		function fnc_reg_enter(div,selector,func){
			if(div=='obj_txt'){
				$(selector).keypress( function(e) { 
					if(e.which==13){
						eval(func);
					}
				} );		
			}	
			else{
				$(selector).css("cursor","hand").click( function() { 
					eval(func);
				} );				
			}
		}

		/**
		*	Æ¯¼ö¹®ÀÚ ÀÔ·Â¹æÁö
		*/
		var str_regexp_spec_char = /[$\\@\\\#%\^\&\*\(\)\[\]\+\{\}\`\~\=\|]/;  // Æ¯½º¹®ÀÚ Á¤±Ô½Ä
		function fnc_prevent_spec_char(obj,text){
			if(text.search(str_regexp_spec_char) !=-1){
				alert("´ÙÀ½°ú °°Àº Æ¯¼ö¹®ÀÚ´Â \n\r\n\r@ $ % ^ & * # ( ) [ ] \\ { + } ` ~ =  | \n\r\n\rÀÔ·ÂÇÏ½Ã¸é ¾ÈµË´Ï´Ù\n"); 
				obj.focus();
				return false;
			}
			return true;
		}

		/**
			0. function :	°ü¸®ÀÚ ¿ÞÂÊ¸Þ´º ¼¼ÆÃ,½ºÅ¸ÀÏ½ÃÆ® :  inc/css/leftmenu.css
			
			¾îÄÚµð¾ð ¸Þ´º sample:
			http://www.i-marco.nl/weblog/jquery-accordion-menu/ ÂüÁ¶
			<ul id="menu">
				<li>
					<a href="#">Weblog Tools</a>
					<ul>
						<li><a href="http://www.pivotx.net/">PivotX</a></li>
						<li><a href="http://www.wordpress.org/">WordPress</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Programming Languages</a>
					<ul>
						<li><a href="http://www.php.net/">PHP</a></li>
						<li><a href="http://www.ruby-lang.org/en/">Ruby</a></li>
					</ul>
				</li>
				<li><a href="http://www.i-marco.nl/weblog/">Marco's blog (no submenu)</a></li>
				<li>
					<a href="#">Cool Stuff</a>
					<ul>
						<li><a href="http://www.apple.com/">Apple</a></li>
						<li><a href="http://www.nikon.com/">Nikon</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Search Engines</a>
					<ul>
						<li><a href="http://search.yahoo.com/">Yahoo!</a></li>
						<li><a href="http://www.google.com/">Google</a></li>
					</ul>
				</li>
			</ul>
		*/	
		function fnc_set_left_menu(userid,num,dir_name){
			var str_querystring = "userid=" + userid +"&num="+num;

			/*Ajax Request Debug*/
			fnc_req_debug('/inc/Left_Menu_List_Ajax.asp',str_querystring,false);

			$.ajax({
				type: "post",
				url: "/inc/Left_Menu_List_Ajax.asp",
				contentType : 'application/x-www-form-urlencoded; charset=utf-8',
				data: str_querystring,
				dataType: "xml",
				success:   function(xml){
					var obj_xml = $(xml).find("mng_menu");
					var int_xml_size	=	obj_xml.size();
					if(int_xml_size==0){
						$("body").html('');	
						alert('##¾Ë¸²!!\n\nÇØ´ç¸Þ´º¸¦ °¡Á®¿Ã ¼ö ¾ø½À´Ï´Ù.\n½Ã½ºÅÛ°ü¸®ÀÚ¿¡°Ô ¿äÃ»ÇÏ¿© ±ÇÇÑÀ» ºÎ¿©¹ÞÀ¸½Ã±â ¹Ù¶ø´Ï´Ù.');
						//location.href="/";
					}
					else{
						var str_menu_name,int_menu_thread,str_menu_url,str_dir_name,str_dir_name_parent;
						var str_isuse,str_islink,str_isnewwin,str_isready;
						var str_append;
						var str_href,obj_li,obj_ul,obj_li2;
						var i=-1;							//	ÁßºÐ·ù li ÀÎµ¦½º
						var j= 0,int_sel_ui_idx;		// ÇöÀç¼Ò¸Þ´º°¡ Æ÷ÇÔµÈ ÁßºÐ·ù
						var k=0	;						// ÇöÀç¼±ÅÃµÈ ¼ÒºÐ·ù li ÀÎµ¦½º

						obj_xml.each(function(){
							str_menu_name= $("menu_name",this).text();
							int_menu_thread= $("thread",this).text();
							str_menu_url= $("menu_url",this).text();
							str_dir_name= $("dir_name",this).text();
							str_isuse= $("isuse",this).text();
							str_islink= $("islink",this).text();
							str_isnewwin= $("isnewwin",this).text();
							str_isready= $("isready",this).text();
							str_num= $("num",this).text();

							// ¸µÅ©¿©ºÎ¿¡ µû¸¥ url
							if(str_islink=='Y'){
								// ÁØºñ»óÅÂ¸é?
								if(str_isready=='Y'){
									str_href = 'javascript:alert("ÁØºñÁßÀÔ´Ï´Ù..^-^;;;")';
								}
								else{
									str_href=str_menu_url;
									if(str_isnewwin == 'N'){ // »õÃ¢ÀÌ ¾Æ´Ò°æ¿ì¸¸
										if(str_href.indexOf('?')!=-1){
											str_href += "&menu_dir_name="+str_dir_name+"&menu_num="+str_num;
										}
										else{
											str_href +=  "?menu_dir_name="+str_dir_name+"&menu_num="+str_num;
										}
									}
								}
							}else{
								str_href="#";
							}

							// ¸µÅ©»õÃ¢
							if(str_isnewwin=='Y'){
								str_isnewwin = "target='_blank'";	
							}
							else{
								str_isnewwin = '';	
							}

							// ¸Þ´º»ý¼º
							if(int_menu_thread==1){ // ÁßºÐ·ù
								i++;
								k=0; // ¼ÒºÐ·ù li ÀÎµ¦½º ÃÊ±âÈ­
							
								// ÁßºÐ·ù ¸Þ´º»ý¼º
								$("<li id='"+str_dir_name+"'></li>")
									.html("<a href='" + str_href + "' "+str_isnewwin+"><img src='/img/mng/shop/magazm_list_blt_off.gif' border='0' style='margin-right:5px;'>" + str_menu_name+ "</a>")
									.appendTo("#div_left_accordion_menu ul#ui_menu_list");

								// ¼ÒºÐ·ù ¸Þ´º ul ºí·°»ý¼º(ÁßºÐ·ù ¸Þ´ºÀÇ ¸µÅ©°¡ ¾øÀ»°æ¿ì)
								obj_li = $("#div_left_accordion_menu ul#ui_menu_list li#"+str_dir_name);
								if(str_islink=='N'){
									$("<ul></ul>")
										.appendTo(obj_li);

									str_dir_name_parent = str_dir_name;

									// ÇöÀç ¸Þ´º¿¡ ´ëÇÑ ui ÀÎµ¦½º ÁöÁ¤
									if(str_num==num){
										int_sel_ui_idx=j;	
									}
									j++;
								}
							}
							else{ // ¼ÒºÐ·ù
								obj_ul = $("#div_left_accordion_menu ul#ui_menu_list li#"+str_dir_name_parent+" ul");
								$("<li id="+str_dir_name+"></li>")
									.html("<a href='" + str_href + "' "+str_isnewwin+">" + str_menu_name +"</a>")
									.appendTo(obj_ul);

								// ÇöÀç º¸°íÀÖ´Â ¼Ò¸Þ´ºÀÏ°æ¿ì ¼±ÅÃµÈ class·Î º¯°æ(highlighting)
								if(str_dir_name==dir_name){
									obj_li2 = $("#div_left_accordion_menu ul#ui_menu_list li#"+str_dir_name_parent+" ul li#"+str_dir_name);
									obj_li2.addClass("left_mn_highlight");
								}
								k++;
							}
						 }); //close each(
						 
						 // ¸Þ´º ¾îÄÚµð¾ð ÀÌº¥Æ® Ãß°¡
						//$('#ui_menu_list ul').hide();										// ¸ðµç¸Þ´º °¨Ãæ
						//$('#ui_menu_list ul:eq('+int_sel_ui_idx+')').show();		// ÇöÀç º¸ÀÌ´Â ÁßºÐ·ù±º¸¸ ¿ÀÇÂ
						$('#ui_menu_list li a').click(										// ¸Þ´ºÅ¬¸¯½Ã ÇØ´ç ¸Þ´º¸¸ ½½¶óÀÌµå ¿ÀÇÂ
							function() {
								$(this).next().slideToggle('fast');	
							}
						);
					}
				},
				error:  fnc_handle_error
			});
		}		

		/**
			0. function :	select box ±¸¼º
			1. params	 :
					-div_nam : selectbox id
					-xml_node_nam : °Ë»öÇÒ xml ³ëµå
					-ajax_url : ¿äÃ» url
					-sel_val : ¼±ÅÃµÉ °ª
					-option_string : ¿äÃ»½Ã ³Ñ¾î°¥ ÆÛ¶ó¹ÌÅÍ ½ºÆ®¸µ
					-start_idx			:	0ÀÌ¸é xml µ¥ÀÌÅÍ¸¸, 1ÀÌ¸é "ÀüÃ¼ ¶Ç´Â ¼±ÅÃ"µîÀÇ ÅØ½ºÆ®°¡ ÀÖÀ½
					-zero_idx_text	:	1ÀÏ°æ¿ì º¸¿©ÁÙ ÅØ½ºÆ®
					-cbo_wdt	:	ÄÞº¸¹Ú½º °¡·Î»çÀÌÁî
			ex)fnc_config_selectbox('cbo_cate_code','cate_code','/inc/getPageHtml/getCateCode.asp',null,'depth=1',1,'¼±ÅÃ','80');
		*/	
		var arr_glb_book_cate_next_max_len=new Array();
		function fnc_config_selectbox(div_nam,xml_node_nam,ajax_url,sel_val,option_string,start_idx,zero_idx_text,cbo_wdt){
			/*Ajax Request Debug*/
			fnc_req_debug(ajax_url,option_string,false);

			$.ajax({
				type: "post",
				url: ajax_url,
				contentType : 'application/x-www-form-urlencoded; charset=utf-8',
				data: option_string,
				dataType: "xml",
				success:   function(xml){
					var obj_xml = $(xml).find(xml_node_nam);
					var int_xml_size	=	obj_xml.size();
					var options = '';

					if(int_xml_size==0){
						//alert('##¾Ë¸²!!\n\nÄÞº¸¹Ú½º »ý¼º½Ã ÇÊ¿äÇÑ µ¥ÀÌÅÍ°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù..');
						if(start_idx==1){
							options += '<option value="">' + zero_idx_text + '</option>';	
						}	
						options += '<option value="">No Data....</option>';
						$('#'+div_nam).html(options);
						//location.href="/";
					}
					else{
						var k=0;
						var str_val,str_text,int_sel_idx=0;	
						if(start_idx==1){
							options += '<option value="">' + zero_idx_text + '</option>';	
							k++;
						}

						arr_glb_book_cate_next_max_len[div_nam] = new Array();
						obj_xml.each(function(){
							str_val = $("select_val",this).text();
							str_text = $("select_text",this).text();
							arr_glb_book_cate_next_max_len[div_nam][str_val] = $("next_max_len",this).text();
							if(sel_val==str_val){
								int_sel_idx = k;
							}	
							options += '<option value="' + str_val + '">' + str_text + '</option>';
							k++;
						});

						$('#'+div_nam).html(options);
						$('#'+div_nam+' option:eq('+int_sel_idx+')').attr('selected', 'selected');
						if(cbo_wdt !=null){$('#'+div_nam).css('width',cbo_wdt+'px');}
					}
				},
				error:  fnc_handle_error				
			});
		}

		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú°Ô½Ã¹° ÆäÀÌÂ¡,¸®½ºÆ® °ü·Ã ÇÔ¼ö Start¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/
		
		// °Ô½ÃÆÇ ¼³Á¤ ¹è¿­¼±¾ð(usage:arr_list_url['pagination1']='ajax_request.asp')
		var str_page_id			=	"div_pagination1";	// ÇöÀç ¼±ÅÃµÈ pagination div id,default=div_pagination1		
		var arr_list_url				=	new Array();			// Ajax¿äÃ» url 
		var arr_tbl_id				=	new Array();			// Å×ÀÌºí id
		var arr_pg_id				=	new Array();			//	pagination div id		
		var arr_pagesize			=	new Array();			// ÆäÀÌÁö´ç °Ô½Ã¹° ¼ö
		var arr_page				=	new Array();			// ÇöÀçÆäÀÌÁö
		var arr_thread				=	new Array();			// ¾²·¹µå¹øÈ£(ÇöÀç ¸Þ´º°ü¸®¿¡¼­ ¾²ÀÓ)
		var arr_ordcol				=	new Array();			//	Á¤·ÄÄÃ·³
		var arr_orddir				=	new Array();			//	Á¤·Ä¹æÇâ
		var arr_container			=	new Array();			// ÆäÀÌÁö ºí·° container div id
		var arr_sch_params	=	new Array();			//	°Ë»ö ÆÛ¶ó¹ÌÅÍ
		var arr_page_callback	=	new Array();			//	ÆäÀÌÁö ÄÝ¹éÇÔ¼ö
		var arr_callback			=	new Array();			//	ÄÝ¹éÇÔ¼ö

		/**
			0. function :	ÆäÀÌÁö ¿£Æ®¸®³ª ÀÌÀü/´ÙÀ½ Å¬¸¯½Ã »õ·Î¿î ÆäÀÌÁö load ÇÔ¼ö
			1. params	 :
					-page_id : ¼±ÅÃµÈ ÆäÀÌÁö ÀÎµ¦½º(ÆäÀÌÁö-1)
					-jq : pagination div
			2. plugin	:	jquery.pagination.js
				
		*/	
		function fnc_page_callback(page_id,jq){
			str_page_id = jq.attr("id"); // ÇöÀç ¼±ÅÃµÈ pagination div id, jq´Â 	pagination div
			fnc_config_list(arr_list_url[str_page_id],arr_tbl_id[str_page_id],arr_pg_id[str_page_id],page_id+1,arr_pagesize[str_page_id],arr_thread[str_page_id],arr_ordcol[str_page_id],arr_orddir[str_page_id],arr_container[str_page_id],arr_sch_params[str_page_id]);	
		}

		function fnc_page_callback2(page_id,jq){
			str_page_id = jq.attr("id"); // ÇöÀç ¼±ÅÃµÈ pagination div id	
			fnc_config_list2(arr_list_url[str_page_id],arr_tbl_id[str_page_id],arr_pg_id[str_page_id],page_id+1,arr_pagesize[str_page_id],arr_thread[str_page_id],arr_ordcol[str_page_id],arr_orddir[str_page_id],arr_container[str_page_id],arr_sch_params[str_page_id],arr_callback[str_page_id]);	
		}

		/**
			0. function :	¸®½ºÆ® ÆäÀÌÂ¡ »ý¼º
			1. params	 :
					-pg_id : ÆäÀÌÁö div ¸í
					-totcnt : ÃÑ°Ô½Ã¹°¼ö
					-pagesize : ÆäÀÌÁö´ç º¸¿©ÁÙ °Ô½Ã¹°¼ö
			2. plugin	:	jquery.pagination.js
				
		*/	
		function fnc_pagination(pg_id,totcnt,pagesize,page){
			$("#"+pg_id).pagination(totcnt, {
				num_edge_entries: 5,			// »çÀÌÆ® ÆäÀÌÁö ¿£Æ®¸® °¹¼ö	
				num_display_entries: 10,		// ÆäÀÌÁö ¿£Æ®¸® °¹¼ö(Áß°£¿µ¿ª)
				items_per_page:pagesize,	// ÆäÀÌÁö ´ç °Ô½Ã¹° ¼ö
				current_page:page,				// ÇöÀç ÆäÀÌÁö ÀÎµ¦½º
				prev_text:"¢¸ÀÌÀü",
				next_text:"´ÙÀ½ ¢º",
				link_to:"#",	
				ellipse_text:"¡¦",
				callback: eval(arr_page_callback[pg_id])	 // ÆäÀÌÁö Å¬¸¯½Ã Callback ÇÔ¼ö
			});			
		}

		/**
			0. function :	¸®½ºÆ® Å×ÀÌºí ¼¼ÆÃ
			1. params	 :
					-list_url : Ajax ¿äÃ» url
					-tbl_id : Å×ÀÌºí id
					-pg_id : ÆäÀÌÁö div id
					-page : ÇöÀçÆäÀÌÁö
					-pagesize : ÆäÀÌÁö´ç º¸¿©ÁÙ °Ô½Ã¹°¼ö
					-thread : ¸Þ´º ±íÀÌ(0:ÃÖ»óÀ§,1:ÇÏÀ§)
					-ordcol : Á¤·ÄÄÃ·³
					-orddir : Á¤·Ä¹æÇâ(ASC,DESC)
					-container: block area div ¸í
					-sch_params: °Ë»ö ÆÛ¶ó¹ÌÅÍ
			2. plugin	:	jquery.pagination.js,jquery.taconite.js
			3. ºñ°í : memu_mng_list_ajax.asp¿¡¼­ taconite XML ¸í·É¾î¿¡ ´ëÇÑÀÌÇØ°¡ ÇÊ¿ä
				
		*/	
		function fnc_config_list(list_url,tbl_id,pg_id,page,pagesize,thread,ordcol,orddir,container,sch_params){	
			//var str_querystring = "tbl_id="+tbl_id+'&pg_id='+pg_id+'&page='+page+'&pagesize='+pagesize+'&thread='+thread+'&ordcol='+ordcol+'&orddir='+orddir+'&list_url='+encodeURIComponent(list_url)+'&container='+container+'&'+sch_params;
			var str_querystring = "tbl_id="+tbl_id+'&pg_id='+pg_id+'&page='+page+'&pagesize='+pagesize+'&thread='+thread+'&ordcol='+ordcol+'&orddir='+orddir+'&container='+container+'&'+sch_params;

			str_page_id = pg_id;
			arr_list_url[pg_id] = list_url;
			arr_tbl_id[pg_id] = tbl_id;
			arr_pg_id[pg_id] = pg_id;
			arr_pagesize[pg_id] = pagesize;
			arr_page[pg_id] = page;
			arr_thread[pg_id] = thread;
			arr_ordcol[pg_id] = ordcol;
			arr_orddir[pg_id] = orddir;
			arr_container[pg_id] = container;
			arr_sch_params[pg_id] = sch_params;
			arr_page_callback[pg_id] = "fnc_page_callback";

			/*Ajax Request Debug*/
			fnc_req_debug(list_url,str_querystring,false);

			// ¸®½ºÆ® ·Îµù Ã³¸®
			fnc_load_list(tbl_id,null,'/img/common/ajax-loader_thick_circle.gif');

			$.ajax({
					 type: "post",
					 url: list_url,
					 data:str_querystring, 
					 dataType: "xml",
					 contentType : "application/x-www-form-urlencoded;charset=utf-8",
					// ¼º°ø
					 success: function(xml) {
						//fnc_unblockUI(container);
						fnc_tbl_stripe();
					 },
					 // ¿¡·¯
					// error: function(xhr){alert('##¾Ë¸²!! ¿¡·¯°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.\n\n¨ç À§Ä¡:'+list_url+'\n¨è ¼³¸í:'+fnc_xhr_status(xhr.status));fnc_unblockUI(container);}
					 error: function(xhr){alert('##¾Ë¸²!! ¿¡·¯°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.\n\n¨ç À§Ä¡:'+list_url+'\n¨è ¼³¸í:'+fnc_xhr_status(xhr.status));}
				 }); //close $.ajax(	
		}

		function fnc_config_list2(list_url,tbl_id,pg_id,page,pagesize,thread,ordcol,orddir,container,sch_params,callback){	 // callback Ãß°¡
			//var str_querystring = "tbl_id="+tbl_id+'&pg_id='+pg_id+'&page='+page+'&pagesize='+pagesize+'&thread='+thread+'&ordcol='+ordcol+'&orddir='+orddir+'&list_url='+encodeURIComponent(list_url)+'&container='+container+'&'+sch_params;
			var str_querystring = "tbl_id="+tbl_id+'&pg_id='+pg_id+'&page='+page+'&pagesize='+pagesize+'&thread='+thread+'&ordcol='+ordcol+'&orddir='+orddir+'&container='+container+'&'+sch_params;

			str_page_id = pg_id;
			arr_list_url[pg_id] = list_url;
			arr_tbl_id[pg_id] = tbl_id;
			arr_pg_id[pg_id] = pg_id;
			arr_pagesize[pg_id] = pagesize;
			arr_page[pg_id] = page;
			arr_thread[pg_id] = thread;
			arr_ordcol[pg_id] = ordcol;
			arr_orddir[pg_id] = orddir;
			arr_container[pg_id] = container;
			arr_sch_params[pg_id] = sch_params;
			arr_page_callback[pg_id] = "fnc_page_callback2";
			arr_callback[pg_id]	 = callback;

			/*Ajax Request Debug*/
			fnc_req_debug(list_url,str_querystring,false);

			// ¸®½ºÆ® ·Îµù Ã³¸®
			fnc_load_list(tbl_id,null,'/img/common/ajax-loader_thick_circle.gif');

			$.ajax({
					 type: "post",
					 url: list_url,
					 data:str_querystring, 
					 dataType: "xml",
					 contentType : "application/x-www-form-urlencoded;charset=utf-8",
					// ¼º°ø
					 success: function(xml) {
						fnc_unblockUI(container);
						if(callback != null){eval(callback);}
					 },
					 // ¿¡·¯
					 error: function(xhr){alert('##¾Ë¸²!! ¿¡·¯°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.\n\n¨ç À§Ä¡:'+list_url+'\n¨è ¼³¸í:'+fnc_xhr_status(xhr.status));fnc_unblockUI(container);}
				 }); //close $.ajax(	
		}

		/**
			0. function :	Ajax ¿¡·¯ ÇÚµé·¯
		*/		
		function fnc_handle_error (xhr, textStatus, errorThrown,container) {
			// typically only one of textStatus or errorThrown will have info
			alert('##¾Ë¸²!! ¿¡·¯°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.(¼³¸í-'+fnc_xhr_status(xhr.status)+')');
		}

		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú°Ô½Ã¹° ÆäÀÌÂ¡,¸®½ºÆ® °ü·Ã ÇÔ¼ö End¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/		
	


		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Úµµ¼­ºÐ·ù select box control °ü·Ã ÇÔ¼ö Start¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/

		/**
			0. function :	µµ¼­ Ä«Å×°í¸® select box °Ë»ö¹Ú½º Ã¼ÀÎ »ý¼º(¹ü¿ë)
			1. params	 :
					-div			:	S:½Ã¸®Áî/B:µµ¼­
					-cate_code :  Çö µµ¼­»óÀ§ µµ¼­ºÐ·ùÄÚµå
					-cbo_name_prefix : °Ë»ö select box name,id Á¢µÎ»ç(³×ÀÌ¹ÖÀº Á¢µÎ»ç+depthÇü½ÄÀÌ´Ù.)
					-insertbefore_element_id : Ã¹¹øÂ° select boxµÚ¿¡ ¿Ã element id Áï ÀÌ ele ¾Õ¿¡ Ã¹¹øÂ° selectbox¸¦ ºÙÀÎ´Ù.
					-col_name : optionÀÇ value¿¡ µé¾î°¥ °ª(µµ¼­ Ä«Å×°í¸®°°Àº°æ¿ì´Â cate_code³ª cidx¸¦ ¾²´Â °æ¿ì°¡ ÀÖ±â¶§¹®)
					-sch_func : onchange ÀÌº¥Æ®½Ã È£ÃâÇÔ¼ö
					-fnc_app_yn : onchange ÀÌº¥Æ®½Ã È£ÃâÇÔ¼ö ÀÛµ¿ ¿©ºÎ(true/false)
			2.	ºñ°í : 
				ÄÄÇ»ÅÍ¿Í ÀÏ¹Ýµµ¼­ÀÇ °æ¿ì depth°¡ Á¾¼ÓÀÌ µÇ´Â °ü°èÀÌ¹Ç·Î depth 2ÀÇ selectboxÀÇ onchange ÀÌº¥Æ®½Ã »ý¼ºÇØÁØ´Ù.
				ex)
					$("#"+str_sel_tmp_id).change(function(){
						fnc_sch_sel_box_etc(this,cate_code,div,str_sel_tmp_id,int_tmp_depth,sch_func,fnc_app_yn);// ºÎ¸ð ÆäÀÌÁö¿¡¼­ È£Ãâ
					});

				³ª¸ÓÁö µµ¼­ ºÐ·ùµéÀº depthº° Ä«Å×°í¸®°¡ Á¾¼ÓÀûÀÌÁö ¾ÊÀ¸¹Ç·Î ÀÌ ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© ±×³É ³ª¿­ÇÑ´Ù.
		*/	

		function fnc_book_cate_selectbox_gen(div,cate_code,cbo_name_prefix,insertbefore_element_id,col_name,sch_func,fnc_app_yn){
			/*Ajax Request Debug*/
			fnc_req_debug("/inc/getPageHtml/getBookSeriesSchForChain.asp","cate_code="+cate_code+"&col_name="+col_name,false);

			$.ajax({
				type: "post",
				url: "/inc/getPageHtml/getBookSeriesSchForChain.asp",
				contentType : 'application/x-www-form-urlencoded; charset=utf-8',
				data: "cate_code="+cate_code+"&col_name="+col_name,
				dataType: "xml",
				success:   function(xml){
					var obj_xml = $(xml).find("cate_code_sel");
					var int_xml_size	=	obj_xml.size();
					var options = '';

					if(int_xml_size==0){
						alert('##¾Ë¸²!!\n\nÄÞº¸¹Ú½º »ý¼º½Ã ÇÊ¿äÇÑ µ¥ÀÌÅÍ°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù..');
						return;
					}
					else{
						var k=0;
						var str_val,str_text,int_depth
						var int_cur_len,int_next_len,int_tmp_next_len;
						var str_sel_id,str_sel_tmp_id;
						var int_tmp_depth = 0;
						var str_cur_sel_obj_id,str_cur_sel_obj_seq; 

						obj_xml.each(function(){
							str_val = $("select_val",this).text();				// ºÐ·ù°ª
							str_text = $("select_text",this).text();				// ºÐ·ù¸í
							int_depth = $("depth",this).text();					// depth
							int_cur_len = $("cur_max_len",this).text();		// ÇöÀç°ª ±æÀÌ
							int_next_len = $("next_max_len",this).text();	// ´ÙÀ½depth ±æÀÌ(±æÀÌ°¡ 4°¡¾Æ´Ï¸é ÇöÀç ºÐ·ù¿¡ Á¾¼ÓÀûÀÎ °ü°è¸¦ ³ªÅ¸³½´Ù....ex) ÀÏ¹Ý(0701) > ½ºÆ÷Ã÷(070101) > ³ó±¸(07010102) --  ÀÌ·±¼³°è¸¦ ÇÏ´Ù´Ï.. ÃÖÃÊ¼³°èÀÚ¸¦ Å¿ÇÒ»Ó

							if(int_cur_len == 4){ // °èÃþÀû ±¸Á¶°¡ ¾Æ´Ñ ºÐ·ùÄÚµåÀÇ ±æÀÌ´Â 4ÀÌ´Ù..

								if(int_tmp_depth != int_depth){ 
									
									str_sel_id = cbo_name_prefix+"_"+int_depth;

									if(k > 0){ // ±× ´ÙÀ½ select box ÀÏ°æ¿ì options¸¦ »ý¼ºÇÑ ÈÄ ´ÙÀ½ select box¸¦ À§ÇØ options¸¦ ÃÊ±âÈ­½ÃÅ²´Ù.
										$('#'+str_sel_tmp_id).html(options);
										options = '<option value="">¡å ºÐ·ù'+parseInt(k+1)+'</option>';
									}

									if(k==0){ // Ã¹¹øÂ° select box / ÁöÁ¤µÈ ¿¤·¯¸ÕÆ® ¾Õ(insertbefore_element_id before)¿¡ ºÙÀÓ
										$("#"+insertbefore_element_id).before("<select name=" +str_sel_id+" id=" +str_sel_id+" class='book__series_cate_sel'></select>");
										options = '<option value="">¡å ºÐ·ù'+parseInt(k+1)+'</option>';
									}
									else{ // ÀÌ ÈÄ select box / ÀÌÀü select box ´ÙÀ½(str_sel_tmp_id after)¿¡ ºÙÀÓ
										$("#"+str_sel_tmp_id).after("<select name=" +str_sel_id+" id=" +str_sel_id+" class='book__series_cate_sel'></select>");
										$("#"+str_sel_tmp_id).change(function(){
											// onchange ÇÔ¼ö ÀÛµ¿¿©ºÎ
											if(fnc_app_yn){eval(sch_func);	}
										});
									}	

									str_sel_tmp_id = str_sel_id;
									int_tmp_depth = int_depth;
									int_tmp_next_len = int_next_len;
									k++;
								}  // if(int_tmp_depth != int_depth) end

								options += '<option value="' + str_val + '">' + str_text + '</option>';
							}
						}); // obj_xml.each end

						$('#'+str_sel_tmp_id).html(options);
						//alert(int_tmp_next_len);
						if(int_next_len == 4 || int_tmp_next_len==0){ 
							$("#"+str_sel_tmp_id).change(function(){
								// onchange ÇÔ¼ö ÀÛµ¿¿©ºÎ
								if(fnc_app_yn){eval(sch_func);	}
							});
						}
						else{
							$("#"+str_sel_tmp_id).change(function(){
								fnc_sch_sel_box_etc(this,cate_code,div,str_sel_tmp_id,int_tmp_depth,sch_func,fnc_app_yn);// ºÎ¸ð ÆäÀÌÁö¿¡¼­ È£Ãâ
							});
						}	
					}
				},
				error:  fnc_handle_error				
			});
		}

		/**
			0. function :  µµ¼­/½Ã¸®ÁîÁ¤º¸ °øÅë - ÇÏÀ§ °Ë»ö µµ¼­ ºÐ·ù  select box »ý¼º(ÀÏ¹Ý/µµ°¨/ÄÄÇ»ÅÍµµ¼­¿¡ ÇÑÇÔ)
			1. params	:
				-this_obj		:	ÇöÀç change ÀÌº¥Æ®°¡ ¹ß»ýÇÑ »óÀ§ select box °´Ã¼
				-cate_code	:	ÃÖ»óÀ§ µµ¼­ºÐ·ùÄÚµå
				-div				:	ÇÔ¼ö ºÐ·ù(S:½Ã¸®Áî/B:µµ¼­), ÇöÀç »ç¿ëµÇ´Â ºÎºÐ ¾øÀ½,ÀÏ´Ü ÁöÁ¤
				-str_sel_id		:	ÇöÀç change ÀÌº¥Æ®°¡ ¹ß»ýÇÑ »óÀ§ select box °´Ã¼ id
				-int_depth		:	ÇöÀç change ÀÌº¥Æ®°¡ ¹ß»ýÇÑ »óÀ§ µµ¼­ºÐ·ù depth
				-sch_func		:	°Ë»ö ÇÔ¼ö
			2. ºñ°í	: jquery.user_custom.jsÀÇ fnc_config_selectbox ÇÔ¼ö·Î »ý¼ºÇÔ
		*/		
		var arr_new_depth = new Array();
		var arr_new_div = new Array();
		var arr_new_sch_func = new Array();

		function fnc_sch_sel_box_etc(this_obj,cate_code,div,str_sel_id,int_depth,sch_func,fnc_app_yn){

			//alert('fnc_sch_sel_box_etc');
			//alert(str_sel_id);

			var int_new_depth = parseInt(int_depth)+1;
			var str_name_prefix	 =	str_sel_id.substring(0,str_sel_id.length-1);
			var str_new_sel_id = str_name_prefix+int_new_depth.toString();

			//alert(int_new_depth);

			arr_new_depth[str_new_sel_id] = int_new_depth;
			arr_new_div[str_new_sel_id] = div;
			arr_new_sch_func[str_new_sel_id]=sch_func;

			// ÇöÀç ¹Ú½ºº¸´Ù ÇÏÀ§ÀÌ¸é¼­ Å¬·¡½º°¡ book__series_cate_sel ÀÎ(~ .book__series_cate_sel) select box »èÁ¦
			$("select[name="+str_sel_id+"] ~ .book__series_cate_sel").remove();

			if(this_obj.value !=''){
				// ÇÏÀ§ µµ¼­ ºÐ·ù select box »ý¼º	
				$("#"+str_sel_id).after("<select name=" +str_new_sel_id+" id=" +str_new_sel_id+" class='book__series_cate_sel'></select>");
				if(div=='S'){ // ½Ã¸®Áî(col_name=cidx)
					fnc_config_selectbox(str_new_sel_id,'cate_code_sel','/inc/getPageHtml/getBookCateCodeSch.asp',null,'parent_cidx='+this_obj.value+'&lv_yn=Y&cate_code='+cate_code+'&depth='+int_new_depth,1,'¡å ºÐ·ù'+(int_new_depth-1).toString(),'100');
				}
				else{ // µµ¼­(col_name=cate_code)
					fnc_config_selectbox(str_new_sel_id,'cate_code_sel','/inc/getPageHtml/getBookCateCodeSch.asp',null,'parent_code='+this_obj.value+'&lv_yn=Y&cate_code='+cate_code+'&depth='+int_new_depth+'&col_name=cate_code',1,'¡å ºÐ·ù'+(int_new_depth-1).toString(),'100');
				}
				
				// ÇöÀç select box¿¡ change ÀÌº¥Æ® ¼¼ÆÃ
				$("#"+str_new_sel_id).change(function(){
					var int_next_cate_max_len = arr_glb_book_cate_next_max_len[this.id][this.value]; //  jquery.user_custom.jsÀÇ fnc_config_selectbox¿¡¼­ ¼¼ÆÃÇÔ
					if(int_next_cate_max_len > 0){ // ÇÏÀ§ µµ¼­ ºÐ·ù ÀÖÀ½
						fnc_sch_sel_box_etc(this,cate_code,arr_new_div[this.id],this.id,arr_new_depth[this.id],arr_new_sch_func[this.id],true);
					}
					else{ // ÇÏÀ§ µµ¼­ ºÐ·ù ¾øÀ½
						// ÇöÀç ¹Ú½ºº¸´Ù ÇÏÀ§ÀÎ select box »èÁ¦
						$("select[name="+this.id+"] ~ .book__series_cate_sel").remove();
						// onchange ÇÔ¼ö ÀÛµ¿¿©ºÎ
						if(fnc_app_yn){eval(arr_new_sch_func[this.id]);	}	
					}
				});
			}

			// onchange ÇÔ¼ö ÀÛµ¿¿©ºÎ
			if(fnc_app_yn){eval(sch_func);	}	
		}

		/**
			0. function :	µµ¼­ Ä«Å×°í¸® select box °Ë»ö¹Ú½º »ý¼º(¡Ú¡Ú¡Ú !!!!!!!!!!!!!!!µµ¼­ ¼öÁ¤ Àü¿ë!!!!!!!!!!!!! ¡Ú¡Ú¡Ú¡Ú)
			1. params	 :
					-div			:	S:½Ã¸®Áî/B:µµ¼­
					-cate_code :  Çö µµ¼­»óÀ§ µµ¼­ºÐ·ùÄÚµå
					-cbo_name_prefix : °Ë»ö select box name,id Á¢µÎ»ç(³×ÀÌ¹ÖÀº Á¢µÎ»ç+depthÇü½ÄÀÌ´Ù.)
					-insertbefore_element_id : Ã¹¹øÂ° select boxµÚ¿¡ ¿Ã element id Áï ÀÌ ele ¾Õ¿¡ Ã¹¹øÂ° selectbox¸¦ ºÙÀÎ´Ù.
					-col_name : optionÀÇ value¿¡ µé¾î°¥ °ª(µµ¼­ Ä«Å×°í¸®°°Àº°æ¿ì´Â cate_code³ª cidx¸¦ ¾²´Â °æ¿ì°¡ ÀÖ±â¶§¹®)
					-sch_func : onchange ÀÌº¥Æ®½Ã È£ÃâÇÔ¼ö
					-fnc_app_yn : onchange ÀÌº¥Æ®½Ã È£ÃâÇÔ¼ö ÀÛµ¿ ¿©ºÎ(true/false)
			2.	ºñ°í : 
				ÄÄÇ»ÅÍ¿Í ÀÏ¹Ýµµ¼­ÀÇ °æ¿ì depth°¡ Á¾¼ÓÀÌ µÇ´Â °ü°èÀÌ¹Ç·Î depth 2ÀÇ selectboxÀÇ onchange ÀÌº¥Æ®½Ã »ý¼ºÇØÁØ´Ù.
				ex)
					$("#"+str_sel_tmp_id).change(function(){
						fnc_sch_sel_box_etc(this,cate_code,div,str_sel_tmp_id,int_tmp_depth,sch_func,fnc_app_yn);// ºÎ¸ð ÆäÀÌÁö¿¡¼­ È£Ãâ
					});

				³ª¸ÓÁö µµ¼­ ºÐ·ùµéÀº depthº° Ä«Å×°í¸®°¡ Á¾¼ÓÀûÀÌÁö ¾ÊÀ¸¹Ç·Î ÀÌ ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© ±×³É ³ª¿­ÇÑ´Ù.
		*/	

		function fnc_book_cate_selectbox_gen2(div,cate_code,cbo_name_prefix,insertbefore_element_id,col_name,sch_func,fnc_app_yn){
			/*Ajax Request Debug*/
			fnc_req_debug("/inc/getPageHtml/getBookSeriesSchForChain.asp","cate_code="+cate_code+"&col_name="+col_name,false);

			$.ajax({
				type: "post",
				url: "/inc/getPageHtml/getBookSeriesSchForChain.asp",
				contentType : 'application/x-www-form-urlencoded; charset=utf-8',
				data: "cate_code="+cate_code+"&col_name="+col_name,
				dataType: "xml",
				success:   function(xml){
					var obj_xml = $(xml).find("cate_code_sel");
					var int_xml_size	=	obj_xml.size();
					var options = '';

					if(int_xml_size==0){
						alert('##¾Ë¸²!!\n\nÄÞº¸¹Ú½º »ý¼º½Ã ÇÊ¿äÇÑ µ¥ÀÌÅÍ°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù..');
						return;
					}
					else{
						var k=0;
						var str_val,str_text,int_depth
						var int_cur_len,int_next_len,int_tmp_next_len;
						var str_sel_id,str_sel_tmp_id;
						var int_tmp_depth = 0;
						var str_cur_sel_obj_id,str_cur_sel_obj_seq; 
						var bln_stop_tf = false;					// out of each loop 	
						var bln_extensible_cate_tf = false; // È®Àå°¡´ÉÇÑ Ä«Å×°í¸®ÀÎÁö

						// ±âµî·ÏµÈ µµ¼­ÀÇ ºÐ·ùÄÚµå(depth°¡ 2,3,4)
						var arr_book_cate_code=new Array(2);
						arr_book_cate_code[0]	 =	$("input[@name='hid_cate_code2']").val();
						arr_book_cate_code[1]	 =	$("input[@name='hid_cate_code3']").val();
						arr_book_cate_code[2]	 =	$("input[@name='hid_cate_code4']").val();

						/*
						alert(arr_book_cate_code[0]);
						alert(arr_book_cate_code[1]);
						alert(arr_book_cate_code[2]);
						return;
						*/

						obj_xml.each(function(){
							str_val = $("select_val",this).text();				// ºÐ·ù°ª
							str_text = $("select_text",this).text();				// ºÐ·ù¸í
							int_depth = $("depth",this).text();					// depth
							int_cur_len = $("cur_max_len",this).text();		// ÇöÀç°ª ±æÀÌ
							int_next_len = $("next_max_len",this).text();	// ´ÙÀ½depth ±æÀÌ(±æÀÌ°¡ 4°¡¾Æ´Ï¸é ÇöÀç ºÐ·ù¿¡ Á¾¼ÓÀûÀÎ °ü°è¸¦ ³ªÅ¸³½´Ù....ex) ÀÏ¹Ý(0701) > ½ºÆ÷Ã÷(070101) > ³ó±¸(07010102) -- ÀÌ·±¼³°è¸¦ ÇÏ´Ù´Ï.. ÃÖÃÊ¼³°èÀÚ¸¦ Å¿ÇÒ»Ó

							if(int_tmp_depth != int_depth){ 
								
								str_sel_id = cbo_name_prefix+"_"+int_depth;

								if(k > 0){ // ±× ´ÙÀ½ select box ÀÏ°æ¿ì options¸¦ »ý¼ºÇÑ ÈÄ ´ÙÀ½ select box¸¦ À§ÇØ options¸¦ ÃÊ±âÈ­½ÃÅ²´Ù.
									$('#'+str_sel_tmp_id).html(options);
									$('#'+str_sel_tmp_id).val(arr_book_cate_code[int_tmp_depth-2]);

									options = '<option value="">¡å ºÐ·ù'+parseInt(k+1)+'</option>';
								}

								if(k==0){ // Ã¹¹øÂ° select box / ÁöÁ¤µÈ ¿¤·¯¸ÕÆ® ¾Õ(insertbefore_element_id before)¿¡ ºÙÀÓ
									$("#"+insertbefore_element_id).before("<select name=" +str_sel_id+" id=" +str_sel_id+" class='book__series_cate_sel'></select>");
									options = '<option value="">¡å ºÐ·ù'+parseInt(k+1)+'</option>';
								}
								else{ // ÀÌ ÈÄ select box »ý¼º½Ã / ÀÌÀü select box ´ÙÀ½(str_sel_tmp_id after)¿¡ ºÙÀÓ

									if(int_tmp_next_len != 4){

										arr_new_depth[str_sel_tmp_id] = int_tmp_depth;
										arr_new_div[str_sel_tmp_id] = div;

										if(arr_book_cate_code[int_depth-2] != ''){ // ±â µî·ÏµÈ °ªÀÌ ÀÖÀ» °æ¿ì
											$("#"+str_sel_tmp_id).after("<select name=" +str_sel_id+" id=" +str_sel_id+" class='book__series_cate_sel'></select>");
											bln_extensible_cate_tf = true;

											$("#"+str_sel_tmp_id).change(function(){
												fnc_sch_sel_box_etc(this,cate_code,arr_new_div[this.id],this.id,arr_new_depth[this.id],sch_func,fnc_app_yn);// ÇÏÀ§ Ä«Å×°í¸® select box »ý¼º
											});
										}			
										else{
											bln_stop_tf = true;

											$("#"+str_sel_tmp_id).change(function(){
												fnc_sch_sel_box_etc(this,cate_code,arr_new_div[this.id],this.id,arr_new_depth[this.id],sch_func,fnc_app_yn);// ÇÏÀ§ Ä«Å×°í¸® select box »ý¼º
											});

											return false; // exit each
										}
									}
									else{
										$("#"+str_sel_tmp_id).after("<select name=" +str_sel_id+" id=" +str_sel_id+" class='book__series_cate_sel'></select>");	
									}
								}	

								str_sel_tmp_id = str_sel_id;
								int_tmp_depth = int_depth;
								int_tmp_next_len = int_next_len;
								k++;
							}  // if(int_tmp_depth != int_depth) end
							
							if(bln_extensible_cate_tf==true){
								if(str_val.indexOf(arr_book_cate_code[int_depth-3]) != -1){
									options += '<option value="' + str_val + '">' + str_text + '</option>';	
								}	
							}
							else{
								options += '<option value="' + str_val + '">' + str_text + '</option>';	
							}

						}); // obj_xml.each end

						if(bln_stop_tf==false){
							$('#'+str_sel_tmp_id).html(options);
							$('#'+str_sel_tmp_id).val(arr_book_cate_code[int_tmp_depth-2]);

							if(int_tmp_next_len != 4){
								if(int_depth != 4){
									arr_new_depth[str_sel_tmp_id] = int_tmp_depth;
									arr_new_div[str_sel_tmp_id] = div;
									$("#"+str_sel_tmp_id).change(function(){
										fnc_sch_sel_box_etc(this,cate_code,arr_new_div[this.id],this.id,arr_new_depth[this.id],sch_func,fnc_app_yn);// ºÎ¸ð ÆäÀÌÁö¿¡¼­ È£Ãâ
									});
								}
							}	
						} // if(bln_stop_tf==false) end
					}
				},
				error:  fnc_handle_error				
			});
		}

		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Úµµ¼­ºÐ·ù select box control °ü·Ã ÇÔ¼ö End¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/


		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú À¥¿¡µðÅÍ(tinyMCE) °ü·Ã ÇÔ¼ö Start¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/
		/*
			À¥ ¿¡µðÅÍ ÃÊ±âÈ­
			/cominc/web_editor/tiny_mce/tiny_mce.js use
		*/
		function fnc_webeditor_inti(width,height,tbar_loc,selector,button_opt){
			tinyMCE.init({
				// General options
				mode : "textareas",
				browsers : "msie,gecko,opera",
				language : "ko",
				theme : "advanced",			
				editor_selector : selector, // ÇØ´ç Å¬·¡½º¸¦ °¡Áø ¿¤·¯¸ÕÆ®¸¸
				width :	 width,
				height :	 height,
				nowrap : false,
				force_p_newlines : false,
				force_br_newlines : true,
				convert_newlines_to_brs : true,
				paste_auto_cleanup_on_paste : true,
				init_instance_callback : "fcn_init_instance",
				plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

				// Theme options
				theme_advanced_buttons1	: button_opt ,
				theme_advanced_buttons2	: "",
				theme_advanced_buttons3	: "",
				theme_advanced_fonts : "±¼¸²=±¼¸²;¹ÙÅÁ=¹ÙÅÁ;µ¸¿ò=µ¸¿ò;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Verdana=verdana",
				theme_advanced_toolbar_location : tbar_loc,
				theme_advanced_toolbar_align : "left",
				theme_advanced_resizing : false
			});
		}

		/*
			À¥ ¿¡µðÅÍ - ÀÎ½ºÅÏ½º ÃÊ±âÈ­ ÈÄ Loading end
		*/
		function fcn_init_instance(inst){
			inst.setProgressState(0);
		}


		/*
			À¥ ¿¡µðÅÍ ¸ðµå º¯°æ(HTML <-> ¿¡µðÅÍ)
			/cominc/web_editor/tiny_mce/tiny_mce.js use
		*/
		function fnc_toggleEditor(id) {
			var elm = document.getElementById(id);

			if (tinyMCE.getInstanceById(id) == null)
				tinyMCE.execCommand('mceAddControl', false, id);
			else
				tinyMCE.execCommand('mceRemoveControl', false, id);
		}

		/*
			À¥ ¿¡µðÅÍ Loading Start
		*/
		function fnc_ajax_load(id) {
			window.status=id;
			var elm = tinyMCE.get(id);
			elm.setProgressState(1);
		}
		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡ÚÀ¥¿¡µðÅÍ(tinyMCE) °ü·Ã ÇÔ¼ö End¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/

		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú ¹Ìµð¾îÇÃ·¹ÀÌ¾î Start ¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/
		function obj_wmv_player(w,h,src,as) {
			var l,t,w,h,src,as;
			html = '';
			html += '<object id="edu_player" name="edu_player" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';
			html += '		standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
			html += '	<param name="URL" value="'+ src +'">';
			html += '	<param name="autoStart" value="'+ as +'">';
			html += '	<param name="balance" value="1">';
			html += '	<param name="enableContextMenu" value="false">';
			html += '	<param name="enabled" value="true">';
			html += '	<param name="ShowControls" value="true">';
			html += '	<param name="fullScreen" value="0">';
			html += '	<param name="invokeURLs" value="true">';
			html += '	<param name="mute" value="false">';
			html += '	<param name="rate" value="false">';
			html += '	<param name="stretchToFit" value="1">';
			html += '	<param name="volume" value="80">';
			html += '	<param name="uiMode" value="none">';
			html += '	<param name="SAMIFileName" value="false">';
			html += '	<param name="SAMILang" value="false">';
			html += '	<param name="SAMIStyle" value="false">';
			html += '<\/object>';
			document.write(html);
		}
		/*¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú ¹Ìµð¾îÇÃ·¹ÀÌ¾î End ¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú¡Ú*/

		/**
			0. function :	e-book view
			1. params	 :
					-isbn : isbn
					-folder : child,primary..µî	
		*/	
		function fnc_ebook_open_adm(idx,folder){
			window.open('about:blank','win_ebook','width=960,height=740, resizable=0');
			window.open('/inc/incOpen_Ebook.asp?idx='+idx+'&folder='+folder,target='win_ebook');
		}