/**
 * A,IMG Æ÷Ä¿½º ¾ø¾Ö±â (IncFooter.jsp¿¡¼­ È£Ãâ)
 */
function setFocusOut(){
	var obj_a_list = document.getElementsByTagName("A");
	var obj_img_list = document.getElementsByTagName("IMG");

	for(var i=0; i<obj_a_list.length; i++){
		if (obj_a_list[i].addEventListener){
			obj_a_list[i].addEventListener("focusin", function(){ event.srcElement.blur(); }, false);
		}else if (window.attachEvent){
			obj_a_list[i].attachEvent("onfocusin", function(){ event.srcElement.blur(); });
		}else{
			obj_a_list[i].onfocusin = function(){ event.srcElement.blur(); }
		}
	}

	for(var i=0; i<obj_img_list.length; i++){
		if(typeof obj_img_list[i].getAttribute("onclick") != "function"){
			continue;
		}
		if (obj_img_list[i].addEventListener){
			obj_img_list[i].addEventListener("focusin", function(){ event.srcElement.blur(); }, false);
		}else if (obj_img_list[i].attachEvent){
			obj_img_list[i].attachEvent("onfocusin", function(){ event.srcElement.blur(); });
		}else{
			obj_img_list[i].onfocusin = function(){ event.srcElement.blur(); }
		}
	}
}


/**
 * ÇÃ·¡½Ã ³Ö´Â ÇÔ¼ö
 * f_id = ÇÃ·¡½Ã ¾ÆÀÌµð
 * f_name = ÇÃ·¡½Ã ÆÄÀÏ¸í
 * f_width = °¡·ÎÅ©±â
 * f_height = ¼¼·Î³ôÀÌ
 * f_para = ÆÄ¶ó¹ÌÅÍ
*/
function show_flash_F(f_id,f_url,f_width,f_height,f_para,transe_flag){
	if(typeof transe_flag == "undefined")
		transe_flag = true;
	document.write(get_flash_F(f_id,f_url,f_width,f_height,f_para,transe_flag));

	if(f_id != "")
		eval("window." + f_id + " = document.getElementById('" + f_id + "');");
}

/**
 * ÇÃ·¡½Ã ³Ö´Â ¹®ÀÚ¿­
 * f_id = ÇÃ·¡½Ã ¾ÆÀÌµð
 * f_name = ÇÃ·¡½Ã ÆÄÀÏ¸í
 * f_width = °¡·ÎÅ©±â
 * f_height = ¼¼·Î³ôÀÌ
 * f_para = ÆÄ¶ó¹ÌÅÍ
*/
function get_flash_F(f_id,f_url,f_width,f_height,f_para,transe_flag){
	var str_html = "";
	str_html += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'";
	if(f_width != "")
		str_html += " width='"+f_width+"'";
	if(f_height != "")
		str_html += " height='"+f_height+"'";
	str_html += " id='"+f_id+"'>";
	//str_html += "<param name='autosize' value='true'>";
	str_html += "<param name='quality' value='high'>";
 	str_html += "<param name='menu' value='false'>";
	str_html += "<param name='allowscriptaccess' value='always'/>";
	str_html += "<param name='movie' value='"+f_url+"'>";
	if(transe_flag)
		str_html += "<param name='wmode' value='transparent'>";
	str_html += "<param name='flashvars' value='"+f_para+"'>";
	str_html += "<embed src='"+f_url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
	if(f_width != "")
		str_html += " width='"+f_width+"'";
	if(f_height != "")
		str_html += " height='"+f_height+"'";
	if(transe_flag)
		str_html += " wmode='transparent'";
	str_html += " allowScriptAccess='always' showLiveConnect='true' flashvars='"+f_para+"' name='"+f_id+"'></embed>";
	str_html += "</object>";
	return str_html;
}

/**
 * onerror ÀÌ¹ÌÁö
 */
function fn_onerror_img(obj, img_src){
	if (obj.removeEventListener){
		obj.removeEventListener("error");
	}else if (obj.detachEvent){
		obj.detachEvent("onerror", fn_onerror_img);
	}else{
		obj.onerror = null;
	}

	if( img_src != "" ){

		obj.src = img_src;
	}
}



var http_prefix = "http://"+location.hostname;


/**
 * ·Î±×¾Æ¿ô
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 31
 */
