//onfocus=blur() ÀÚµ¿À¸·Î ³Ö±â 
function autoblur() {
        if(event.srcElement.tagName == "A") document.body.focus();
}
document.onfocusin = autoblur;

//·Ñ¿À¹ö
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//Ã¢ ¶ç¿ì±â
function open_id(){
	objWin =window.open('/membership/member_id.html','open_id','width=450,height=250');
		if(objWin.focus)objWin.focus();

}

function open_post(){
	objWin =window.open('/membership/member_post.html','open_post','width=450,height=500');
		if(objWin.focus)objWin.focus();

}

function PopWin(url){
		objWin = window.open(url,'popWin','width=405, height=100');
		if(objWin.focus)objWin.focus();
	}

function PopWin1(url){
		objWin = window.open(url,'popWin','width=440, height=700, top=50, left=200');
		if(objWin.focus)objWin.focus();
	}

function PopWin2(a,aa,aaa){
	window.open(a,aa,aaa)
}

//¿ÀÇÂÃ¢ ¸®»çÀÌÁî
function ResizePopWin(){
	    var winBody	    =	this.document.body;

		var winWidth = winBody.scrollWidth + (winBody.offsetWidth - winBody.clientWidth) +2;
		var winHeight = winBody.scrollHeight + (winBody.offsetHeight - winBody.clientHeight) + 55;
		if(winHeight > 500){
			if(typeof(document.all['searchResult']) == "object"){
				document.all['searchResult'].style.pixelHeight = winHeight -100;
			}

			if(winHeight > 520){
//				alert(winHeight) ;			
//				winHeight += 0 ;
			}else{			
//				winHeight += 75
			}

		}

		else if(winHeight < 100){
			winHeight = 100;
		}
		else{

		}

		this.resizeTo(winWidth, winHeight);	

		if(parent != this){
			if(typeof(parent.ResizePopWin) == "function"){
				parent.ResizePopWin();
			}
		}
	}


//¸Þ´ºÁÖ¼Ò
function goUrl_11(){location.href="/board/list.html?div=board_news"}//¼º¿ìÈ¸¼Ò½Ä	 
function goUrl_12(){location.href="/introduce/introduce_say.html"}//È¸ÀåÀÎ»ç¸»
function goUrl_13(){location.href="/introduce/introduce_president.html"}//¿ª´ëÈ¸Àå¼Ò°³
function goUrl_14(){location.href="/introduce/introduce_purpose.html"}//Ã¢¸³¸ñÀû
function goUrl_15(){location.href="/introduce/introduce_history.html"}//¿¬Çõ
function goUrl_16(){location.href="/introduce/introduce_chart.html"}//±â±¸Ç¥
function goUrl_17(){location.href="/introduce/introduce_form.html"}//È¸Á÷Æí¼º
function goUrl_18(){location.href="/introduce/introduce_contact.html"}//Ã£¾Æ¿À´Â±æ

function goUrl_21(){location.href="/board/list.html?div=discuss_news"}//¾Èº¸´º½º
function goUrl_22(){location.href="/board/list.html?div=discuss_toron"}//¾Èº¸Åä·Ð
function goUrl_23(){location.href="/board/list.html?div=discuss_data&sp=list"}//¾Èº¸ÀÚ·á½Ç
function goUrl_24(){location.href="/board/list.html?div=discuss_analysis"}//Á¤¼¼ºÐ¼®
function goUrl_25(){location.href="/board/list.html?div=discuss_com"}//¾Èº¸Æò·ÐÀ§¿ø
function goUrl_26(){location.href="/board/list.html?div=discuss_cyber"}//»çÀÌ¹ö¿ä¿ø

function goUrl_31(){location.href="/board/list.html?div=community_news"}//È¸¿øµ¿Á¤
function goUrl_32(){location.href="/board/list.html?div=community_room"}//È¸¿ø´ëÈ­¸¶´ç
function goUrl_33(){location.href="/community/member_search.html"}//È¸¿øÃ£±â
function goUrl_34(){location.href="/board/list.html?div=community_report"}//ÇöÀå¸£º¸
function goUrl_35(){location.href="/board/list.html?div=community_study"}//½ÉÃþÅ½±¸
function goUrl_36(){location.href="/board/list.html?div=community_culture&sp=list"}//±³¾ç
function goUrl_37(){location.href="/board/list.html?div=community_hoddy&sp=list"}//Ãë¹Ì
function goUrl_38(){location.href="/board/list.html?div=community_motion"}//°ÇÀÇÇÔ


