//ÀÌ¿Ã¶ó½º ÆÐÄ¡ ºÎºÐ
function get_flash(URL,wid,hei,mode) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+URL+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='WMODE' value='"+mode+"'>");
	document.write("<param name='allowScriptAccess' value='sameDomain'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed>");
	document.write("</object>");
}

function get_flash2(URL,wid,hei,mode) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+URL+"?pageNum=<%=flash_num%>'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='WMODE' value='"+mode+"'>");
	document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed>");
	document.write("</object>");
}

function get_vod(what) {
	document.write("<OBJECT CLASSID='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width='320' height='240' ID='mPlayer'>");
	if (what == 2) { document.write("<PARAM NAME='filename' VALUE='/home_v2/data/"+what+".asf'>"); }
	else { document.write("<PARAM NAME='filename' VALUE='/home_v2/images/edusystem_imgs/"+what+".wmv'>"); }
	document.write("<PARAM NAME='ShowControls' VALUE='0'>");
	document.write("<PARAM NAME='AutoStart' VALUE='true'>");
	document.write("</object>");
}

function get_vod2(what) {
	document.write("<OBJECT CLASSID='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width='320' height='240' ID='mPlayer'>");
	document.write("<PARAM NAME='filename' VALUE='/home_v2/data/"+what+"'>");
	document.write("<PARAM NAME='ShowControls' VALUE='0'>");
	document.write("<PARAM NAME='AutoStart' VALUE='true'>");
	document.write("</object>");
}

function get_music(what) {
	document.write("<embed src='http://jstour.jeongseon.go.kr/data/"+what+"'></embed>");
}

/*******************************************************************************
* ÇÁ¸°Æ®
*******************************************************************************/

function PrintPage()
	{
		window.print();
	}
/*******************************************************************************
* ·Ñ¿À¹ö ½ºÅ©¸³Æ®¼Ò½º
*******************************************************************************/
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_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 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_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 autoblur() {
        if(event.srcElement.tagName == "A") document.body.focus();
	}
document.onfocusin = autoblur;

/*******************************************************************************
* pngÆÄÀÏ
*******************************************************************************/
function setPng24(obj) { 
  obj.width=obj.height=1; 
  obj.className=obj.className.replace(/\bpng24\b/i,''); 
  obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
  obj.src='';  
  return ''; 
}
/*******************************************************************************
* ÆË¾÷¸µÅ©
*******************************************************************************/

/*GIS ÆË¾÷°ü*/
function popup_introduction() {
 window.open ('popup_introduction.jsp','popup_introduction','width=567px, height=500px, status=no, scrollbars=yes');
}
function popup_map_modify() {
 window.open ('popup_map_modify.jsp','popup_map_modify','width=567px, height=500px, status=no, scrollbars=yes');
}
function popup_mapprint() {
 window.open ('popup_mapprint.jsp','popup_mapprint','width=567px, height=500px, status=no, scrollbars=yes');
}
function popup_view() {
 window.open ('popup_view.jsp','popup_view','width=567px, height=500px, status=no, scrollbars=yes');
}
function popup_sms() {
 window.open ('popup_sms.jsp','popup_sms','width=245px, height=600px, status=no, scrollbars=no');
}

/*¸Þ¸ð¸® ¼­ºñ½º¼¾ÅÍ*/
function popup_memory() {
 window.open ('popup_memory.jsp','popup_memory','width=567px,height=500px,status=no,scrollbars=yes');
}
function popup_mapview() {
 window.open ('popup_mapview.jsp','popup_mapview','width=550px,height=533px,status=no,scrollbars=no');
}

/*¿Â¶óÀÎÁ¦Ç°»ó´ã - °í°´Æò°¡*/
function popup_csevaluate() {
 window.open ('popup_csevaluate.jsp','popup_csevaluate','width=376px, height=440px,status=no, scrollbars=no');
}

/*³ªÀÇ¼­ºñ½º - ³ªÀÇ¼îÇÎÁ¤º¸ - Áõºù¼­·ù¹ß±Þ*/
function popup_issue() {
 window.open ('/cyber/html/jsp/myservice/popup_issue.jsp','popup_issue','width=567px,height=500px,status=no,scrollbars=yes');
}

