function hidestatus()
{
window.status="The Korea Herald : The Nation's No.1 English Newspaper";
return true
}
if (document.layers)
document.captureEvents(Event.mouseover | Event.mouseout)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

function keydown(){ 
          if(event.keyCode==122 || event.keyCode==116  ||event.altKey==true || event.altLeft==true){
                 event.keyCode=0;
                 event.cancelBubble = true;
                 event.returnValue = false;
           //      alert('ÀÌ Æ¯¼öÅ°´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.');
         }        
  } 
 document.onkeydown=keydown; 


var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

if(window.name != 'mainFrame')
{

	document.location.href = "http://www.koreaherald.co.kr"; 
}

function ConvertHex(input){
	var strHex,length_price,char2; 
	strHex = "";
	for (i=0; i < input.length; i++) {
		char2 = input.charAt(i); 
		strHex = strHex + char2.toString(16);

	} 

	return strHex
}

function link(kind)
{
	if(kind == 'column'){
			document.location.href = "/"+kind+"/column_index.asp"; 
	}else if(kind == 'community_01'){
			document.location.href = "/newkhcommunity/job_index.asp"; 
	}else if(kind == 'community_02'){
			document.location.href = "/newkhcommunity/tak_index.asp"; 
	}else if(kind == 'community_03'){
			document.location.href = "/newkhcommunity/exp_index.asp"; 
	}else if(kind == 'community_04'){
			document.location.href = "/newkhcommunity/fom_index.asp"; 
	}else if(kind == 'community_05'){
			document.location.href = "/newkhcommunity/reu_index.asp"; 
	}else if(kind == 'subscribe'){
			document.location.href = "/"+kind+"/sub_index.asp"; 
	}else if(kind == 'archives'){
			document.location.href = "/"+kind+"/result_detail.asp"; 
	}else if(kind == 'aboutus_01'){
			document.location.href = "/aboutus/private.asp"; 
	}else if(kind == 'aboutus_02'){
			document.location.href = "/aboutus/copyright.asp"; 
	}else if(kind == 'weekly_01'){
			document.location.href = "/weekly/Education/herald.asp"; 
	}else if(kind == 'weekly_02'){
			document.location.href = "/weekly/People/herald.asp"; 
	}else if(kind == 'weekly_03'){
			document.location.href = "/weekly/DiplomaticCircuit/herald.asp"; 
	}else if(kind == 'weekly_04'){
			document.location.href = "/weekly/LifeCommunity/herald.asp"; 
	}else if(kind == 'weekly_05'){
			document.location.href = "/weekly/CorporateWorld/herald.asp"; 
	}else if(kind == 'weekly_06'){
			document.location.href = "/weekly/Multinationals/herald.asp"; 
	}else if(kind == 'weekly_07'){
			document.location.href = "/weekly/PeopleSociety/herald.asp"; 
	}else if(kind == 'ombudsman'){
			document.location.href = "/khetc/ombudsman.asp"; 
	}else if(kind == 'sitemap'){
			document.location.href = "/khetc/map_index.asp"; 
	}else if(kind == 'contact'){
			document.location.href = "/khetc/con_index.asp"; 
	}else if(kind == 'register'){
			document.location.href = "/member/200712/reg_index.htm"; 
	}else if(kind == 'register01'){
			document.location.href = "/member/200712/logInCHK.asp?charge=Y"; 
	}else if(kind == 'register02'){
			document.location.href = "/member/200712/logInCHK.asp?charge=N"; 
	}else if(kind == 'register03'){
			document.location.href = "/khlog/frn_ser_agree.htm"; 
	}else if(kind == 'register04'){
			document.location.href = "/khlog/frn_ser_agree2.htm"; 
	}else if(kind == 'register05'){
			document.location.href = "/member/fori_agreement.htm"; 
	}else if(kind == 'register06'){
			document.location.href = "/member/fori_agreement2.htm"; 
	}else if(kind == 'special_01'){
			document.location.href = "/special/Korea-US_FTA/herald.asp"; 
	}else if(kind == 'special_02'){
			document.location.href = "/special/Inter-KoreanSummit/herald.asp"; 
	}else if(kind == 'special_03'){
			document.location.href = "/special/InsightintoKorea/herald.asp"; 
	}else if(kind == 'special_04'){
			document.location.href = "/special/CivilsocietyinKorea/herald.asp"; 
	}else if(kind == 'special_05'){
			document.location.href = "/special/jherald/herald.asp"; 
	}else if(kind == 'special_06'){
			document.location.href = "/special/Eyeonkorea/herald.asp"; 
	}else if(kind == 'leadersclub'){
			document.location.href = "/Leadersclub/skt_index.asp"; 
	}else if(kind == 'leadersclub_01'){
			document.location.href = "/Leadersclub/shinhan/index.asp"; 
	}else{
		document.location.href = "/"+kind+"/herald.asp "; 
	}
}

function link2(kind)
{
	document.sendform.khscode.value = kind ;
	document.sendform.action = '/service/redirectSection2.asp';
	document.sendform.target = 'mainFrame';
	document.sendform.submit() ;
}

function link3(kind)
{
	
	document.sendform.khscode.value = kind ;
	document.sendform.action = '/service/list.asp';
	document.sendform.target = 'mainFrame';
	document.sendform.submit() ;
	
}



function link4(kind)
{
	document.sendform.kh_bbs_kind.value = kind ;
	document.sendform.action = '/newkhcommunity/bbs/board.asp';
	document.sendform.target = 'mainFrame';
	document.sendform.submit() ;
}

function link5(bbs_topSeq,bbs_degree,bbs_board_idx)
{
	document.bbsview.bbs_topSeq.value = bbs_topSeq ;
	document.bbsview.bbs_degree.value = bbs_degree ;
	document.bbsview.bbs_board_idx.value = bbs_board_idx ;
	document.bbsview.target = 'mainFrame';
	document.bbsview.submit() ;
}

function link6(art_id)
{
	var mainurl = "/NEWKHSITE/data/html_dir/";
	var gourl = mainurl+ art_id.substring(0,4)+"/"+art_id.substring(4,6)+"/"+art_id.substring(6,8)+"/"+art_id+".asp";

	document.sendform.action = gourl;
	document.sendform.target = 'mainFrame';
	document.sendform.submit() ;
	return true;
}

function link7(kh_id,kh_query)
{
	document.bbsview.kh_id.value = kh_id ;
	document.bbsview.kh_query.value = kh_query ;
	document.bbsview.target = 'mainFrame';
	document.bbsview.submit() ;
}

function link8(kind)
{
	
	document.sendform.khscode.value = kind ;
	document.sendform.action = '/service/list_anno.asp';
	document.sendform.target = 'mainFrame';
	document.sendform.submit() ;
	
}


function pagelink(cP)
{
	document.bbsread.cP.value = cP ;
	document.bbsread.target = 'mainFrame';
	document.bbsread.submit() ;
}

function bbswlink()
{
	document.bbswrite.target = 'mainFrame';
	document.bbswrite.submit() ;
}
