function shc_flash(url,w,h,_var) {
	var _data ="";

	_data+="<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 ";
	_data+="codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width="+w+" height="+h+">";
	_data+="<param name=allowScriptAccess value=always>";
	_data+="<param name=movie value="+url+">";
	_data+="<param name=quality value=high>";
	_data+="<param name=wmode value=transparent>";
	_data+="<param name=FlashVars value="+_var+">";
	_data+="<embed src="+url+"";
	_data+="quality=high pluginspage=http://www.macromedia.com/go/getflashplayer ";
	_data+="type=application/x-shockwave-flash wmode=transparent allowScriptAccess=always width="+w+" height="+h+" FlashVars="+_var+"></embed>";
	_data+="</object>";

	document.write(_data);
}
function eMovie(fm,w,h,idName) {
	var _data ="";
	_data+="<object id='"+idName+"' codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height='"+ h + "' width='"+ w + "'classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>";
	_data+="<param name=Filename value='"+ fm + "'>";
    _data+="<param name=AutoStart value=0>";
    _data+="<param name=ShowControls value=0>";
    _data+="<param name=ShowStatusBar value=0>";
    _data+="<param name=ShowDisplay value=0>";
    _data+="<param name=ShowTracker value=0>";
    _data+="<param name=height value='"+h+"'>";
    _data+="<param name=width value='"+w+"'>";
    _data+="<param name=SendMouseClickEvents value=0>";
    _data+="<param name=EnableContextMenu value=false>";
	_data+= "<embed src='"+ fm + "' width='"+w+"' height='"+h+"' autostart=1 showcontrols=0 showstatusbar=0 showdisplay=0 showtracker=0 sendmouseclickevents=1 enablecontextmenu=false></embed>";
	_data+="</object>";

	document.write(_data);
}
//function n_size() {document.mediaPlayer.displaysize = 0;}   //normal size
//function d_size() {document.mediaPlayer.displaysize = 2;}   //double size
function f_size() {document.mediaPlayer.displaysize = 3;}    //full size

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function swfprint(furl,fwidth,fheight,transoption,id_name,_var)	{
	var id_names = "top_menu";
	if(typeof(id_name) != 'undefined') id_names = id_name;
	
	document.write('<object id="'+id_names+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<param name=FlashVars value="'+_var+'">');
	document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]> <-->');
	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'" FlashVars="'+_var+'"');
	if (transoption == "t")	{
		document.write(' wmode="transparent"');
	} else if	(transoption == "o")	{
		document.write(' wmode="opaque"');
	}
	document.write('></object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');

	if(id_names=="top_menu"){
		//window.onload = fn_resize_top_flash;
		window.attachEvent("onload", fn_resize_top_flash)
		window.onresize = fn_resize_top_flash;
	}
}

function fn_resize_top_flash(){

	var scrollwidth=document.documentElement.scrollWidth;
	var obj_top_flash = document.getElementById("top_menu");
	if(obj_top_flash==null) return;
	if(scrollwidth <950){
		obj_top_flash.style.width = "950px";
	}else{
		obj_top_flash.style.width = "100%";
	}
}

// JScript source code
document.writeln("<form name='_cgate' method='post'>")
document.writeln("<input type=hidden name='turl'>")
document.writeln("<input type=hidden name='c1'>")
document.writeln("<input type=hidden name='c2'>")
document.writeln("<input type=hidden name='c3'>")
document.writeln("</form>")	

function goCenter(turl1, turl2, c1, c2, c3)
{	
	document._cgate.action=turl1+'/_cgate/_cgate_log.asp'
	document._cgate.target='_blank'
	document._cgate.turl.value=turl1+turl2;
	document._cgate.c1.value=c1;
	document._cgate.c2.value=c2;
	document._cgate.c3.value=c3;
	document._cgate.submit();
}


/*
	Á¤¼öÀÎÁö È®ÀÎ
	s = ¼ýÀÚ
	return = boolean
*/
function isNumeric(s) { 
	for (i=0; i<s.length; i++) { 
		c = s.substr(i, 1); 
		if (c < "0" || c > "9"){
			return false; 
		}
	} 
	return true; 
}