/*³ªÀÇ¼­ºñ½º - ³ªÀÇ¼îÇÎÁ¤º¸ - Çö±Ý¿µÁÖÁõ*/
function popup_cash_receipt() {
 window.open ('/cyber/html/jsp/myservice/popup_cash_receipt.jsp','popup_cash_receipt','width=550px,height=515px,status=no,scrollbars=no');
}

/*³ªÀÇ¼­ºñ½º - ³ªÀÇ¼îÇÎÁ¤º¸ - ÁÖ¹®¹è¼ÛÁ¶È¸*/
function popup_cash_receipt() {
 window.open ('/cyber/html/jsp/myservice/popup_cash_receipt.jsp','popup_cash_receipt','width=550px,height=515px,status=no,scrollbars=no');
}

/*³ªÀÇ¼­ºñ½º - ³ªÀÇ¼îÇÎÁ¤º¸ - 1:1»ó´ãÇÏ±â*/
function popup_counsel() {
 window.open ('/cyber/html/jsp/myservice/popup_counsel.jsp','popup_counsel','width=567px,height=515px,status=no,scrollbars=yes');
}

/*³ªÀÇ¼­ºñ½º - º¸À¯Á¦Ç°ÇöÈ²*/
function popup_model_search() {
 window.open ('/cyber/html/jsp/myservice/popup_model_search.jsp','popup_model_search','width=427px,height=350px,status=no,scrollbars=yes');
}

/*³ªÀÇ¼­ºñ½º - ¼­ºñ½ºÁøÇàÇöÈ²*/
function popup_detail_receipt() {
 window.open ('/cyber/html/jsp/myservice/popup_detail_receipt.jsp','popup_detail_receipt','width=517px,height=500px,status=no,scrollbars=yes');
}

/*³ªÀÇ¼­ºñ½º - ¼­ºñ½º Ãë¼Ò»çÀ¯*/
function popup_service_cancel() {
 window.open ('/cyber/html/jsp/myservice/popup_service_cancel.jsp','popup_service_cancel','width=550px,height=500px,status=no,scrollbars=yes');
}

/*³ªÀÇ¼­ºñ½º -  sms*/
function popup_service_sms() {
 window.open ('/cyber/html/jsp/myservice/popup_service_sms.jsp','popup_service_sms','width=245px,height=600px,status=no,scrollbars=no');
}

/*Á¦Ç°¹®ÀÇ - faq*/
function popup_online_faq() {
 window.open ('popup_faq_list.jsp','popup_service_sms','width=710px,height=500px,status=no,scrollbars=yes');
}

/*¼­ºñ½º ¿¹¾à½ÅÃ»-  Á¢¼ö¹øÈ£Á¶È¸*/
function popup_service_inquiry() {
 window.open ('popup_service_inquiry.jsp','popup_service_inquiry','width=427px,height=270px,status=no,scrollbars=no');
}

/*È¸»ç¼Ò°³_ceo¿¡°Ô*/
function popup_introduce_ceo() {
 window.open ('popup_ceo.jsp','popup_service_inquiry','width=550px,height=560px,status=no,scrollbars=no');
}

/*È¸»ç¼Ò°³_º¸µµÀÚ·á*/
function IntroduceNewPopup() {
 window.open ('/cyber/jsp/introduce/IntroduceNewPopup.jsp','popup_service_inquiry','width=760px,height=470px,status=no,scrollbars=no');
}
/*******************************************************************************
* radio check
*******************************************************************************/

/*search*/
function Check1(x,y) {
	for(i=1;i<=3;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
	z = "option_a" + i ; // name ºÎºÐ
	w = z + "v"; // input
	v = x + "v"; // input
	document.all[z].src = "/cyber/images/htc_imgs/radiobutton.gif" ; //off
	document.all[w].value = "N";
	}
	document.all[x].src = "/cyber/images/htc_imgs/radiobutton_checked.gif" // on
	document.all[v].value = "Y";
}

function Check2(x,y) {
	for(i=1;i<=3;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
	z = "option_b" + i ; // name ºÎºÐ
	w = z + "v"; // input
	v = x + "v"; // input
	document.all[z].src = "/cyber/images/htc_imgs/radiobutton.gif" ;
	document.all[w].value = "N";
	}
	document.all[x].src = "/cyber/images/htc_imgs/radiobutton_checked.gif"
	document.all[v].value = "Y";
}


