/*
 * Parameter : 탑메뉴번호, 서브메뉴번호, 서브2메뉴번호, 통합검색어
 */ 

function pageGo(topMenuNum, subMenuNum, sub2MenuNum, search_text){
	
	//alert("topMenuNum :"+topMenuNum+"@subMenuNum :"+subMenuNum+"@subMenuNum2 :"+sub2MenuNum);
	var URL = "/tscMain.tsc"; 
  
	switch (topMenuNum) { 
			case 1 : // 하나로 기업서비스
					switch (subMenuNum) { 
						
						case 1 : // 컨택요원활동
							switch (sub2MenuNum) { 
								case 1 : URL = "/tscCompanyService/tscCompanyService.tsc?method=contactIntro";break;
								case 2 : URL = "/tscCompanyService/tscCompanyService.tsc?method=contactIndex";break;
								default : URL = "/tscCompanyService/tscCompanyService.tsc?method=contactIntro";break;
							} break;
						case 2 : URL = "/tscCompanyService/tscCompanyService.tsc?method=adviseIndex";break;	// 파트너활동
						case 3 : //온라인기업상담
							switch (sub2MenuNum) { 
								case 1 : URL = "/tscCompanyService/tscCompanyService.tsc?method=generalCounselingList";break;
								case 2 : URL = "/tscCompanyService/tscCompanyService.tsc?method=generalCounselingWrite";break;
								case 3 : URL = "/tscCompanyService/tscCompanyService.tsc?method=excellentCounselList";break;
								default : URL = "/tscCompanyService/tscCompanyService.tsc?method=generalCounselingList";break;
							} break;
						case 4 : //장비상담
							switch (sub2MenuNum) { 
								case 1 : URL = "/tscCompanyService/tscEquipService.tsc?method=equipIntro";break;
								case 2 : URL = "/tscCompanyService/tscEquipService.tsc?method=equipWrite";break;
								case 3 : URL = "/tscCompanyService/tscEquipService.tsc?method=equipCounselList";break;
								case 4 : URL = "/tscCompanyService/tscEquipService.tsc?method=equipList";break;
								case 5 : URL = "/tscCompanyService/tscEquipService.tsc?method=orgIntro";break;
								default : URL = "/tscCompanyService/tscEquipService.tsc?method=equipList";break;
							} break;
						case 5 : URL = "/tscProfessor/tscProfessor.tsc?method=index";break;
						
						default : URL = "/tscCompanyService/tscCompanyService.tsc?method=index";break;
					} break;
			case 2 : // 지원정보센터
					switch (subMenuNum) { 
						case 1 : //기업지원정보
							switch (sub2MenuNum) { 
								case 1 : URL = "/tscSupportInfo/tscSupportInfo.tsc?method=orgList";break;
								case 2 : URL = "/tscSupportInfo/tscSupportInfo.tsc?method=kindList";break;
								case 3 : URL = "/tscSupportInfo/tscSupportInfo.tsc?method=helperList";break;
								case 4 : URL = "/tscSupportInfo/tscSupportInfo.tsc?method=popularList";break;
								case 5 : URL = "/tscMain.tsc";break;
								default : URL = "/tscSupportInfo/tscSupportInfo.tsc";break;
							} break;
						case 2 : //전자도서관
							switch (sub2MenuNum) { 
								case 1 : URL = "/tscLibrary/tscLibrary.tsc?typeCd=907";break;
								case 2 : URL = "/tscLibrary/tscLibrary.tsc?typeCd=906";break;
								case 3 : URL = "/tscLibrary/tscLibrary.tsc?typeCd=909";break;
								case 4 : URL = "/tscLibrary/tscLibrary.tsc?typeCd=910";break;
								case 5 : URL = "/tscLibrary/tscLibrary.tsc?typeCd=908";break;
								default : URL = "/tscLibrary/tscLibrary.tsc?typeCd=907";break;
							} break;
						case 3 : //문헌자료실
							switch (sub2MenuNum) { 
							case 1 : URL = "/tscBoard/tscBoard.tsc?typecd=125";break;
							case 2 : URL = "/tscBoard/tscBoard.tsc?typecd=126";break;
							case 3 : URL = "/tscBoard/tscBoard.tsc?typecd=261";break;
							case 4 : URL = "/tscBoard/tscBoard.tsc?typecd=262";break;
							default : URL = "/tscBoard/tscBoard.tsc?typecd=125";break;
						} break;
						default : URL = "/tscSupportInfo/tscSupportInfo.tsc?method=index";break;
					} break;
			case 3 : // 정책뉴스
					switch (subMenuNum) { 
					case 0 : URL = "/tscNews/tscNews.tsc?method=newsIndex";break; 
					case 1 : URL = "/tscNews/tscNews.tsc?newsBoardType=86";break;
					case 2 : URL = "/tscNews/tscNews.tsc?newsBoardType=88";break;
					case 3 : URL = "/tscNews/tscNews.tsc?newsBoardType=89";break;
					case 4 : URL = "/tscNews/tscNews.tsc?newsBoardType=287";break;
					default : URL = "/tscNews/tscNews.tsc?method=newsIndex";break;
					} break;
			case 4 : // 알림마당
					switch (subMenuNum) { 
						case 0 : URL = "/tscMain.tsc?method=noticeIndex";break;
						case 1 : URL = "/tscBoard/tscBoard.tsc?typecd=121";break;//공지사항
						case 2 : URL = "/tscSchedule/tscSchedule.tsc";break;
						case 3 : URL = "/tscBoard/tscBoard.tsc?typecd=291";break;
						case 4 : URL = "/tscBoard/tscBoard.tsc?typecd=292";break;
						default : URL = "/tscMain.tsc";break;
					} break;
			case 5 : // 참여마당
					switch (subMenuNum) { 
						case 0 : URL = "/tscMain.tsc?method=communityIndex";break;
						case 1 : URL = "/tscMain.tsc?method=useGuide";break;
						case 2 : URL = "/tscBoard/tscBoard.tsc?typecd=294";break;
						case 3 : URL = "/tscBoard/tscBoard.tsc?typecd=293";break;
						case 4 : URL = "/tscBoard/tscBoard.tsc?typecd=122";break;
						case 5 : URL = "/tscSurvey/survey.tsc";break;
						default : URL = "/tscMain.tsc";break;
					} break;
			case 6 : // 센터소개
					switch (subMenuNum) { 
						case 1 : URL = "/tscMain.tsc?method=greeting";break;
						case 2 : URL = "/tscMain.tsc?method=mainBusiness";break;
						case 3 : URL = "/tscMain.tsc?method=contactUs";break;
						case 4 : URL = "/tscMain.tsc?method=relatedSite";break;
						default : URL = "/tscMain.tsc?method=greeting";break;
					} break;
			case 7 : // 마이페이지
					switch (subMenuNum) { 
						case 1 : // 마이페이지
							switch (sub2MenuNum) { 
								case 1 : URL = "/tscMyPage/tscMyPage.tsc?method=customerType";break;
								case 2 : URL = "/tscMyPage/tscMyPage.tsc?method=findIdPass";break;
								case 3 : URL = "/tscMyPage/tscMyPage.tsc?method=customerView&type=customer";break;
								case 4 : URL = "/tscMyPage/tscMyPage.tsc?method=customerView&type=company";break;
								case 5 : URL = "/tscMyPage/tscMyCounsel.tsc?method=myCounselList";break;
								case 6 : URL = "/tscMyPage/myBoard.tsc";break;
								case 7 : URL = "/tscMyPage/tscMyPage.tsc?method=myReadList&type=load";break;
								case 8 : URL = "/tscMyPage/scrap.tsc";break;
								case 9 : URL = "/tscBoard/tscBoard.tsc?typecd=295";break;
								default : URL = "/tscMyPage/tscMyPage.tsc?method=customerType";break;
							} break;
						default : URL = "/tscMyPage/tscMyPage.tsc?method=customerType";break;
					} break; 
			case 8 : // 유틸리티
    				switch (subMenuNum) { 
						case 1 : URL = "/tscMain.tsc?method=privatePolicy";winOpen(URL, 720,438,50,50);break;
						case 2 : URL = "/tscMain.tsc?method=refuseCollectEmail";winOpen(URL, 720,240,50,50);break;
						case 3 : URL = "/tscMain.tsc?method=useTerms";winOpen(URL, 720,438,50,50);break;
						default : URL = "/tscMain.tsc?method=privatePolicy";winOpen(URL, 500,500,50,50);break;
					} break;
			case 9 : // 통합검색
					switch (subMenuNum) {  
						case 0 : 
							switch (sub2MenuNum) { 
								case 0 : URL = "/tscUnifiedSearch/tscUnifiedSearch.tsc";goPageByPost(URL,'unifiedSearchForm','search_text',search_text);return false;break;
								case 11 : URL = "/tscUnifiedSearch/tscUnifiedSearch.tsc?method=googleSearch";goPageByPost(URL,'unifiedSearchForm','search_text',search_text);return false;break;
								case 12 : URL = "/tscUnifiedSearch/tscUnifiedSearch.tsc?method=naverSearch";goPageByPost(URL,'unifiedSearchForm','search_text',search_text);return false;break;
								case 13 : URL = "/tscUnifiedSearch/tscUnifiedSearch.tsc?method=daumSearch";goPageByPost(URL,'unifiedSearchForm','search_text',search_text);return false;break;
								default : URL = "/tscUnifiedSearch/tscUnifiedSearch.tsc";goPageByPost(URL,'unifiedSearchForm','search_text',search_text);return false;break;
							} break;
						default : URL = "/tscUnifiedSearch/tscUnifiedSearch.tsc";goPageByPost(URL,'unifiedSearchForm','search_text',search_text);return false;break;
					} break; 
			default : URL = "tscMain.tsc";break;
	}	
	
	if(topMenuNum != 8){	// 8번은 팝업
		window.location.href = URL;
	}
}