function fn_logOut(){


	mallinmall_logout.action ="http://www.kfcenter.com/nv1/members/memberQuery.php?qmode=logout"; //ÇÑ±¹²É¹è´Þ¼¾ÅÍ
	mallinmall_logout.target = "action_frame";
	mallinmall_logout.submit();

	mallinmall_logout.action ="http://www.jejudanawa.com/member/logout.asp"; //Á¦ÁÖ´Ù³ª¿Í
	mallinmall_logout.target = "action_frame";
	mallinmall_logout.submit();

	mallinmall_logout.action ="http://www.yes24.com/Templates/FTLogOut.aspx"; //yes24
	mallinmall_logout.target = "action_frame";
	mallinmall_logout.submit();

	mallinmall_logout.action ="http://www.elfpension.com/elf_mypension/my_logout.php";  //½£¼ÓÀÇ ¿äÁ¤
	mallinmall_logout.target = "action_frame";
	mallinmall_logout.submit();

	mallinmall_logout.action ="http://book.interpark.com/member/login.do?_method=logout";  //ÀÎÅÍÆÄÅ©
	mallinmall_logout.target = "action_frame";
	mallinmall_logout.submit();

	location.href = http_prefix+"/common.do?method=logOut&application=20";
}

/**
 * Àå¹Ù±¸´Ï ´ã±â(»óÇ° 1°³)
 *
 * @author Á¤Çý¼±
 * @since 2007. 09. 04
 */
function fn_saveCart(item_id, unit_id, order_qty, sale_shop_gubun_code, shop_id){

	var f = document.tempForm;
	var innerDiv = "";

	innerDiv += "<input type='hidden' name='item_id_arr' value='" + item_id + "'>";
	innerDiv += "<input type='hidden' name='unit_id_arr' value='" + unit_id + "'>";
	innerDiv += "<input type='hidden' name='order_qty_arr' value='" + order_qty + "'>";
	innerDiv += "<input type='hidden' name='sale_shop_gubun_code_arr' value='" + sale_shop_gubun_code + "'>";
	innerDiv += "<input type='hidden' name='shop_id_arr' value='" + shop_id + "'>";
	innerDiv += "<input type='hidden' name='cud_type' value='insert'>";

	divTemp.innerHTML = innerDiv;

	f.action = "/order/cart.do";
	f.method.value = "saveCart";
	f.target = "action_frame";
	f.submit();
}

/**
 * Àå¹Ù±¸´Ï ´ã±â(¿©·¯ »óÇ°)
 *
 * @author Á¤Çý¼±
 * @since 2007. 09. 14
 */
function fn_saveCartList(f){

	var tf = document.tempForm;
	var innerDiv = "";
	var itemValidCheck = 0;				// ÆÇ¸ÅÁßÀÎ »óÇ° °³¼ö
	var itemCheck = 0;					// ¼±ÅÃÇÑ »óÇ°ÀÇ °³¼ö

	if( isNotCheckedRadio(f.chk, "Àå¹Ù±¸´Ï ´ãÀ¸½Ç »óÇ°À» ¼±ÅÃÇØÁÖ¼¼¿ä.") ) return;

	if( isArray(f.item_id_arr) > 1 ){

		for( var idx = 0; idx < isArray(f.item_id_arr); idx++ ){

			if( f.chk[idx].checked ){

				innerDiv += "<input type='hidden' name='item_id_arr' value='" + f.item_id_arr[idx].value + "'>";
				innerDiv += "<input type='hidden' name='unit_id_arr' value='" + f.unit_id_arr[idx].value + "'>";

				if( isArray(f.order_qty_arr) > 1 ){

					innerDiv += "<input type='hidden' name='order_qty_arr' value='" + f.order_qty_arr[idx].value + "'>";
				}else{

					innerDiv += "<input type='hidden' name='order_qty_arr' value='1'>";
				}
				innerDiv += "<input type='hidden' name='sale_shop_gubun_code_arr' value='" + f.sale_shop_gubun_code_arr[idx].value + "'>";
				innerDiv += "<input type='hidden' name='shop_id_arr' value='" + f.shop_id_arr[idx].value + "'>";

				itemCheck++;

				if( f.is_valid_item[idx].value > 0 ) {
					// ÆÇ¸ÅÁßÀÎ »óÇ° °³¼ö

					itemValidCheck++;

				}

			}
		}
	}else if( isArray(f.item_id_arr) == 1 ){

		innerDiv += "<input type='hidden' name='item_id_arr' value='" + f.item_id_arr.value + "'>";
		innerDiv += "<input type='hidden' name='unit_id_arr' value='" + f.unit_id_arr.value + "'>";

		if( isArray(f.order_qty_arr) == 1 ){

			innerDiv += "<input type='hidden' name='order_qty_arr' value='" + f.order_qty_arr.value + "'>";
		}else{

			innerDiv += "<input type='hidden' name='order_qty_arr' value='1'>";
		}

		innerDiv += "<input type='hidden' name='sale_shop_gubun_code_arr' value='" + f.sale_shop_gubun_code_arr.value + "'>";
		innerDiv += "<input type='hidden' name='shop_id_arr' value='" + f.shop_id_arr.value + "'>";

		itemCheck++;

		if( f.is_valid_item.value > 0 ) {
			// ÆÇ¸ÅÁßÀÎ »óÇ° °³¼ö

			itemValidCheck++;

		}

	}

	if( itemCheck != itemValidCheck ) {
		// Àå¹Ù±¸´Ï¿¡ ÆÇ¸ÅÁßÀÎ »óÇ°ÀÌ ¾Æ´Ñ »óÇ°À» ´ãÀ¸·Á ÇÔ.

		alert("ÆÇ¸ÅÁßÀÎ »óÇ°¸¸ Àå¹Ù±¸´Ï¿¡ ´ãÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù.\nÆÇ¸ÅÁßÀÎ »óÇ°¸¸ ¼±ÅÃÇØÁÖ¼¼¿ä.");
		return;

	}

	divTemp.innerHTML = innerDiv;

	tf.action = "/order/cart.do";
	tf.method.value = "saveCart";
	tf.target = "action_frame";
	tf.submit();
}