/*map*/
function Check_map(x,y) {
	for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
	z = "option_c" + i ; // name ºÎºÐ
	document.all[z].src = "/cyber/images/htc_imgs/radiobutton_map.gif" ;
	}
	document.all[x].src = "/cyber/images/htc_imgs/radiobutton_checked_map.gif";
}

/*sms ÆË¾÷*/
function Check_sms1(x,y) {
	for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
	z = "option_d" + i ; // name ºÎºÐ
	document.all[z].src = "/cyber/images/popup_imgs/sms_address_off.gif" ;
	document.all[x].src = "/cyber/images/popup_imgs/sms_address_on.gif";
	}
}
function Check_sms2(x,y) {
	for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
	z = "option_e" + i ; // name ºÎºÐ
	document.all[z].src = "/cyber/images/popup_imgs/sms_infos_off.gif" ;
	}
	document.all[x].src = "/cyber/images/popup_imgs/sms_info_on.gif";
}

/*board*/
function Check_board(x,y) {
	for(i=1;i<=2;i++) { // ¶óµð¿À ¹öÆ°ÀÇ °¹¼ö
	z = "option_f" + i ; // name ºÎºÐ
	document.all[z].src = "/cyber/images/htc_imgs/radiobutton_board.gif" ;
	}
	document.all[x].src = "/cyber/images/htc_imgs/radiobutton_checked_board.gif";
}


/*******************************************************************************
* board list ·Ñ¿À¹öÇÒ°æ¿ì
*******************************************************************************/
function change_background(that){
  that.style.backgroundImage ="url(/cyber/images/board_imgs/ti_bg_over.gif)";
   }
 function change2_background(that){
  that.style.backgroundImage ="url(/cyber/images/board_imgs/ti_bg_out.gif)";
   }


/*******************************************************************************
* product Tab
*******************************************************************************/
function tabContent(nTh) {
for(i=1;i<=4;i++){
	document.all['tabContentL'+i].style.display='none';
}
	document.all['tabContentL'+nTh].style.display='block';
}

/* ³ªÀÇ¼­ºñ½º 1:1»ó´ãÀÌ·Â*/
function myserviceContent(nTh) {
for(i=1;i<=5;i++){
	document.all['myserviceContentL'+i].style.display='none';
}
	document.all['myserviceContentL'+nTh].style.display='block';
}


/* ³ªÀÇ¼­ºñ½º Áõ¸í¼­ ¹ß±Þ*/
function issueContent(nTh) {
for(i=1;i<=2;i++){
	document.all['issueContentL'+i].style.display='none';
}
	document.all['issueContentL'+nTh].style.display='block';
}

/* ³ªÀÇ¼­ºñ½º ¿Â¶óÀÎ±Ý°í*/
function strongboxContent(nTh) {
for(i=1;i<=2;i++){
	document.all['strongboxContentL'+i].style.display='none';
}
	document.all['strongboxContentL'+nTh].style.display='block';
}

/* ³ªÀÇ¼­ºñ½º »ó´ãÀÌ·Â*/
function counselContent(nTh) {
for(i=1;i<=3;i++){
	document.all['counselContentL'+i].style.display='none';
}
	document.all['counselContentL'+nTh].style.display='block';
}

/* ÀÎÀç»ó*/
function brainContent(nTh) {
for(i=1;i<=3;i++){
	document.all['brainContentL'+i].style.display='none';
}
	document.all['brainContentL'+nTh].style.display='block';
}
/* ¼­ºñ½º¿ä±Ý¾È³»*/
function gdContent(nTh) {
for(i=1;i<=3;i++){
	document.all['gdContentL'+i].style.display='none';
}
	document.all['gdContentL'+nTh].style.display='block';
}
/* ¼­ºñ½ººÐ¾ß*/
function serContent(nTh) {
for(i=1;i<=3;i++){
	document.all['serContentL'+i].style.display='none';
}
	document.all['serContentL'+nTh].style.display='block';
}
/*******************************************************************************
* ÀÌ¸ðÆ¼ÄÜ
*******************************************************************************/
	
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; }
}