var over_lay = 1;
function lay(value,src){
	over_lay = value;
	var div_all = document.getElementsByTagName("div");
	for (var i = 0;i <div_all.length  ;i++ )
	{
		if(div_all[i].className == "tar_lay"){
			div_all[i].style.display ="none";
		}
	}
	lay_out(src);
	document.getElementById('lay_out'+value).style.display = "block";
}

function lay_out(src){
	var div_all = document.getElementsByTagName("img");
	var k = 1;
	for (var i=0;i < div_all.length ;i++ )
	{
		if(div_all[i].className=="lay_out"){
			if(over_lay != k){
			div_all[i].src = src+k+".jpg";
			}
		k++;
		}
	}
}
function getChildInfo(_object) {
 var _output = "" ;
 var _outputPanel = window.open() ;
 for (var _pn in _object) { _output += "<strong>" + _pn + "</strong> -> " + _object[_pn] + "<br/>" ; }
 _outputPanel.document.write(_output) ;
}
function lay_over(value,src){
	lay_out(src);
	if(event.type =="mouseover"){
	document.getElementById('lay'+value).src=src+"ov_"+value+".jpg";
	}
}

	function auto_focus(obj, next){
		if(obj){
			if(obj.value.length == obj.maxLength){
				next.focus()
			}
		}
	}

	function on_focus(obj){
		obj.className = "info_name"
	}

	function off_focus(obj){
		obj.className = "text_box_style"
	}


//////////////////////////////////////////////////////////////////
// ÀÌÀü ½ºÅ©¸³Æ®
//////////////////////////////////////////////////////////////////
function fFlash_Activate(argSRC,argWIDTH,argHEIGHT,argID,argWMODE)
{
var strTEMP;
strTEMP ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ' ;
if(argID)
   strTEMP = strTEMP + ' ID="' + argID + '" ' ;

strTEMP = strTEMP + ' width="'+ argWIDTH + '" height="' + argHEIGHT + '">';
strTEMP = strTEMP + '<param name="movie" value="' + argSRC + '">';
strTEMP = strTEMP + '<param name="quality" value="high">';
strTEMP = strTEMP + '<param name="memu" value="false">';

if(argWMODE)
   strTEMP = strTEMP + '<param name="wmode" value="' + argWMODE + '">';
else
   strTEMP = strTEMP + '<param name="wmode" value="transparent">';


  
strTEMP = strTEMP + '<embed src="' + argSRC + '" ';
if(argID)
 strTEMP = strTEMP + ' ID="' + argID + '" ' ;

strTEMP = strTEMP + ' width="' + argWIDTH + '" height="'+ argHEIGHT + '" quality="high" menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" '; 
if(argWMODE)
   strTEMP = strTEMP + 'wmode="' + argWMODE + '"';
else
   strTEMP = strTEMP + 'wmode="transparent"';

strTEMP = strTEMP + '></embed></object>';

document.write(strTEMP);
//alert(strTEMP)
}


function resizeHeight(fr) { // ¾ÆÀÌÇÁ·¹ÀÓ ³ôÀÌ ÀÚµ¿Á¶Àý
	var Frame_Body  = document.frames(fr).document.body;
	var Frame_name  = document.all(fr);
		Frame_name.style.height = Frame_Body.scrollHeight + (Frame_Body.offsetHeight-Frame_Body.clientHeight);
}





function clrImg(obj){
	obj.style.backgroundImage="";obj.onkeydown=obj.onmousedown=null;
}

function opwin(url, width, height){ // ÆË¾÷ ¼Ò½º
 var arg = "width=" + width + ", height=" + height +", scrollbars=no, status=no, toolbars=no, resizable = no";
 var win = window.open(url, '', arg);
 if (win !=null) win.focus();
}
function opwin2(url, width, height){ // ÆË¾÷ ¼Ò½º
 var arg = "width=" + width + ", height=" + height;
 var win = window.open(url, '', arg);
 if (win !=null) win.focus();
}
function ChImg_on(arg,img){document.getElementById(arg).src="images/" + img ;}
function ChImg_off(arg,img){document.getElementById(arg).src="images/" + img ;}


function SearchTab_on(arg){document.getElementById(arg).src="/images/search_tab/search_tab_" +arg+ "_on.gif";}
function SearchTab_off(arg){document.getElementById(arg).src="/images/search_tab/search_tab_" +arg+ ".gif";}

function SearchSTab_on(arg){document.getElementById(arg).src="/images/search_tab/s_search_tab_" +arg+ "_on.gif";}
function SearchSTab_off(arg){document.getElementById(arg).src="/images/search_tab/s_search_tab_" +arg+ ".gif";}

