﻿
function goHome(chk)
{   
	document.location = '/main/main_real.asp';
}

function Cate(chk)
{
     document.location = '/main/main.asp';
}
function Guide(chk)
{
    openPopup("/main/guide/01_h.html", "guide", 970, 620, "scrollbars=no");
}

/////홈에서 클릭시 호출 하는 함수 부분
// 1.Club pc
function go11(chk)
{    

	if (chk==0) {
	  /*document.mainCate.doActon.value = "main";
	    document.mainCate.onEst.value = "club";
	 	document.mainCate.action = "/main/main.asp";
		document.mainCate.submit(); */
	  document.location = '/main/main.asp?doAction=main&onEst=club746'; // 1.Club pc
    } else if(chk=="1"){
      document.location = '/main/main.asp?doAction=main&onEst=club746'; // 1.Club pc
	} else if (chk=="2"){
      document.location = '/main/main.asp?doAction=main&onEst=club747'; // 1.Club pc
	}
}

//2.브랜드 pc
function  go21(chk)
{
    if (chk==0) {
		document.location = '/main/main.asp?doAction=main&onEst=brand96'; // 2.브랜드 pc
	}else if(chk=="1"){
      document.location = '/main/main.asp?doAction=main&onEst=brand96'; // 2.브랜드 pc
	} else if (chk=="2"){
      document.location = '/main/main.asp?doAction=main&onEst=brand23'; // 2.브랜드 pc
	} else if (chk=="3"){
      document.location = '/main/main.asp?doAction=main&onEst=brand162'; // 2.브랜드 pc
	}
}


// 3.노트북 pc
function go31(chk)
{
	 if (chk==0) {
			document.location = '/main/main.asp?doAction=main&onEst=note'; // 3.노트북 pc
	}
}


// 4.온라인견적
function go41(chk)
{
		if (chk==0) {			
			document.location = '/main/main.asp?doAction=main&onEst=est'; // 4.온라인견적
		}else if(chk=="1"){
		    document.location = '/main/main.asp?doAction=main&onEst=est'; // 4.온라인견적
		}else if(chk=="2"){
		    ///document.location = '/main/main.asp?doAction=main&onEst=est_comp'; // 4.호환성견적
		   alert("준비중입니다.");
		   return;
		}
}

// 5. 대량구매
function go51(chk)
{
		if (chk==0) {
		   //document.location = '/main/main.asp?doAction=main&onEst=over';///5. 대량구매
		   purchasepop();
		}
			
}


// 6. 특가상품
function go61(chk)
{
		
		if (chk==0) {
			 document.location = '/main/main.asp?doAction=main&onEst=event'; // 6. 특가상품
		}
}


// 7. 잉크찾기
function go71(chk)
{     
		if (chk==0) {
			document.location = '/main/main.asp?doAction=mainsub&onEst=inkinfo';// 7. 잉크찾기
		} 
}



// 8. 장바구니
function go81(chk)
{
		if (chk==0) {			
			document.location = '/main/main.asp?doAction=mainsub&onEst=cart'; // 8. 장바구니
		}
}


// 9. 마이쇼핑
function go91(chk)
{

		if (chk==0) {
			document.location = '/my/'; // 마이쇼핑_메인
		} else if (chk==1) {
			document.location = '/my/'; // 1.마이쇼핑정보
        } else if (chk==2) {
			document.location = '/my/order_normal.asp'; // 2. 나의 쇼핑정보
        } else if (chk==3) {
			document.location = '/my/as_result.asp'; // 3. 주문배송내역
        } else if (chk==4) {
			document.location = '/my/tax_issue_list.asp'; // 4. A/S 처리현황
        } else if (chk==5) {
			document.location = '/my/info_edit.asp'; // 5. 계산서발행내역
		}
}


// 10. 고객센터
function go101(chk)
{
		if (chk==0) {
			document.location = '/cscenter/'; // 고객센터_메인
		} else if (chk==1) {
			document.location = '/cscenter/bankinfo.asp'; // 1.컴클럽 이용안내
        } else if (chk==2) {
			document.location = '/cscenter/as_info.asp'; // 2. A/S 이용안내
        } else if (chk==3) {
			document.location = '/cscenter/faq.asp'; // 3. 자주묻는 질문
        } else if (chk==4) {
			document.location = '/board/list.asp?board=notice'; // 4. 공지사항
        } else if (chk==5) {
			document.location = '/board/list.asp?board=community'; // 5. 고객게시판
        }
}

// 11. 전체카테고리 보기
function goCate1(chk){   
   
	if (chk==0) {
	   all_category(); 
	}	
}

// 12. 브랜드몰 넘기기
function go111(vMallUid)
{
	document.location = '/main/main.asp?doAction=main&onEst=brandmall&mallUid='+vMallUid; 
}


// 13. CLUB 패키지
function go112(chk)
{
		if (chk==0) {
			 document.location = '/main/main.asp?doAction=main&onEst=clubpack'; // 1.Club 패키지
        }
}


////카테고리 쇼핑 클릭시 넘기는 함수////////
////카테고리에서 함수 콜 하는 부분
////////////////////////////////////////////

// 1.Club pc
function go12(chk)
{    
	
	if (chk==0) {
		onlineEstimate('club746');
	} else if(chk=="1"){
       	onlineEstimate('club746'); //클럽인텔  746
	} else if (chk=="2"){
       	onlineEstimate('club747');   //amd   747
	}
}