function goUrl_41(){location.href="/board/list.html?div=inform_event"}//°æÁ¶»ç
function goUrl_42(){location.href="/board/list.html?div=inform_invite"}//ÃÊÃ»
function goUrl_43(){location.href="/board/list.html?div=inform_function"}//±¹°¡Çà»ç
function goUrl_44(){location.href="/board/list.html?div=inform_movement"}//°¢±ºµ¿Á¤

function goUrl_51(){location.href="/board/list.html?div=board_notice"}//°øÁö»çÇ×
function goUrl_52(){location.href="/board/list.html?div=board_free"}//ÀÚÀ¯°Ô½ÃÆÇ

function goUrl_61(){location.href="/recommend/recommend_go.html"}//Á¤ºÎ±â°ü
function goUrl_62(){location.href="/recommend/recommend_mnd.html"}//±¹¹æ±â°ü
function goUrl_63(){location.href="/recommend/recommend_foreign.html"}//ÇØ¿Ü±¹¹æ
function goUrl_64(){location.href="/recommend/recommend_relation.html"}//À¯°ü»çÀÌÆ®
function goUrl_65(){location.href="/recommend/recommend_speech.html"}//¾ð·Ð±â°ü
function goUrl_66(){location.href="/recommend/recommend_engine.html"}//°Ë»ö¿£Áø
function goUrl_67(){location.href="/recommend/recommend_game.html"}//°ÔÀÓ»çÀÌÆ®



function goUrl_71(){location.href="/memo/tag_send.html?div=send"}//ÂÊÁöº¸³»±â
function goUrl_72(){location.href="/memo/tag_accept.html?div=accept"}//¹ÞÀº ÂÊÁö
function goUrl_73(){location.href="/memo/tag_sended.html?div=sended"}//º¸³½ ÂÊÁö
function goUrl_74(){PopWin('/memo/tag_set1.html') ;}//È¯°æ¼³Á¤

//function goUrl_81(){PopWin1('/freepaper/freepaper0703.html') ;}//¿ù°£ÀÚÀ¯Áö ÃÖ½ÅÈ£
function goUrl_81(){PopWin1('/freepaper/freepaper0809.html') ;}//¿ù°£ÀÚÀ¯Áö ÃÖ½ÅÈ£
function goUrl_108(){PopWin1('/freepaper/freepaper1201.html') ;}//¿ù°£ÀÚÀ¯Áö ÃÖ½ÅÈ£

function goUrl_82(){PopWin2('/freepaper/freepaper_list.html','list','width=410,height=335,top=0,left=100') ;}//¿ù°£ÀÚÀ¯Áö ÀüÃ¼º¸±â

function goUrl_91(){location.href="/admin/member_admin.html?div=member_admin"			}//°ü¸®ÀÚ

function goUrl_101(){location.href="/laboratory/laboratory_intro.html"}//¾Èº¸¿¬±¸¼Ò¼Ò°³
function goUrl_102(){location.href="/laboratory/laboratory_lab.html"}//¿¬±¸È°µ¿
function goUrl_103(){location.href="/laboratory/laboratory_plan.html"}//¹ßÀü°èÈ¹
function goUrl_104(){location.href="/board/list.html?div=laboratory_pds"}//¿¬±¸°á°ú¹°


function goUrl_111(){location.href="/change/change_01.html"}//¾Èº¸¿¬±¸¼Ò¼Ò°³
function goUrl_112(){location.href="/change/change_02.html"}//¿¬±¸È°µ¿
function goUrl_113(){location.href="/change/change_03.html"}//¹ßÀü°èÈ¹
function goUrl_114(){location.href="/change/change_04.html"}//¿¬±¸°á°ú¹°






//ÁÖ¼Ò¹Ù·Î°¡±â
function go_url(url)
{
	if (url!="")
	{
	document.hiddenfrom.action = url ;
	document.hiddenfrom.method ="post";
	document.hiddenfrom.target ='_blank';
	document.hiddenfrom.submit();
	}
}



//status  ¼³Á¤

var msg = "´ëÇÑ¹Î±¹ ¿¹ºñ¿ª Àå¼º¸ðÀÓ [¼º¿ìÈ¸]";
function hidestatus()
{
	window.status=msg ;
	return true;
}
if(document.layers)	document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT )
document.onmouseover= hidestatus ;
document.onmouseout= hidestatus ;	
hidestatus();


//ÆË¾÷Ã¢¶ç¿ì±â


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 "";
}