/**
 * Âò¸®½ºÆ® µî·Ï(ÇÑ°³)
 *
 * @author ±èÀºÁ¤
 * @since 2007. 09. 13
 */
 function fn_insertWishList(item_id, unit_id, sale_shop_gubun_code, shop_id) {

	var f = document.tempForm;

	var innerDiv = "";

	innerDiv += "<input type='hidden' name='w_item_id' value='" + item_id + "'>";
	innerDiv += "<input type='hidden' name='w_unit_id' value='" + unit_id + "'>";
	innerDiv += "<input type='hidden' name='w_sale_shop_gubun_code' value='" + sale_shop_gubun_code + "'>";
	innerDiv += "<input type='hidden' name='w_shop_id' value='" + shop_id + "'>";

	innerDiv += "<input type='hidden' name='item_cnt' value='1'>";

	divTemp.innerHTML = innerDiv;

	f.action = "/mypage/wishlist.do";
	f.method.value = "insertItem";
	f.target = "action_frame";

	f.submit();

}

/**
 * Âò¸®½ºÆ® µî·Ï(¿©·¯°³)
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 10
 */
function fn_insertManyWishList(f){

	var tf = document.tempForm;
	var innerDiv = "";
	var itemValidCheck = 0;				// ÆÇ¸ÅÁß & Ç°ÀýÀÎ »óÇ° °³¼ö
	var itemCheck = 0;					// ¼±ÅÃÇÑ »óÇ°ÀÇ °³¼ö

	if( isNotCheckedRadio(f.chk, "Âò¸®½ºÆ®¿¡ ´ãÀ¸½Ç »óÇ°À» ¼±ÅÃÇØÁÖ¼¼¿ä.") ) return;

	if( isArray(f.item_id_arr) > 1 ){

		for( var idx = 0; idx < isArray(f.item_id_arr); idx++ ){

			if( f.chk[idx].checked ){

				innerDiv += "<input type='hidden' name='w_item_id' value='" + f.item_id_arr[idx].value + "'>";
				innerDiv += "<input type='hidden' name='w_unit_id' value='" + f.unit_id_arr[idx].value + "'>";
				innerDiv += "<input type='hidden' name='w_sale_shop_gubun_code' value='" + f.sale_shop_gubun_code_arr[idx].value + "'>";
				innerDiv += "<input type='hidden' name='w_shop_id' value='" + f.shop_id_arr[idx].value + "'>";

				itemCheck++;

				if( f.is_valid_item[idx].value > 0 || f.is_valid_item[idx].value == -998 ) {
					// ÆÇ¸ÅÁß & Ç°ÀýÀÎ »óÇ° °³¼ö

					itemValidCheck++;

				}

			}
		}
	}else if( isArray(f.item_id_arr) == 1 ){

		innerDiv += "<input type='hidden' name='w_item_id' value='" + f.item_id_arr.value + "'>";
		innerDiv += "<input type='hidden' name='w_unit_id' value='" + f.unit_id_arr.value + "'>";
		innerDiv += "<input type='hidden' name='w_sale_shop_gubun_code' value='" + f.sale_shop_gubun_code_arr.value + "'>";
		innerDiv += "<input type='hidden' name='w_shop_id' value='" + f.shop_id_arr.value + "'>";

		itemCheck++;

		if( f.is_valid_item.value > 0 ) {
			// ÆÇ¸ÅÁßÀÎ »óÇ° °³¼ö

			itemValidCheck++;

		}

	}

	if( itemCheck != itemValidCheck ) {
		// Àå¹Ù±¸´Ï¿¡ ÆÇ¸ÅÁßÀÎ »óÇ°ÀÌ ¾Æ´Ñ »óÇ°À» ´ãÀ¸·Á ÇÔ.

		alert("ÆÇ¸ÅÁßÀÌ°Å³ª Ç°ÀýÀÎ »óÇ°¸¸ Âò¸®½ºÆ®¿¡ ´ãÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù.\nÆÇ¸ÅÁßÀÌ°Å³ª Ç°ÀýÀÎ »óÇ°¸¸ ¼±ÅÃÇØÁÖ¼¼¿ä.");
		return;

	}

	innerDiv += "<input type='hidden' name='item_cnt' value='" + itemCheck + "'>";

	divTemp.innerHTML = innerDiv;

	tf.action = "/mypage/wishlist.do";
	tf.method.value = "insertItem";
	tf.target = "action_frame";

	tf.submit();
}

