var chk ;
function goHome()
{
		document.location = '/';
}

// PTµµ¿ì¹Ì
function go01(chk,mcode,dcode)
{
		if (chk=="0") {
			document.location = '/pt_wizard/sam_list.aspx'; // 
			document.location = 'pt_wizard/list.aspx?aType=1&mCode=A106';
		} else if (chk=="1") {
			document.location = '/pt_wizard/list.aspx?aType='+chk+'&mCode='+mcode; //
		} else if (chk=="2") {
			document.location = '/pt_wizard/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode; //
		} 
}

// ³»ºÎµðÀÚÀÎ
function  go02(chk,mcode,dcode)
{
		if (chk==0) {
			document.location = '/design/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/design/list.aspx?aType='+chk+'&mCode='+mcode; //
		}  else if (chk=="2") {
			document.location = '/design/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode; //
		} 
}
//// ´ÜÀÏ´ÙÀÌ¾î±×·¥
function  go021(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/pt_diagram/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/pt_diagram/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/pt_diagram/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode+"&sort="+sort; //
		} 
}

//// ¿ÀºêÁ§Æ®
function  go022(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/pt_object/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/pt_object/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/pt_object/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode+"&sort="+sort; //
		} 
}

//// ¾Ö´Ï´ÙÀÌ¾î±×·¥
function  go023(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/pt_anidiagram/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/pt_anidiagram/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/pt_anidiagram/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode+"&sort="+sort; //
		} 
}


// ´ÜÀÏÅÛÇÃ¸´
function go03(chk,mcode,dcode)
{
		if (chk==0) {
			document.location = '/template/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/template/list.aspx?aType='+chk+'&mCode='+mcode; //
		}  else if (chk=="2") {
			document.location = '/template/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode; //
		} 
		
}
// ÆÐÅ°ÁöÅÛÇÃ¸´
function go031(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/templatepackage/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/templatepackage/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/templatepackage/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode+"&sort="+sort; //
		} 
		
}
// ¾Ö´ÏÇüÅÛÇÃ¸´
function go032(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/templateflash/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/templateflash/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/templateflash/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode+"&sort="+sort; //
		} 
		
}
// ÀÏ·¯½ºÆ®ÅÛÇÃ¸´
function go033(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/templateillust/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/templateillust/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/templateillust/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode+"&sort="+sort; //
		} 
		
}


// 
function go04(chk,mcode,dcode)
{
		if (chk==0) {
			document.location = '/data/list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/data/list.aspx?aType='+chk+'&mCode='+mcode; //
		}  else if (chk=="2") {
			document.location = '/data/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode; //
		}  
}

// CD & ÆÐÅ°Áö
function go05(chk,mcode,dcode,sort)
{
	if (chk==0) {
		document.location = '/pt_market/list.aspx?aType='+chk+'&mCode=E102'; // 
	}  else if (chk=="1") {
		document.location = '/pt_market/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
	}  else if (chk=="2") {
		document.location = '/pt_market/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode+"&sort="+sort; //
	}  
}

// PTÀÌ¹ÌÁö
function go06(chk,mcode,dcode)
{
		if (chk==0) {
			document.location = '/pt_img/new_list.aspx'; // 
		} else if (chk=="1") {
			document.location = '/pt_img/list.aspx?aType='+chk+'&mCode='+mcode; //
		}  else if (chk=="2") {
			document.location = '/pt_img/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode; //
		} 
}

// PT³ëÇÏ¿ì
function go07(chk)
{
		if (chk==0) {
			document.location = '/pt_knowhow/p_know.aspx'; // 
		} else if (chk==11) {
			document.location = '/pt_knowhow/p_know.aspx'; // 
		} else if (chk==13) {
			document.location = '/pt_knowhow/p_know01.aspx'; // 
		} else if (chk==31) {
			document.location = '/pt_knowhow/d_list.aspx?DivID=b1031'; // 
		} else if (chk==41) {
			document.location = '/pt_knowhow/mov_list.aspx?DivID=b1041'; // 
		} else if (chk==5) {
			document.location = '/pt_knowhow/request_form.aspx'; // 
		} else if (chk==6) {
			document.location = '/pt_knowhow/request_list.aspx'; // 
		} 
}

