_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);
		}
	}

	

	strs += ch.toLowerCase(); 

	if (strs.substr(strs.length - 4, 4) == "blog" || strs.substr(strs.length - 7, 7) == "qmffhrm")
	{
		window.location = "http://www.yoonju.net/blog";
	}
	if (strs.substr(strs.length - 4, 4) == "note" || strs.substr(strs.length - 4, 4) == "shxm")
	{
		window.location = "http://www.yoonju.net/blog";
	}
    if (strs.substr(strs.length - 5, 5) == "naver")
    {
        window.location = "http://www.naver.com";
    }
    if (strs.substr(strs.length - 5, 5) == "dmsgh" || strs.substr(strs.length - 5, 5) == "zjvmf" || strs.substr(strs.length - 6, 6) == "couple")
    {
        window.location = "http://www.yoonju.net/couple/couple.html";

    }
	if (strs.substr(strs.length - 5, 5) == "wndms")
    {
        alert("merong");
    }

}

function init()
{
	_dom = document.all ? 3 : (document.getElementById ? 1 : (document.layers ? 2 : 0));
	document.onkeypress = keypresshandler;
}

init();
