	//FILEMANAGER POPUP
	function fn_open_filemanager()
	{
		var pop_fm = window.open('/pages/common/filemanager/','pop_fm','resizable=yes,scrollbars=yes,width=630,height=600');
		pop_fm.focus();
	}
	/*
	*Áß¿äÇÑ ÇÔ¼ö: ¿ø·¡ ¿ëµµ´Â ¼îÇÎ¸ô¿¡¼­ »ç¿ëÇÏ±â À§ÇÔÀÌ¾úÀ¸³ª
	*ajaxSubmit ½Ã SKINÀÇ BODYºÎºÐ ³»¿ëº¯°æÀ» À§ÇØ ¹ü¿ëÀûÀ¸·Î»ç¿ëµÈ´Ù.
	*ÀÌ ÇÔ¼ö ¹ÛÀ» ½Î°í ÀÖ´Â, fn_fcon_post ´Â fn_ajax_redirect·Î ÃÖÁ¾º¯°æÇÒ¿¹Á¤ÀÓ. 
	*renaming from fn_ajax_request_body ---> fn_ajax_request_body
	*/
	function fn_ajax_request_body(f,tarFunc)
	{
		if(!f)return;
		if(!tarFunc)tarFunc = "fn_response_page";
		//RSH
		fn_set_history(f);
		//
		ajaxSubmit(f,tarFunc);	
	}

//CALLED BY PAGINGHANDLER	
	function fn_paging_handler_forSearch(id_page,page,id_linecnt,linecnt)
	{
		var f = document.getElementById('schF');
		return fn_paging_hadler_front(f,id_page,page,id_linecnt,linecnt);
	}
	function fn_paging_handler(id_page,page,id_linecnt,linecnt)
	{
		var f = document.getElementById('fpaging');
		//var f = fn_create_form('viewMyOrderForm','post','/pages/ecommerce/cart/viewMyOrderAction.php3');
		return fn_paging_hadler_front(f,id_page,page,id_linecnt,linecnt);
	}
	function fn_paging_hadler_front(f,id_page,page,id_linecnt,linecnt)
	{
		var strAction = f.action;
		var tmpAction = strAction;
		var pos = strAction.indexOf("?");//querySTring ¿©ºÎ
		if(pos>0)
		{
			var url = strAction.substr(0,pos);
			var qstr = strAction.substr(pos+1);
			var arr = qstr.split("&");
			var hasPage=false;
			var hasLine=false;

			if(arr.length>0)
			{
				for(i=0;i<arr.length;i++)
				{
					if(hasPage && hasLine)break;
					if(arr[i].indexOf(id_page))
					{
						arr[i] = id_page+"="+page;
						hasPage = true;
					}	
					else if(arr[i].indexOf(id_linecnt))
					{
						arr[i] = id_linecnt+"="+linecnt;
						hasLine = true;
					}
				}
				qstr = arr.join("&");
			}
			if(!hasPage)
			{
				if(qstr.replace(" ","") != "")
					qstr = qstr + "&" + id_page + "=" +page;
				else qstr = id_page + "=" +page;
			}
			if(!hasLine)qstr = qstr + "&" + id_linecnt + "=" +linecnt;
						
			strAction = url + "?" + qstr;
		}
		else strAction = strAction + "?" + id_page + "=" + page + "&" + id_linecnt + "=" + linecnt;
		
		f.action = strAction;
		
		//custom
		fn_ajax_request_body(f);
		//
		//if(!f.noRollBack)f.action = tmpAction;	/*ajaxF ÇÏÀ§¿¡ hidden ÄÜÆ®·Ñ noRollBackÀ» ÁÖ¸é ÆûÀÇ action URLÀ» ·Ñ¹éÇÏÁö ¾Ê´Â´Ù.071004*/	
	}
	/*fcon FORMÀ» ÀÌ¿ëÇÔ.-->071027 µ¿Àû Æû»ý¼ºÀ» ÅëÇØ¼­ ÇÏµµ·Ï º¯°æ
	*Æ¯Á¤ action url À» ÁöÁ¤ÇØ¼­ ajax form À» Àü¼ÛÇÏ´Â ¹ü¿ëÇÔ¼ö.
	*naming º¯°æ : fn_fcon_post -> fn_ajax_redirect_body
	*ÇÑ´ÞÈÄ »èÁ¦ ÇÒ °Í
	
	function fn_fcon_post(action_url,obj)
	{
		fn_ajax_redirect_body(action_url);
	}
	*/
/*
*SKIN consists of TOP/LEFT/BODY/RIGHT/BOTTOM.
*fn_ajax_redirect_ °è¿­ÀÇ function µéÀº °¢°¢ SKINÀÇ °¢ ºÎºÐÀ»
*AJAX±â¹ÝÀ¸·Î REDIRECT ÇÏ±â À§ÇØ »ç¿ëµÈ´Ù.
*/
	/*AJAX REDIRECT FOR BODY related with fn_response_page*/
	function fn_ajax_redirect_body(action_url)
	{
		fn_ajax_redirect(action_url,fn_ajax_request_body);
	}
	/*TODO:AJAX REDIRECT FOR LEFT*/
	function fn_ajax_redirect_left(){}
	/*TODO:AJAX REDIRECT FOR RIGHT*/
	function fn_ajax_redirect_right(){}
//
	function fn_get_background(ven_idx)
	{
		if(_bg_cnt == null || _bg_menu == null)return;
		if(_bg_cnt>1)
		{
			if(ven_idx>0 && _bg_menu[ven_idx] != "")document.body.background = _bg_menu[ven_idx];
		}
	}