// Á¦¾Èµµ¿ì¹Ì
function go08(chk,mcode,dcode)
{
		if (chk==0) {
			document.location = '/production/new_list.aspx'; // 
		} else if (chk=="1") {
			document.location = '/production/list.aspx?aType='+chk+'&mCode='+mcode; //
		}  else if (chk=="2") {
			document.location = '/production/list.aspx?aType='+chk+'&mCode='+mcode +"&dCode="+dcode; //
		} 	
}


// Ä¿¹Â´ÏÆ¼
function go09(chk)
{
		if (chk==0) {
			document.location = '/community/m_community.aspx'; // 
		} else if (chk==91) {
			document.location = '/community/free_list.aspx?DivID=b9001'; // 
		} else if (chk==92) {
			document.location = '/community/free_list.aspx?DivID=b9002'; // 
		} else if (chk==93) {
			document.location = '/community/free_list.aspx?DivID=b9003'; // 
		} else if (chk==94) {
			document.location = '/community/event.aspx'; // 
		} else if (chk==95) {
			document.location = '/community/cooperation.aspx'; // 
		} else if (chk==96) {
			document.location = '/community/free_list.aspx?DivID=b9101'; // 
		} else if (chk==6) {
			document.location = '/community/cp_rule.aspx'; // 
		} 
}

// °í°´¼¾ÅÍ
function go10(chk)
{
		if (chk==1) {
			document.location = '/customer/cus01.aspx?DivID=n1000'; // 
		} else if (chk==2) {
			document.location = '/customer/cus02.aspx'; // 
		} else if (chk==3) {
			document.location = '/customer/cus03.aspx'; // 
		} else if (chk==4) {
			document.location = '/customer/cus04.aspx'; //  
		} else if (chk==5) {
			document.location = '/customer/cus05.aspx'; // 
		} else if (chk==7) {
			document.location = '/customer/cus07.aspx'; // 
		} else if (chk==9) {
			document.location = '/design/list.aspx?aType=1&mCode=B101&dCode=M192&sCode=&sMenuNo=10'; // 
		} 
}

// ¸â¹ö½±
function go11(chk)
{
		if (chk==0) {
			document.location = '/member/login.aspx'; // 
		} else if (chk==1) {
			document.location = '/member/login.aspx'; // 
		} else if (chk==2) {
			document.location = '/member/join_rule_person.aspx'; // 
		} else if (chk==3) {
			document.location = '/member/id_search.aspx'; // 
		} else if (chk==4) {
			document.location = '/member/logout.aspx'; // 
		} 
}

// ¸¶ÀÌÆäÀÌÁö
function go12(chk)
{
		if (chk==0) {
			document.location = '/mypage/mypage01.aspx?'; // 
		} else if (chk==1) {
			document.location = '/mypage/mypage01.aspx'; // 
		} else if (chk==2) {
			document.location = '/mypage/mypage02.aspx'; // 
		} else if (chk==3) {
			document.location = '/mypage/mypage03.aspx'; // 
		} else if (chk==4) {
			document.location = '/mypage/mypage04.aspx'; // 
		} else if (chk==51) {
			document.location = '/mypage/mypage051.aspx'; // 
		} else if (chk==52) {
			document.location = '/mypage/mypage052.aspx'; // 
		} else if (chk==53) {
			document.location = '/mypage/mypage053.aspx'; // 		 
		} else if (chk==6) {
			document.location = '/mypage/mypage06.aspx'; // 
		} else if (chk==7) {
			///document.location =  // 			
		} else if (chk==8) {
			document.location = '/mypage/mypage08.aspx'; // 
		} else if (chk==9) {
			document.location = '/mypage/mypage09.aspx';
		} else if (chk==10)  {
			document.location = '/mypage/mypage10.aspx'; //  
		} 
}

// cp°ü¸®
function go13(chk)
{
		if (chk==0) {
			document.location = '/cp/cp01.aspx'; // 
		} else if (chk==1) {
			document.location = '/cp/cp01.aspx'; // 
		} else if (chk==2) {
			document.location = '/cp/cp02.aspx'; // 
		} else if (chk==3) {
			document.location = '/cp/cp03.aspx'; // 
		} else if (chk==4) {
			document.location = '/cp/cp04.aspx'; // 
		} else if (chk==5) {
			document.location = '/cp/cp05.aspx'; // 
		} else if (chk==6) {
			document.location = '/cp/cp06.aspx'; // 
		} else if (chk==7) {
			document.location = '/cp/cp07.aspx'; // 
		} 
}