//2.브랜드 pc
function  go22(chk)
{ 
    if (chk==0) {
	   onlineEstimate('brand96');
	} else if(chk=="1"){
         onlineEstimate('brand96');//브랜드 96
	} else if (chk=="2"){
         onlineEstimate('brand23'); //넷탑  23
	} else if (chk=="3"){
         onlineEstimate('brand162');     //베어본 162 
	}
}


// 3.노트북 pc
function go32(chk)
{
	 if (chk==0) {
			onlineEstimate('note');
	  }
}


// 4.온라인 견적
function go42(chk)
{       
		if (chk==0) {
			onlineEstimate('est');
		}else if(chk==21){
		    onlineEstimate('est'); 
		}else if(chk==2){
		   /// onlineEstimate('est_comp');
		   alert("준비중입니다.");
		   return;
		}
}


// 5. 대량구매
function go52(chk)
{
	if (chk==0) {
		///onlineEstimate('over');
		purchasepop()
	  }
	
}


// 6. 특가상품
function go62(chk)
{
		if (chk==0) {			
			onlineEstimate('event');
		}
}



// 7. 잉크찾기
function go72(chk)
{
		if (chk==0) {
			onShowEvent('inkinfo');
		} 
}



// 8. 장바구니
function go82(chk)
{
		if (chk==0) {			
			onShowEvent('cart');
		}
}



// 9. 마이쇼핑
function go92(chk)
{

		if (chk==0) {
			document.location = '/my/'; // 마이쇼핑_메인
		} else if (chk==1) {
			document.location = '/my/'; // 1.개인정보
        } else if (chk==2) {
			document.location = '/my/order_normal.asp'; // 2. 나의 쇼핑정보
        } else if (chk==3) {
			document.location = '/my/as_result.asp'; // 3. A/S 처리현황
        } else if (chk==4) {
			document.location = '/my/tax_issue_list.asp'; // 4. 계산서발행내역
        } else if (chk==5) {
			document.location = '/my/info_edit.asp'; // 4. 계산서발행내역
		}
}


// 10. 고객센터
function go102(chk)
{
		if (chk==0) {
			//onShowEvent('custinfo');
			document.location = '/cscenter/';
		} else if (chk==1) {
			document.location = '/cscenter/bankinfo.asp'; // 1.컴클럽 이용안내
        } else if (chk==2) {
			document.location = '/cscenter/as_info.asp'; // 2. A/S 이용안내
        } else if (chk==3) {
			document.location = '/cscenter/faq.asp'; // 3. 자주묻는 질문
        } else if (chk==4) {
			document.location = '/board/list.asp?board=notice'; // 4. 공지사항
        } else if (chk==5) {
			document.location = '/board/list.asp?board=community'; // 5. 고객게시판
        }

}

// 11. 전체카테고리 보기
function goCate2(chk){ 
	if (chk==0) {
	  // all_category(); 
	}
}


// 12. CLUB패키지
function go212(chk)
{
		if (chk==0) {
           onlineEstimate('clubpack');
		} 
}


function goCate(chk){   
   // if (chk==0) {
	   all_category(); 
//	}	
}
///하단 카피에서  대량구매 문의 콜 하는 부분
function purchasepop(){
   openPopup("/goods/purchases.asp", "purchase", 710, 770, "scrollbars=yes");
}


//////////////////리스트에서 장바구니 담기 공통 모듈구현/////
function addCartList(vguid,vcate,vstock,vprice) {
   
	if (parseInt(vprice, 10) == 0) {
		alert("가격이 아직 정해지지 않았습니다.");
		return;
	}

	if (vstock != "00") {
		if (parseInt(vstock, 10) == 0) {
			alert("품절된 상품입니다.");
			return;
		}
	}
	
	var url = "/common/ajax/exec_main_goods_layer_cartOk.asp?guid="+vguid+"&cate="+vcate;	
	returnExec = "CartListRegOk";
	ajax.execute("GET", url, "", returnExec);

    mainCartDisplay();	
}

function CartListRegOk(sVal) {
	alert(sVal);
}
//////////////////장바구니에서 공통모듈 구현 되게 구성////////

////고객센터 퀵운송료 팝업 /////////
function popQuick(){
   openPopup("/cscenter/quick.asp", "quick", 730, 800, "scrollbars=yes");
}

////이용안내 팝업 ////////////////
function popUse(){
   openPopup("/cscenter/pop_info.asp", "quick", 730, 800, "scrollbars=yes");
}

///중앙배너1
function center_banner1(){
  document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=67'; 
}
///중앙배너2
function center_banner2(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=66'; 
}
///중앙배너3
function center_banner3(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=70'; 
}
///중앙배너4
function center_banner4(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=64'; 
}

///메인쪽 왼쪽배너1
function left_banner1(){
     document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=57'; 
}

///메인쪽 왼쪽배너2
function left_banner2(){
     document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=3'; 
}

///메인쪽 왼쪽배너3
function left_banner3(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=44'; 
}
///메인쪽 왼쪽배너4
function left_banner4(){
  document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=60'; 
}

///메인 하단배너1
function bottom_banner1(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=68'; 
}
///메인 하단배너2
function bottom_banner2(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=65'; 
}
///메인 하단배너3
function bottom_banner3(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=69'; 
}
///메인 하단배너4
function bottom_banner4(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=62'; 
}
///메인 하단배너5
function bottom_banner5(){
   document.location = '/main/main.asp?doAction=main&onEst=eventmall&eventUid=2'; 
}

