// Hide And Show Toggle
var cc=0
function hideShow(id) {
    if (cc==0) {
        cc=1
        document.getElementById(id).style.display="none";
    } else {
        cc=0
        document.getElementById(id).style.display="block";
    }
}

// Show And Hide Toggle
var cc=0
function showHide(id) {
    if (cc==0) {
        cc=1
        document.getElementById(id).style.display="block";
    } else {
        cc=0
        document.getElementById(id).style.display="none";
    }
}

// Local Navigation Toggle
function lnbToggle(id) {
	for(num=1; num<=3; num++) document.getElementById('D3MG'+num).style.display='none'; //D4MG1~D4MG3 까지 숨긴 다음
	document.getElementById(id).style.display='block'; //해당 ID만 보임
}

// IS
function chkIsKind(key, value) {
    showHide('selectOrder');
    xGetElementById('search_target'+key).checked = true;
    xInnerHtml('search_target_label', value);
}

// Flash 

function flash(fn_name,fn_src,fn_width,fn_height){
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + fn_width + '" height="' + fn_height + '" id="' + fn_name + '" align="middle" VIEWASTEXT>');
   document.write('<param name=allowScriptAccess value=always> ');
   document.write('<param name=movie value="' + fn_src + '"> ');
   document.write('<param name=quality value=high>');
   document.write('<param name=wmode value=transparent>');
   document.write('<param name=bgcolor value=#ffffff>');
   document.write('<embed src="' + fn_src + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + fn_width + '" height="' + fn_height + '" name="' + fn_name + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
 document.write('</object>');
}

// Image Link Border 
   function allblur() {
            for (i = 0; i < document.links.length; i++)
                 document.links[i].onfocus = document.links[i].blur;
       } 
   function bluring(){ 
    if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
   } 
   document.onfocusin=bluring;

