//Àü·ÂÀÎÃ£±â ±×·ì»ç °Ë»ö(2011-05-11)
function Find_Person()
{
	document.search.action='/MEMBER/initS.php';
	document.search.target ='_top';
	document.search.submit();
	return;
}
function Find_Person2()
{
	document.search.action='/MEMBER/initS2.php';
	document.search.target ='_top';
	document.search.submit();
	return;
}
//Àü·ÂÀÎÃ£±â member °Ë»ö 
function Find_Person3()
{
	document.search.action='/MEMBER/epowerman_init.php';
	document.search.target ='_top';
	document.search.submit();
	return;
}
function findObj(n, d) { //v4.0
  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=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=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 search_word() 
	{
		if (document.search_engine.word.value == "") 
		{
			alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù!!!");
			return;
		}

		if (document.search_engine.search_site.value == 0) 
		{
			document.k_empas.target = "_top";
			document.k_empas.q.value = document.search_engine.word.value;
			document.k_empas.action = "http://www.empas.com/search/all.html";
			document.k_empas.submit();
			return;
		}
		if (document.search_engine.search_site.value == 1) {
			document.k_yahoo.action = "http://search.yahoo.co.kr/bin/search";
			document.k_yahoo.target = "_top";
			document.k_yahoo.p.value = document.search_engine.word.value;
			document.k_yahoo.submit();
			return;
		}
		if (document.search_engine.search_site.value == 2) {
			document.k_lycos.action = "http://search.lycos.co.kr/search/srch_allindex.asp";
			document.k_lycos.target = "_top";
			document.k_lycos.query.value = document.search_engine.word.value;
			document.k_lycos.submit();
			return;
		}
		if(document.search_engine.search_site.value == 3) {
			document.k_altavista.action = "http://www.altavista.co.kr/search/webcategory.php3";
			document.k_altavista.target = "_top";
			document.k_altavista.q.value = document.search_engine.word.value;
			document.k_altavista.submit();
			return;
		}
		if(document.search_engine.search_site.value == 4) {
			document.k_hanmir.action = "http://dsearch.hanmir.com/search/hanmir_web.php";
			document.k_hanmir.target = "_top";
			document.k_hanmir.QR.value = document.search_engine.word.value;
			document.k_hanmir.submit();
			return;
		}
		if(document.search_engine.search_site.value == 5) {
			document.k_simmani.action = "http://search.simmani.com/cgi-bin/search.cgi";
			document.k_simmani.target = "_top";
			document.k_simmani.q.value = document.search_engine.word.value;
			document.k_simmani.submit();
			return;
		}
		if(document.search_engine.search_site.value == 6) {
			document.k_naver.action = "http://search.naver.com/search.naver";
			document.k_naver.target = "_top";
			document.k_naver.query.value = document.search_engine.word.value;
			document.k_naver.submit();
			return;
		}
		if(document.search_engine.search_site.value == 7) {
			document.yahoo.action = "http://search.yahoo.com/bin/search";
			document.yahoo.target = "_top";
			document.yahoo.p.value = document.search_engine.word.value;
			document.yahoo.submit();
			return;
		}
		if(document.search_engine.search_site.value == 8) {
			document.altavista.action = "http://www.altavista.com/cgi-bin/query";
			document.altavista.target = "_top";
			document.altavista.q.value = document.search_engine.word.value;
			document.altavista.submit();
			return;
		}
		if(document.search_engine.search_site.value == 9) {
			document.infoseek.action = "http://srch.overture.com/d/search/p/go/";
			document.infoseek.target = "_top";
			document.infoseek.Keywords.value = document.search_engine.word.value;
			document.infoseek.submit();
			return;
		}
		if(document.search_engine.search_site.value == 10) {
			document.lycos.action = "http://www.lycos.com/cgi-bin/pursuit";
			document.lycos.target = "_top";
			document.lycos.query.value = document.search_engine.word.value;
			document.lycos.submit();
			return;
		}
		if(document.search_engine.search_site.value == 11) {
			document.excite.action = "http://search.excite.com/search.gw";
			document.excite.target = "_top";
			document.excite.search.value = document.search_engine.word.value;
			document.excite.submit();
			return;
		}
		if(document.search_engine.search_site.value == 12) {
			document.SavvySearch.action = "http://www.savvysearch.com/search";
			document.SavvySearch.target = "_top";
			document.SavvySearch.q.value = document.search_engine.word.value;
			document.SavvySearch.submit();
			return;
		}
	}

// ÃÊ±âÈ­¸é popup°ü·Ã
function getCookie(name) {
    var nameOfCookie = name + "=";
    var x=0;
    while (x <= document.cookie.length) {
        var y = (x+nameOfCookie.length);
        if (document.cookie.substring(x, y) == nameOfCookie) {
            if ((endOfCookie = document.cookie.indexOf(";", y)) == -1)
                endOfCookie = document.cookie.length;
            return unescape(document.cookie.substring(y, endOfCookie));
        }
        x = document.cookie.indexOf(" ", x) + 1;
        if (x == 0)
            break;
    }   
    return "";  
}
