// Ã¼Å©...
// email
function check_email(address) {
	if ((address == "") || (address.indexOf ('@') == -1) || (address.indexOf ('.') == -1))
		  return false;
	return true;
}
// ÁÖ¹Î¹øÈ£...
function c_id_v(cid1,cid2)
{
	var c_id_sum = 0;
	var c_id_check = 0;
	var c_id_check_d = 0;
	var c_id_total = 0;
	  
	c_id_check = cid2.charAt(6);
	  
	c_id_sum = cid1.charAt(0) * 2;
	c_id_sum = c_id_sum + (cid1.charAt(1) * 3);
	c_id_sum = c_id_sum + (cid1.charAt(2) * 4);
	c_id_sum = c_id_sum + (cid1.charAt(3) * 5);
	c_id_sum = c_id_sum + (cid1.charAt(4) * 6);
	c_id_sum = c_id_sum + (cid1.charAt(5) * 7);
	c_id_sum = c_id_sum + (cid2.charAt(0) * 8);
	c_id_sum = c_id_sum + (cid2.charAt(1) * 9);
	c_id_sum = c_id_sum + (cid2.charAt(2) * 2);
	c_id_sum = c_id_sum + (cid2.charAt(3) * 3);
	c_id_sum = c_id_sum + (cid2.charAt(4) * 4);
	c_id_sum = c_id_sum + (cid2.charAt(5) * 5);
	  
	c_id_check_d = c_id_sum % 11;
	  
	c_id_check_d = 11 - c_id_check_d;
	  
	if (c_id_check_d == 10) {  c_id_check_d = 0; }
	if (c_id_check_d == 11) { c_id_check_d = 1;  }
	if(c_id_check_d == c_id_check) { return true; }
	else { return false; }
}
///////////////////////////////////////////////////////////////////////////

// Ã¢..¸Þ¼¼Áö...
function Warn(msg) {
	alert(msg + "ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù!");		
}

function pmd(url,name,width,height,scrollbars,resizable, status) {
	//var msgWindow=window.open(url,name,'scrollbars='+scrollbars+',resizable='+resizable+',width='+width+',height='+height+',top=0,left=0');
	window.open(url,name,'scrollbars='+scrollbars+',width='+width+',height='+height+',left=0,top=0,toolbar=no,location=no, directories=no, status='+status+', menubar=no, resizable='+resizable);	}


/*
function showViewer(){
	pmd('/kisa/comm/jsp/comm_viewer.htm','viewer',446,423,'no','no','no');
}
*/

function showViewer(){
	var isTTS = false;

	// TTS ¿©ºÎ
	if ( typeof(top.cnt) != "undefined" ){
		isTTS = true;
	}

	if (isTTS)
	{
		pmd('/kisa/comm/jsp/comm_viewer.htm','viewer',446,423,'no','no','no');

		document.tts_pop.pop_URL.value ="/kisa/comm/jsp/comm_viewer.htm";
		document.tts_pop.action ="/plugin/tts_popup.jsp";
		document.tts_pop.target ="viewer";
		document.tts_pop.submit();
	}

	else{
			pmd('/kisa/comm/jsp/comm_viewer.htm','viewer',446,423,'no','no','no');
	}
}

function showPrint(url){
	pmd('/kisa/comm/jsp/comm_print.jsp?url='+url,'print',730,600,'yes','no','no');
}

function showPrinte(url){
	pmd('/kisae/comm/jsp/comm_print.jsp?url='+url,'print',730,600,'yes','no','no');
}

/*
function showPdf(){
	pmd('/kisa/kcac/jsp/comm_pdf.htm','pdf',452,534,'no','no','no');
}
*/

function showPdf(){
	var isTTS = false;

	// TTS ¿©ºÎ
	if ( typeof(top.cnt) != "undefined" ){
		isTTS = true;
	}

	if (isTTS)
	{
		pmd('/kisa/kcac/jsp/comm_pdf.htm','pdf',452,534,'no','no','no');

		document.tts_pop.pop_URL.value ="/kisa/kcac/jsp/comm_pdf.htm";
		document.tts_pop.action ="/plugin/tts_popup.jsp";
		document.tts_pop.target ="pdf";
		document.tts_pop.submit();
	}

	else{
			pmd('/kisa/comm/jsp/comm_viewer.htm','viewer',446,423,'no','no','no');
	}
}

///////////////////////////////////////////////////////////////////////////////////

