
<!--
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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


// ÇÃ·¡½Ã ÇÔ¼ö
function flash(w,h,u,t) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' >");
	}
	document.write("<embed src='"+u+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed></object>");	
}
function flash_add(w,h,u,t,nm,vr) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+nm+"' name='"+nm+"' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' value='transparent'>");
	}
	if(vr) {
		document.write("<param name='FlashVars' value='"+vr+"'>");
	}
	document.write("<embed src='"+u+"' id='"+nm+"' name='"+nm+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed></object>");	
}

//ºí·Î±× ÆË¾÷ È£Ãâ
function openBlog(strBlogId)
{
	window.open("/mento/blog.jsp?strBlogId="+strBlogId,"blog","width=828,height=700,menubar=no,status=no,left=0,top=0,scrollbars=yes");
}

//È«º¸µ¿¿µ»ó ÆË¾÷ È£Ãâ
function openInfoMovie(strIdx)
{
	window.open("/movie_pop.jsp?txtIdx="+strIdx,"info","width=540,height=600,menubar=no,status=no,left=0,top=0,scrollbars=yes");
}

function numberFormat(val,str,len)
{
	var temp = '';

	for(i=(''+val).length; i < len; i++)
	{
		temp += str;
	}
	return temp+val;
}

/* ÇÏÀÌÇÂ Á¦°Å */
function delete_hypn(name)
{
	var src = /-/g;
	return(name.replace(src,''));
}

function divLayerMove(divid, type){
	var cnt;
	var obj = document.getElementById(divid);
	var subObj = obj.getElementsByTagName("UL");

	for(var i=0;i<subObj.length;i++){
		if(subObj[i].style.display=="block"){
			subObj[i].style.display="none";
			cnt=i;
		}
	}

	if(type=="next"){
		if(cnt==subObj.length-1)cnt=0;
		else cnt++;
	}else if(type=="prev"){
		if(cnt==0)cnt=subObj.length-1;
		else cnt--;
	}

	subObj[cnt].style.display="block";
}

function goFileDown(file,path)
{
	window.location = "/inc/comm_filedown.jsp?file="+ file +"&path="+path;
}

function moveFocus(num,fromfrm,tofrm){ // Ä¿¼­ ÀÌµ¿½ÃÄÑÁÖ´Â ÇÔ¼ö
	var str = fromfrm.value.length;
	if(str == num)
	    tofrm.focus();
}

// ¼ýÀÚ¸¸ ÀÔ·Â - keypress½Ã¿¡¸¸
function checkNumber()
{
	e = window.event;
	
	//¼ýÀÚ¿­ 0 ~ 9 : 48 ~ 57, Å°ÆÐµå 0 ~ 9 : 96 ~ 105 ,8 : backspace, 46 : delete, 9: TAB -->Å°ÄÚµå°ªÀ» ±¸ºÐÇÕ´Ï´Ù.
	if( e.keyCode >= 48 && e.keyCode <= 57 )
	{
		return; //-->ÀÔ·Â½ÃÅ²´Ù.
	}
	else //¼ýÀÚ°¡ ¾Æ´Ï¸é ³ÖÀ»¼ö ¾ø´Ù.
	{
		e.returnValue = false;
	}
}

function FLenByte(fld) 
{
	if( fld == null ) return 0;
	
	fld.value = trim(fld.value);
	var str = fld.value;
	var len = str.length; 
	var byte_count = 0; 
	var i = 0;
    for(i=0; i<len; i++) 
    { 
    	byte_count += chrByte(str.charAt(i)); 	
    }
    return byte_count;
}

//°áÁ¦Ã¢ ¿ÀÇÂ
function jsOpenPg()
{
	openWindow('/stl/index.jsp','AuthWin', 650,350,0)		
}