/*
	³¯Â¥ È®ÀÎ
	y = ³âµµ
	m = ¿ù
	d = ÀÏ
	return = boolean
*/
function isYYYYMMDD(y, m, d) { 
	if (d < 1){
		return false;
	}

	switch (m) { 
		case 2: // 2¿ùÀÇ °æ¿ì 
			if (d > 29){
				return false; 
			}
			if (d == 29) { 
				// 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ 
				if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0)) {
					return false; 
				}
			} 
			break; 
		case 4: // ÀÛÀº ´ÞÀÇ °æ¿ì 
			if (d > 30){
				return false; 
			}
			break; 
		case 6: 
			if (d > 30){
				return false; 
			}
			break; 
		case 9: 
			if (d > 30){
				return false; 
			}
			break; 
		case 11: 
			if (d > 30){
				return false; 
			}
			break; 
		default:
			if (d > 31){
				return false; 
			}
			break; 
	} 
	return true; 
} 

/*
	¼±ÅÃ Çß´Â Áö °Ë»ç
	obj = ¶óµð¿À/Ã¼Å© ¹Ú½º
	return = boolean
*/
function isCheck(obj){
	var rtn = false;

	if(obj != null){
		if(obj.length == null || obj.length == 1){
			rtn = obj.checked;
		}else{
			for(i = 0; i < obj.length; i++){
				if(obj[i].checked){
					rtn = true;
					i = obj.length;
				}
			}
		}
	}

	return rtn;
}

/*
	¼±ÅÃ ÇÑ °¹¼ö ±¸ÇÏ±â
	obj = Ã¼Å© ¹Ú½º
	return = int(¼±ÅÃ µÈ ¼ö)
*/
function countCheck(obj){
	var rtn = 0;

	if(obj != null){
		if(obj.length == null || obj.length == 1){
			if(obj.checked){
				rtn = 1;
			}
		}else{
			for(i = 0; i < obj.length; i++){
				if(obj[i].checked){
					rtn++;
				}
			}
		}
	}

	return rtn;
}

/*
	ÀüÃ¼ ¼±ÅÃ / Ãë¼Ò
	obj = Ã¼Å©¹Ú½º
	chk = true/false
	return = void
*/
function allCheck(obj, chk){
	if(obj != null){
		if(obj.length == null || obj.length == 1){
			obj.checked = chk;
		}else{
			for(i = 0; i < obj.length; i++){
				obj[i].checked = chk;
			}
		}
	}
}

/*
	ÆË¾÷Ã¢ ¶ç¿ì±â
	url = ÆË¾÷ÆÄÀÏ
	name = ÆË¾÷Ã¢ ÀÌ¸§
	attributes = ¼Ó¼º
	return = void;
*/
function popWin(url, name, attributes){
	window.open(url, name, attributes);
}

/*
	ÀÌ¹ÌÁö ¾÷·Îµå
	uploadDir = ¾÷·Îµå µð·ºÅä¸®
	fieldNM = ÅØ½ºÆ® ¹Ú½º ÀÌ¸§
	imgNM = ÀÌ¹ÌÁö ¾ÆÀÌµð
	return = void
*/
function imgUpload(uploadDir, fieldNM, imgNM){
	popWin("/common/imgUploadForm.asp?uploadDir=" + uploadDir + "&fieldNM=" + fieldNM + "&imgNM=" + imgNM, "imgUp", "width=430 height=177 status=yes");
}
/*¿µ»ó ÆÄÀÏ ¾÷·Îµå*/
function movieUpload(uploadDir, fieldNM, imgNM){
	popWin("/common/fileUploadForm.asp?uploadDir=" + uploadDir + "&fieldNM=" + fieldNM + "&imgNM=" + imgNM, "imgUp", "width=430 height=202 status=yes");
}

/* »çÁøº¸±â */
function upImageStillCut2(strImg){
	window.open("/common/imgView.asp?upimgName=" + strImg, "upImage", "width=300,height=300,scrollbars=yes");
}


function miniHome(mno,rUrl)
{
	window.open("/myhome/?memNo=" + mno + "&rUrl=" + rUrl, "minihome", "width=790,height=420,scrollbars=no,statusbar=no,addressbar=no");
}

//´ÜÀÏ ³¯Â¥¸¸ ÀÔ·ÂÇÒ °æ¿ì
function ftn_calendar(formname,field_name){
   var docFrm = document.all[formname]  
   var sdate = document.all[formname].all[field_name].value
   
   var ret = window.showModalDialog("/include/calendar.asp?sdate="+sdate,"","dialogWidth:290px;dialogHeight:250px;status:no;help:no");

		if(ret != "none" && ret != "" && ret + "" != "undefined" ) 
		{    
 					docFrm.all[field_name].value=ret
 
		}
   return;
}