// ÀÌµ¿...
function click(str){
//	alert(str);

/*
	if(str == 'A00') location.href = "http://www.kisa.or.kr"; // home
	else if(str == 'A01') location.href = "http://www.kisa.or.kr"; // home
	else if(str == 'A02') window.open("/child/main.htm"); // ¾î¸°ÀÌ
	else if(str == 'A03') location.href = "http://www.kisa.or.kr/kisa/comm/jsp/comm_sitemap.jsp"; // sitemap
	else if(str == 'A04') location.href = "https://www.kisa.or.kr:442/kisa/help/jsp/help_clients.jsp"; // contact us
	else if(str == 'A05') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_8010.jsp"; // ¿À½Ã´Â±æ
	else if(str == 'A06') location.href = "http://www.kisa.or.kr/kisa/comm/jsp/comm_login.jsp"; // ·Î±×ÀÎ
	else if(str == 'A07') location.href = "http://www.kisa.or.kr/kisa/comm/jsp/comm_login_out.jsp"; // ·Î±×¾Æ¿ô

	else if(str == 'B01') location.href = "http://www.kisa.or.kr/kisa/kcac/jsp/kcac.jsp"; // ÀüÀÚ¼­¸í°ü¸®ÀÎÁõ¼¾ÅÍ
	else if(str == 'B02') location.href = "http://spam.prjgroup.co.kr"; // ºÒ¹ý½ºÆÔ´ëÀÀ¼¾ÅÍ
	else if(str == 'B03') location.href = "http://www.kisa.or.kr/kisa/isms/jsp/isms.jsp"; // Á¤º¸º¸È£°ü¸®Ã¼°èÀÎÁõ
	else if(str == 'B04') location.href = "http://www.kisa.or.kr/kisa/privacy/jsp/privacy.jsp"; // °³ÀÎÁ¤º¸Ä§ÇØ½Å°í¼¾ÅÍ
	else if(str == 'B05') location.href = "http://www.kisa.or.kr/kisa/kisis/jsp/kisis.jsp"; // Á¤º¸º¸È£»ê¾÷Áö¿ø¼¾ÅÍ
	else if(str == 'B06') location.href = "http://www.kisa.or.kr/kisa/kisec/jsp/kisec.jsp"; // º¸¾È¼ºÆò°¡¼¾ÅÍ
	else if(str == 'B07') location.href = "http://www.kisa.or.kr/kisa/iscs/jsp/iscs.jsp"; // Á¤º¸º¸È£¾ÈÀüÁø´ÜÁö¿ø
	else if(str == 'B08') window.open("http://www.krcert.or.kr"); // krcert
	else if(str == 'B09') location.href = "http://www.kisa.or.kr/kisa/ciip/jsp/ciip.jsp"; // Á¤º¸Åë½Å±â¹Ýº¸È£
	else if(str == 'B10') location.href = "http://www.kisa.or.kr/kisa/knbtc/jsp/knbtc.jsp"; // ¹ÙÀÌ¿ÀÀÎ½ÄÁ¤º¸½ÃÇè¼¾ÅÍ
	else if(str == 'B11') location.href = "http://www.kisa.or.kr/kisa/ipin/jsp/ipin.jsp"; // ¾ÆÀÌÇÉ
	else if(str == 'B12') location.href = "http://www.kisa.or.kr/kisa/location/jsp/location.jsp"; // À§Ä¡Á¤º¸º¸È£
	
	else if(str == 'C01') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/notice_list.jsp"; // °øÁö»çÇ×
	else if(str == 'C02') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/press_list.jsp"; // º¸µµÀÚ·á
	else if(str == 'C03') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/bid_list.jsp"; // À§Å¹°úÁ¦
	else if(str == 'C04') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/entrust_list.jsp"; // ÀÔÂû°ø°í
	else if(str == 'C09') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/dong_list.jsp"; // µ¿ÇâÁ¤º¸
	else if(str == 'C05') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/event_list.jsp"; // Çà»ç¾È³»
	else if(str == 'C06') location.href = "http://www.kisa.or.kr/kisa/education/jsp/education_1010_10.jsp"; // ±³À°¾È³»
	else if(str == 'C07') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/hire_1010.jsp"; // ÀÎÀçÃ¤¿ë
	else if(str == 'C08') location.href = "http://www.kisa.or.kr/kisa/notics/jsp/sis_1010.jsp"; // Á¤º¸º¸È£Àü¹®°¡ÀÚ°Ý...
	
	else if(str == 'D01') location.href = "http://www.kisa.or.kr/kisa/help/jsp/help_1010_list.jsp"; // FAQ
	else if(str == 'D02') location.href = "http://www.kisa.or.kr/kisa/help/jsp/help_2010.jsp"; // »ó´ã ¹× ½Å°í
	else if(str == 'D03') location.href = "http://www.kisa.or.kr/kisa/help/jsp/help_policy.jsp"; // °³ÀÎÁ¤º¸º¸È£Á¤Ã¥
	else if(str == 'D04') location.href = "http://www.kisa.or.kr/kisa/help/jsp/help_service.jsp"; // °í°´¼­ºñ½ºÇåÀå
	else if(str == 'D05') location.href = "https://www.kisa.or.kr:442/kisa/help/jsp/help_bb.jsp"; // ºÎÁ¶¸®½Å°í
	else if(str == 'D06') location.href = "https://www.kisa.or.kr:442/kisa/help/jsp/help_clients.jsp"; // °í°´ÀÇ¼Ò¸®

	else if(str == 'E01') location.href = "http://www.kisa.or.kr/kisa/data/jsp/data_1010_search.jsp";	// ÅëÇÕ°Ë»ö
	else if(str == 'E02') location.href = "http://www.kisa.or.kr/kisa/data/jsp/data_2010_list.jsp";		// kisa ¹ß°£ÀÚ·á
	
	else if(str == 'F01') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_1010.jsp"; // ÀÎ»ç¸»
	else if(str == 'F02') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_2010.jsp"; // ¿¬Çõ
	else if(str == 'F03') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_3010.jsp"; // ¼³¸³±Ù°Å
	else if(str == 'F04') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_3020.jsp"; // ÁÖ¿ä¾÷¹«
	else if(str == 'F05') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_4011.jsp"; // Á¤º¸°ø°³
	else if(str == 'F06') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_5010.jsp"; // Á¶Á÷µµ
	else if(str == 'F07') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_6010.jsp"; // À±¸®ÇåÀå
	else if(str == 'F08') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_7010.jsp"; // Çàµ¿°­·É
	else if(str == 'F10') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_7020.jsp"; // À±¸®°æ¿µ¹æÄ§
	else if(str == 'F09') location.href = "http://www.kisa.or.kr/kisa/kisa/jsp/kisa_8010.jsp"; // Ã£¾Æ¿À½Ã´Â±æ

	else if(str == 'K01') location.href = "http://www.kisa.or.kr/kisa/public/jsp/public_1010.jsp"; // Á¤º¸°ø°³ Æí¶÷
	else if(str == 'K02') location.href = "http://www.kisa.or.kr/kisa/public/jsp/public_2010.jsp"; // ¿Â¶óÀÎÁ¤º¸°ø°³Ã»±¸
	else if(str == 'K03') location.href = "http://www.kisa.or.kr/kisa/public/jsp/public_3010.jsp"; // °æ¿µ°ø½Ã
	else if(str == 'K04') location.href = "http://www.kisa.or.kr/kisa/public/jsp/public_4010.jsp"; // ÀÚ¹ßÀûÁ¤º¸°ø°³
	else if(str == 'K05') location.href = "http://www.kisa.or.kr/kisa/public/jsp/public_5010.jsp"; // ÀÚ·á½Ç

	else if(str == 'H01') location.href = "http://www.kisa.or.kr/kisa/publicity/jsp/publicity_1010_10.jsp"; // ±¹Á¦Çù·Â
	else if(str == 'H02') location.href = "http://www.kisa.or.kr/kisa/publicity/jsp/publicity_1020.jsp"; // »çÁøÀÚ·á
	else if(str == 'H03') location.href = "http://www.kisa.or.kr/kisa/publicity/jsp/publicity_1030_list.jsp"; // ±â°í¹®
	else if(str == 'H04') location.href = "http://www.kisa.or.kr/kisa/publicity/jsp/publicity_1040.jsp"; // ¿µ»óÀÚ·á
	else if(str == 'H05') location.href = "http://www.kisa.or.kr/kisa/publicity/jsp/publicity_1050.jsp"; // KISA CI
	else if(str == 'H06') location.href = "http://www.kisa.or.kr/kisa/publicity/jsp/publicity_1060.jsp"; // Á¤º¸º¸È£ Ç¥¾î¤ýÆ÷½ºÅÍ °ø¸ðÀü ¼ö»óÀÛ

	else if(str == 'I01') location.href = "http://www.kisa.or.kr/maine.jsp"; // ENGLISH
	else if(str == 'I02') location.href = "http://www.kisa.or.kr"; // KOREAN

	else if(str == 'J01') location.href = "http://www.kisa.or.kr/kisa/help/jsp/help_2010.jsp"; // 
	else if(str == 'J02') location.href = "http://www.kisa.or.kr/kisa/help/jsp/help_1010_list.jsp"; // 
	else if(str == 'J03') location.href = "https://www.kisa.or.kr:442/kisa/help/jsp/help_2010_10.jsp"; // 
	else if(str == 'J04') location.href = "https://www.kisa.or.kr:442/kisa/mypage/jsp/mypage_02.jsp"; // 

	else location.href = "http://www.kisa.or.kr";
*/
	rootUrl = 'http://www.kisa.or.kr';
	if(str == 'A00') location.href = rootUrl; // home
	else if(str == 'A01') location.href = rootUrl; // home
	else if(str == 'A02') window.open("/child/main.htm"); // ¾î¸°ÀÌ
	else if(str == 'A03') location.href = rootUrl+"/jsp/util/sitemap.jsp"; // sitemap
	else if(str == 'A04') location.href = "https://www.kisa.or.kr/jsp/customer/appeal/appeal_main.jsp"; // contact us
	else if(str == 'A05') location.href = rootUrl+"/jsp/intro/map1.jsp"; // ¿À½Ã´Â±æ
	else if(str == 'A06') location.href = rootUrl+"/jsp/members/login.jsp"; // ·Î±×ÀÎ
	else if(str == 'A07') location.href = rootUrl+"/jsp/members/login_out.jsp"; // ·Î±×¾Æ¿ô

	else if(str == 'B01') location.href = "http://rootca.kisa.or.kr"; // ÀüÀÚ¼­¸í°ü¸®ÀÎÁõ¼¾ÅÍ
	else if(str == 'B02') location.href = "http://spam.kisa.or.kr"; // ºÒ¹ý½ºÆÔ´ëÀÀ¼¾ÅÍ
	else if(str == 'B03') location.href = "http://isms.kisa.or.kr";// Á¤º¸º¸È£°ü¸®Ã¼°èÀÎÁõ
	else if(str == 'B04') location.href = "http://privacy.kisa.or.kr"; // °³ÀÎÁ¤º¸Ä§ÇØ½Å°í¼¾ÅÍ
	else if(str == 'B05') location.href = "http://kisis.kisa.or.kr"; // Á¤º¸º¸È£»ê¾÷Áö¿ø¼¾ÅÍ
	else if(str == 'B06') location.href = "http://kisec.kisa.or.kr"; // º¸¾È¼ºÆò°¡¼¾ÅÍ
	else if(str == 'B07') location.href = "http://iscs.kisa.or.kr"; // Á¤º¸º¸È£¾ÈÀüÁø´ÜÁö¿ø
	else if(str == 'B08') window.open("http://www.krcert.or.kr"); // krcert
	else if(str == 'B09') location.href = "http://ciip.kisa.or.kr"; // Á¤º¸Åë½Å±â¹Ýº¸È£
	else if(str == 'B10') location.href = "http://knbtc.kisa.or.kr"; // ¹ÙÀÌ¿ÀÀÎ½ÄÁ¤º¸½ÃÇè¼¾ÅÍ
	else if(str == 'B11') location.href = "http://i-pin.kisa.or.kr"; // ¾ÆÀÌÇÉ
	else if(str == 'B12') location.href = "http://lbs.kisa.or.kr"; // À§Ä¡Á¤º¸º¸È£
	
	else if(str == 'C01') location.href = rootUrl+"/jsp/notice/notice_list.jsp"; // °øÁö»çÇ×
	else if(str == 'C02') location.href = rootUrl+"/jsp/notice/press_list.jsp"; // º¸µµÀÚ·á
	else if(str == 'C03') location.href = rootUrl+"/jsp/notice/ceo_list.jsp"; // À§Å¹°úÁ¦
	else if(str == 'C04') location.href = rootUrl+"/jsp/notice/bid_list.jsp"; // ÀÔÂû°ø°í
	else if(str == 'C09') location.href = rootUrl+"/kisa/notics/jsp/dong_list.jsp"; // µ¿ÇâÁ¤º¸
	else if(str == 'C05') location.href = rootUrl+"/kisa/notics/jsp/event_list.jsp"; // Çà»ç¾È³»
	else if(str == 'C06') location.href = rootUrl+"/kisa/education/jsp/education_1010_10.jsp"; // ±³À°¾È³»
	else if(str == 'C07') location.href = rootUrl+"/kisa/notics/jsp/hire_1010.jsp"; // ÀÎÀçÃ¤¿ë
	else if(str == 'C08') location.href = rootUrl+"/kisa/notics/jsp/sis_1010.jsp"; // Á¤º¸º¸È£Àü¹®°¡ÀÚ°Ý...
	
	else if(str == 'D01') location.href = rootUrl+"/jsp/customer/faq_main.jsp"; // FAQ
	else if(str == 'D02') location.href = rootUrl+"/jsp/customer/appeal/appeal_main.jsp"; // »ó´ã ¹× ½Å°í
	else if(str == 'D03') location.href = rootUrl+"/jsp/customer/privacy.jsp"; // °³ÀÎÁ¤º¸º¸È£Á¤Ã¥
	else if(str == 'D04') location.href = rootUrl+"/jsp/customer/charter.jsp"; // °í°´¼­ºñ½ºÇåÀå
	else if(str == 'D05') location.href = "https://www.kisa.or.kr/jsp/customer/appeal/declare_corruption.jsp"; // ºÎÁ¶¸®½Å°í
	else if(str == 'D06') location.href = "https://www.kisa.or.kr/jsp/customer/appeal/appeal_main.jsp"; // °í°´ÀÇ¼Ò¸®

	else if(str == 'E01') location.href = "http://search.kisa.or.kr/RSA/front/Search.jsp";	// ÅëÇÕ°Ë»ö
	else if(str == 'E02') location.href = rootUrl+"/jsp/public/library/report_list.jsp";		// kisa ¹ß°£ÀÚ·á
	
	else if(str == 'F01') location.href = rootUrl+"/jsp/intro/greeting.jsp"; // ÀÎ»ç¸»
	else if(str == 'F02') location.href = rootUrl+"/jsp/intro/history.jsp"; // ¿¬Çõ
	else if(str == 'F03') location.href = rootUrl+"/kisa/kisa/jsp/kisa_3010.jsp"; // ¼³¸³±Ù°Å
	else if(str == 'F04') location.href = rootUrl+"/kisa/kisa/jsp/kisa_3020.jsp"; // ÁÖ¿ä¾÷¹«
	else if(str == 'F05') location.href = rootUrl+"/jsp/disclosure/handbook/process.jsp"; // Á¤º¸°ø°³
	else if(str == 'F06') location.href = rootUrl+"/jsp/intro/organization.jsp"; // Á¶Á÷µµ
	else if(str == 'F07') location.href = rootUrl+"/jsp/intro/ethics.jsp"; // À±¸®ÇåÀå
	else if(str == 'F08') location.href = rootUrl+"/jsp/intro/principles.jsp"; // Çàµ¿°­·É
	else if(str == 'F10') location.href = rootUrl+"/jsp/intro/welfare.jsp"; // À±¸®°æ¿µ¹æÄ§
	else if(str == 'F09') location.href = rootUrl+"/jsp/intro/map1.jsp"; // Ã£¾Æ¿À½Ã´Â±æ

	else if(str == 'K01') location.href = rootUrl+"/kisa/public/jsp/public_1010.jsp"; // Á¤º¸°ø°³ Æí¶÷
	else if(str == 'K02') location.href = rootUrl+"/jsp/disclosure/online_request.jsp"; // ¿Â¶óÀÎÁ¤º¸°ø°³Ã»±¸
	else if(str == 'K03') location.href = rootUrl+"/kisa/public/jsp/public_3010.jsp"; // °æ¿µ°ø½Ã
	else if(str == 'K04') location.href = rootUrl+"/kisa/public/jsp/public_4010.jsp"; // ÀÚ¹ßÀûÁ¤º¸°ø°³
	else if(str == 'K05') location.href = rootUrl+"/kisa/public/jsp/public_5010.jsp"; // ÀÚ·á½Ç

	else if(str == 'H01') location.href = rootUrl+"/kisa/publicity/jsp/publicity_1010_10.jsp"; // ±¹Á¦Çù·Â
	else if(str == 'H02') location.href = rootUrl+"/jsp/public/photo_list.jsp"; // »çÁøÀÚ·á
	else if(str == 'H03') location.href = rootUrl+"/kisa/publicity/jsp/publicity_1030_list.jsp"; // ±â°í¹®
	else if(str == 'H04') location.href = rootUrl+"/jsp/public/video_list.jsp"; // ¿µ»óÀÚ·á
	else if(str == 'H05') location.href = rootUrl+"/jsp/public/ci.jsp"; // KISA CI
	else if(str == 'H06') location.href = rootUrl+"/kisa/publicity/jsp/publicity_1060.jsp"; // Á¤º¸º¸È£ Ç¥¾î¤ýÆ÷½ºÅÍ °ø¸ðÀü ¼ö»óÀÛ

	else if(str == 'I01') location.href = rootUrl+"/eng/index.jsp"; // ENGLISH
	else if(str == 'I02') location.href = rootUrl+""; // KOREAN

	else if(str == 'J01') location.href = rootUrl+"/kisa/help/jsp/help_2010.jsp"; // 
	else if(str == 'J02') location.href = rootUrl+"/kisa/help/jsp/help_1010_list.jsp"; // 
	else if(str == 'J03') location.href = "https://www.kisa.or.kr/jsp/members/checkPerson.jsp?gubun=00";//"https://www.kisa.or.kr:442/kisa/help/jsp/help_2010_10.jsp"; // º»ÀÎÈ®ÀÎ
	else if(str == 'J04') location.href = "https://www.kisa.or.kr/jsp/mypage/personal_history_list.jsp";//"https://www.kisa.or.kr:442/kisa/mypage/jsp/mypage_02.jsp"; //»ó´ã ¹× ½Å°íÀÌ·Â

	else location.href = rootUrl;
}
//////////////////////////////////////////////////////////////////////////////


