function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
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_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_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 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 check_search() {
	var frm = document.form_search;
	var searchText=frm.event_word.value
	if(searchText == "¼­½Ä¿Â ¹Ù·Î°¡±â" || searchText == "¼­½Ä¿Â" || searchText == "¼­½Ä¿Â¹Ù·Î°¡±â" || searchText == "¼­½Ä¿Â ÀÌ¿ëÇÏ±â" || searchText == "¼­½Ä¿ÂÀÌ¿ëÇÏ±â" || searchText == "¼­½Ä¿Â Ã¼ÇèÇÏ±â" || searchText == "¼­½Ä¿ÂÃ¼ÇèÇÏ±â"){
	var url = "/formon/index.htm";		
	frm.action=url;
	frm.submit();	
	}else if(frm.search_word.value.length == 0){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!");
		frm.search_word.focus();
		return false;
	}
}
function check_search_top() {
	var frm = document.form_search;
	if(frm.search_word.value.length == 0){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!");
		frm.search_word.focus();
		return false;
	}
}
function check_search2(TheForm) {
	if(TheForm.search_word.value.length == 0){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		TheForm.search_word.focus();
		return false;
	}
}

// »õÃ¢¶Ù¿ì±â (½ºÅ©·ÑO)
function openNwin1(url,wname,w,h) {
	if(parseInt(w) > 800) w = 816;
	if(parseInt(h) > 600) h = 600;

	var w = window.open(url, wname,'left=20,top=20,marginwidth=20,marginheight=20,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}
// »õÃ¢¶Ù¿ì±â (½ºÅ©·ÑX)
function openNwin2(url,wname,w,h) {
	if(parseInt(w) > 800) w = 816;
	if(parseInt(h) > 600) h = 600;

	var w = window.open(url, wname,'left=20,top=20,marginwidth=20,marginheight=20,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}
function openNwin3(url,wname,w,h) {
	var w = window.open(url, wname,'left=20,top=20,marginwidth=20,marginheight=20,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}
function openNwin4(url,wname,w,h) {
	alert("½Å¿ëÄ«µå ¸ÅÃâÀüÇ¥¸¦ ¼¼±Ý°è»ê¼­ ´ë¿ëÀ¸·Î »ç¿ëÇÏ½Ç¼ö ÀÖ½À´Ï´Ù!");
	var w = window.open(url, wname,'left=20,top=20,marginwidth=20,marginheight=20,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}
function openNwin5(url,wname,w,h) {
	var w = window.open(url, wname,'left=20,top=20,marginwidth=20,marginheight=20,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}

function openNwin6(url,wname,w,h) {
	var w = window.open(url, wname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}
function openNwin7(url,wname,w,h) {
	var w = window.open(url, wname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}
// »õÃ¢¶Ù¿ì±â (½ºÅ©·ÑX ) ±âº»ÁÂÇ¥ 0 
function openNwin_xy(url,wname,w,h,x,y) {
	if(parseInt(w) > 800) w = 816;
	if(parseInt(h) > 600) h = 600;

	var w = window.open(url, wname,'left=' + x + ',top=' + y + ',marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);
	w.focus();
}

function Sel_Submit(option,FormName) {
	if(option == "1") {
		FormName.submit();
	}
}
function Modal_Formon(url,wname,w,h,x,y) {
	window.showModalDialog(url,wname,'resizable:no;edge:raised;help:no;scroll:no;status:no;dialogWidth:'+w+'px;dialogHeight:'+h+'px;dialogLeft:'+x+';dialogTop:'+y);
}

//¿Â¼­½Ä 
function openFormon(url,wname,w) {
	var height = screen.height-88;
	var url=url+'&autoH='+height;
	var w = window.open(url, wname,'left=2,top=2,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + height);
	w.focus();
}

//URLÀÌµ¿ ¹× ¸Þ½ÃÁö º¸¿©ÁÖ±â
function Form_on(url,msg) {
	var Tmsg=msg;
	var Turl=url;
	if(confirm(Tmsg)){
		window.location =Turl;
	}else{
//	   history.go(0) 
	}
}

//URLÀÌµ¿ ¹× ¸Þ½ÃÁö º¸¿©ÁÖ±â
function Down_on(url,msg) {
	var Tmsg=msg;
	var Turl=url;
	if(confirm(Tmsg)){
		window.location =Turl;
	}else{
//	   history.go(0) 
	}
}

//¸¶ÄÉÆÃ À¯´Ï¹ö¼È
/*
var pm_tagname = "universalTag.txt";
var pm_tagversion = "1.4";
var pm_accountid = "CHTCTSJ063VDMM2B78CVG78KJ4";
var pm_scripthost = "srv.perf.overture.com";
var pm_customargs = "";
var pm_querystr = "?" + "ver=" + pm_tagversion + "&aid=" + pm_accountid + pm_customargs;
var pm_tag = "<SCR" + "IPT LANGUAGE='JavaScript' " + "SRC=//" + pm_scripthost + "/collweb/ScriptServlet" + pm_querystr + "></SCR" + "IPT>";
document.write(pm_tag);


// Overture Korea 2007
var ysm_accountid  = "15VJADQPPS9471JA527G8HOJM5S";
document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' " 
+ "SRC=//" + "srv2.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid 
+ "></SCR" + "IPT>");
*/

//ÇÃ·¡½¬
function setEmbed() { 
	var obj = new String; 
	var parameter = new String; 
	var embed = new String; 
	var html = new String; 
	var allParameter = new String; 
	var clsid = new String; 
	var codebase = new String; 
	var pluginspace = new String; 
	var embedType = new String; 
	var src = new String; 
	var width = new String; 
	var height = new String; 
   
	this.init = function( getType , s ,w , h ) { 
		if ( getType == "flash") { 
	        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";        
		    codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"; 
			pluginspage = "http://www.macromedia.com/go/getflashplayer"; 
	        embedType = "application/x-shockwave-flash"; 
		} 
		/* type Ãß°¡ 
		else if ( ) 
		{ 
		} 
		*/ 
            
		parameter += "<param name='movie' value='"+ s + "'>\n";  
		parameter += "<param name='quality' value='high'>\n";    
      
		src = s; 
		width = w; 
		height = h; 
	} 
  
	this.parameter = function( parm , value ) {      
		parameter += "<param name='"+parm +"' value='"+ value + "'>\n";        
		allParameter += " "+parm + "='"+ value+"'"; 
	}  
  
	this.show = function() { 
		if ( clsid ) { 
			obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n"; 
		} 
      
		embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n"; 
      
		if ( obj ) { 
			embed += "</object>\n"; 
		} 
      
		html = obj + parameter + embed; 
      
		document.write( html );  
	} 
} 

function callFlash(flashSrc, w, h, isTransparent, swfName) {
	if(isTransparent == "" || isTransparent == "undefined"){
		isTransparent = "opaque";
	}
	if(swfName == "" || swfName == "undefined") {
		swfName = flashSrc;
	}	

	var srcTr = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0' id='"+swfName+"' width='"+w+"' height='"+h+"'>\n";
	srcTr += "    <param name='allowScriptAccess' value='always' />\n";
	srcTr += "    <param name='movie' value='"+flashSrc+"'>\n";
	srcTr += "    <param name='quality' value='high'>\n";
	srcTr += "    <param name='wmode' value='"+isTransparent+"'>\n";
	srcTr += "    <embed src='"+flashSrc+"' quality='high' allowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='"+swfName+"' width='"+w+"' height='"+h+"' wmode='"+isTransparent+"'></embed>\n";
	srcTr += "  </object>";

	document.write(srcTr);
}