/**
 * ¿ìÆí¹øÈ£ °Ë»ö
 *
 * @author ±èÀºÁ¤
 * @since 2007. 09. 13
 */
function fn_searchZipCode(cb_func) {

	// cb_func¸¦ ¹Þ¾Æ¼­ ÇØ´ç ½ºÅ©¸³Æ®·Î º¸³»ÁØ´Ù.
	openNoScrollWin('/common.do', 'searchZipCodeFormPop', '¿ìÆí¹øÈ£°Ë»ö', '445', '411', '&method=searchZipCodeFormPop&cb_func=' + cb_func, 'Y');

}

/**
 * Àå¹Ù±¸´Ï
 *
 * @author Á¤Çý¼±
 * @since 2007. 09. 17
 */
function fn_goCart(){

	location.href = http_prefix+"/order/cart.do?method=initCart";
}

/**
 * »óÇ°»ó¼¼
 *
 * @author Á¤Çý¼±
 * @since 2007. 09. 17
 * taget_name(»óÇ°Æò, »óÇ°Q&A·Î ÅÇ ÀÌµ¿)
 */
function fn_viewItemDetail(item_id, sale_shop_gubun_code, shop_id, taget_name){

	var param = "";

	if( typeof(sale_shop_gubun_code) != "undefined" ){

		param = "&sale_shop_gubun_code=" + sale_shop_gubun_code + "&shop_id=" + shop_id;
	}

	if( typeof(target_name) != "undefined" ){

		param += "#" + taget_name;
	}

	location.href = http_prefix+"/display/item.do?method=getItemDetail&item_id=" + item_id + param;
}

/**
 * »óÇ°»ó¼¼(ºÎ¸ðÃ¢)
 *
 * @author Á¤Çý¼±
 * @since 2007. 09. 17
 * taget_name(»óÇ°Æò, »óÇ°Q&A·Î ÅÇ ÀÌµ¿)
 */
function fn_viewParentItemDetail(item_id, sale_shop_gubun_code, shop_id, taget_name){

	var param = "";

	if( typeof(sale_shop_gubun_code) != "undefined" ){

		param = "&sale_shop_gubun_code=" + sale_shop_gubun_code + "&shop_id=" + shop_id;
	}

	if( typeof(target_name) != "undefined" ){

		param += "#" + taget_name;
	}

	parent.location.href = http_prefix+"/display/item.do?method=getItemDetail&item_id=" + item_id + param;
}

/**
 * ¸¶ÀÌÆäÀÌÁö ¸ÞÀÎ
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 08
 */
function fn_viewMypageMain() {

	location.href = http_prefix+"/mypage/main.do?method=viewMypageMain";

}

