// family site ¿ÀÇÂ(select link)
var url;
function family( obj )
{
 	url = obj.menu.options[obj.menu.selectedIndex].value;
        if (url != 'no')
           window.open(url);
		  // list_site();
}

//Å¸ÀÌÆ²
document.title=":: Å×Å©³ë´ÚÅÍ ::"


//Æ÷Ä¿½º¾ø¾Ö±â
function blurAll() 
{ 
	try	{
		if( event.srcElement.tagName == "A" || event.srcElement.tagName == "IMG" ) 
		{ 
			document.body.focus(); 
		} 
	} catch (e)	{}

} 

try { document.onfocusin = blurAll;	} catch (e){}


// ·¹ÀÌ¾î-->
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_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 CheckUIElements() {
  var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
  var wndWidth = parseInt(document.body.clientWidth);
  yMenu1From   = parseInt (qLayer.style.top, 10);
  yMenu1To     = document.body.scrollTop + 213; // À§ÂÊ À§Ä¡
  timeoutNextCheck = 500;

  if ( yMenu1From != yMenu1To ) {
    yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
    if ( yMenu1To < yMenu1From )
      yOffset = -yOffset;

    qLayer.style.top = parseInt (qLayer.style.top, 10) + yOffset;

    timeoutNextCheck = 10;
  }
  qLayer.style.left = 870;
  setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function MovePosition() {
  var wndWidth = parseInt(document.body.clientWidth);

  // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
  qLayer.style.top = 350;
  qLayer.style.left = 840;
  qLayer.style.visibility = "visible";

  // initializing UI update timer
  CheckUIElements();
  return true;
}

<!------ 
var old_show = '';
function Show1(submenu)
{
	if( old_show != submenu ) {
		if( old_show !='' ) {
			old_show.style.display = 'none';
		}
		submenu.style.display = 'block';
		old_show = submenu;
	}
	else {
		submenu.style.display = 'none';

		old_show = '';
	}
}
//-------> 

//»õÃ¢À¸·Î ¿­±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// ±Û¾¾±ôºýÀÌ°Ô
function doBlink() { 
  var blink = document.all.tags("BLINK") 
  for (var i=0; i < blink.length; i++) 
     blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
} 

function startBlink() {   
if (document.all) 
    setInterval("doBlink()",500) // ±ô¹ÚÀÌ´Â ¼Óµµ 
} 

window.onload = startBlink; 



function script_HakingChk(obj){

	haking_txt = new Array(12)

	haking_txt[0] = "SELECT ";
	haking_txt[1] = "UPDATE ";
	haking_txt[2] = "DELETE ";
	haking_txt[3] = "--";
	haking_txt[4] = "CONNECT ";
	haking_txt[5] = "SHUTDOWN ";
	haking_txt[6] = "<";
	haking_txt[7] = ">";
	haking_txt[8] = "SCRIPT ";
	haking_txt[9] = "AND ";
	haking_txt[10] = "MINUS ";
	haking_txt[11] = "+";

	str = obj.value
	str_o = str.toUpperCase();

	error_chk_yn = false;

	for (i = 0; i < haking_txt.length; i++)	{

		if (str_o.indexOf(haking_txt[i]) != -1){

			alert("[" + haking_txt[i] + "] Çã¿ëµÇÁö ¾ÊÀº ¹®ÀÚÀÔ´Ï´Ù.(',;,>,<,&,--,+)");

			str1 = str.substring(0, str_o.indexOf(haking_txt[i]))
			str2 = str.substring(str_o.indexOf(haking_txt[i]) + haking_txt[i].length, str_o.length)

			str = str1 + "" + str2

			error_chk_yn = true;

		}

	}

	if (error_chk_yn)	obj.value = str

}



function script_HakingChk2(obj){

	haking_txt = new Array(12)

	haking_txt[0] = "SELECT ";
	haking_txt[1] = "UPDATE ";
	haking_txt[2] = "DELETE ";
	haking_txt[3] = "--";
	haking_txt[4] = "CONNECT ";
	haking_txt[5] = "SHUTDOWN ";
	haking_txt[6] = "<";
	haking_txt[7] = ">";
	haking_txt[8] = "SCRIPT ";
	haking_txt[9] = "AND ";
	haking_txt[10] = "MINUS ";
	haking_txt[11] = "+";

	str = obj.value
	str_o = str.toUpperCase();

	error_chk_yn = false;

	for (i = 0; i < haking_txt.length; i++)	{

		if (str_o.indexOf(haking_txt[i]) != -1){

			alert("[" + haking_txt[i] + "] Çã¿ëµÇÁö ¾ÊÀº ¹®ÀÚÀÔ´Ï´Ù.(',;,>,<,&,--,+)");

			str1 = str.substring(0, str_o.indexOf(haking_txt[i]))
			str2 = str.substring(str_o.indexOf(haking_txt[i]) + haking_txt[i].length, str_o.length)

			str = str1 + "" + str2

			error_chk_yn = true;

		}

	}

	if (error_chk_yn)	{
		
		obj.value = str

		return false

	}else{

		return true

	}

}


function winOpen(loc_url, pop_name, n_top, n_left, n_width, n_height, re_scrollbar, re_size) { 
			
	settings='width=' + n_width + ',height=' + n_height + ',top=' + n_top + ',left=' + n_left + ',scrollbars=' + re_scrollbar + ',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=' + re_size;

	loc_url = loc_url

	position_win = window.open(loc_url, pop_name, settings);

	if(position_win.focus)	position_win.focus();

}