//ÃÖ»óÀ§ Ã¼Å© ·ÎÁ÷(chars·Î ³Ñ±ä °ªÀÌ ÀÖ´Ù¸é true)
function containsCharsOnly(input,chars) {
	for (var inx = 0; inx < input.value.length; inx++) {
		if (chars.indexOf(input.value.charAt(inx)) == -1)
			return false;
		}

	return true;
}

//ÃÖ»óÀ§ Ã¼Å© ·ÎÁ÷(chars·Î ³Ñ±ä °ªÀÌ ÀÖ´Ù¸é false)
function containsChars(input,chars) {
	for (var inx = 0; inx < input.value.length; inx++) {
		if (chars.indexOf(input.value.charAt(inx)) != -1)
			return true;
		}

	return false;
}

function keyCheck(input){
	var chars = '\'\"/\\;:+<>';

	if(containsChars(input,chars)){
		alert("À¯È¿ÇÏÁö ¾ÊÀº ¹®ÀÚ°¡ Æ÷ÇÔµÇ¾ú½À´Ï´Ù.");
		input.value = "";
		input.focus();
	}
}

function PreventSubmitOnEnter()
{
	if(event.keyCode==13)
	{
		return false;
	}
}

function Load()
{
	var inputs = document.getElementsByTagName("INPUT")
	for(var i = 0; i < inputs.length ; i++)
	{
		if(inputs[i].type == "text")
		{
			inputs[i].attachEvent("onkeypress", PreventSubmitOnEnter);
		}
	}
}