/**
 * ¸¶ÀÌÆäÀÌÁö ÁÖ¹®³»¿ª¸®½ºÆ®
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 08
 */
function fn_viewOrderList() {

	location.href = http_prefix+"/mypage/order.do?method=searchOrderList";

}

/**
 * ¸¶ÀÌÆäÀÌÁö Âò¸®½ºÆ®
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 08
 */
 function fn_viewWishList() {

	location.href = http_prefix+"/mypage/wishlist.do?method=searchWishList";

}

/**
 * º¹¸®ÈÄ»ý°ü ¸ÞÀÎ
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 12
 */
function fn_goMain(){

	location.href = http_prefix+"/display/main.do?method=searchMain";
}

/**
 * º¹Áöflexmall ¸ÞÀÎ
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 12
 */
function fn_goFlexMallMain(){

	location.href = http_prefix+"/display/main.do?method=searchFlexMallMain";
}

/**
 * AZ Æ÷ÀÎÆ® °ü¸®
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 12
 */
function fn_goAZPointList() {

	location.href = http_prefix+"/mypage/point.do?method=searchAZPointList";

}

/**
 * º¹ÁöÆ÷ÀÎÆ® ³»¿ª
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 24
 */
function fn_goWelfarePointList() {

	location.href = http_prefix+"/mypage/point.do?method=searchWalfarePointList";

}

/**
 * ´ëºÐ·ù url
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 18
 */
function fn_goLargeCatetory(ctg_id) {

	location.href = http_prefix+"/display/display.do?method=getMidDispctgList&upper_id=" + ctg_id;

}

/**
 * ÁßºÐ·ù url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 18
 */
function fn_goMiddleCatetory(upper_id, s_ctg_id) {

	location.href = http_prefix+"/display/display.do?method=getSmlDispctgList&upper_id=" + upper_id + "&disp_small_ctg_id=" + s_ctg_id;

}

/**
 * ¼ÒºÐ·ù url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 18
 */
function fn_goSmallCatetory(upper_id, s_ctg_id ,d_ctg_id) {

	location.href = http_prefix+"/display/display.do?method=getDtlDispctgList&upper_id=" + upper_id + "&disp_small_ctg_id=" + s_ctg_id + "&disp_detail_ctg_id=" + d_ctg_id;

}


/**
 * ¼­ºñ½ºÄ«Å×°í¸® ´ëºÐ·ù url
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 19
 */
function fn_goServiceLargeCategory(disp_ctg_id) {

	location.href = http_prefix+"/display/service.do?method=viewServiceCtgMain&disp_ctg_id=" + disp_ctg_id;

}

/**
 * ¼­ºñ½ºÄ«Å×°í¸® ¼ÒºÐ·ù url(¼ÒºÐ·ù, ´ëºÐ·ù)
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 19
 */
function fn_goServiceSmallCategory(disp_ctg_id, large_disp_ctg_id) {

	location.href = http_prefix+"/display/service.do?method=checkSmallShop&disp_ctg_id=" + disp_ctg_id + "&large_disp_ctg_id=" + large_disp_ctg_id;

}

/**
 * ¼­ºñ½ºÄ«Å×°í¸® ÁßºÐ·ù url(ÁßºÐ·ù, ´ëºÐ·ù)
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 19
 */
function fn_goServiceSmallCategoryByMiddleId(middle_disp_ctg_id, large_disp_ctg_id) {

	location.href = http_prefix+"/display/service.do?method=checkSmallShop&middle_disp_ctg_id=" + middle_disp_ctg_id + "&large_disp_ctg_id=" + large_disp_ctg_id;

}

/**
 * °í°´¸¸Á·¼¾ÅÍ
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 23
 */
function fn_goCsMain() {

	location.href = http_prefix+"/cs/cs.do?method=viewCsMain";

}

/**
 * FAQ ¸®½ºÆ®
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 23
 */
function fn_goFAQList() {

	location.href = http_prefix+"/cs/cs.do?method=searchFAQList";

}

/**
 * FAQ »ó¼¼
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 23
 */
function fn_goDetail(noti_seq) {

	location.href = http_prefix+"/cs/cs.do?method=getFAQDetail&answ_seq=1000&noti_seq=" + noti_seq;

}

