| 
 | 
- 
   
- 
 - 
- 174,240원 
     | 
 | 
- 
   
- 
 - 
- 9,400원 
     | 
 | 
- 
   
- 
 - 
- 16,500원 
     | 
 | 
- 
   
- 
 - 
- 109,720원 
     | 
 | 
- 
   
- 
 - 
- 19,200원 
     | 
 
	function show_hit(hit,hit_img) {
		var obj_hit = new Array();
		var obj_hitimg = new Array();
		obj_hit = document.getElementsByName("hit_view");
		obj_hitimg = document.getElementsByName("hit_img");
		obj_hit[hit-1].parentElement.style.position = 'relative';
		if( obj_hit[hit-1].style.display == "none") obj_hit[hit-1].style.display = "";
		else obj_hit[hit-1].style.display = "none";
	}
	function show_hit_sub1(hit,hit_img) {
		var obj_btn_sub_01 = new Array();
		obj_btn_sub_01 = document.getElementsByName("hit_btn_sub_01");
		if( obj_btn_sub_01[hit-1].style.display == "none") obj_btn_sub_01[hit-1].style.display = "";
		else obj_btn_sub_01[hit-1].style.display = "none";
	}
	function show_hit_sub2(hit,hit_img) {
		var obj_btn_sub_01 = new Array();
		obj_btn_sub_02 = document.getElementsByName("hit_btn_sub_02");
		if( obj_btn_sub_02[hit-1].style.display == "none") obj_btn_sub_02[hit-1].style.display = "";
		else obj_btn_sub_02[hit-1].style.display = "none";
	}
	
 
 
 
 
			function setFocus() 	{
				if (document.getElementById('tabfocus') != null) {
					document.getElementById('tabfocus').style.display = 'block';
					document.getElementById('tabfocus').focus();
					document.getElementById('tabfocus').style.display = 'none';
				}
			}
		
	var keyword="";
	var operator="";
	var del_keyword="";
	var advantage="";
	var currentURL="";
	var page_url = "http://search.interpark.com/";
	//상품탭 선택 스크립트
	function	tab_search_chg(value, search_type, page_type)	{
		obj_tab_wrap = document.getElementById('tab_search_ul');
		obj_tab_li = obj_tab_wrap.getElementsByTagName("li");
		obj_iframe = document.getElementById('prd_list_view');
		obj_view_mode = document.getElementById('view_mode');
		obj_view_mode2 = document.getElementById('view_mode2');
		if(search_type == 1) {//전체, 트랜드&스타일, e-최저가상품
			obj_view_mode.style.display = "block"; 
			obj_view_mode2.style.display = "none";
		} else if (search_type == 4) {//최신인기상품
			obj_view_mode.style.display = "none"; 
			obj_view_mode2.style.display = "block";
		} else { //관련쿠폰, 쇼핑정보
			obj_view_mode.style.display = "none"; 
			obj_view_mode2.style.display = "none";
		}
		obj_length = obj_tab_wrap.getElementsByTagName("span").length;
		obj_length = obj_length / 3;
		for(var i = 0; i < obj_length ; i++) {
			if (i == value) obj_tab_li[i].className = "tab on";
			else obj_tab_li[i].className = "tab";
		}
		for(var s = 1; s < 4 ; s++) {
			search_type_on = document.getElementById('search_ty_check_' + search_type);
			search_type_off = document.getElementById('search_ty_check_' + s);
		}
		if(value==0) document.getElementById('popular_inventory').style.display="block";
		else 	document.getElementById('popular_inventory').style.display="none";
		if(value==0){
			document.all.sch.value="t_tab";
			document.all.sbn.value="all";
		}
		if(value==2){
			if("" == "R" || "" == "F") {
				document.all.default_Condition.style.display = "none"; 
				if(document.getElementById('tns_Condition') != null)document.all.tns_Condition.style.display = "none";
				document.all.view_tab_type.value="trend"; 
				if(document.getElementById('Brand') != null)document.all.Brand.style.display = "block";
			}
		} else {
			document.all.default_Condition.style.display = "block"; 
			if(document.getElementById('tns_Condition') != null)document.all.tns_Condition.style.display = "block";
			document.all.view_tab_type.value="all";
			if(document.getElementById('Brand') != null)document.all.Brand.style.display = "none";
		}
		if (search_type==2 || search_type==3|| search_type==4){       // 관련쿠폰기획전 및 쇼핑정보, 인기상품일때 조건레이어 숨기기
			document.all.divCondition.style.display = "none";
			if (search_type==2) document.all.search_ty_check_2.style.display = "block";
			else document.all.search_ty_check_2.style.display = "none";
		}else{
			document.all.divCondition.style.display = "block";
			document.all.search_ty_check_2.style.display = "none";
		}
		
		if (page_type==1) {
			if(document.all.viewKind.value == 'F' || document.all.viewKind.value == 'R') {
				advantage = "tns";
				document.all.advantage.value="tns";
				document.all.sch.value="t_tab";
				document.all.sbn.value="tns";
				iframe_trend_Search(document.all.viewKind.value);//트랜드&스타일일때 이동
			} else {
				advantage = "lowprice";
				document.all.advantage.value="lowprice";
				document.all.sch.value="t_tab";
				document.all.sbn.value="elow";
				list_form.ck_mode.value = "lowprice";
				iframe_lowprice_Search(); //최저가일때 이동
			}	
		}else if (page_type==2){//쿠폰/기획전일때 이동
			advantage = "coupon";
			document.all.advantage.value="coupon";
			iframe_coupon_Search();
		}else if (page_type==3){ //쇼핑정보일때 이동
			iframe_shopInfo_Search();
			advantage = "knowhow";
			document.all.advantage.value="knowhow";
		}else if (page_type==4){//인기상품        
			iframe_popular_Search(); 
			advantage = "popular";
			document.all.advantage.value="popular";
		}else{
			advantage = "";
			document.all.advantage.value="";
			document.all.sch.value="t_tab";
			document.all.sbn.value="all";
			list_form.ck_mode.value = "";
			iframe_search();
		}
	}
	function move_func(i) {
		document.all.sch.value = "t_selec";
		document.all.sbn.value = "price";
		if(advantage == 'tns'){
			iframe_trend_Search("", i);
		} else if(advantage == 'lowprice') {
			iframe_lowprice_Search(i);
		} else {
			iframe_search(i);
		}		
	}
	function move_func_search(i) {
		if(advantage == 'tns'){
			document.all.sch.value = "t_tab_tns";
			document.all.sbn.value = "listsch";
			iframe_trend_Search("", i);
		} else if(advantage == 'lowprice') {
			document.all.sch.value = "t_tab_elow";
			document.all.sbn.value = "listsch";
			iframe_lowprice_Search(i);
		} else {
			document.all.sch.value = "t_tab_all";	
			document.all.sbn.value = "listsch";	
			iframe_search(i);
		}
	}
	function	tab_menu_chg(value, search_type, page_type)	{
		obj_tab_wrap = document.getElementById('tab_search_ul');
		obj_tab_li = obj_tab_wrap.getElementsByTagName("li");
		obj_iframe = document.getElementById('prd_list_view');
		obj_view_mode = document.getElementById('view_mode');
		obj_view_mode2 = document.getElementById('view_mode2');
		if(search_type == 1) {//전체, 트랜드&스타일, e-최저가상품
			obj_view_mode.style.display = "block"; 
			obj_view_mode2.style.display = "none";
		} else if (search_type == 4) {//최신인기상품
			obj_view_mode.style.display = "none"; 
			obj_view_mode2.style.display = "block";
		} else { //관련쿠폰, 쇼핑정보
			obj_view_mode.style.display = "none"; 
			obj_view_mode2.style.display = "none";
		}
		obj_length = obj_tab_wrap.getElementsByTagName("span").length;
		obj_length = obj_length / 3;
		for(var i = 0; i < obj_length ; i++) {
			if (i == value) {obj_tab_li[i].className = "tab on";}
			else {obj_tab_li[i].className = "tab";}
		}
		for(var s = 1; s < 4 ; s++) {
			search_type_on = document.getElementById('search_ty_check_' + search_type);
			search_type_off = document.getElementById('search_ty_check_' + s);
		}
		if(value==0) document.getElementById('popular_inventory').style.display="block";
		else 	document.getElementById('popular_inventory').style.display="none";
		if(value==2){
			if("" == "R" || "" == "F") {
				document.all.default_Condition.style.display = "none"; 
				if(document.getElementById('tns_Condition') != null) document.all.tns_Condition.style.display = "block";
				document.all.view_tab_type.value="trend";
				if(document.getElementById('Brand') != null) document.all.Brand.style.display = "none";
			}
			document.getElementById('price_check_box').style.display="none";
		} else {
			document.all.default_Condition.style.display = "block"; 
			if(document.getElementById('tns_Condition') != null) document.all.tns_Condition.style.display = "none";
			document.all.view_tab_type.value="all";
			if(document.getElementById('Brand') != null) document.all.Brand.style.display = "block";
			document.getElementById('price_check_box').style.display="block";
		}
		if (search_type==2 || search_type==3){       // 관련쿠폰기획전 및 쇼핑정보일때 조건레이어 숨기기
			document.all.divCondition.style.display = "none";
			if (search_type==2) {document.all.search_ty_check_2.style.display = "block";}
			else {document.all.search_ty_check_2.style.display = "none";}
		}else{
			document.all.divCondition.style.display = "block";
			document.all.search_ty_check_2.style.display = "none";
		}
	}
	//상품 뷰 선택 스크립트
	function	prd_view_chg(value, view_src)	{
		obj_tab_wrap = document.getElementById('tab_search_ol');
		obj_tab_link = obj_tab_wrap.getElementsByTagName("a");
		obj_iframe = document.getElementById('prd_list_view');
		for(var i = 0; i < obj_tab_link.length -1; i++) {
			if (i == value) {
				obj_tab_link[i].className = "on";
				obj_iframe.src = view_src;
			} else {
				obj_tab_link[i].className = "rollover";
			}
		}							
	}
	//가격선택 스크립트
	function choice_price(type) {
		for(var i = 1; i < 3 ; i++) {
			obj_type = document.getElementById('price_type' + i);
			if (i == type) obj_type.style.display = "block";
			else obj_type.style.display = "none";
		}
	}
	/*검색어 가지고 오는 function*/
	function get_searchText() {
		var parameter = "";
		if(list_form.list_tq.value == "") {
			if(document.getElementById('prd_list_view').contentWindow.document.form_direct != undefined) {
				if (document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value == "") {
					hahatest_form.keyword.value = form_direct.tq.value;
					hahatest_form.operator.value = "";
				}else {
					hahatest_form.keyword.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.keyword.value;
					hahatest_form.operator.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value;
				}
			}
		} else {
			if(hahatest_form.operator.value != "" && document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value == "") {
				hahatest_form.keyword.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.keyword.value + ":" + list_form.list_tq.value;
				hahatest_form.operator.value = "and";
			} else if(hahatest_form.operator.value == "" && document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value == ""){
				hahatest_form.keyword.value = form_direct.tq.value + ":" + list_form.list_tq.value;
				hahatest_form.operator.value = "and";				
			} else if(hahatest_form.operator.value != "" && document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value != ""){
				hahatest_form.keyword.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.keyword.value + ":" + list_form.list_tq.value;
				hahatest_form.operator.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value + ":and";
			} else {
				hahatest_form.keyword.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.keyword.value;
				hahatest_form.operator.value = document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value;
			}
		}
	}
	function get_price(cur_id) {
		var ckidx = false;
		var max_num;
		var min_num;
		for(i =0; i  e_price) {
				alert("최고가가 최저가보다 낮게 입력하셨습니다.");
				list_form.s_price.value = "";
				list_form.e_price.value = "";
				list_form.price_value.value = "0~9999999" + ":" + "0~9999999";
			} else {
				var min_value = list_form.s_price.value + "~" + list_form.e_price.value;
				var max_value = list_form.s_price.value + "~" + list_form.e_price.value;
				list_form.price_value.value = min_value + ":" + max_value;
			}			
		} else {
			if(list_form.s_price.value == "" && list_form.e_price.value != "" ) {
				var min_value = "0" + "~" + list_form.e_price.value;
				var max_value = "0" + "~" + list_form.e_price.value;
				list_form.s_price.value = "1";
				list_form.price_value.value = min_value + ":" + max_value;
			} else if (list_form.s_price.value != "" && list_form.e_price.value == "" ) {
				var min_value = list_form.s_price.value + "~" + "9999999";
				var max_value = list_form.s_price.value + "~" + "9999999";
				list_form.e_price.value = "9,999,999";
				list_form.price_value.value = min_value + ":" + max_value;
			}
		}
	}
	function get_condition() {
		var qui = "null";
		var ch_length = list_form.option.length;
		var rs = "";
		if(qui !="") rs=qui;
		for(i = 0; i < ch_length; i++) {
			if(list_form.option[i].checked == true) {
				if ( rs == "") rs = list_form.option[i].value;
				else rs = rs + ":" + list_form.option[i].value;
			}
		}
		if (rs.indexOf("&")>=0) rs = rs.replace("&", "%26");
		list_form.condition_value.value = rs;
	}
	function get_Brand() {
		if(document.getElementById('Brand') != null) {
			var ch_length = list_form.brand.length;
			var rs = "";
			if(ch_length == undefined) {
				if(list_form.brand.checked == true) rs = list_form.brand.value;
			} else {
				for(i = 0; i < ch_length; i++) {
					if(list_form.brand[i].checked == true) {
						if ( rs == "") rs = list_form.brand[i].value;
						else rs = rs + ":" + list_form.brand[i].value;
					}
				}
			}
			if (rs.indexOf("&")>=0) rs = rs.replace("&", "%26");
			list_form.brand_value.value = rs;
		}
	}
	function condition_ck() {
		 document.all.sch.value = "t_selec";
		 document.all.sbn.value = "condition";
		 iframe_search();
	}
	function brand_ck() {
		 document.all.sch.value = "t_selec";
		 document.all.sbn.value = "brand";
		 iframe_search();
	}
	function iframe_search(curId) {
		var viewk = "";
		if(document.all.view_kind_ch.value == 'Y') viewk =  document.all.template.value;
		else {
			if(advantage =='tns') viewk = "big";
			else viewk = "small";
		}
		if(viewk == 'big') {
			document.getElementById('tab_search_ol').getElementsByTagName("a")[0].className = "rollover";
			document.getElementById('tab_search_ol').getElementsByTagName("a")[1].className = "on";
		} else {
			document.getElementById('tab_search_ol').getElementsByTagName("a")[0].className = "on";
			document.getElementById('tab_search_ol').getElementsByTagName("a")[1].className = "rollover";
		}
		document.getElementById("gubun_line1").className = "gubun_line";
		var price_type;
		for(j=0; j< list_form.price_type.length; j++) {
			if(list_form.price_type[j].checked == true) {
				price_type = list_form.price_type[j].value;
			}
		}
		get_searchText();
		get_condition();
		get_Brand();
		if(price_type == 1) {
			if(curId != undefined) {
				get_price(curId);
			}
		} else if (price_type == 2) {
			get_price2();
		}
		if (list_form.list_tq.value!=""){
			var rst = makeSearchHistory(list_form.list_tq.value);
			list_form.list_tq.value = "";
			if(!rst)return false;
		}
		var paramater;
		paramater = "ch_op=" + list_form.condition_value.value + "&ch_pr=" + list_form.price_value.value + "&ch_br=" + list_form.brand_value.value;
		keyword = hahatest_form.keyword.value;
		keyword = keyword.replace("%", "%25"); keyword = keyword.replace("+", "%2B"); keyword = keyword.replace("&", "%26");
		operator = hahatest_form.operator.value;
		list_form.list_tq.value = "";
		list_form.target = "prd_list_view";
		var ck_mode_value = list_form.ck_mode.value;
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		other.push("sn=1");
		other.push("pg=" + document.form_direct.pg.value);
		other.push("tq="+rep_tq);
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("sch=" + document.all.sch.value);
		other.push("sbn=" + document.all.sbn.value);
		other.push("keyword=" + keyword);		
		if(document.hahatest_form.view_kind_ch.value == "Y") other.push("template=" + hahatest_form.template.value);
		else other.push("template=small");
		other.push("operator=" 	+ operator + "&" + paramater);
		other.push("advantage=" 	+ advantage);
		other.push("viewKind=");
		var sUrl =  "";
		if(advantage =='tns')  sUrl = page_url + "dsearch/include/shop_tns_if.jsp" + "?" + other.join("&"); 
		else sUrl = page_url + "dsearch/include/total_iframe_f.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	function iframe_lowprice_Search(curId) {
		var price_type;
		for(j=0; j< list_form.price_type.length; j++) {
			if(list_form.price_type[j].checked == true) {
				price_type = list_form.price_type[j].value;
			}
		}
		get_searchText();
		get_condition();
		if(price_type == 1) {
			if(curId != undefined) {
				get_price(curId);
			}
		} else if (price_type == 2) {
			get_price2();
		}
		if (list_form.list_tq.value!=""){
			var rst = makeSearchHistory(list_form.list_tq.value);
			list_form.list_tq.value = "";
			if(!rst)return false;
		}				
		list_form.list_tq.value = "";
		var paramater;
		paramater = "ch_op=" + list_form.condition_value.value + "&ch_pr=" + list_form.price_value.value + "&ch_br=" + list_form.brand_value.value;
		keyword = hahatest_form.keyword.value;
		keyword = keyword.replace("%", "%25"); keyword = keyword.replace("+", "%2B"); keyword = keyword.replace("&", "%26");
		operator = hahatest_form.operator.value;
		list_form.list_tq.value = "";
		list_form.target = "prd_list_view";
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		other.push("sn=1");
		other.push("pg=" + document.form_direct.pg.value);
		other.push("tq="+rep_tq);
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("sch=" + document.all.sch.value);
		other.push("sbn=" + document.all.sbn.value);
		other.push("keyword=" + keyword);
		other.push("operator=" 	+ operator + "&" + paramater);
		other.push("advantage=lowprice");
		if(document.hahatest_form.view_kind_ch.value == 'Y') other.push("template=" + hahatest_form.template.value);
		else other.push("template=small");
		var sUrl =  page_url + "dsearch/include/total_iframe_f.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	function iframe_trend_Search(viewKind, curId) {
		var viewk = "";
		if(document.hahatest_form.view_kind_ch.value == 'Y') viewk =  document.all.template.value;
		else viewk = "big";
		if(viewk == 'big') {
			document.getElementById('tab_search_ol').getElementsByTagName("a")[0].className = "rollover";
			document.getElementById('tab_search_ol').getElementsByTagName("a")[1].className = "on";
		} else {
			document.getElementById('tab_search_ol').getElementsByTagName("a")[0].className = "on";
			document.getElementById('tab_search_ol').getElementsByTagName("a")[1].className = "rollover";
		}
		var price_type;
		for(j=0; j< list_form.price_type.length; j++) {
			if(list_form.price_type[j].checked == true) {
				price_type = list_form.price_type[j].value;
			}
		}
		get_searchText();
		get_condition();
		if(price_type == 1) {
			if(curId != undefined) {
				get_price(curId);
			}
		} else if (price_type == 2) {
			get_price2();
		}
		if (list_form.list_tq.value!=""){
			var rst = makeSearchHistory(list_form.list_tq.value);
			list_form.list_tq.value = "";
			if(!rst)return false;
		}
		var paramater;
		paramater = "ch_op=" + list_form.condition_value.value + "&ch_pr=" + list_form.price_value.value + "&ch_br=" + list_form.brand_value.value;
		keyword = hahatest_form.keyword.value;
		keyword = keyword.replace("%", "%25"); keyword = keyword.replace("+", "%2B"); keyword = keyword.replace("&", "%26");
		operator = hahatest_form.operator.value;
		list_form.list_tq.value = "";
		list_form.target = "prd_list_view";
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		other.push("sn=1");
		other.push("pg=" + document.form_direct.pg.value);
		other.push("tq="+rep_tq);
		other.push("catid=");
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("sch=" + document.all.sch.value);
		other.push("sbn=" + document.all.sbn.value);
		other.push("advantage=tns");
		other.push("keyword=" + keyword);
		other.push("operator=" 	+ operator + "&" + paramater);
		if(document.hahatest_form.view_kind_ch.value == 'Y') other.push("template=" + hahatest_form.template.value);
		else other.push("template=big");
		other.push("trend_code=001120103");
		other.push("viewKind=");
		var sUrl = page_url + "dsearch/include/shop_tns_if.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	function iframe_shopInfo_Search(curId) {
		var price_type;
		for(j=0; j< list_form.price_type.length; j++) {
			if(list_form.price_type[j].checked == true) {
				price_type = list_form.price_type[j].value;
			}
		}
		get_searchText();
		get_condition();
		if(price_type == 1) {
			if(curId != undefined) {
				get_price(curId);
			}
		} else if (price_type == 2) {
			get_price2();
		}	
		list_form.list_tq.value = "";
		keyword = hahatest_form.keyword.value;
		keyword = keyword.replace("%", "%25"); keyword = keyword.replace("+", "%2B"); keyword = keyword.replace("&", "%26");
		operator = hahatest_form.operator.value;
		list_form.list_tq.value = "";
		list_form.target = "prd_list_view";
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		other.push("sn=1");
		other.push("pg=" + document.form_direct.pg.value);
		other.push("tq="+rep_tq);
		other.push("detail=null");
		other.push("dc_con=Y");
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("sch=t_tab");
		other.push("sbn=khow");					
		other.push("keyword=" + keyword);
		other.push("operator=" 	+ operator);
		if(document.hahatest_form.view_kind_ch.value == 'Y') other.push("template=" + hahatest_form.template.value);
		var sUrl =  page_url + "dsearch/include/shop_knowhow_if_s2.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	function iframe_popular_Search(curId) {
		var sUrl =  page_url + "dsearch/include/popular_view.jsp?catid=001120&tq=USB메모리&rctHit=searchTab&&sch=t_tab&sbn=popular";
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	function Add_MoneyComma( Name ) {
		var src;
		var i; 
		var factor; 
		var su; 
		var SpaceSize = 0;
		var chkValue;
		chkValue = "";
		su = Name.value.length;
		for(i=0; i < su ; i++) {
			src = Name.value.substring(i,i+1);
			if (src != ",") {
				factor = parseInt(src);
				if (isNaN(factor)) {// < 0 || src > 9)
					alert("숫자가 아닌 값이 입력되었습니다.");
					Name.focus();
					return false;
				}else{
					chkValue += src;
				} 
			} 
		}
		Name.value = chkValue;
		factor = Name.value.length % 3; 
		su = (Name.value.length - factor) / 3;
		src = Name.value.substring(0,factor);
		for(i=0; i < su ; i++) {
			if((factor == 0) && (i == 0)) {// "XXX" 인경우
				src += Name.value.substring(factor+(3*i), factor+3+(3*i)); 
			} else {
				src += "," ;
				src += Name.value.substring(factor+(3*i), factor+3+(3*i)); 
			}
		}
		Name.value = src; 
		return true; 
	}
	function Del_MoneyComma( Name ) { 
		var  x, ch; 
		var  i=0; 
		var  newVal=""; 
		for(x = 0; x < Name.value.length ; x++){ 
			ch= Name.value.substring(x,x+1); 
			if( ch != ",")  newVal += ch; 
		}    
		Name.value =  newVal; 
		return true; 
	} 
	function iframe_coupon_Search(dispNo) {
		get_searchText();
		var paramater;
		var dispNm='';
		paramater = "ch_op=" + list_form.condition_value.value + "&ch_pr=" + list_form.price_value.value + "&ch_br=" + list_form.brand_value.value;
		keyword = form_direct.keyword.value;
		keyword = keyword.replace("%", "%25"); keyword = keyword.replace("+", "%2B"); keyword = keyword.replace("&", "%26");
		operator = form_direct.operator.value;
		list_form.list_tq.value = "";
		list_form.target = "prd_list_view";		
		obj_tq_Id = document.getElementById('tq_id');
		obj_cate_id = document.getElementById('cate_id');	
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		other.push("sn=1");
		other.push("pg=" + document.form_direct.pg.value);	
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("sch=t_tab");
		other.push("sbn=cnevt");
		other.push("keyword=" + keyword);
		other.push("operator=" 	+ operator + "&" + paramater);
		other.push("advantage=coupon");
		other.push("tq="+rep_tq);
		if(document.hahatest_form.view_kind_ch.value == 'Y') other.push("template=" + hahatest_form.template.value);
		if (dispNo==undefined){
		}else{
			other.push("catid=" + dispNo);
		}		
		if (dispNo==undefined) {
			for(i=0; i< list_form.chkCoupon.options.length; i++){
				if(list_form.chkCoupon.options[i].selected){
					dispNo=list_form.chkCoupon.options[i].value;
					other.push("catid=" + dispNo);
					break;
				}
			}
		}else{
			for(i=0; i< list_form.chkCoupon.options.length; i++){
				if(list_form.chkCoupon.options[i].selected){
					dispNm=list_form.chkCoupon.options[i].text;
					break;
				}
			}
			obj_tq_Id.style.display = "none";
			obj_cate_id.style.display = "block";
			obj_cate_id.innerHTML = "선택하신 " + dispNm + " 카테고리의 쿠폰적용 상품과 기획전입니다.";
		}
	   
		other.push("dispNo=" +dispNo);
		other.push("dispNm=" +dispNm);
		
		var sUrl =  page_url + "dsearch/include/shop_coupon_if.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	/*전체 해제를 클릭했을 때 호출되는 function*/
	function hoho_test() {		
		if(vr.length > 0) {
			var deleted = document.getElementById("akakakak");	
			deleted.removeChild(document.getElementById("deleteKeyword"));
			var obj = document.createElement("OL");
			obj.id = "deleteKeyword";
			deleted.appendChild(obj); 
			vr = new Array();
			document.getElementById("gubun_line1").className = "gubun_line_none";
		}	
	}
	function clean_option() {
		hoho_test();
		var ch_length = list_form.option.length;
		var pr_length = list_form.price_opt.length;
		var br_length = 0;
		if(document.getElementById('brand') != null)	br_length = list_form.brand.length;
		for(i = 0; i < ch_length; i++) {
			list_form.option[i].checked = false;
		}
		for(i = 0; i < pr_length; i++) {
			list_form.price_opt[i].checked = false;
		}
		if(document.getElementById('brand') != null){
			for(i = 0; i < br_length; i++) {
				list_form.brand[i].checked = false;
			}
		}
		list_form.list_tq.value = "";
		list_form.target = "prd_list_view";
		list_form.s_price.value="";
		list_form.e_price.value="";
		hahatest_form.keyword.value = "";
		hahatest_form.operator.value = "";
		document.getElementById('prd_list_view').contentWindow.document.form_direct.keyword.value = "";
		document.getElementById('prd_list_view').contentWindow.document.form_direct.operator.value = "";
		list_form.condition_value.value="";
		list_form.price_value.value = "";
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		var sort_num = document.getElementById('prd_list_view').contentWindow.document.form_direct.so.value;
		other.push("sn=1");
		other.push("pg=" + document.form_direct.pg.value);
		other.push("tq="+rep_tq);
		other.push("so=" + sort_num);
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("search_kind=null" );
		other.push("detail=null" );
		other.push("keyword=" );
		other.push("operator=");
		other.push("trend_code=001120103");
		other.push("advantage=" 	+ advantage );
		if(document.hahatest_form.view_kind_ch.value == 'Y') other.push("template=" + hahatest_form.template.value);
		else {
			if(advantage =='tns') other.push("template=big");
			else other.push("template=small");
		}
		other.push("viewKind="	+ document.all.viewKind.value);
		var sUrl;
		if(document.all.view_tab_type.value == 'trend') sUrl = page_url + "dsearch/include/shop_tns_if.jsp" + "?" + other.join("&");
		else sUrl =  page_url + "dsearch/include/total_iframe_f.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;
	}
	function chg_viewMode(value, mode) {
		hahatest_form.view_kind_ch.value="Y";
		hahatest_form.template.value = mode;
		obj_tab_wrap = document.getElementById('tab_search_ol');
		obj_tab_link = obj_tab_wrap.getElementsByTagName("a");
		obj_iframe = document.getElementById('prd_list_view');
		for(var i = 0; i < obj_tab_link.length -1; i++) {
			if (i == value) obj_tab_link[i].className = "on";
			else obj_tab_link[i].className = "rollover";
		}	
		var so = form_direct.so.value;
		list_form.list_tq.value = "";
		var paramater = "ch_op=" + list_form.condition_value.value + "&ch_pr=" + list_form.price_value.value + "&ch_br=" + list_form.brand_value.value;
		get_searchText();
		keyword = hahatest_form.keyword.value;
		keyword = keyword.replace("%", "%25"); keyword = keyword.replace("+", "%2B"); keyword = keyword.replace("&", "%26");
		operator = hahatest_form.operator.value;
		var sn = hahatest_form.sn.value;	
		var pg = hahatest_form.pg.value;	
		list_form.target = "prd_list_view";
		var ck_mode_value = list_form.ck_mode.value;	
		var rep_tq = "USB메모리";
		rep_tq = rep_tq.replace("%", "%25"); rep_tq = rep_tq.replace("+", "%2B"); rep_tq = rep_tq.replace("&", "%26");
		var other = new Array();
		other.push("sn=" + document.form_direct.sn.value);
		other.push("pg=" + document.form_direct.pg.value);
		other.push("tq="+rep_tq);
		other.push("m_shopNo=0000100000");
		other.push("m_dispNo=008001");
		other.push("keyword=" + keyword);
		other.push("operator="	+ operator + "&" + paramater);
		other.push("template="	+ mode);
		if(so != "") other.push("so="	+ form_direct.so.value);
		other.push("advantage=" 	+ advantage );
		other.push("viewKind=" + document.list_form.viewKind.value);
		other.push("view_kind_ch=" + document.hahatest_form.view_kind_ch.value);
		other.push("trend_code=001120103" );
		var sUrl;
		if(document.all.view_tab_type.value == 'trend') sUrl = page_url + "dsearch/include/shop_tns_if.jsp" + "?" + other.join("&");
		else sUrl =  page_url + "dsearch/include/total_iframe_f.jsp" + "?" + other.join("&");
		var obj_iframe = document.getElementById('prd_list_view');
		obj_iframe.src = sUrl;	  
	}
	/*키워드 삭제 START*/
	var vr = new Array();
	var keywordSeqNo = 0;		
	function generateKeywordHistory(keyword){
		if(keyword == null || keyword == "")
			return;
		keyword = unescape(keyword);
		var kw = keyword.split('+');
		for(var i=0;i -1){
			queryString = popularURL.substring(queryIdx + 1);
			var params = queryString.split("&");
			for (var i=0 ; i < params.length ; i++){
				var param = params[i].split("=");
				if (param[0] == "view_kind"){
					if(param[1] == "L" ) view_kind_chg(1);
					else if(param[1] == "M" ) view_kind_chg(0);
					else if(param[1] == "F" ) view_kind_chg(2);
					else view_kind_chg( 1);
				}
			}
		}
	}
var ie7_flag=false;
	ie7_flag=(window.navigator.userAgent.indexOf("MSIE 7") !=-1);
	if (ie7_flag) document.domain="interpark.com";
 
                      
     
- 전체(9,088) 
 
- 최신인기상품 
 
- e-최저가상품(143) 
 
- 관련 쿠폰/기획전 
 
- 쇼핑정보 
 
- 
- 
 
  
- 
 
  
- 
  
 
- 
- 
 
  
- 
 
  
- 
 
  
 
- 검색하신 키워드 상품을 가장 많이 포함한 카테고리의 쿠폰적용 상품과 기획전입니다. 
 - 선택하신 'USB메모리' 카테고리의 쿠폰적용 상품과 기획전입니다. 
 
- 
  
-  
 
 
- 조건선택 
 
- 
 
							function expandView_brand(con,btn,txt,ul) {
								obj_con = document.getElementById(con);
								obj_btn = document.getElementById(btn);
								obj_txt = document.getElementById(txt);
								obj_ul = document.getElementById(ul);
								if (obj_con.className=="brand_name")	{
									obj_con.className = "brand_name_line";
									obj_txt.innerHTML="닫기";
									obj_ul.style.borderLeft = "1px solid #E5E5E5";
									obj_btn.src="http://openimage.interpark.com/2008/search/btn/btn_conClose.gif";
								} else {
									obj_con.className = "brand_name";
									obj_txt.innerHTML="더보기";
									obj_ul.style.borderLeft = "1px solid #FFFFFF";
									obj_btn.src="http://openimage.interpark.com/2008/search/btn/btn_conOpen.gif";
								}
							}
						
- 브랜드선택 
 
- 
 
- 
더보기  
- 가격선택 
 
- 
 
- 리스트 내 검색 
 
- 
 
 
swf_obj("http://openimage.interpark.com/_nip/flash/data_loading.swf", "270", "159", "data_loading");
 
  
					function tab_com_chg(view_kind, value, view_src, tab_name)	{
						if(view_kind == "bcd") {
							obj_tab_wrap = document.getElementById('tab_com_ul_b');
							obj_tab_li = obj_tab_wrap.getElementsByTagName("li");
							obj_iframe = document.getElementById('com_iframe_b');
							obj_length = obj_tab_wrap.getElementsByTagName("span").length;
						} else if (view_kind == "mttc") {
							obj_tab_wrap = document.getElementById('tab_com_ul_e');
							obj_tab_li = obj_tab_wrap.getElementsByTagName("li");
							obj_iframe = document.getElementById('com_iframe_e');
							obj_length = obj_tab_wrap.getElementsByTagName("span").length;
						} else if (view_kind =="all") {
							obj_tab_wrap = document.getElementById('tab_com_ul');
							obj_tab_li = obj_tab_wrap.getElementsByTagName("li");
							obj_iframe = document.getElementById('com_iframe');
							obj_length = obj_tab_wrap.getElementsByTagName("span").length;
						}						
						obj_length = obj_length / 3;
						for(var i = 0; i < obj_length ; i++) {
							if (i == value) {
								obj_tab_li[i].className = "tab on";
								obj_iframe.src = view_src;
							} else { obj_tab_li[i].className = "tab"; }
						}
						iframe_mart_Search(view_kind, value, tab_name);
					}
					function iframe_mart_Search(view_kind, dispNo, tab_name) {
						if(view_kind == "bcd") {
							form_Navi.target = "prdDetailFrame_b";
						} else if (view_kind == "mttc") {
							form_Navi.target = "prdDetailFrame_e";
						} else if (view_kind =="all") {
							form_Navi.target = "prdDetailFrame";
						}						
						obj_tq_Id = document.getElementById('tq_id');
						obj_cate_id = document.getElementById('cate_id');
						var other = new Array();
						other.push("sn=1");
						other.push("pg=50");
						other.push("tq=USB메모리");
						var page_url = '';
						if(tab_name == 'mart') page_url = "total_mart_result_f.jsp";
						else if(tab_name == 'book') page_url = "total_book_result_f.jsp";
						else if(tab_name == 'foreign') page_url = "total_foreign_result_f.jsp";
						else if(tab_name == 'cd') page_url = "total_cd_result_f.jsp";
						else if(tab_name == 'dvd') page_url = "total_dvd_result_f.jsp";
						else if(tab_name == 'tour') page_url = "total_tour_result_f.jsp";
						else if(tab_name == 'ticket') page_url = "total_ticket_result_f.jsp";
						var sUrl =  page_url + "?" + other.join("&");
						form_Navi.action = sUrl
						form_Navi.submit();
					}
				
ImgServ = "http://openimage.interpark.com/_nip";
				
				
 
첫댓글
 잘하셨어요 근데 소스 들은 