/*=======================================================================
ÇÔ¼ö¸í : pop
±â  ´É : ÆË¾÷Ã¢ ÀÌ¹ÌÁö ¿©´Â Module
				url : open target window(È®ÀåÀÚ´Â º¯°æ°¡´É,È¥¿µ»ç¿ë½Ã È®ÀåÀÚ ÆÄ¶ó¹ÌÅÍ »èÁ¦ »ç¿ë°¡´É)
				wd : open window °¡·Î°ª
				he : open window ¼¼·Î°ª
				flag : scroll ¿©ºÎ(0:½ºÅ©·Ñ ¾ø½¿ / 1:½ºÅ©·Ñ ÀÖ½¿)
				±×¿Ü left. top ÁöÁ¤°ªÀ¸·Î ÁÂÇ¥ ÁöÁ¤ °¡´É

				¿¹) pop('sample.html',500,500,1) 
						=> °¡·Î,¼¼·Î 500pxÀÎ ½ºÅ©·Ñ ÀÖ´Â ÆË¾÷Ã¢ È£Ãâ
ÀÎ  ¼ö : 
¸®ÅÏ°ª :
=======================================================================*/


   try{
        document.domain="ktann.com"; // ktann.com , ktmobile.co.kr 
    }catch(E){}
    
function pop(pop, name, width, height, flag)
{
	var url = pop;
	var wd = width;
	var he = height;
    if (flag == "0" )
    {
       window.open(url,name,"toolbar=0,menubar=0,scrollbars=no,resizable=no, status=yes,width=" + wd +",height=" + he + ";");  
    }
    else if(flag == "1") 
    {
       window.open(url,name,"toolbar=0,menubar=0,scrollbars=yes,resizable=no, status=yes,width=" + wd +",height=" + he + ";");  
    }
    else if(flag == "2") 
    {
       window.open(url,name,"toolbar=0,menubar=0,scrollbars=yes,resizable=yes, status=yes,width=" + wd +",height=" + he + ";");  
    }
}



	// ¸Þ½ÃÁö ÄÚµå
	var MSG_PAGELOADED          = 0x0001; // ÆäÀÌÁö ·Îµù¿Ï·á
	var MSG_SESSIONEXPIRED      = 0x0010; // ·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ÆäÀÌÁö¿¡¼­ ·Î±×ÀÎÀÌ ¾ÈµÈ°æ¿ì
	var MSG_MOBILECERTNEED      = 0x0020; // ¸ð¹ÙÀÏÀÎÁõ(¶Ç´Â ¸ð¹ÙÀÏÀÎÁõ)ÀÌ ÇÊ¿äÇÑ ÆäÀÌÁö¿¡¼­ ¸ð¹ÙÀÏÀÎÁõÀÌ ¾ÈµÈ°æ¿ì
	var MSG_PUBLICCERTNEED      = 0x0030; // °øÀÎÀÎÁõÇÊ¿äÇÑ ÆäÀÌÁö¿¡¼­ °øÀÎÀÎÁõÀÌ ¾ÈµÈ°æ¿ì
	var MSG_ORDSAVESUCCESS      = 0x0500; // °¢ »óÇ°½ÅÃ» ÀúÀåÀÌ ¼º°øÇÑ °æ¿ì
	var MSG_ORDSAVEFAIL         = 0x0550; // °¢ »óÇ°½ÅÃ» ÀúÀåÀÌ ½ÇÆÐÇÑ °æ¿ì ÀÌ¶§¿¡ Error_msg_cd , Error_msg_text °¡ Ã¤¿öÁø´Ù.

    function setParentMsgKT100( event_messsge , URLid , Error_msg_cd , Error_msg_text){
    	if( event_messsge == MSG_PAGELOADED ){ // ÆäÀÌÁö ·ÎµùÀÌ ³¡³µÀ»¶§
    		var min_height = 600; // ÃÖ¼Ò ³ôÀÌ (700px) ¾ËÀÌ °ªÀº »çÀÌÆ®¿¡ µû¶ó¼­ º¯°æÇØÁÖ¼¼¿ä)
    		var iframeHeight = Contents.document.body.scrollHeight+10;
    		if( min_height > iframeHeight ){
    		    iframeHeight = min_height;
    		}
    		Container.height = iframeHeight; // ÇØ´ç ¿­À» ÀÚµ¿À¸·Î ´Ã·ÁÁØ´Ù.
    		document.getElementById('ReadyLayer').style.visibility = "hidden"; 
    		
    	}
    	// ·Î±×ÀÎÀÌ ÇÊ¿äÇÑ »çÀÌÆ®¿¡¼­ ·Î±×ÀÎÀÌ µÇÁö ¾Ê¾ÒÀ»¶§
    	if( event_messsge == MSG_SESSIONEXPIRED ){ 
    		alert("·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ÆäÀÌÁö ÀÔ´Ï´Ù.");
    	}
    	// ¸ð¹ÙÀÏÀÎÁõ(¶Ç´Â ¸ð¹ÙÀÏÀÎÁõ)ÀÌ ÇÊ¿äÇÑ ÆäÀÌÁö¿¡¼­ ¸ð¹ÙÀÏÀÎÁõÀÌ ¾ÈµÈ°æ¿ì
    	if( event_messsge == MSG_MOBILECERTNEED ){ 
    		alert("¸ð¹ÙÀÏÀÎÁõ ÀÌ ÇÊ¿äÇÑ ÆäÀÌÁö ÀÔ´Ï´Ù.");
    	}
    	// °øÀÎÀÎÁõÇÊ¿äÇÑ ÆäÀÌÁö¿¡¼­ °øÀÎÀÎÁõÀÌ ¾ÈµÈ°æ¿ì
    	if( event_messsge == MSG_PUBLICCERTNEED ){ 
    		alert("°øÀÎÀÎÁõ ÀÌ ÇÊ¿äÇÑ ÆäÀÌÁö ÀÔ´Ï´Ù.");
    	}
    	// »óÇ°½ÅÃ»ÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù.
    	if( event_messsge == MSG_ORDSAVESUCCESS ){ 
    		alert("»óÇ°½ÅÃ»ÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù.");
    	}
    	// »óÇ°½ÅÃ»½Ã ¿À·ù°¡ ¹ß»ýÇÑ°æ¿ì
    	if( event_messsge == MSG_ORDSAVEFAIL ){    
    		alert("ÀúÀå½Ã ¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.");
    	}
    }

 
    
    

       function if_Resize()
		{
		 
        // WindowÀÇ Å¬¸³º¸µåÀÇ °ªÀ» ÀÐ¾î¼­ iframeÀÇ »çÀÌÁî¸¦ Àç¼³Á¤ÇÑ´Ù.
		var str = window.clipboardData.getData("Text");
		var cstr = str.split("|");
		
		//document.all.replyframe.width = eval(cstr[0]);
		document.all.replyframe.height = eval(cstr[1]);
		if (eval(cstr[1])==0)
		{
			document.all.replyframe.height =600;
		}
		// iframeÀÇ »çÀÌÁî ¼³Á¤ÈÄ Å¬¸³º¸µå µ¥ÀÌÅÍ¸¦ »èÁ¦ÇÑ´Ù
		window.clipboardData.setData('Text', "");	
	  }
	  
	  //ÄÁÆ®·Ñ Å×µÎ¸® ¾ø¾Ö±â
 var ActiveObjSrc;

