// popup
function win_Open(){
	//window.open('http://mypage.megapass.net','mypage','scrollbars=yes resizable=no width=1024 height=768')
	//window.open('http://mypage.megapass.net','mypage','')
	window.open('https://my.ktmobile.co.kr:8445/my/mod/ktindex.php?ktdid=20000023','mypage','')
}

function popsn(url,trgt,w,h) { 
			window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no'); 
		}		

function popsn2(url,trgt,w,h,t,l) { 
			window.open(url,trgt,'width='+w+',height='+h+',top='+t+',left='+l+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no'); 
		}		


function popsy(url,trgt,w,h) { 
			window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no'); 
		}	


function bluring()
{
//alert(typeof(event.srcElement.tagName))
if(event.srcElement !=null)
	{
		if(event.srcElement.tagName=="A" || event.srcElement.tagName=="IMG" || (event.srcElement.tagName=="INPUT" && (event.srcElement.type=="radio" || event.srcElement.type=="checkbox" ) )  )
		{
			document.body.focus();
		}
	}
}
document.onfocusin=bluring;

// rollover
var changedImg;

function EImgChg(flag)
{
	source=event.srcElement;
	if (source.name == "")
	{ return false;  }

	if(changedImg == source.name)
	return;


	else if (document.images && source.tagName=="IMG") {
		imgElement = source.name;  // ÀÌ¹ÌÁö name
		imgPath = source.src;   // ÀÌ¹ÌÁö src ¼Ó¼º°ª

		imgPathLen = imgPath.length;
		imgPathFlag = imgPath.lastIndexOf("/");
		imgName = imgPath.substring(0,imgPathFlag+1);

		document.images[imgElement].src =  imgName + imgElement + "_" + flag + ".gif";

	}
}



//ÀÌ¹ÌÁöÅ©°Ôº¸±â ()

document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:±¼¸²; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}');
document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}');
document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}');
document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color:  #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }');
document.write('</st'+'yle>');
// ÀÌ¹ÌÁö »çÀÌÁî¸Â°Ô »õÃ¢ÀÌ ÀÚµ¿À¸·Î Á¶Àý

function cnj_win_view(img){
  img_conf1= new Image();
  img_conf1.src=(img);
  cnj_view_conf(img);
}

function cnj_view_conf(img){
  if((img_conf1.width!=0)&&(img_conf1.height!=0)){
    cnj_view_img(img);
  } else{
    funzione="cnj_view_conf('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

var cnj_img_view = null;
function cnj_view_img(img){
    if(cnj_img_view != null) {
      if(!cnj_img_view.closed) { 
      cnj_img_view.close(); 
      }
    }
  cnj_width=img_conf1.width+20;
  cnj_height=img_conf1.height+20;
  str_img="width="+cnj_width+",height="+cnj_height;

   cnj_img_view=window.open("about:blank","",str_img);
   cnj_img_view.document.open();   // document.open() 
   cnj_img_view.document.writeln("<html>");
   cnj_img_view.document.writeln("<head>");
   cnj_img_view.document.writeln("<title></title>");
   cnj_img_view.document.writeln("<meta http-equiv='content-type' content='text/html; charset=euc-kr'>");
   cnj_img_view.document.writeln("<meta http-equiv='imagetoolbar' content='no'>");
   var start="<";
   cnj_img_view.document.writeln("<script language='javascript'>");
   cnj_img_view.document.writeln("function click() {");
   cnj_img_view.document.writeln("if ((event.button==1) || (event.button==2))  {");
   cnj_img_view.document.writeln("top.close();");
   cnj_img_view.document.writeln("      }");
   cnj_img_view.document.writeln("}");
   cnj_img_view.document.writeln("document.onmousedown=click");
   cnj_img_view.document.writeln(start+"/script>");
   cnj_img_view.document.writeln("</head>");
   cnj_img_view.document.writeln("<body>");
   cnj_img_view.document.writeln("<img src="+ img +" border=0 style='cursor:hand'>") // ¼Ò½º Å×½ºÆ® ºÎºÐ
   cnj_img_view.document.writeln("</body></html>");
   cnj_img_view.document.close();  // ¹Ýµå½Ã document.close() ´Ý¾ÆÁÖ¾î¾ß ÇÔ
   cnj_img_view.focus();
  return;
}


// ÀüÃ¼ÆäÀÌÁö Å¾ÀÇ select(combo)
function showcombo(what){
    if (what.style.display=='none')
        what.style.display='';
           
//    else if (what.style.display=='none')
//      what.style.display='';
}
function hidecombo(what){
    if (what.style.display=='')
        what.style.display='none';
           
//    else if (what.style.display=='none')
//      what.style.display='';
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

// ÀüÃ¼ÆäÀÌÁö Å¾ÀÇ select ¼±ÅÃ°ª
function Selected(w,what,target){
eval(what).value='';

    if(w){
        eval(what).value=w;
        eval(target).style.display='none';
    }
}

//½ºÄ«ÀÌÆÐ½º ·¹ÀÌ¾î
function skypath_layer(idx)
{
	if(idx == 1)
	{
		document.getElementById("skypath_menu").style.display = "block";
	}
	else if(idx == 2)
	{
		document.getElementById("skypath_menu").style.display = "none";
		document.getElementById("skypath_if_01").style.display = "none";
		document.getElementById("skypath_if_02").style.display = "none";
		document.getElementById("skypath_if_03").style.display = "none";
	}
}

function skypath_layer_if(idx)
{
	if(idx == 1)
	{
		document.getElementById("skypath_menu").style.display = "block";
		document.getElementById("skypath_if_01").style.display = "block";
		document.getElementById("skypath_if_02").style.display = "none";
		document.getElementById("skypath_if_03").style.display = "none";
	}
	else if(idx == 2)
	{
		document.getElementById("skypath_menu").style.display = "block";
		document.getElementById("skypath_if_02").style.display = "block";
		document.getElementById("skypath_if_01").style.display = "none";
		document.getElementById("skypath_if_03").style.display = "none";
	}
	else if(idx == 3)
	{
		document.getElementById("skypath_menu").style.display = "block";
		document.getElementById("skypath_if_03").style.display = "block";
		document.getElementById("skypath_if_02").style.display = "none";
		document.getElementById("skypath_if_01").style.display = "none";
	}
}

function autoBlur(){ 

	try{
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
	}catch(e) {}
}
document.onfocusin=autoBlur;