function subEnter(name)
{
	if(event.keyCode==13)
	{
		eval(name+"()");
	}
}

function activateObject(tagname) {
	var items = document.getElementsByTagName(tagname); 
	var size = items.length; 
	for(var i=0; i<size; i++) {
		var div = document.createElement("DIV");
		var parentNode = items[i].parentNode; 
		parentNode.insertBefore(div, items[i]); 
		div.appendChild(items[i]); 
		div.innerHTML = div.innerHTML; 
		items[i].style.display = 'block';
	} 
}

// 2006-11-13 Á¤º¸¼Ò¿Ü°èÃþÀ» À§ÇÑ È¨ÆäÀÌÁö ±¸Ãà ÆÀ Ãß°¡

// °øÅë ÀÚ¹Ù½ºÅ©¸³Æ® : ÀÌ¹ÌÁö Ã³¸® °ü·Ã
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImage1() { //v3.0
  var i,j=0,x,a=MM_swapImage1.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function Popup_Window(theURL,winName,features) { //v2.0

	var isTTS = false;

	// TTS ¿©ºÎ
	if ( typeof(top.cnt) != "undefined" ){
		isTTS = true;
	}

	if (isTTS)
	{
		if(winName==""){
			winName="win_pop";
		}
		window.open(theURL,winName,features);

		document.tts_pop.pop_URL.value = theURL;
		document.tts_pop.action ="/plugin/tts_popup.jsp";
		document.tts_pop.target =winName;
		document.tts_pop.submit();
	}

	else{
		window.open(theURL,winName,features);
	}
}

/*
function Popup_Window(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
*/

function goSearchLeft(){
	if(document.search.QUERY.value == '') {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		document.search.QUERY.focus();
		return;
	}
	document.search.action = "/kisa/data/jsp/data_1010_search.jsp";
	document.search.submit();
}


function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

// tts À½¼º ½ºÅ©¸³Æ® start
var vmenu_start = "";
var vmenu_end = "";
var vskip_start = "";
var vskip_end = "";
var vpage_start = "";
var vpage_end = "";

function typeCheck(){
	if ( typeof(top.cnt) != "undefined" ){
		vmenu_start = "<VMENU_START>";
		vmenu_end = "<VMENU_END>";
		vskip_start = "<VSKIP_START>";
		vskip_end = "<VSKIP_END>";
		vpage_start = "<VPAGE_START>";
		vpage_end = "<VPAGE_END>";
	}
}
function VMENU_START(){
	typeCheck();
	document.write(vmenu_start);
}
function VMENU_END(){
	typeCheck();
	document.write(vmenu_end);
}
function VSKIP_START(){
	typeCheck();
	document.write(vskip_start);
}
function VSKIP_END(){
	typeCheck();
	document.write(vskip_end);
}
function VPAGE_START(){
	typeCheck();
	document.write(vpage_start);
}
function VPAGE_END(){
	typeCheck();
	document.write(vpage_end);
}
// tts À½¼º ½ºÅ©¸³Æ® end

function imgMenu(){
	var isCnt = false;
	if ( typeof(top.cnt) != "undefined" ){
		isCnt = true;
	}
	var menuStr = "";
	
	topMenuStr = "";
	topMenuStr = "<table style=\"display:none;\"><VMENU_START><tr><td>";
	//topMenuStr += "<h3 style=\"display:none;\">´ë¸Þ´º¿µ¿ªÀÔ´Ï´Ù.</h3>";
	topMenuStr += "<div style=\"display:none;\">";
	topMenuStr += "<h3>ÁÖ¿ä»ç¾÷</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"http://www.krcert.or.kr/\" target=\"_blank\">ÀÎÅÍ³ÝÄ§ÇØ»ç°í ´ëÀÀ¼¾ÅÍ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/spam/jsp/spam.jsp\">ºÒ¹ý½ºÆÔ´ëÀÀ¼¾ÅÍ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/privacy/jsp/privacy.jsp\">°³ÀÎÁ¤º¸Ä§ÇØ½Å°í¼¾ÅÍ/°³ÀÎÁ¤º¸ºÐÀïÁ¶Á¤À§¿øÈ¸</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kcac/jsp/kcac.jsp\">ÀüÀÚ¼­¸íÀÎÁõ°ü¸®¼¾ÅÍ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/ciip/jsp/ciip.jsp\">Á¤º¸Åë½Å±â¹Ýº¸È£</a></li>";
	topMenuStr += "<li><a href=\"/kisa/isms/jsp/isms.jsp\">Á¤º¸º¸È£°ü¸®Ã¼°èÀÎÁõ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/iscs/jsp/iscs.jsp\">Á¤º¸º¸È£¾ÈÀüÁø´ÜÁö¿ø</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisec/jsp/kisec.jsp\">º¸¾È¼ºÆò°¡</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisis/jsp/kisis.jsp\">Á¤º¸º¸È£»ê¾÷Áö¿ø¼¾ÅÍ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/knbtc/jsp/knbtc.jsp\">¹ÙÀÌ¿ÀÀÎ½ÄÁ¤º¸½ÃÇè¼¾ÅÍ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/ipin/jsp/ipin.jsp\">¾ÆÀÌÇÉ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/location/jsp/location.jsp\">À§Ä¡Á¤º¸º¸È£</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "<h3>¾Ë¸²¸¶´ç</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/notice_list.jsp\">°øÁö»çÇ×</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/press_list.jsp\">º¸µµÀÚ·á</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/entrust_list.jsp\">ÀÔÂû°ø°í</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/bid_list.jsp\">À§Å¹°úÁ¦</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/dong_list.jsp\">µ¿ÇâÁ¤º¸</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/event_list.jsp\">Çà»ç¾È³»</a></li>";
	topMenuStr += "<li><a href=\"/kisa/education/jsp/education_1010_10.jsp\">±³À°¾È³»</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/hire_1010.jsp\">ÀÎÀçÃ¤¿ë</a></li>";
	topMenuStr += "<li><a href=\"/kisa/notics/jsp/sis_1010.jsp\">Á¤º¸º¸È£Àü¹®°¡ÀÚ°Ý</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "<h3>¿Â¶óÀÎ¹Î¿ø½Ç</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_1010_list.jsp\">FAQ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_2010.jsp\">»ó´ã ¹× ½Å°í</a></li>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_policy.jsp\">°³ÀÎÁ¤º¸º¸È£Á¤Ã¥</a></li>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_service.jsp\">°í°´¼­ºñ½ºÇåÀå</a></li>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_bb.jsp\">ºÎÁ¶¸®½Å°í</a></li>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_cc.jsp\">¿¹»ê³¶ºñ½Å°í</a></li>";
	topMenuStr += "<li><a href=\"/kisa/help/jsp/help_clients.jsp\">°í°´¼Ò¸®ÇÔ</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "<h3>ÀüÀÚµµ¼­°ü</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"/kisa/data/jsp/data_1010_search.jsp\">ÅëÇÕ°Ë»ö</a></li>";
	topMenuStr += "<li><a href=\"/kisa/data/jsp/data_2010_list.jsp\">KISA ¹ß°£ÀÚ·á</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "<h3>ÁøÈï¿ø¼Ò°³</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_1010.jsp\">ÀÎ»ç¸»</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_2010.jsp\">¿¬Çõ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_3010.jsp\">¼³¸³±Ù°Å</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_3020.jsp\">ÁÖ¿äÀÓ¹«</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_5010.jsp\">Á¶Á÷µµ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_6010.jsp\">À±¸®ÇåÀå</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_7010.jsp\">Çàµ¿°­·É</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_7020.jsp\">À±¸®°æ¿µ¹æÄ§</a></li>";
	topMenuStr += "<li><a href=\"/kisa/kisa/jsp/kisa_8010.jsp\">Ã£¾Æ¿À½Ã´Â ±æ</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "<h3>Á¤º¸°ø°³</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"/kisa/public/jsp/public_1010.jsp\">Á¤º¸°ø°³Æí¶÷</a></li>";
	topMenuStr += "<li><a href=\"/kisa/public/jsp/public_2010.jsp\">¿Â¶óÀÎÁ¤º¸°ø°³Ã»±¸</a></li>";
	topMenuStr += "<li><a href=\"/kisa/public/jsp/public_3010.jsp\">°æ¿µ°ø½Ã</a></li>";
	topMenuStr += "<li><a href=\"/kisa/public/jsp/public_4010.jsp\">ÀÚ¹ßÀûÁ¤º¸°ø°³</a></li>";
	topMenuStr += "<li><a href=\"/kisa/public/jsp/public_5010.jsp\">ÀÚ·á½Ç</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "<h3>»çÀÌ¹öÈ«º¸°ü</h3>";
	topMenuStr += "<ul>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1010_10.jsp\">±¹Á¦Çù·Â</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1020.jsp\">»çÁøÀÚ·á</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1030_list.jsp\">±â°í¹®</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1040.jsp\">¿µ»óÀÚ·á</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1060.jsp\">Á¤º¸º¸È£ Ç¥¾î Æ÷½ºÅÍ °ø¸ðÀü ¼ö»óÀÛ</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1050.jsp\">KISA CI</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1070.jsp\">Çõ½Åºê·£µå</a></li>";
	topMenuStr += "<li><a href=\"/kisa/publicity/jsp/publicity_1081.jsp\">»çÈ¸°øÇåÈ°µ¿</a></li>";
	topMenuStr += "</ul>";
	topMenuStr += "</div>";
	
	topMenuStr += "</td></tr><VMENU_END></table>";

	if ( typeof(top.cnt) != "undefined" ){
		menuStr += topMenuStr;
	} else {
	}
	document.write(menuStr);
}

document.onkeydown = function() {
	var key = event.keyCode;
	var ctrlKey = event.ctrlKey;
	if(ctrlKey){
		if(key == 13) {
			if ( typeof(top.cnt) != "undefined" ){
			} else {
				accept();
			}
		}
	}
}

function accept() {
	var currURL = parent.document.URL;
	try
	{
		if ( currURL.indexOf("kisa") != -1 )
		{
			top.location.href="/tts.html";
		}
		else if ( currURL.indexOf("spam") != -1 )
		{
			top.location.href="/spam_tts.html";
		}
		else if ( currURL.indexOf("knbtc") != -1 )
		{
			top.location.href="/knbtc_tts.html";
		}
		else if ( currURL.indexOf("k-nbtc") != -1 )
		{
			top.location.href="/k-nbtc_tts.html";
		}
		else if ( currURL.indexOf("1336") != -1 )
		{
			top.location.href="/1336_tts.html";
		}
		else if ( currURL.indexOf("isms") != -1 )
		{
			top.location.href="/isms_tts.html";
		}
		else if ( currURL.indexOf("kopico") != -1 )
		{
			top.location.href="/kopico_tts.html";
		}
		else if ( currURL.indexOf("kcac") != -1 )
		{
			top.location.href="/kcac_tts.html";
		}
		else if ( currURL.indexOf("privacy") != -1 )
		{
			top.location.href="/privacy_tts.html";
		}
		else 
		{
			top.location.href="/tts.html";
		}

	}
	catch (e)
	{
		top.location.href="/tts.html";	
	}
	
}