/*LEFT*/
	//proc °øÅë	
	function fn_post_left_proc_core(msgHandler)
	{
		var f = document.getElementById('fleft');
		ajaxSubmit(f,msgHandler);		
	}
	
	function fn_post_left_proc(ven_idx,msgHandler)
	{
		if(ven_idx==null)return false;
		if(msgHandler==null || msgHandler=='')msgHandler = 'fn_response_left';
		var f = document.getElementById('fleft');
		if(f.ven_idx.value == ven_idx)return false;
		else{
			f.ven_idx.value = ven_idx;
			fn_post_left_proc_core(msgHandler);
		}
		return true;
	}
	
	function fn_response_left_proc(responseText)
	{
		var div_left = document.getElementById('div_left');
		div_left.innerHTML = responseText;	
	}
	
	//proc ÀÀ¿ë
	function fn_post_left(ven_idx,msgHandler,left_menu_use)
	{
		if(msgHandler==null)msgHandler='';
		return fn_post_left_proc(ven_idx,msgHandler);
	}
	
	function fn_response_left(responseText){
		fn_response_left_proc(responseText);
		var f = document.getElementById('fcon');
		if(f==null)return;
		ajaxSubmit(f,"fn_response_page");
	}
//
	function lmbg(objRef, state, color1, color2) {
		objRef.style.backgroundColor = (1 == state) ? color2 : color1;
		objRef.style.alpha = '30';
		return;
	}
	function fn_go_banner(link,target){
		if(!link)return;
		if(!target)target="_blank";
		if(target=="_self")
		{
			location.href=link;
		}
		else
		{
			var popUp = window.open(link,'pop');
			popUp.focus();
		}
	}
	/*
	* body_ecomm.php3 ¿¡¼­ Ãß°¡µÈ div_appendixµé(div_header_below, div_bottom_upon À» À§ÇÔ)
	* »ç¿ëµÈ ÇÔ¼ö  : fn_response_page, fn_ecomm_detail
	*/
	function fn_div_appendix_reset()
	{
		var div_header_below	= document.getElementById('div_header_below');
		var div_bottom_upon		= document.getElementById('div_bottom_upon');
		var div_cont_top		= document.getElementById('div_cont_top');

		if(div_header_below != null)
		{
			div_header_below.style.display = 'none';
			div_header_below.innerHTML = "";
		}
		if(div_bottom_upon != null)
		{
			div_bottom_upon.style.display = 'none';
			div_bottom_upon.innerHTML = "";
		}	
		if(div_cont_top != null)
		{
			div_cont_top.style.display = 'none';
			div_cont_top.innerHTML = "";
		}
	}
	
	function fn_response_page(responseText){
		var div_cont	= document.getElementById('div_cont');
		var div_bottom	= document.getElementById('div_bottom');
		var div_a		= document.getElementById('div_a');
		
		var div_cont_top_value	= "";
		var div_cont_value 		= responseText;
		var div_head_value		= "";
		var div_foot_value		= "";
		
		fn_div_appendix_reset();
		
		/*
		*added on by Sam,Kim at 071222
		*for XML (from bodyAction_ven_ecomm.php3)
		*/
		
		if(request != null && request.responseXML != null && request.responseXML.getElementsByTagName("rtn_type") != null && request.responseXML.getElementsByTagName("rtn_type")[0] != null)
		{
			var typeNode = request.responseXML.getElementsByTagName("rtn_type");
			if(typeNode[0].firstChild.nodeValue =='1')
			{
				var headNode 	= request.responseXML.getElementsByTagName("div_header_below");
				var bodyTopNode = request.responseXML.getElementsByTagName("div_cont_top");
				var bodyNode	= request.responseXML.getElementsByTagName("div_cont");
				var footNode	= request.responseXML.getElementsByTagName("div_bottom_upon");
				
				var div_cont_top		= document.getElementById('div_cont_top');
				var div_header_below	= document.getElementById('div_header_below');
				var div_bottom_upon		= document.getElementById('div_bottom_upon');

				div_head_value		= headNode[0].firstChild.nodeValue;
				div_cont_top_value	= bodyTopNode[0].firstChild.nodeValue;
				div_cont_value		= bodyNode[0].firstChild.nodeValue;
				div_foot_value		= footNode[0].firstChild.nodeValue;
				

				if(div_head_value != "" && div_header_below != null)
				{
					div_header_below.style.display = 'block';
					div_header_below.innerHTML = div_head_value;
				}
				
				if(div_foot_value != "" && div_bottom_upon != null)
				{
					div_bottom_upon.style.display = 'block';
					div_bottom_upon.innerHTML = div_foot_value;
				}
				
				if(div_cont_top_value != "" && div_cont_top != null)
				{
					div_cont_top.style.display = 'block';
					div_cont_top.innerHTML = div_cont_top_value;
				}
			}
		}
		div_cont.innerHTML = div_cont_value;
		fn_init_after();
		if(div_a)
		{
			div_a.style.height = div_cont.offsetHeight+80;
			if(div_bottom)div_bottom.style.top = div_cont.offsetHeight+100;//screen.availHeight;
		}
	}	
	//ÆäÀÌÂ¡ °ü·Ã ½ºÅ©¸³Æ®
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
		fn_post_board(selObj.options[selObj.selectedIndex].value);
		if (restore) selObj.selectedIndex=0;
	}