document.onkeydown = KeyPressOK;
function KeyPressOK(e){

	var KeyAlt = (window.event) ? event.altKey : e.altKey;  // alt키 IE,FireFox 이벤트 처리
	var KeyID = (window.event) ? event.keyCode : e.keyCode;
	
	if (window.ActiveXObject){
	}else{
	if( Otder_browser == "F"){ //!IE일 경우 비활성화이면 리턴
		//if(KeyID == 120 || KeyID == 122 || KeyID ==123){ //F9,F11,F12키 일경우
		if(KeyID == 123){	//F12일 경우
			alert("NetLignt is only compatible with Internet Explorer.");
		}
		if (!window.ActiveXObject) return;
		}
	}
	
	if(KeyID == 120){ //  F9 :HelpPlayer
		KeyID = 0;
		VoicePlayer.FileName = SpacePath+"NetLight2/tts_help.wav";
		setTimeout( "VoicePlayer.play();", 1500);
		return false;
	}
	
if (KeyAlt && KeyID=="38"){	//alt + ↑ : 화면확대
	NetReader("ZoomUp");
}
if(KeyAlt && KeyID=="40"){	//alt + ↓ : 화면축소
	NetReader("ZoomDown");		
}

	if(KeyID == 123){ //  F12 : Voice On/Off
		
			if(KeyEvent_F == 1){ //사이트 폭주 등 임시로 이벤트를 막고 싶을때 사용
				
					KeyID = 0;
					if( typeof(DynamicNetLightCOM) == "undefined" ){
						if (readCookie("VoiceStart") == "stop"){
							space_setCookie("VoiceStart", "start" , 1);
							
						}
					}
					if( FrameLength == 2 ){

					
						
						if( typeof(eval(FrameMainName +"DynamicNetLightCOM")) != "undefined" ){

							if( eval(FrameMainName +"readCookie('VoiceStart');") == "start" ){
								eval(FrameMainName +"VoicePlayer").FileName = SpacePath+"NetLight2/"+conf_Lang+"_tts_stop.wav";
								setTimeout( "eval("+ FrameMainName +"VoicePlayer.play());", 1500);							
								eval(FrameMainName +"f_VoiceStart('stop')");
								
							}
							else{
								eval(FrameMainName +"VoicePlayer").FileName = SpacePath+"NetLight2/"+conf_Lang+"_tts_start.wav";
								setTimeout( "eval("+ FrameMainName +"VoicePlayer.play());", 1500);							
								eval(FrameMainName +"f_VoiceStart('start')");
					
							}
						}
						else{
							eval(FrameMainName +"f_objectInsert('')");
							//f_objectInsert("voice");
						}
					}else{
						if( typeof(DynamicNetLightCOM) != "undefined" ){
							if( readCookie("VoiceStart") == "start" ){
								VoicePlayer.FileName = SpacePath+"NetLight2/"+conf_Lang+"_tts_stop.wav";
								setTimeout( "VoicePlayer.play();", 1500);		
								f_VoiceStart("stop");				
							}
							else{
								VoicePlayer.FileName = SpacePath+"NetLight2/"+conf_Lang+"_tts_start.wav";
								setTimeout( "VoicePlayer.play();", 1500);		
								f_VoiceStart("start");
							}
						}
						else{
							f_objectInsert("");
							//f_objectInsert("voice");
						}
					}
					return false;
			
			}else{
					if(KeyEvent_F_F == 1){
					alert(KeyEvent_F_M);
					}
			}
						
	}
	
		


}