function addActiveObject(objName, objSrc) {
  var tmpObj;

  tmpObj = eval("document.all."+objName);
  tmpObj.innerHTML = "" + objSrc + "";
}
function objectlaunch(objcode) {
	document.write(objcode);
}
var objectTag = "";
// ÇÃ·¡½Ã ÀÌ¿Ã¶ó½º
function flashWrite(swf_name,swf_file,swf_width,swf_height) {
	var objectTag = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+swf_width+"' height='"+swf_height+"' id='"+ swf_name +"' align='middle'><param name='allowScriptAccess' value='always'><param name='SCALE' value='noborder'><param name='movie' value='" + swf_file +"'><param name='quality' value='high'><param name='wmode' value='transparent'><param name='bgcolor' value='#000000'><embed src='" + swf_file +"' quality='high' bgcolor='#ffffff' width='"+swf_width+"' height='"+swf_height+"' name='"+ swf_name +"' align='middle' allowScriptAccess='always' wmode='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></object>";
	document.write(objectTag);		
	objectTag = "";
}
// flash value 
function swfInit(src) {
	var url;
	switch(src) {		
    case "xml_map": url = "map_list.asp"; break; //ktann_map.xml
    case "xml_list": url = "xml_list.asp"; break; //ktann_list.xml
    case "swf_list": url = "ktann_list.swf"; break; 
    case "url_delete": url = "love_delete.asp"; break;//delete.txt
    case "url_write": url = "love_ok.asp"; break;//write.txt
 //   case "url_login": url = "javascript:goCommonLogin();"; break;
   case "url_login": url = "javascript:document.LoginForm.loginid.focus();"; break;
 
	}
	return url;
}
	function callCarendar(txt,left,top)  
			{
				var SDATE,URL,sFeatures;
				URL = "/common/Calendar.htm";
				sFeatures = "dialogWidth:220px; dialogHeight:285px; dialogTop:"+ top +"px; dialogLeft:"+ left +"px; help:no; status:no";
				SDATE = window.showModalDialog(URL,"´Þ·Â",sFeatures);
				txt.value = SDATE;
			}
	function goSearch() {
		     
				searchForm.submit();
		
		}
			function goCategoryList() {
					frm.submit();
		
		}