/**
 * Ä¿¹Â´ÏÆ¼ ÅåÅå Flex ¸ÞÀÎ url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

 function fn_goCommunityMain() {

	location.href = http_prefix+"/community/community.do?method=getTalkFlexMain";

}

/**
 * ÄÁÅÙÃ÷ ¸ÞÀÎ url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

 function fn_goContentsMain() {

	location.href = http_prefix+"/community/contents.do?method=getContentsMain";

}

/**
 * 1:1 »ó´ã¾²±â
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 24
 */
function fn_initCounselWrite() {

	location.href = http_prefix+"/cs/cs.do?method=initCounselWrite";

}

/**
 * ´ÜÃ¼º¹Áö¼­ºñ½º ±¸¸Å
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 24
 */
function fn_goCompanyList() {

	location.href = http_prefix+"/mypage/company.do?method=searchCompanyWelServiceList";

}

/**
 * ¼îÇÎÄ¶¸°´õ
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 24
 */
function fn_viewShoppingCalendar() {

	location.href = http_prefix+"/display/main.do?method=viewShoppingCalendar";

}

/**
 * ±âÈ¹¸ÅÀå url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

function fn_goShopMain(shop_id) {

	location.href = http_prefix+"/display/display.do?method=getShop&shop_id=" + shop_id;

}

/**
 * ÄÁÅÙÃ÷ List url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

 function fn_contList(board_id) {

	location.href = http_prefix+"/community/contents.do?method=getContentsList&board_id=" + board_id;

}

/**
 * ÄÁÅÙÃ÷ Detail url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

 function fn_contDtl(board_id, noti_seq, answ_seq) {

	location.href = http_prefix+"/community/contents.do?method=getContentsDtl&board_id=" + board_id + "&noti_seq=" + noti_seq + "&answ_seq=" + answ_seq;

}


/**
 * Ä¿¹Â´ÏÆ¼ List url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

 function fn_talkList(board_id) {

	location.href = http_prefix+"/community/community.do?method=getCommuityList&board_id=" + board_id;

 }

/**
 * Ä¿¹Â´ÏÆ¼ Detail url
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 23
 */

 function fn_talkDtl(board_id, noti_seq, answ_seq) {

	location.href = http_prefix+"/community/community.do?method=getCommunityDtl&board_id=" + board_id + "&noti_seq=" + noti_seq + "&answ_seq=" + answ_seq;

 }

/**
 * ¿ì¸®È¸»ç°øÁö
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 26
 */
function fn_searchCompanyList() {

	location.href=http_prefix+"/mypage/company.do?method=searchCompanyNoticeList";

}

/**
 * ¿ì¸®È¸»ç°øÁö»ó¼¼
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 26
 */
function fn_searchContents(notice_id) {

	location.href = http_prefix+"/mypage/company.do?method=searchNoticeContents&notice_id=" + notice_id;

}

/**
 * ¿ì¸®È¸»ç»ç³»ÀÏÁ¤
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 26
 */
function fn_searchCompanySchedule() {

	location.href=http_prefix+"/mypage/company.do?method=searchCompanySchedule";

}

/**
 * À§Å¬¸® º£½ºÆ®
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 27
 */
function fn_goWeeklyBest(){

	location.href=http_prefix+"/display/display.do?method=getWeeklyBestList";
}

/**
 * Ä«Å×°í¸® º£½ºÆ®
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 27
 */
function fn_goCtgBest(){

	location.href=http_prefix+"/display/display.do?method=getCtgBestList";
}

/**
 * ³²ÀÚ ´ë ¿©ÀÚ º£½ºÆ®
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 27
 */
function fn_goVsBest(){

	location.href=http_prefix+"/display/display.do?method=getManWonBestList";
}

/**
 * Âò º£½ºÆ®
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 27
 */
function fn_goPickUpBest(){

	location.href=http_prefix+"/display/display.do?method=getPickUpBestList";
}

/**
 * Å°¿öµå º£½ºÆ®
 *
 * @author Á¤Çý¼±
 * @since 2007. 10. 27
 */
function fn_goKeywordBest(){

	location.href=http_prefix+"/search/searchContents.do?method=hotKeywordGoods";
}

/**
 * Ä«Å×°í¸®º° º£½ºÆ® detailº¸±â
 *
 * @author ±Ç¹ÎÁø
 * @since 2007. 10. 27
 */
function fn_ctgBestDtl(m_ctg_id){

	location.href=http_prefix+"/display/display.do?method=getCtgBestDtlList&disp_middle_ctg_id=" + m_ctg_id;
}

