

function familyLink(num){
	//alert(num);
	switch(num) {
		case 1: url = "http://v3clinic.ahnlab.com";break;//V3 365 클리닉
		case 2: url = "http://shop.ahnlab.com";break;//AhnLab Mall
		case 3: url = "http://www.v3zip.com/main.do";break;//V3 Zip
		case 4: url = "http://v3mss.ahnlab.com";break;//V3 MSS
		case 5: url = "http://www.v3lite.com";break;//V3 Lite
		case 6: url = "http://www.siteguard.co.kr";break;//SiteGuard
		case 7: url = "http://www.hackshields.com";break;//HackShield
		case 8: url = "http://partner.ahnlab.com";break;//파트너
		default : break;
	}
	if(url!=""){
		window.open(url);
	}else{
		alert("준비중입니다.");
		return;
	}
}


function lnbUtilLink(num){
	var url=""; var name=""; var wid=""; var hei=""; var popchk="";

	switch(num) {
		case 1: url = "http://www.ahnlab.com/kr/site/securitycenter/statistics/popStatistics.do";name="popStatistics";popchk="yes";wid="";hei="700";break;//AhnLab보안통계
		case 2: url = "http://www.ahnlab.com/kr/site/securitycenter/virus/virus.do";name="virus";popchk="no";break;//바이러스신고센터
		case 3: url = "http://www.ahnlab.com/kr/site/securityinfo/dictionary/dictionaryList.do";popchk="no";break;//보안통계사전
		default : break;
	}

	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2;

	if(popchk=="no"){
		location.replace(url);
	}else{
		if(wid==''){
			winprops = "height=" + screen.height + ", width=" + screen.width + ", top=" + wint+ ", left=" + winl + ", toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes";
			window.open(url, 'popStatistics', winprops);
		}else{
			winprops = "height=" + hei + ", width=" + wid + ", top=" + wint+ ", left=" + winl + ", toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no";
			window.open(url, '', winprops);
		}
	}
}


function mainFlLink(param){
	var url=""; var name=""; var wid=""; var hei=""; var popchk="";

	switch(param) {
		case '00': url = "/kr/site/product/productGuideB2C.do";popchk="no";break;//처음방문하시나요 - 제품선택가이드
		case '01': url = "/kr/site/securityinfo/dictionary/dictionaryList.do";popchk="no";break;//처음방문하시나요 - 보안용어사전
		case '02': url = "/kr/site/etc/popSecurityMap.do";name="popSecurityMap";popchk="yes";wid="1024";hei="689";break;//처음방문하시나요 - 시큐리티 맵
		case '03': url = "/kr/site/securitycenter/virus/virus.do";popchk="no";break;//처음방문하시나요 - 바이러스신고센터
		case '10': url = "/kr/site/mypage/product/prodInsForm.do";popchk="no";break;//유료제품을 사용하고 계세요? - 제품등록
		case '11': url = "/kr/site/download/product/productList.do";popchk="no";break;//유료제품을 사용하고 계세요? - 다운로드
		case '12': url = "/kr/site/support/b2b/networkYearView.do";popchk="no";break;//유료제품을 사용하고 계세요? - 기업교육신청
		case '13': url = "/kr/site/support/main.do";popchk="no";break;//유료제품을 사용하고 계세요? - 고객지원
		case '20': url = "/kr/site/securityinfo/secunews/secuNewsList.do";popchk="no";break;//보안정보가궁금하세요? - 보안,뉴스와이슈
		case '21': url = "/kr/site/securityinfo/secunews/secuNewsList.do?menu_dist=3";popchk="no";break;//보안정보가궁금하세요? - 전문가칼럼
		case '22': url = "/kr/site/securitycenter/asec/asecReportView.do?groupCode=VNI001";popchk="no";break;//보안정보가궁금하세요? - 보안이슈&이슈
		case '23': url = "/kr/site/securitycenter/statistics/popStatistics.do";name="popStatistics";popchk="yes";wid="";hei="700";break;//보안정보가궁금하세요? - AhaLab보안통계
		case '30': url = "http://twitter.com/ahnlab_man";popchk="blank";break;//Twitter AhnLab
		case '31': url = "http://blog.ahnlab.com/";popchk="blank";break;//보안세상과의소통이필요하세요? - AhnLabBLOG
		case '32': url = "http://blogsabo.ahnlab.com/";popchk="blank";break;//보안세상과의소통이필요하세요? - 사보보안세상
		case '33': url = "/kr/site/product/partnerInfo.do";popchk="no";break;//보안세상과의소통이필요하세요? - 파트너
		default : break;
	}

	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2;

	if(popchk=="no"){
		location.replace(url);
	}else if(popchk=="yes"){
		if(wid==''){// AhaLab보안통 FullScreen
			winprops = "height=" + screen.height + ", width=" + screen.width + ", top=0, left=0, toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=yes";
			window.open(url, 'popStatistics', winprops);
		}else{
			winprops = "height=" + hei + ", width=" + wid + ", top=" + wint+ ", left=" + winl + ", toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no";
			window.open(url, name, winprops);
		}
	}else if(popchk=="blank"){
		window.open(url);
	}
}


function popSecurityMap(){
	window.open('/kr/site/etc/popSecurityMap.do','secuMap','width=1024,heigth=700');
}

// 새로워진 안랩닷컴 팝업Js
function newInfo(){
	wid='980';hei='688';
	var winl = (screen.width - wid) / 2;
	var wint = (screen.height - hei) / 2;
	winprops = "height=" + hei + ", width=" + wid + ", top=" + wint+ ", left=" + winl + ", toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no";
	window.open('/kr/site/etc/popNewAhnlab.do', 'newAhnLab', winprops);
}