function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+FlashWidth+'" height="'+FlashHeight+'" id="'+FlashIDName+'">');
    document.write('<param name="movie" value="'+FlashFileName+'">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="wmode" value="transparent">');
    document.write('<param name="allowScriptAccess" value="always">');
    document.write('<embed src="'+FlashFileName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="'+FlashWidth+'" height="'+FlashHeight+'" allowScriptAccess="sameDomain" id="'+FlashIDName+'"></embed></object>');
}


function leftNaviCtl(t,n,s) {
	for(i=1;i<=n;i++) {
	   document.getElementById('mNavi'+i).src='./images/left_m'+s+'1_'+i+'.gif';
    }
	document.getElementById('mNavi'+t).src='./images/left_m'+s+'1_'+t+t+'.gif';
}


/* ÇÔ¼öÈ£Ãâ ·çÆ¾ */
function addLoadEvent(func) {
	var oldonload = window.onload;
	 if(typeof window.onload != 'function') {
		window.onload = func;
    } else {
		window.onload = function() {
			oldonload();
			func();
        }
	}
}


function resetFields(whichform) {
	for(var i=0; i<whichform.elements.length; i++) {
		var element = whichform.elements[i];
		if(element.type == "submit") continue;
       // if(element.type == "image") continue;
 		if(!element.defaultValue) continue;
		element.onfocus = function() {
		  if(this.value == this.defaultValue) {
             this.value = "";
          }
        }
    	element.onblur = function() {
	    	if(this.value == "") {
		       this.value = this.defaultValue;
			}
        }
    }
}
function prepareForms() {
	for(var i=0; i<document.forms.length;i++) {
		var thisform = document.forms[i];
        resetFields(thisform);
    }
}


/* ¹Ù·Î°¡±â ¸Þ´º */
function selectOn(boxID){
	var selectBox = document.getElementById(boxID);
	
	if(selectBox.style.display!="block"){
	selectBox.style.display="block";
	selectBox.onmouseover = function(){selectBox.style.display="block";}
	selectBox.onmouseout = function(){selectBox.style.display="none";}
	}else{
		selectBox.style.display="none";
	}
}

function gotolink(mode) {
var oWin = window.open();
oWin.location.href=mode;
}