/**
 * ¼­ºñ½º °øÁö»çÇ× ¸®½ºÆ®
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 27
 */
function fn_searchServiceNoticeList() {

	location.href = http_prefix+"/cs/cs.do?method=searchServiceNoticeList";

}

/**
 * ¼­ºñ½º °øÁö»çÇ× »ó¼¼
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 27
 */
function fn_getNoticeDetail(notice_id) {

	location.href = http_prefix+"/cs/cs.do?method=getServiceNoticeDetail&notice_id=" + notice_id;

}

/**
 * 1:1 »ó´ã ¸®½ºÆ®
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 27
 */
function fn_searchMyQnaList() {

	location.href = http_prefix+"/mypage/counsel.do?method=searchMyQnaList";

}

/**
 * ÃÖ±Ùº»»óÇ°
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 27
 */
function fn_viewRecentItem() {

	location.href=http_prefix+"/mypage/wishlist.do?method=searchRecentItem";

}

/**
 * AZ Flex ÀÌ¿ë¾È³»
 *
 * @author ±èÀºÁ¤
 * @since 2007. 10. 29
 */

 //º¹ÁöÁ¤º¸Ã£±â
 function fn_viewFlexInfo() {

 	location.href = http_prefix+"/cs/info.do?method=viewFlexInfo";

}

// º¹Áö »óÇ° Ã£±â
function fn_viewFlexProduct() {

 	location.href = http_prefix+"/cs/info.do?method=viewFlexProduct";

}

// ±¸¸Å/°áÁ¦ ÇÏ±â
function fn_viewFlexBuy() {

 	location.href = http_prefix+"/cs/info.do?method=viewFlexBuy";

}

// ¸¶ÀÌÆäÀÌÁö È°¿ëÇÏ±â
function fn_viewFlexMypage() {

 	location.href = http_prefix+"/cs/info.do?method=viewFlexMypage";

}

// Ä«Æä flex È°¿ëÇÏ±â
function fn_viewFlexCafe() {

 	location.href = http_prefix+"/cs/info.do?method=viewFlexCafe";

}

// ¿ì¸®È¸»ç º¹ÁöÈÄ»ýÁ¦µµ ¾È³»
function fn_viewCustGuide() {

 	location.href = http_prefix+"/cs/info.do?method=viewCustGuide";

}

/**
 * ÀÌº¥Æ® ÀÀ¸ð
 *
 * @author ±èÀºÁ¤
 * @since 2007. 11. 15
 */
 function fn_insertEvent(event_id) {

 	var tf = document.tempForm;
	var innerDiv = "";

	innerDiv += "<input type='hidden' name='event_id' value='" + event_id + "'>";

	divTemp.innerHTML = innerDiv;

	tf.action = "/event/event.do";
	tf.method.value = "insertEventApply";
	tf.target = "action_frame";

	tf.submit();

 }

 /**
  * ÀÌº¥Æ®
  *
  * 2007. 11. 19
  * ±èÀºÁ¤
  */
function fn_goEvent() {

 	//var tf = document.tempForm;
	//var innerDiv = "";

	//innerDiv += "<input type='hidden' name='notice_gubun_code' value='10'>";

	//innerDiv += "<input type='hidden' name='notice_type_code' value='20'>";

	//divTemp.innerHTML = innerDiv;


	//tf.action = "/event/event.do";
	//tf.method.value = "viewEvent";
	//tf.target = "_self";

	//tf.submit();

	location.href=http_prefix+"/event/event.do?method=viewEvent";


}

// ´çÃ·ÀÚ °Ô½ÃÆÇ
function fn_goEventWinList(pageIdx) {

	location.href=http_prefix+"/event/event.do?method=searchEventNoticeList&pageIdx=" + pageIdx;

}

// º¹ÁöÄ«µå Æ÷ÀÎÆ® Â÷°¨½ÅÃ»
function fn_goPointMinusList(pageIdx) {

	location.href=http_prefix+"/mypage/point.do?method=searchPointMinusList&pageIdx=" + pageIdx;

}

// º¹ÁöÄ«µå Æ÷ÀÎÆ® Â÷°¨½ÅÃ»(½Ç½Ã°£) ex.»ï¿µ½Ã½ºÅÛ
function fn_goPointMinusListReal(pageIdx) {

	location.href=http_prefix+"/mypage/point.do?method=requestPointMinusListShinhan&pageIdx=" + pageIdx;

}