// cp°ü¸®
function go14(chk)
{
		if (chk==0) {
			document.location = '/cp/cp01.aspx'; // 
		} else if (chk==1) {
			///document.location = '/cp/cp01.aspx'; // 
			alert("ÁØºñÁßÀÔ´Ï´Ù.");
			return;
		} 
}

// ptÁ¦ÀÛ
function go15(chk)
{
		if (chk==0) {
			document.location = '/pt_work/pt_work.aspx'; // 
		} else if (chk==1) {
			document.location = '/pt_work/pt_work_01.aspx'; // 
		} else if (chk==2) {
			document.location = '/pt_work/pt_work_02.aspx'; // 
		} else if (chk==3) {
			document.location = '/pt_work/pt_work_03.aspx'; // 
		} else if (chk==4) {
			document.location = '/pt_work/pt_work_04.aspx'; // 
		} else if (chk==5) {
			document.location = '/pt_work/pt_work_05.aspx'; // 
		} else if (chk==6) {
			document.location = '/pt_work/pt_work_06.aspx'; // 
		} 
}


//ÇÁ¸®Á¨ÅÍ¸ô
function go16(chk,mcode,dcode,sort)
{
		if (chk==0) {
			document.location = '/shop/new_list.aspx'; // 
		}  else if (chk=="1") {
			document.location = '/shop/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; //
		}  else if (chk=="2") {
			document.location = '/shop/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode+"&sort="+sort; //
		} 
}

// etc
function etc(chk)
{
		if (chk==0) {
			document.location = '/etc/cash.aspx'; // 
		} else if (chk==1) {
			document.location = '/etc/company.aspx'; // 
		} else if (chk==2) {
			document.location = '/etc/couponapproval.aspx'; // 
		} else if (chk==3) {
			document.location = '/etc/company_02.aspx'; // 
		} else if (chk==4) {
			document.location = '/etc/company_03.aspx'; // 
		} else if (chk==5) {
			document.location = '/etc/company_04.aspx'; // 
		} else if (chk==6) {
			document.location = '/etc/company_05.aspx'; // 
		} else if (chk==10) {
			document.location = "/community/free_view.aspx?DivID=b9001&No=179&page=1"; // 
		} else if (chk==11) {
			document.location = "/community/free_list.aspx?DivID=b9101"; // 
		} 	
}

//Æ¯°¡»óÇ° ÆäÀÌÁö 
function go20(chk,mcode,dcode,sort)
{
	if(chk=="1") {
		document.location = '/pt_sales/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; 
	 } else if (chk=="2") {
		document.location = '/pt_sales/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode+"&sort="+sort;
	}  
}

//µ¿¿µ»ó°­ÁÂ ÆäÀÌÁö
function go21(chk,mcode,dcode)
{
    alert("ÁØºñÁßÀÔ´Ï´Ù.");
	return;
}

//ÀÌº¥Æ®»óÇ° ÆäÀÌÁö
function go22(chk,mcode,dcode)
{
	
		if (chk=="1") {
			document.location = '/pt_market/list.aspx?aType='+chk+'&mCode='+mcode; //
		}  else if (chk=="2") {
			document.location = '/pt_market/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode; //
		}  
}

//¹«·á»óÇ° ÆäÀÌÁö
function go23(chk,mcode,dcode,sort)
{
	
		if (chk=="1") {
			document.location = '/pt_free/list.aspx?aType='+chk+'&mCode='+mcode+"&sort="+sort; 
		}  else if (chk=="2") {
			document.location = '/pt_free/list.aspx?aType='+chk+'&mCode='+mcode+"&dCode="+dcode+"&sort="+sort; 
		}  
}


function GoTop()
{
		document.location = '#top';
}


///ÆÐÅ°Áö»óÇ° display
function mdchk(num) {
  if(num == "01"){
  md01.style.display="";md02.style.display="none";md03.style.display="none";md04.style.display="none";md05.style.display="none";
  }

  if(num == "02"){
  md01.style.display="none";md02.style.display="";md03.style.display="none";md04.style.display="none";md05.style.display="none";
  }

  if(num == "03"){
  md01.style.display="none";md02.style.display="none";md03.style.display="";md04.style.display="none";md05.style.display="none";
  }

  if(num == "04"){
  md01.style.display="none";md02.style.display="none";md03.style.display="none";md04.style.display="";md05.style.display="none";
  }
  
 if(num == "05"){
  md01.style.display="none";md02.style.display="none";md03.style.display="none";md04.style.display="none";md05.style.display="";
  }

}
