_dom=0;
strs="";
function keypresshandler(e){
	if(document.all) e=window.event; // for IE
	if(_dom==3) var EventStatus = e.srcElement.tagName;
	else if(_dom==1) var EventStatus = e.target.nodeName; // for Mozilla

	if(EventStatus == 'INPUT' || EventStatus == 'TEXTAREA' || _dom == 2) return;

	var cc = '';
	var ch = '';

	if(_dom==3) {                   // for IE
		if(e.keyCode>0) {
			ch=String.fromCharCode(e.keyCode);
			cc=e.keyCode;
		}
	} else {                       // for Mozilla
		cc=(e.keyCode);
		if(e.charCode>0) {
			ch=String.fromCharCode(e.charCode);
		}
	}

	if(e.altKey || e.ctrlKey) return;


	// lims ΌφΑ€ 2009.06.03
	var targetFrame;

	if(top.menu) {
		targetFrame = top.menu;
	}
	else {
		targetFrame = top;
	}

	if(ch == 'a' || ch == 'A') {
		targetFrame.location = '/bbs/zboard.php?id=Middle_Gallery';
	} else if(ch == 'b' || ch == 'B') {
		targetFrame.location = '/bbs/zboard.php?id=Free_Board2';
	} else if(ch == 'c' || ch == 'C') {
		targetFrame.location = '/bbs/zboard.php?id=Kangwon_bbs';
	} else if(ch == 'd' || ch == 'D') {
		targetFrame.location = '/bbs/zboard.php?id=Daejeon_bbs';
	} else if(ch == 'e' || ch == 'E') {
		targetFrame.location = '/bbs/zboard.php?id=pentax_local_World';
	} else if(ch == 'f' || ch == 'F') {
		targetFrame.location = '/bbs/zboard.php?id=offGal';
	} else if(ch == 'g' || ch == 'G') {
		targetFrame.location = '/bbs/zboard.php?id=35mm_Gallery';
	} else if(ch == 'h' || ch == 'H') {
		targetFrame.location = '/';
	} else if(ch == 'i' || ch == 'I') {
		targetFrame.location = '/bbs/zboard.php?id=Inchon_bbs';
	} else if(ch == 'j' || ch == 'J') {
		targetFrame.location = '/bbs/zboard.php?id=Jeju_bbs';
	} else if(ch == 'k' || ch == 'K') {
		//targetFrame.location = 'http://www.dgpclub.net/';
		targetFrame.location = '/bbs/zboard.php?id=daegu_bbs';
	} else if(ch == 'l' || ch == 'L') {
		targetFrame.location = '/bbs/zboard.php?id=Kwangjoo';
	} else if(ch == 'm' || ch == 'M') {
		targetFrame.location = '/bbs/zboard.php?id=Personal_Buy2';
	} else if(ch == 'n' || ch == 'N') {
		window.open('/bbs/ext_module/pentaxclub_check_buy.php', 'bbuy', 'width=440, height=440, resizable=yes, scrollbars=yes');
	} else if(ch == 'o' || ch == 'O') {
		targetFrame.location = '/bbs/zboard.php?id=auction';
	} else if(ch == 'p' || ch == 'P') {
		targetFrame.location = '/busan/busan.php';
	} else if(ch == 'q' || ch == 'Q') {
		targetFrame.location = '/bbs/zboard.php?id=Q_A1';
	} else if(ch == 'r' || ch == 'R') {
		targetFrame.location = '/bbs/zboard.php?id=Best_Gallery';
	} else if(ch == 's' || ch == 'S') {
		targetFrame.location = '/bbs/zboard.php?id=Suwon_bbs';
	} else if(ch == 't' || ch == 'T') {
		targetFrame.location = '/bbs/zboard.php?id=Theme_gallery';
	} else if(ch == 'u' || ch == 'U') {
		targetFrame.location = '/bbs/zboard.php?id=Club_LX';
	} else if(ch == 'v' || ch == 'V') {
		targetFrame.location = '/bbs/zboard.php?id=Love_house';
	} else if(ch == 'w' || ch == 'W') {
		targetFrame.location = '/bbs/zboard.php?id=meeting';
	} else if(ch == 'x' || ch == 'X') {
		targetFrame.location = '/bbs/zboard.php?id=Club_Kx';
	} else if(ch == 'y' || ch == 'Y') {
		targetFrame.location = '/bbs/zboard.php?id=Group_gallery1';
	} else if(ch == 'z' || ch == 'Z') {
		targetFrame.location = '/bbs/zboard.php?id=Club_K7';
		//targetFrame.location = 'http://unicro.pentaxclub.com/store/storeMain.jsp';
	} else if(ch == 'w' || ch == '`') {
		targetFrame.location = '/bbs/zboard.php?id=forMeeting';
	} else if(ch == '1') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_1';
	} else if(ch == '2') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_2';
	} else if(ch == '3') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_3';
	} else if(ch == '4') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_4';
	} else if(ch == '6') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_6';
	} else if(ch == '7') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_7';
	} else if(ch == '8') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_8';
	} else if(ch == '9') {
		targetFrame.location = '/bbs/zboard.php?id=Group_bbs_9';
	} else if(ch == '!') {
		targetFrame.location = '/bbs/zboard.php?id=Gonggu_sub1';
	} else if(ch == '@') {
		targetFrame.location = '/bbs/zboard.php?id=Gonggu_sub2';
	} else if(ch == '#') {
		targetFrame.location = '/bbs/zboard.php?id=Gonggu_sub3';
	} else if(ch == '$') {
		targetFrame.location = '/bbs/zboard.php?id=Gonggu_sub4';
	} else if(ch == '%') {
		targetFrame.location = '/bbs/zboard.php?id=Gonggu_sub5';
	} else if(ch == '^') {
		targetFrame.location = '/bbs/zboard.php?id=Gonggu_sub6';
	} else if(ch == '+') {
		targetFrame.location = '/bbs/zboard.php?id=programming_work';
	}

	return;
}

function input(){
	_dom=document.all ? 3 : (document.getElementById ? 1 : (document.layers ? 2 : 0));
	document.onkeypress = keypresshandler;
}