function gologin() {
if(navigator.appName == "Netscape"){
	var frm = document.getElementById('frm');
		if(frm.pid.value=="") {
			alert("¾ÆÀÌµð¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
			frm.pid.focus();
			return;
		}else if(frm.ppwd.value=="") {
			alert("ÆÐ½º¿öµå¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
			frm.ppwd.focus();
			return;
		}
				frm.submit();
}else{
		if(document.frm.pid.value=="") {
			alert("¾ÆÀÌµð¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
			document.frm.pid.focus();
			return;
		}else if(document.frm.ppwd.value=="") {
			alert("ÆÐ½º¿öµå¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
			document.frm.ppwd.focus();
			return;
		}
				document.frm.submit();
		
}
		}
	function deleteCookie( cookieName )
 {
  var expireDate = new Date();
  
  //¾îÁ¦ ³¯Â¥¸¦ ÄíÅ° ¼Ò¸ê ³¯Â¥·Î ¼³Á¤ÇÑ´Ù.
  expireDate.setDate( expireDate.getDate() - 1 );
  document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString() + "; path=/";
 }

	 function setCookie( cookieName, cookieValue, expireDate )
 {
  var today = new Date();
  today.setDate( today.getDate() + parseInt( expireDate ) );
  document.cookie = cookieName + "=" + escape( cookieValue ) + "; path=/; expires=" + today.toGMTString() + ";";
 }
  function setBrowserCookie( cookieName, cookieValue, expireDate )
 {
  var today = new Date();
  today.setDate( today.getDate() + parseInt( expireDate ) );
  document.cookie = cookieName + "=" + escape( cookieValue ) + "; path=/;"
 }
 function getCookie( cookieName )
 {
  var search = cookieName + "=";
  var cookie = document.cookie;
  // ÇöÀç ÄíÅ°°¡ Á¸ÀçÇÒ °æ¿ì
  if( cookie.length > 0 )
  {
   // ÇØ´ç ÄíÅ°¸íÀÌ Á¸ÀçÇÏ´ÂÁö °Ë»öÇÑ ÈÄ Á¸ÀçÇÏ¸é À§Ä¡¸¦ ¸®ÅÏ.
   startIndex = cookie.indexOf( cookieName );

   // ¸¸¾à Á¸ÀçÇÑ´Ù¸é
   if( startIndex != -1 )
   {
    // °ªÀ» ¾ò¾î³»±â À§ÇØ ½ÃÀÛ ÀÎµ¦½º Á¶Àý
    startIndex += cookieName.length;

    // °ªÀ» ¾ò¾î³»±â À§ÇØ Á¾·á ÀÎµ¦½º ÃßÃâ
    endIndex = cookie.indexOf( ";", startIndex );

    // ¸¸¾à Á¾·á ÀÎµ¦½º¸¦ ¸øÃ£°Ô µÇ¸é ÄíÅ° ÀüÃ¼±æÀÌ·Î ¼³Á¤
    if( endIndex == -1) endIndex = cookie.length;

    // ÄíÅ°°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏ
    return unescape( cookie.substring( startIndex + 1, endIndex ) );
   }
   else
   {
    // ÄíÅ° ³»¿¡ ÇØ´ç ÄíÅ°°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì
    return false;
   }
  }
  else
  {
   // ÄíÅ° ÀÚÃ¼°¡ ¾øÀ» °æ¿ì
   return false;
  }
 }
 	function callCarendar(txt,left,top)  
			{
				var SDATE,URL,sFeatures;
				URL = "/common/Calendar.htm";
				sFeatures = "dialogWidth:220px; dialogHeight:285px; dialogTop:"+ top +"px; dialogLeft:"+ left +"px; help:no; status:no";
				SDATE = window.showModalDialog(URL,"´Þ·Â",sFeatures);
				txt.value = SDATE;
			}

 function iframeCheck(na) {
   eval("var PF = "+na+".document.body");
   var CF = document.all[na];
   CF.style.height = PF.scrollHeight + (PF.offsetHeight - PF.clientHeight);
   CF.style.width = PF.scrollWidth + (PF.offsetWidth - PF.clientWidth);
  
}
function reSize() {
        try{
        var objBody = myRTF.document.body;
        var objFrame = document.all["myRTF"];
        ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
        
        if (ifrmHeight > 100) {
                objFrame.style.height = ifrmHeight
        }else{
                objFrame.style.height = 200;
        }
        objFrame.style.width = '90%'
        }catch(e){}
}
function init_iframe() {
        reSize();
        setTimeout('init_iframe()',200)
}
function init_iframe1(obj) {
        reSize1(obj);
        setTimeout('init_iframe1('+obj+')',200)
}
function reSize1(i) {
        try{
        var objBody = eval("myRTF"+i).document.body;
        var objFrame = document.all["myRTF"+i];
        ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
        
        if (ifrmHeight > 100) {
                objFrame.style.height = ifrmHeight
        }else{
                objFrame.style.height = 200;
        }
        objFrame.style.width = '90%'
        }catch(e){}
}
function ViewInit() 
{
   var source ="<html><head></head><style>P {margin-top:1px;margin-bottom:1px;}body{font-size:12px;font-family:±¼¸²;color:#777777;}</style><body></body></html>"
   myRTF.document.designMode="Off";
   myRTF.document.open("text/html");
   myRTF.document.write(source);
   myRTF.document.close();     

}
function ViewInit1(obj) 
{
   var source ="<html><head></head><style>P {margin-top:1px;margin-bottom:1px;}body{font-size:12px;font-family:±¼¸²;color:#777777;}</style><body></body></html>"
   obj.document.designMode="Off";
   obj.document.open("text/html");
   obj.document.write(source);
   obj.document.close();     

}






  var win=null; 
  function printIt(printThis)  { 
    win = window.open(); 
    self.focus(); 
    win.document.open(); 
    win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>'); 
    win.document.write('body, td { font-family: Verdana; font-size: 10pt;}'); 
    win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>'); 
    win.document.write(printThis); 
    win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>'); 
    win.document.close(); 
    win.print(); 
    win.close(); 
  } 


function go_sub1(idx){
	if(navigator.appName == "Netscape"){
		var qna_sub1 = document.getElementById('qna_sub1');
		var qna_sub2 = document.getElementById('qna_sub2');
		var qna_sub3 = document.getElementById('qna_sub3');
		var qna_sub4 = document.getElementById('qna_sub4');
		var qna_sub5 = document.getElementById('qna_sub5');
		var qna_sub6 = document.getElementById('qna_sub6');

		var qna1 = document.getElementById('qna1');
		var qna2 = document.getElementById('qna2');
		var qna3 = document.getElementById('qna3');
		var qna4 = document.getElementById('qna4');
		var qna5 = document.getElementById('qna5');
		var qna6 = document.getElementById('qna6');

		var after_sub1 = document.getElementById('after_sub1');
		var after_sub2 = document.getElementById('after_sub2');
		var after_sub3 = document.getElementById('after_sub3');
		var after_sub4 = document.getElementById('after_sub4');
		var after_sub5 = document.getElementById('after_sub5');
		var after_sub6 = document.getElementById('after_sub6');

		var after1 = document.getElementById('after1');
		var after2 = document.getElementById('after2');
		var after3 = document.getElementById('after3');
		var after4 = document.getElementById('after4');
		var after5 = document.getElementById('after5');
		var after6 = document.getElementById('after6');
	}else{
		var qna_sub1 = document.all.qna_sub1;
		var qna_sub2 = document.all.qna_sub2;
		var qna_sub3 = document.all.qna_sub3;
		var qna_sub4 = document.all.qna_sub4;
		var qna_sub5 = document.all.qna_sub5;
		var qna_sub6 = document.all.qna_sub6;

		var qna1 = document.all.qna1;
		var qna2 = document.all.qna2;
		var qna3 = document.all.qna3;
		var qna4 = document.all.qna4;
		var qna5 = document.all.qna5;
		var qna6 = document.all.qna6;

		var after_sub1 = document.all.after_sub1;
		var after_sub2 = document.all.after_sub2;
		var after_sub3 = document.all.after_sub3;
		var after_sub4 = document.all.after_sub4
		var after_sub5 = document.all.after_sub5;
		var after_sub6 = document.all.after_sub6;

		var after1 = document.all.after1;
		var after2 = document.all.after2;
		var after3 = document.all.after3;
		var after4 = document.all.after4;
		var after5 = document.all.after5;
		var after6 = document.all.after6;
	}

	if(idx == 1){
		qna_sub1.style.display = "inline"; 
		qna_sub2.style.display = "none"; 
		qna_sub3.style.display = "none"; 
		qna_sub4.style.display = "none"; 
		qna_sub5.style.display = "none";
		qna_sub6.style.display = "none";
		qna1.style.color = "#61a9d9"; 
		qna1.style.fontWeight = "bold"; 
		qna2.style.color = ""; 
		qna2.style.fontWeight = ""; 
		qna3.style.color = ""; 
		qna3.style.fontWeight = ""; 
		qna4.style.color = ""; 
		qna4.style.fontWeight = ""; 
		qna5.style.color = ""; 
		qna5.style.fontWeight = ""; 
		qna6.style.color = ""; 
		qna6.style.fontWeight = ""; 
	}
	if(idx == 2){
		qna_sub1.style.display = "none"; 
		qna_sub2.style.display = "inline"; 
		qna_sub3.style.display = "none"; 
		qna_sub4.style.display = "none"; 
		qna_sub5.style.display = "none";
		qna_sub6.style.display = "none";
		qna1.style.color = ""; 
		qna1.style.fontWeight = ""; 
		qna2.style.color = "#61a9d9"; 
		qna2.style.fontWeight = "bold"; 
		qna3.style.color = ""; 
		qna3.style.fontWeight = ""; 
		qna4.style.color = ""; 
		qna4.style.fontWeight = ""; 
		qna5.style.color = ""; 
		qna5.style.fontWeight = ""; 
		qna6.style.color = ""; 
		qna6.style.fontWeight = ""; 
	}
	if(idx == 3){
		qna_sub1.style.display = "none"; 
		qna_sub2.style.display = "none"; 
		qna_sub3.style.display = "inline"; 
		qna_sub4.style.display = "none"; 
		qna_sub5.style.display = "none";
		qna_sub6.style.display = "none";
		qna1.style.color = ""; 
		qna1.style.fontWeight = ""; 
		qna2.style.color = ""; 
		qna2.style.fontWeight = ""; 
		qna3.style.color = "#61a9d9"; 
		qna3.style.fontWeight = "bold"; 
		qna4.style.color = ""; 
		qna4.style.fontWeight = ""; 
		qna5.style.color = ""; 
		qna5.style.fontWeight = ""; 
		qna6.style.color = ""; 
		qna6.style.fontWeight = ""; 
	}
	if(idx == 4){
		qna_sub1.style.display = "none"; 
		qna_sub2.style.display = "none"; 
		qna_sub3.style.display = "none"; 
		qna_sub4.style.display = "inline"; 
		qna_sub5.style.display = "none";
		qna_sub6.style.display = "none";
		qna1.style.color = ""; 
		qna1.style.fontWeight = ""; 
		qna2.style.color = ""; 
		qna2.style.fontWeight = ""; 
		qna3.style.color = ""; 
		qna3.style.fontWeight = ""; 
		qna4.style.color = "#61a9d9"; 
		qna4.style.fontWeight = "bold"; 
		qna5.style.color = ""; 
		qna5.style.fontWeight = ""; 
		qna6.style.color = ""; 
		qna6.style.fontWeight = ""; 
	}
	if(idx == 5){
		qna_sub1.style.display = "none"; 
		qna_sub2.style.display = "none"; 
		qna_sub3.style.display = "none"; 
		qna_sub4.style.display = "none"; 
		qna_sub5.style.display = "inline";
		qna_sub6.style.display = "none";
		qna1.style.color = ""; 
		qna1.style.fontWeight = ""; 
		qna2.style.color = ""; 
		qna2.style.fontWeight = ""; 
		qna3.style.color = ""; 
		qna3.style.fontWeight = ""; 
		qna4.style.color = ""; 
		qna4.style.fontWeight = ""; 
		qna5.style.color = "#61a9d9"; 
		qna5.style.fontWeight = "bold"; 
		qna6.style.color = ""; 
		qna6.style.fontWeight = ""; 
	}
	if(idx == 6){
		qna_sub1.style.display = "none"; 
		qna_sub2.style.display = "none"; 
		qna_sub3.style.display = "none"; 
		qna_sub4.style.display = "none"; 
		qna_sub5.style.display = "none";
		qna_sub6.style.display = "inline";
		qna1.style.color = ""; 
		qna1.style.fontWeight = ""; 
		qna2.style.color = ""; 
		qna2.style.fontWeight = ""; 
		qna3.style.color = ""; 
		qna3.style.fontWeight = ""; 
		qna4.style.color = ""; 
		qna4.style.fontWeight = ""; 
		qna5.style.color = ""; 
		qna5.style.fontWeight = ""; 
		qna6.style.color = "#61a9d9"; 
		qna6.style.fontWeight = "bold"; 
	}
}

function go_sub2(idx){
	if(navigator.appName == "Netscape"){
		var qna_sub1 = document.getElementById('qna_sub1');
		var qna_sub2 = document.getElementById('qna_sub2');
		var qna_sub3 = document.getElementById('qna_sub3');
		var qna_sub4 = document.getElementById('qna_sub4');
		var qna_sub5 = document.getElementById('qna_sub5');
		var qna_sub6 = document.getElementById('qna_sub6');

		var qna1 = document.getElementById('qna1');
		var qna2 = document.getElementById('qna2');
		var qna3 = document.getElementById('qna3');
		var qna4 = document.getElementById('qna4');
		var qna5 = document.getElementById('qna5');
		var qna6 = document.getElementById('qna6');

		var after_sub1 = document.getElementById('after_sub1');
		var after_sub2 = document.getElementById('after_sub2');
		var after_sub3 = document.getElementById('after_sub3');
		var after_sub4 = document.getElementById('after_sub4');
		var after_sub5 = document.getElementById('after_sub5');
		var after_sub6 = document.getElementById('after_sub6');

		var after1 = document.getElementById('after1');
		var after2 = document.getElementById('after2');
		var after3 = document.getElementById('after3');
		var after4 = document.getElementById('after4');
		var after5 = document.getElementById('after5');
		var after6 = document.getElementById('after6');
	}else{
		var qna_sub1 = document.all.qna_sub1;
		var qna_sub2 = document.all.qna_sub2;
		var qna_sub3 = document.all.qna_sub3;
		var qna_sub4 = document.all.qna_sub4;
		var qna_sub5 = document.all.qna_sub5;
		var qna_sub6 = document.all.qna_sub6;

		var qna1 = document.all.qna1;
		var qna2 = document.all.qna2;
		var qna3 = document.all.qna3;
		var qna4 = document.all.qna4;
		var qna5 = document.all.qna5;
		var qna6 = document.all.qna6;

		var after_sub1 = document.all.after_sub1;
		var after_sub2 = document.all.after_sub2;
		var after_sub3 = document.all.after_sub3;
		var after_sub4 = document.all.after_sub4
		var after_sub5 = document.all.after_sub5;
		var after_sub6 = document.all.after_sub6;

		var after1 = document.all.after1;
		var after2 = document.all.after2;
		var after3 = document.all.after3;
		var after4 = document.all.after4;
		var after5 = document.all.after5;
		var after6 = document.all.after6;
	}
/* 
	for (var i = 1; i <= 6; i++){
		if(idx == i){
			evel("after_sub"+i).style.display = "inline";
			evel("after"+i).style.color = "#61a9d9";
			evel("after"+i).style.fontWeight = "bold";
		}
		else{
			evel("after_sub"+i).style.display = "none";
			evel("after"+i).style.color = "";
			evel("after"+i).style.fontWeight = "";
		}
	}
	return;
 */
	if(idx == 1){
		after_sub1.style.display = "inline";
		after_sub2.style.display = "none"; 
		after_sub3.style.display = "none"; 
		after_sub4.style.display = "none"; 
		after_sub5.style.display = "none";
		after_sub6.style.display = "none";
		after1.style.color = "#61a9d9"; 
		after1.style.fontWeight = "bold"; 
		after2.style.color = ""; 
		after2.style.fontWeight = ""; 
		after3.style.color = ""; 
		after3.style.fontWeight = ""; 
		after4.style.color = ""; 
		after4.style.fontWeight = ""; 
		after5.style.color = ""; 
		after5.style.fontWeight = ""; 
		after6.style.color = ""; 
		after6.style.fontWeight = ""; 
	}
	if(idx == 2){
		after_sub1.style.display = "none"; 
		after_sub2.style.display = "inline"; 
		after_sub3.style.display = "none"; 
		after_sub4.style.display = "none"; 
		after_sub5.style.display = "none";
		after_sub6.style.display = "none";
		after1.style.color = ""; 
		after1.style.fontWeight = ""; 
		after2.style.color = "#61a9d9"; 
		after2.style.fontWeight = "bold"; 
		after3.style.color = ""; 
		after3.style.fontWeight = ""; 
		after4.style.color = ""; 
		after4.style.fontWeight = ""; 
		after5.style.color = ""; 
		after5.style.fontWeight = ""; 
		after6.style.color = ""; 
		after6.style.fontWeight = ""; 
	}
	if(idx == 3){
		after_sub1.style.display = "none"; 
		after_sub2.style.display = "none"; 
		after_sub3.style.display = "inline"; 
		after_sub4.style.display = "none"; 
		after_sub5.style.display = "none";
		after_sub6.style.display = "none";
		after1.style.color = ""; 
		after1.style.fontWeight = ""; 
		after2.style.color = ""; 
		after2.style.fontWeight = ""; 
		after3.style.color = "#61a9d9"; 
		after3.style.fontWeight = "bold"; 
		after4.style.color = ""; 
		after4.style.fontWeight = ""; 
		after5.style.color = ""; 
		after5.style.fontWeight = ""; 
		after6.style.color = ""; 
		after6.style.fontWeight = ""; 
	}
	if(idx == 4){
		after_sub1.style.display = "none"; 
		after_sub2.style.display = "none"; 
		after_sub3.style.display = "none"; 
		after_sub4.style.display = "inline"; 
		after_sub5.style.display = "none";
		after_sub6.style.display = "none";
		after1.style.color = ""; 
		after1.style.fontWeight = ""; 
		after2.style.color = ""; 
		after2.style.fontWeight = ""; 
		after3.style.color = ""; 
		after3.style.fontWeight = ""; 
		after4.style.color = "#61a9d9"; 
		after4.style.fontWeight = "bold"; 
		after5.style.color = ""; 
		after5.style.fontWeight = ""; 
		after6.style.color = ""; 
		after6.style.fontWeight = ""; 
	}
	if(idx == 5){
		after_sub1.style.display = "none"; 
		after_sub2.style.display = "none"; 
		after_sub3.style.display = "none"; 
		after_sub4.style.display = "none"; 
		after_sub5.style.display = "inline";
		after_sub6.style.display = "none";
		after1.style.color = ""; 
		after1.style.fontWeight = ""; 
		after2.style.color = ""; 
		after2.style.fontWeight = ""; 
		after3.style.color = ""; 
		after3.style.fontWeight = ""; 
		after4.style.color = ""; 
		after4.style.fontWeight = ""; 
		after5.style.color = "#61a9d9"; 
		after5.style.fontWeight = "bold"; 
		after6.style.color = ""; 
		after6.style.fontWeight = ""; 
	}
	if(idx == 6){
		after_sub1.style.display = "none"; 
		after_sub2.style.display = "none"; 
		after_sub3.style.display = "none"; 
		after_sub4.style.display = "none"; 
		after_sub5.style.display = "none";
		after_sub6.style.display = "inline";
		after1.style.color = ""; 
		after1.style.fontWeight = ""; 
		after2.style.color = ""; 
		after2.style.fontWeight = ""; 
		after3.style.color = ""; 
		after3.style.fontWeight = ""; 
		after4.style.color = ""; 
		after4.style.fontWeight = ""; 
		after5.style.color = ""; 
		after5.style.fontWeight = ""; 
		after6.style.color = "#61a9d9"; 
		after6.style.fontWeight = "bold"; 
	}
}

function news_left(idx){
		if(idx==0){
			idx = 3;
		}
		document.getElementById('board1_1').style.display = "none";
		document.getElementById('board1_2').style.display = "none";
		document.getElementById('board1_3').style.display = "none";
		document.getElementById('board1_'+idx).style.display = "block";
}
function news_right(idx){
		if(idx==4){
			idx = 1;
		}
		document.getElementById('board1_1').style.display = "none";
		document.getElementById('board1_2').style.display = "none";
		document.getElementById('board1_3').style.display = "none";
		document.getElementById('board1_'+idx).style.display = "block";
}

function good_left(idx){
		if(idx==0){
			idx = 3;
		}
		document.getElementById('board2_1').style.display = "none";
		document.getElementById('board2_2').style.display = "none";
		document.getElementById('board2_3').style.display = "none";
		document.getElementById('board2_'+idx).style.display = "block";
}
function good_right(idx){
		if(idx==4){
			idx = 1;
		}
		document.getElementById('board2_1').style.display = "none";
		document.getElementById('board2_2').style.display = "none";
		document.getElementById('board2_3').style.display = "none";
		document.getElementById('board2_'+idx).style.display = "block";
}
