/**********************************************************
  ºê¶ó¿ìÀú Á¾·ù
***********************************************************/
function BrowerKind(){
  var btype = "";

  if(navigator.userAgent.indexOf("MSIE") != -1){
    btype = "IE";
    return btype;
  }

  if(navigator.userAgent.indexOf("FireFox") != -1){
    btype = "FF";
    return btype;
  }

  if(navigator.userAgent.indexOf("Mozilla") != -1){
    btype = "MZ";
    return btype;
  }

  if(navigator.userAgent.indexOf("Opera") != -1){
    btype = "OP";
    return btype;
  }

  if(navigator.userAgent.indexOf("Safari") != -1){
    btype = "SF";
    return btype;
  }

  if(navigator.userAgent.indexOf("Mac") != -1){
    btype = "MC";
    return btype;
  }

  btype = "NG";
  return btype;
}

/**********************************************************
  Äí±âÇÔ¼ö
***********************************************************/
function jsSetCookie(cookieName,cookieValue,nDays) {
  var today = new Date();
  var expire = new Date();
  if (nDays==null || nDays==0) nDays=1;
  expire.setTime(today.getTime() + 3600000*24*nDays);
  document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
  //alert("document.cookie: "+document.cookie);
}

function jsReadCookie(cookieName) {
  var theCookie=""+document.cookie;
  var ind=theCookie.indexOf(cookieName);
  //alert("theCookie: "+theCookie);
  //alert("ind: "+ind);
  if (ind==-1 || cookieName=="") return ""; 
  var ind1=theCookie.indexOf(';',ind);
  if (ind1==-1) ind1=theCookie.length; 

   //alert("unescape(): "+unescape(theCookie.substring(ind+cookieName.length+1,ind1)));
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}

function setCookie2(name, value, expiredays)
{
  var todayDate = new Date();
  todayDate.setDate( todayDate.getDate() + expiredays );
  document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function getCookie2( name )
{
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie )
		{
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			{
				endOfCookie = document.cookie.length;
			}
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
		{
			break;
		}
	}
	return "";
}

function deleteCookie( cookieName ){
  var expireDate = new Date();
  expireDate.setDate( todate());
  document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString() + "; path=/";
 }
 
/**********************************************************
  ÇÃ·¡½Ã,µ¿¿µ»ó º¸¿©Áö°Ô ÇÏ´Â ÇÔ¼ö
***********************************************************/
function  viewFlash(sURL, sName, sFeatures){ 
 //ÇÃ·¡½Ã ActiveX ¿ÀºêÁ§Æ®¸¦ »Ñ·ÁÁÝ´Ï´Ù. 
 var FLASHCAB = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"; 
 var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000"; 
 var FLASHVER = "8,0,0,0"; 

 var sFeature; 
 var sWidth  = "100%"; 
 var sHeight  = "100%"; 
 var pmBoolean = "false"; 
 var sTempArray; 
 var sParamTag = ""; 

 sFeature = sFeatures.split(/\s*,\s*/); 
 for (var i=0; i< sFeature.length ; i++) 
 { 
  sTempArray = sFeature[i].split(/\s*=\s*/); 
  if (sTempArray[0].toLowerCase() == "width"){ 
  //³ÐÀÌ 
  sWidth = sTempArray[1]; 
  }else if (sTempArray[0].toLowerCase() == "height"){ 
  //³ôÀÌ 
  sHeight = sTempArray[1]; 
  }else{ 
  //±âÅ¸ ÆÄ¶ó¸ÞÅÍ Ã³¸® 
  if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){ 
    pmBoolean = "true"; 
  }else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){ 
    pmBoolean = "false"; 
  }else{ 
    pmBoolean = sTempArray[1]; 
  } 
  sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag; 
  } 
 } 

 document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+FLASHCID+"' CODEBASE='"+FLASHCAB+"#version="+FLASHVER+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"'>"); 
 document.write("<PARAM NAME='movie' VALUE='" + sURL + "'>"); 
 document.write(sParamTag); 
 document.write("<PARAM NAME='wmode' VALUE='transparent'>"); 
 document.write("<EMBED SRC='"+sURL+"' MENU='false' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' ID='"+sName+"' NAME='"+sName+"' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' />") 
 document.write("</OBJECT>"); 
} 

function viewFlash2(sURL, sName, sFeatures){ 
 //ÇÃ·¡½Ã ActiveX ¿ÀºêÁ§Æ®¸¦ »Ñ·ÁÁÝ´Ï´Ù. 
 var FLASHCAB = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"; 
 var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000"; 
 var FLASHVER = "8,0,0,0"; 

 var sFeature; 
 var sWidth  = "100%"; 
 var sHeight  = "100%"; 
 var pmBoolean = "false"; 
 var sTempArray; 
 var sParamTag = ""; 

 sFeature = sFeatures.split(/\s*,\s*/); 
 for (var i=0; i< sFeature.length ; i++) 
 { 
  sTempArray = sFeature[i].split(/\s*=\s*/); 
  if (sTempArray[0].toLowerCase() == "width"){ 
  //³ÐÀÌ 
  sWidth = sTempArray[1]; 
  }else if (sTempArray[0].toLowerCase() == "height"){ 
  //³ôÀÌ 
  sHeight = sTempArray[1]; 
  }else{ 
  //±âÅ¸ ÆÄ¶ó¸ÞÅÍ Ã³¸® 
  if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){ 
    pmBoolean = "true"; 
  }else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){ 
    pmBoolean = "false"; 
  }else{ 
    pmBoolean = sTempArray[1]; 
  } 
  sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag; 
  } 
 } 

 document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+FLASHCID+"' CODEBASE='"+FLASHCAB+"#version="+FLASHVER+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"'>"); 
 document.write("<PARAM NAME='movie' VALUE='" + sURL + "' />"); 
 document.write(sParamTag); 
 document.write("<param name='quality' value='high' />");
 //document.write("<PARAM NAME='wmode' VALUE='transparent' />"); 
 document.write("<EMBED SRC='"+sURL+"' quality='high' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' ID='"+sName+"' NAME='"+sName+"' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' />") 
 document.write("</OBJECT>"); 
} 

/* 
 »ç¿ë¿¹ : 
 <script language="JavaScript"> 
 <!-- 
 viewMediaPlayer("¹Ìµð¾îÆÄÀÏÁÖ¼Ò","_MediaPlayer","width=320,height=240,enableContextMenu=yes,autoStart=yes,uiMode=none,Volume=80"); 
 //--> 
 </script> 
 <script language="JavaScript"> 
 <!-- 
 viewFlash("FLASH ÆÄÀÏÁÖ¼Ò","_FLASH","width=320,height=240,align=middle,allowScriptAccess=sameDomain,bgcolor=#FFFFFF,menu=false,quality=high"); 
 //--> 
 </script> 
*/ 

function leftzero(str, maxlength) {

	var data = "";
	var strLength = maxlength - (str+"").length;

	for(var i = 0; i < strLength; i++) {
		data += "0";
	}

	return data+str;
}

var isNN = (navigator.appName.indexOf("Netscape")!=-1);
/**********************************************
 * °ø¹éÁ¦°Å
 ***********************************************/
function noSpaces(str) {
  var temp = "";
  str = '' + str;
  splitstr = str.split(" ");
  for(i = 0; i < splitstr.length; i++)
    temp += splitstr[i];
  return temp;
}

/**********************************************
 * ¹®ÀÚÁ¦°Å
 ***********************************************/
function nochar(str,szchar) {
  var temp = "";
  str = '' + str;
  splitstr = str.split(szchar);

  for(i = 0; i < splitstr.length; i++)
    temp += splitstr[i];

  return temp;
}

/*****************************************
 * trim()
 *****************************************/
function ltrim(str)
{
  var s = new String(str);

  if (s.substr(0,1) == " ")
    return ltrim(s.substr(1));
  else
   return s;
}

function rtrim(str)
{
  var s = new String(str);
  if(s.substr(s.length-1,1) == " ")
    return rtrim(s.substring(0, s.length-1))
  else
    return s;
}

function trim(str)
{
  return ltrim(rtrim(str));
}

/**********************************************
 * ³¯ÀÚ(¿ù,ÀÏ) À¯È¿¼º Ã¼Å© : »ç¿ëÀÚ°¡ È£ÃâºÒ°¡´É
 ***********************************************/
function checkMonth( value )
{
	 var retcode = false;
  if ( 1*value <= 0  || 1*value > 12  )
    retcode = false;
	 else
    retcode = true;

	 return retcode;
}

function checkDay( yyyy, mm, dd )
{
  var monthDD = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
  var im = 1*mm - 1;

  if( ( (yyyy % 4 == 0) && (yyyy % 100 != 0)) || (yyyy % 400 == 0) )
     monthDD[1] = 29;

  if( 1*dd <= 0 || 1*dd > monthDD[im] )
    return false;
  else
    return true;
}

/*********************************************************************
 * ÀÌ¸ÞÀÏÃ¼Å©(Á¤±Ô½Ä)
 **********************************************************************/
function isEmail(s)
{
  return s.search(/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)>=0;
}

/*********************************************************************
 * ³ªÀÌ±¸ÇÏ±â
 **********************************************************************/
function getAge(today, birth) {
   
    var temp = birth.substring(0,4);

    var age = today - parseInt(birth);

    return age;
}

/*********************************************************************
 * ÁÖ¹Îµî·Ï¹øÈ£Ã¼Å©
 **********************************************************************/
function error (elem,text) {
  if (errfound) return;
  window.alert(text);
  elem.select();
  elem.focus();
  errfound=true;
}

function CheckJumin(jumin1,jumin2)
{
  errfound = true;
  var str_jumin1 = jumin1;
  var str_jumin2 = jumin2;
  var checkImg='';

  var i3=0
  for (var i=0;i<str_jumin1.length;i++)
  {
    var ch1 = str_jumin1.substring(i,i+1);
    if (ch1<'0' || ch1>'9') { i3=i3+1 }
  }
  if ((str_jumin1 == '') || ( i3 != 0 ))
  {
    return false;
     //error(theForm.jumin1,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
                
  var i4=0
  for (var i=0;i<str_jumin2.length;i++)
  {
    var ch1 = str_jumin2.substring(i,i+1);
    if (ch1<'0' || ch1>'9') { i4=i4+1 }
  }
  if ((str_jumin2 == '') || ( i4 != 0 ))
  {
    return false;
    //error(theForm.jumin2,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
  if(str_jumin1.substring(0,1) < 4)
  {
    return false;
    //error(theForm.jumin2,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
  if(str_jumin2.substring(0,1) > 2)
  {
    return false;
    //error(theForm.jumin2,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
  if((str_jumin1.length > 7) || (str_jumin2.length > 8))
  {
    return false;
    //error(theForm.jumin2,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
  if ((str_jumin1 == '72') || ( str_jumin2 == '18'))
  {
    return false;
    //error(theForm.jumin1,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
                
  var f1=str_jumin1.substring(0,1)
  var f2=str_jumin1.substring(1,2)
  var f3=str_jumin1.substring(2,3)
  var f4=str_jumin1.substring(3,4)
  var f5=str_jumin1.substring(4,5)
  var f6=str_jumin1.substring(5,6)
  var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7
  var l1=str_jumin2.substring(0,1)
  var l2=str_jumin2.substring(1,2)
  var l3=str_jumin2.substring(2,3)
  var l4=str_jumin2.substring(3,4)
  var l5=str_jumin2.substring(4,5)
  var l6=str_jumin2.substring(5,6)
  var l7=str_jumin2.substring(6,7)
  hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5
  hap=hap%11
  hap=11-hap
  hap=hap%10
  if (hap != l7) {
    return false;
    //error(theForm.jumin1,'¾ø´Â ÁÖ¹Îµî·Ï¹øÈ£ ÀÔ´Ï´Ù.nn´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!!');
  }
                
  var i9=0
  if (!errfound) return false;
}

/*------------------------------------------------------------------------------*/
// »ç¾÷ÀÚµî·Ï¹øÈ£ Ã¼Å©
/*------------------------------------------------------------------------------*/
function checkCompany(a)
{
  var strNumb = a;
  //if(strNumb.length != 10){
  //   alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.");
  //   return false;
  //}
        
  sumMod  =   0;
  sumMod  +=  parseInt(strNumb.substring(0,1));
  sumMod  +=  parseInt(strNumb.substring(1,2)) * 3 % 10;
  sumMod  +=  parseInt(strNumb.substring(2,3)) * 7 % 10;
  sumMod  +=  parseInt(strNumb.substring(3,4)) * 1 % 10;
  sumMod  +=  parseInt(strNumb.substring(4,5)) * 3 % 10;
  sumMod  +=  parseInt(strNumb.substring(5,6)) * 7 % 10;
  sumMod  +=  parseInt(strNumb.substring(6,7)) * 1 % 10;
  sumMod  +=  parseInt(strNumb.substring(7,8)) * 3 % 10;
  sumMod  +=  Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
  sumMod  +=  parseInt(strNumb.substring(8,9)) * 5 % 10;
  sumMod  +=  parseInt(strNumb.substring(9,10));
        
  if (sumMod % 10  !=  0)
  {
    alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.");
    return false;
  }

  return true;
}

function checkCompany2(a)
{
  var strNumb = a.value.toString();
  //if(strNumb.length != 10){
  //   alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.");
  //   return false;
  //}
        
  sumMod  =   0;
  sumMod  +=  parseInt(strNumb.substring(0,1));
  sumMod  +=  parseInt(strNumb.substring(1,2)) * 3 % 10;
  sumMod  +=  parseInt(strNumb.substring(2,3)) * 7 % 10;
  sumMod  +=  parseInt(strNumb.substring(3,4)) * 1 % 10;
  sumMod  +=  parseInt(strNumb.substring(4,5)) * 3 % 10;
  sumMod  +=  parseInt(strNumb.substring(5,6)) * 7 % 10;
  sumMod  +=  parseInt(strNumb.substring(6,7)) * 1 % 10;
  sumMod  +=  parseInt(strNumb.substring(7,8)) * 3 % 10;
  sumMod  +=  Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
  sumMod  +=  parseInt(strNumb.substring(8,9)) * 5 % 10;
  sumMod  +=  parseInt(strNumb.substring(9,10));
        
  if (sumMod % 10  !=  0)
  {
    alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.");
	a.focus();
    return false;
  }

  return true;
}

/***********************************
 *  Ã¢Å©±â Á¶Àý
 ***********************************/
function window_resize(w, h) {
	window.resizeTo(w, h);
}

/***********************************
 *  ÆË¾÷Ã¢ °£´ÜÇÏ°Ô ¶ç¿ì±â.
 *	»õ·Î¿îÃ¢À» È­¸é °¡¿îµ¥¿¡ ¶ç¿î´Ù.
 *	url		: ÇØ´ç URL		String
 *	name	: ÇØ´ç Window¸í String
 *	width	: »õÃ¢ ³Êºñ		int
 *	height	: »õÃ¢ ³ôÀÌ		int
 *	scroll	: »õÃ¢ scroll	yes/no
 *	resize	: »õÃ¢ resize	yes/no
 ***********************************/
function NewWindow(url, name, width, height, scroll, resize)
{
    var win= null;
    var winl = (screen.width-width)/2;
    var wint = (screen.height-height)/2;
    var settings  ='height='+height+',';
        settings +='width='+width+',';
        settings +='top='+wint+',';
        settings +='left='+winl+',';
        settings +='toolbar=no,';
        settings +='menubar=no,';
        settings +='scrollbars='+scroll+',';
        settings +='resizable='+resize;
    win=window.open(url,name,settings);
    //if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
    win.focus();
}

function NewWindow2(url, name, top, left, width, height, scroll, resize)
{
    var win= null;
    var winl = 0;
    var wint = 0;
    winl = (screen.width-width)/2+left;
    wint = (screen.height-height)/2+top;

	if(winl > screen.width - width) {
		 winl = (screen.width - width)/2;
	}
	if(wint > screen.height - height) {
		 wint = (screen.height - height)/2;
	}
    var settings  ='height='+height+',';
        settings +='width='+width+',';
        settings +='top='+wint+',';
        settings +='left='+winl+',';
        settings +='toolbar=no,';
        settings +='menubar=no,';
        settings +='scrollbars='+scroll+',';
        settings +='resizable='+resize;
    win=window.open(url,name,settings);
    //if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
    win.focus();
}

/*****************************************
 * ºÎ¼­ÄÚµå 1À» ¼±ÅÃÇÏ¸é ºÎ¼­ÄÚµå 2 select box¸¦ ¼¼ÆÃÇÑ´Ù.
 * Create Day = 2004.12.06
 *****************************************/
 function NewWindowHide(url, name, width, height, scroll, resize)
{
    var win= null;
    var winl = (screen.width-width)/2;
    var wint = (screen.height-height)/2;
    var settings  ='height='+height+',';
        settings +='width='+width+',';
        settings +='top='+4000+',';
        settings +='left='+4000+',';
		settings +='alwaysRaised=yes,';
        settings +='scrollbars='+scroll+',';
        settings +='resizable='+resize;
    win=window.open(url,name,settings);
}

/***********************************
 * ¸®½ºÆ®¿¡¼­ ÀüÃ¼ ¼±ÅÃ
 * Create Day = 2004.08.31
 ***********************************/
function allCheck(obj)
{
    if(obj.length > 0)
    {
        for(var i = 0; i < obj.length; i++)
        {
            obj[i].checked = obj[0].checked;
        }
    }
}

/***********************************
 * ¸®½ºÆ® »èÁ¦
 * Create Day = 2004.08.31
 ***********************************/
function goDelete( form, goJsp)
{
	var flag = true;

	if(form.listCheck.length > 0)
	{
		for(var i = 1; i < form.listCheck.length; i++)
		{
			if(form.listCheck[i].checked)
			{
				flag = false;
				break;
			}
		}
	}

	if(flag)
		alert("»èÁ¦ÇÒ ±ÛÀ» ¼±ÅÃÇÏ¼¼¿ä.");
	else
	{
		if(confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))
		{
			form.action=goJsp;
			form.submit();
		}
	}

}

/***********************************
 * ´Þ·Â ÆË¾÷ - ½ÃÀÛÀÏÀÚ ¼¼ÆÃ
 ***********************************/
function goDateCalendar(textName,gubun)
{
 	NewWindow('../comm/calendar.jsp?gubun='+gubun+'&textName='+textName, 'viewContent', '230', '210', 'no', 'no');
}

/*****************************************
 * ¸µÅ©°É±â...
 *****************************************/
function goURL(url)
{
	var form = document.myform;
	form.action=url;
	form.submit();
}

function goLink(url)
{
  window.open("http://"+url);
}

/*-----------------------------------------------------------------------------------------------*/ 
/* ÇÑ±ÛÀÇ °æ¿ì Å° ÀÔ·Â½Ã ¹Ù·Î¹Ù·Î ÀÛ¾÷ÀÌ ¾ÈµÇ±â ¶§¹®¿¡ onchange ¿Í onblur µî ÀÌº¥Æ®µµ °°ÀÌ µî·Ï. */
/*-----------------------------------------------------------------------------------------------*/ 
// ÇÑ±Û¸¸ ÀÔ·Â¹Þ±â (ÃÊ¼ºÃ¼ ¹«½Ã) ³ª¸ÓÁö ±ÛÀÚ ¹«½Ã 
function nr_han(this_s,type){ 
 /* type  1:ÃÊ¼º Æ÷ÇÔ  2:ÃÊ¼º Æ÷ÇÔ + °ø¹é Æ÷ÇÔ   ->0:ÃÊ¼º, °ø¹é ¹«½Ã 
*/ 
  temp_value = this_s.value.toString(); 
  regexp = ''; 
  repexp = ''; 
  switch(type){ 
    case 1: regexp = /[^¤¡-¤¾°¡-ÆR]/g;break; 
    case 2: regexp = /[^¤¡-¤¾°¡-ÆR\s]/g;break; 
    case 0:    regexp = /[^°¡-ÆR]/g; break; 
    default : regexp = /[^¤¡-¤¾°¡-ÆR\s]/g; 
  } 
  if(regexp.test(temp_value)) 
  { 
    temp_value = temp_value.replace(regexp,repexp); 
    this_s.value = temp_value; 
  } 
  this_s.focus();
} 

/*-------------------------------------------------------------------------------*/ 
// ÀÌ¸ÞÀÏÀÔ·Â
/*-------------------------------------------------------------------------------*/
function CheckEmail(this_s){ 
  temp_value = this_s.value.toString(); 
  regexp = /[^-_0-9a-zA-Z@.]/g; 
  repexp = ''; 
  temp_value = temp_value.replace(regexp,repexp); 
  this_s.value = temp_value; 
  this_s.focus();
} 

/*-------------------------------------------------------------------------------*/ 
// ¿µ¼Ò¹®ÀÚ, ¼ýÀÚ¸¸ ÀÔ·Â
/*-------------------------------------------------------------------------------*/
function CheckId(this_s){ 
  temp_value = this_s.value.toString(); 
  regexp = /[^-_0-9a-z]/g;
  repexp = ''; 
  temp_value = temp_value.replace(regexp,repexp); 
  this_s.value = temp_value; 
  this_s.focus();
} 

/*-------------------------------------------------------------------------------*/ 
// ¿µ¹®ÀÚ(¼Ò,´ë¹®ÀÚ), ¼ýÀÚ¸¸ ÀÔ·Â
/*-------------------------------------------------------------------------------*/
function CheckEngNum(this_s){ 
  temp_value = this_s.value.toString(); 
  regexp = /[^0-9a-zA-Z]/g; 
  repexp = ''; 
  temp_value = temp_value.replace(regexp,repexp); 
  this_s.value = temp_value; 
  this_s.focus();
} 

/*-------------------------------------------------------------------------------*/ 
/* type => 0:¾çÀÇ Á¤¼ö   1:¾çÀÇ ½Ç¼ö   2:À½ÀÇ Á¤¼ö Æ÷ÇÔ   3:À½ÀÇ ½Ç¼ö Æ÷ÇÔ      */ 
/*-------------------------------------------------------------------------------*/
function CheckNum(this_s,type){ 
  temp_value = this_s.value.toString(); 
  regexp = /[^-\.0-9]/g; 
  repexp = ''; 
  temp_value = temp_value.replace(regexp,repexp); 
  regexp = ''; 
  repexp = ''; 

  switch(type){ 
    case 0: regexp = /[^0-9]/g; break; 
    case 1: regexp = /^(-?)([0-9]*)(\.?)([^0-9]*)([0-9]*)([^0-9]*)/; break; 
    case 2: regexp = /^(-?)([0-9]*)([^0-9]*)([0-9]*)([^0-9]*)/;break; 
    case 3: regexp = /^(-?)([0-9]*)(\.?)([^0-9]*)([0-9]*)([^0-9]*)/; break; 
    default : regexp = /[^0-9]/g; break; 
  } 
  switch(type){ 
    case 0: repexp = '';break; 
    case 1: repexp = '$2$3$5';break; 
    case 2: repexp = '$1$2$4';break; 
    case 3: repexp = '$1$2$3$5'; break; 
    default : regexp = /[^0-9]/g; break; 
  } 
  temp_value = temp_value.replace(regexp,repexp); 
  this_s.value = temp_value; 
  this_s.focus();
} 

/*-------------------------------------------------------------------------------*/ 
// ¿µ¾î¸¸ ÀÔ·Â¹Þ±â(´ë¼Ò¹®ÀÚ) ³ª¸ÓÁö ±ÛÀÚ ¹«½Ã (0:small  1:big  2:all) 
/*-------------------------------------------------------------------------------*/
function CheckEng(this_s,type){ 
  temp_value = this_s.value.toString(); 
  regexp = ''; 
  repexp = ''; 

  switch(type){ 
    case 0: regexp = /[^a-z]/g;break; 
    case 1: regexp = /[^A-Z]/g;break; 
    case 2: regexp = /[^a-z]/i;break; 
    default :regexp = /[^a-z]/i;break; 
  } 
  temp_value = temp_value.replace(regexp,repexp); 
  this_s.value = temp_value; 
} 

/*****************************************
 * ÇÑ±Û/¿µ¾î¸¸ °¡´ÉÇÔ....
 *****************************************/
function CheckName(this_s)
{
 	var temp_value = this_s.value.toString();
	regexp = /[^a-zA-Z°¡-ÆR]/g; 
	repexp = ''; 

	temp_value = temp_value.replace(regexp,repexp);
	this_s.value = temp_value;
	this_s.focus();
}

// ÀüÈ­¹øÈ£ ±Ô°Ý¿¡ ¸Â°Ô DDD-MM~M-XXXX ³ª¸ÓÁö ±ÛÀÚ ¹«½Ã 
function CheckPhone(this_s) 
{ 
  temp_value = this_s.value.toString(); 
  temp_value = temp_value.replace(/[^0-9]/g,''); 
  temp_value = temp_value.replace(/(0(?:2|[0-9]{2}))([0-9]+)([0-9]{4}$)/,"$1-$2-$3"); 
  this_s.value = temp_value; 
} 

/*-------------------------------------------------------------------------------*/ 
// ÁÖ¹Îµî·Ï ¹øÈ£ ±Ô°Ý¿¡ ¸Â°Ô 123456-1234567  °ËÁõÇÏÁö ¾ÊÀ½. ³ª¸ÓÁö ±ÛÀÚ ¹«½Ã 
function Checkjumin0(this_s) 
{ 
  temp_value = this_s.value.toString(); 
  temp_value = temp_value.replace(/[^0-9]/g,''); 
  temp_value = temp_value.substr(0,13); 
  temp_value = temp_value.replace(/([0-9]{6})([0-9]{7}$)/,"$1-$2"); 
  this_s.value = temp_value; 
} 

/*-------------------------------------------------------------------------------*/ 
// »ç¾÷ÀÚ µî·Ï ¹øÈ£ ±Ô°Ý¿¡ ¸Â°Ô 123-12-12345  //°ËÁõÇÏÁö ¾ÊÀ½. ³ª¸ÓÁö ±ÛÀÚ ¹«½Ã 
function CheckCompany0(this_s) 
{ 
  temp_value = this_s.value.toString(); 
  temp_value = temp_value.replace(/[^0-9]/g,''); 
  temp_value = temp_value.substr(0,10); 
  temp_value = temp_value.replace(/([0-9]{3})([0-9]{2})([0-9]{5}$)/,"$1-$2-$3"); 
  this_s.value = temp_value; 
} 

/*****************************************
 * ÇÑ±Û¸¸ °¡´ÉÇÔ....
 *****************************************/
function checkHan(ob,name)
{
 	var temp;
 	var msg = ob.value;

 	for(var k=0;k<msg.length;k++)
 	{
		temp = msg.charAt(k);
		if(escape(temp).length <=4)
		{
			alert("\n "+name+"Àº(´Â) ÇÑ±Û¸¸ °¡´ÉÇÕ´Ï´Ù.\n");
			ob.value=msg.substring(0,1*k);
			ob.focus();
			return false;
		 }
	}
	return true;
}

/*****************************************
 * ÇÊ¼ö ÀÔ·Â°ª Ã¼Å© ....
 *****************************************/
function checkNull(ob,name)
{
	if(trim(ob.value)=="")
	{
		alert("\n "+name+"À»(¸¦) ÀÔ·ÂÇÏ¼¼¿ä.\n");
		ob.focus();
		return false;
	}
	return true;
}

/*****************************************
 * ÀÚ¸´¼ö°¡ ³Ñ¾ú°Å³ª Enter Key ÀÔ·Â½Ã ´ÙÀ½À¸·Î ....
 *****************************************/
function nextFocus(obj, len, nextObj){
	next = eval("document.myform."+nextObj);
	if (obj.value.length < 1) return;
	if (window.event.keyCode == 13 || obj.value.length >= len){
		next.focus();
	}
}
/*****************************************
 * ÀÚ¸´¼ö°¡ ³Ñ¾ú°Å³ª Enter Key ÀÔ·Â½Ã ´ÙÀ½À¸·Î ....
 *****************************************/
function check_c(obj, max){

	var val = obj.value;
	var by = 0;
	var li_len = 0;

	for(i = 0; i < val.length; i++){
		if (escape(val.charAt(i)).length > 4){  // ÇÑ±ÛÀÌ¸é +2
			by += 2;
		}else if((val.charAt(i) == "\'") || val.charAt(i) == "\""){
			by += 2;
		}else{                                  // ¾Æ´Ï¸é +1
			by++;
		}

		if(by <= max){  // ÀüÃ¼Å©±â°¡ ³ÑÁö ¾ÊÀ¸¸é
			li_len = i + 1;
		}
	}

	if(by > max){       // ÀüÃ¼±æÀÌ¸¦ ÃÊ°úÇÏ¸é
		//alert("ÇÑ±Û "+(max/2)+"ÀÚ ¿µ¹® "+max+"ÀÚ±îÁö °¡´ÉÇÕ´Ï´Ù.");
		obj.value = val.substr(0, li_len);
	}
	obj.focus();
}
/*****************************************
 * ÅØ½ºÆ®¸¦ html·Î
 *****************************************/
function text2html(source) {
	if (source == null) return "&nbsp;";

	var buff = "";
	for (var i = 0; i < source.length; i++){
		var temp = source.charAt(i);
		switch (temp){
			case '<':
				buff += "&lt;";
				break;

			case '>':
				buff += "&gt;";
				break;

			case '&':
				buff += "&amp;";
				break;

			case '\'':
				buff += "''";
				break;

			case '\n':
				buff += "<br>";
				break;
			default:
				buff += temp;
		}
	}
	return buff;
}

function text2html2(source) {
	if (source == null) return "&nbsp;";

	var buff = "";
	for (var i = 0; i < source.length; i++){
		var temp = source.charAt(i);
		switch (temp){
			case '<':
				buff += "&lt;";
				break;

			case '>':
				buff += "&gt;";
				break;

			case '\'':
				buff += "''";
				break;

			case '\n':
				buff += "<br/>";
				break;
			default:
				buff += temp;
		}
	}
	return buff;
}

/*****************************************
 * sms byte
 *****************************************/
function check_smstxt(obj, toobj){

	var val = obj.value;
	var by = 0;
	var li_len = 0;

	for(i = 0; i < val.length; i++){
		if (escape(val.charAt(i)).length > 4){  // ÇÑ±ÛÀÌ¸é +2
			by += 2;
		} else if((val.charAt(i) == "\'") || val.charAt(i) == "\""){
			by += 2;
		} else {                                  // ¾Æ´Ï¸é +1
			by++;
		}
	}

	toobj.innerHTML = by;
}

function check_smstxt(obj, toobj, bytes){

	var val = obj.value;
	var by = 0;
	var li_len = 0;

	for(i = 0; i < val.length; i++){
		if (escape(val.charAt(i)).length > 4){  // ÇÑ±ÛÀÌ¸é +2
			by += 2;
		} else if((val.charAt(i) == "\'") || val.charAt(i) == "\""){
			by += 2;
		} else {                                  // ¾Æ´Ï¸é +1
			by++;
		}

		if(by <= bytes){  // ÀüÃ¼Å©±â°¡ ³ÑÁö ¾ÊÀ¸¸é
			li_len = i + 1;
		}
	}

	if(by > bytes) {
		// ÀüÃ¼±æÀÌ¸¦ ÃÊ°úÇÏ¸é
		//alert(bytes+"byte±îÁö Àü¼Û°¡´ÉÇÕ´Ï´Ù.");
		obj.value = val.substr(0, li_len);
		obj.focus();
	}

	toobj.innerHTML = by;
}

/*****************************************
 * ¼ýÀÚÄÞ¸¶ Âï±â
 *****************************************/
function FormatNumber2(num)
{
  fl=""
  if(isNaN(num)) { alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");return 0}
  if(num==0) return num
        
  if(num<0){ 
    num=num*(-1)
    fl="-"
  }else{
    num=num*1 //Ã³À½ ÀÔ·Â°ªÀÌ 0ºÎÅÍ ½ÃÀÛÇÒ¶§ ÀÌ°ÍÀ» Á¦°ÅÇÑ´Ù.
  }
  num = new String(num)
  temp=""
  co=3
  num_len=num.length
  while (num_len>0){
    num_len=num_len-co
    if(num_len<0){co=num_len+co;num_len=0}
    temp=","+num.substr(num_len,co)+temp
  }
  return fl+temp.substr(1)
}

function FormatNumber3(num)
{
  num=new String(num)
  num=num.replace(/,/gi,"")
  return FormatNumber2(num)
}

function FormatNumber4(num)
{
	if(num == "") {
		return "";
	}
	else {
		num=new String(num);
		num=num.replace(/,/gi,"");
		return FormatNumber2(num);
	}
}

/*****************************************
 * ¹Ý¿Ã¸²()
 *****************************************/
function round(num,ja) {
  ja=Math.pow(10,ja)
  return Math.round(num * ja) / ja;
}

/*****************************************
 * ¼Ò½ºÆÄÀÏÀÎÁö¸¦ °Ë»ç
 *****************************************/
function ExtFile(file){
  fname1 = file.toLowerCase();
  fname2 = fname1.split(".");
  count  = fname2.length - 1;
  if(fname2[count]=="htm" || fname2[count]=="html" || fname2[count]=="php" || fname2[count]=="php3" || 
     fname2[count]=="php4" || fname2[count]=="xml" || fname2[count]=="jsp" || fname2[count]=="sql" || 
     fname2[count]=="js" || fname2[count]=="java" || fname2[count]=="class"){
    return true;
  }else{  
    return false;
  }
} 

function ExtFile2(file, ext){
  fname1 = file.toLowerCase();
  fname2 = fname1.split(".");
  count  = fname2.length - 1;
  if(fname2[count]==ext || fname2[count]=="zip"){
    return true;
  }else{  
    return false;
  }
} 

/*****************************************
 * ÆÄÀÏ»çÀÌÁî ±¸ÇÏ±â - ÀÌ¹ÌÁöÆÄÀÏ¿¡ ÇÑÇÔ
 *****************************************/
function getFileSize2(fileName) {
  if(document.layers){
    if(navigator.javaEnabled()){
      var file = new java.io.File(fileName);
      if(location.protocol.toLowerCase() != 'file:'){
        netscape.security.PrivilegeManager.enablePrivilege('UniversalFileRead');
      }
      return file.length();
    }else{
      return -1;
    }
  }else if(document.all){
    window.oldOnError = window.onerror;
    window.onerror = function (err){
      if(err.indexOf('utomation') != -1){
        alert('file access not possible');
        return true;
      }else{
        return false;
      }
    }

    var fso = new ActiveXObject('Scripting.FileSystemObject');
    var file = fso.GetFile(fileName);
    window.onerror = window.oldOnError;
    return file.Size;
  }
} 

function valiate(form) {
  var size;
  size = getFileSize2(form.filename.value);
  alert ("File Size is : " + size);
}

// ³¯Â¥ ±¸ÇÏ±â(+)
function plus_day(day) {
  var now = new Date();
  var newdate = new Date();

  sdate = newdate.getTime();
  edate = sdate + (day*24*60*60*1000);   

  newdate.setTime(edate);
  last_ndate = newdate.toLocaleString();

  function java_all_trim(a) {
   for (; a.indexOf(" ") != -1 ;) { 
          a = a.replace(" ","")
      }
     return a;
   }
  
   last_date = java_all_trim(last_ndate)
   last_year = last_date.substr(0,4);
   last_month = last_date.substr(5,2);
   last_mon = last_month.replace("¿ù","");
   if(last_mon < 10) {
     last_m = 0+last_mon;
     last_day = last_date.substr(7,2);
     last_da = last_day.replace("ÀÏ","");
     if(last_da < 10) {
       last_d = 0+last_da;
     }else{
       last_d = last_da;
     }
   }else{
     last_m = last_mon;
     last_day = last_date.substr(8,2);
     last_da = last_day.replace("ÀÏ","");
     if(last_da < 10) {
       last_d = 0+last_da;
     }else{
       last_d = last_da;
     }
   }
   last_time = last_year+last_m+last_d;

   return last_time;
}

function calc_day(sdate,day) {
  var syy    = sdate.substring(0,4);
  var smm    = sdate.substring(4,6); 
  var sdd    = sdate.substring(6);
  var fsdate = new Date(syy+"/"+smm+"/"+sdd);

  date1 = fsdate.getTime();
  date2 = date1 + (day*24*60*60*1000);   

  var newdate = new Date();
  newdate.setTime(date2);
  last_ndate = newdate.toLocaleString();

  function java_all_trim(a) {
    for (; a.indexOf(" ") != -1 ;) { 
          a = a.replace(" ","")
    }
    return a;
  }

  last_date = java_all_trim(last_ndate)
  last_year = last_date.substr(0,4);
  last_month = last_date.substr(5,2);
  last_mon = last_month.replace("¿ù","");
  if(last_mon < 10) {
    last_m = 0+last_mon;
    last_day = last_date.substr(7,2);
    last_da = last_day.replace("ÀÏ","");
    if(last_da < 10) {
      last_d = 0+last_da;
    }else{
      last_d = last_da;
    }
  }else{
    last_m = last_mon;
    last_day = last_date.substr(8,2);
    last_da = last_day.replace("ÀÏ","");
    if(last_da < 10) {
      last_d = 0+last_da;
    }else{
      last_d = last_da;
    }
  }
  last_time = last_year+last_m+last_d;

  return last_time;
}

/*****************************************
 ÀÌ¹ÌÁöÀÇ width/height ±¸ÇÏ±â
******************************************/
function imgSize(which)
{
	var width = eval("document.all."+which+".width");
	alert("width : " + width);
	var height = eval("document.all."+which+".height");
	alert("height : " + height);
	return width+"@"+height;
}

/******************************************************************
 ÀÌ¹ÌÁöÀÇ width/height ±¸ÇÏ±â, max »çÀÌÁî¿¡ ¸ÂÃç Å©±â ¹Ù²Ù±â
******************************************************************/
function imgMaxSize(which)
{
	var width = eval("document.all."+which+".width");
	var height = eval("document.all."+which+".height");
	var temp = 0 ;
	var max_width= 200 ;

	if (width > max_width)
	{
		height = height/(width/max_width);
		eval("document.all."+which+".width="+max_width);
		eval("document.all."+which+".height="+height);
	}
}

/*****************************************
 ÅØ½ºÆ® ¿µ¿ª¿¡¼­ ¿£ÅÍÅ° <br>·Î Ä¡È¯
******************************************/
function ConvertBR(input){
  var output = "";

  for (var i = 0; i < input.length; i++) {
    if ((input.charCodeAt(i) == 13) && (input.charCodeAt(i + 1) == 10)) {
      i++;
      output += "<br />";
    }else{
     output += input.charAt(i);
    }
  }
  return output;
}

/*****************************************
 µÎ ³¯Â¥»çÀÌÀÇ ÀÏ¼ö
******************************************/
function calDateRange(val1, val2)
{
  var FORMAT = "-";

  // FORMATÀ» Æ÷ÇÔÇÑ ±æÀÌ Ã¼Å©
  if (val1.length != 10 || val2.length != 10)
    return null;

  // FORMATÀÌ ÀÖ´ÂÁö Ã¼Å©
  if (val1.indexOf(FORMAT) < 0 || val2.indexOf(FORMAT) < 0)
    return null;

  // ³âµµ, ¿ù, ÀÏ·Î ºÐ¸®
  var start_dt = val1.split(FORMAT);
  var end_dt = val2.split(FORMAT);

  // ¿ù - 1(ÀÚ¹Ù½ºÅ©¸³Æ®´Â ¿ùÀÌ 0ºÎÅÍ ½ÃÀÛÇÏ±â ¶§¹®¿¡...)
  // Number()¸¦ ÀÌ¿ëÇÏ¿© 08, 09¿ùÀ» 10Áø¼ö·Î ÀÎ½ÄÇÏ°Ô ÇÔ.
  start_dt[1] = (Number(start_dt[1]) - 1) + "";
  end_dt[1] = (Number(end_dt[1]) - 1) + "";

  var from_dt = new Date(start_dt[0], start_dt[1], start_dt[2]);
  var to_dt = new Date(end_dt[0], end_dt[1], end_dt[2]);

  return (to_dt.getTime() - from_dt.getTime()) / 1000 / 60 / 60 / 24;
}

/*****************************************
 textarea ¿¡¼­ Ä¿¼­ÀÇ À§Ä¡ ±â¾ï
******************************************/
function saveCurrentPos (objTextArea) {
   if (objTextArea.createTextRange) 
		 objTextArea.currentPos = document.selection.createRange().duplicate();
   //alert(objTextArea.currentPos);
}
	
/****************************************************************************
 URL ¾ÏÈ£È­/º¹È£È­
****************************************************************************/
function encodeURL(str){
    var s0, i, s, u;
    s0 = "";                // encoded str
    for (i = 0; i < str.length; i++){   // scan the source
        s = str.charAt(i);
        u = str.charCodeAt(i);          // get unicode of the char
        if (s == " "){s0 += "+";}       // SP should be converted to "+"
        else {
            if ( u == 0x2a || u == 0x2d || u == 0x2e || u == 0x5f || ((u >= 0x30) && (u <= 0x39)) || ((u >= 0x41) && (u <= 0x5a)) || ((u >= 0x61) && (u <= 0x7a))){       // check for escape
                s0 = s0 + s;            // don't escape
            }
            else {                  // escape
                if ((u >= 0x0) && (u <= 0x7f)){     // single byte format
                    s = "0"+u.toString(16);
                    s0 += "%"+ s.substr(s.length-2);
                }
                else if (u > 0x1fffff){     // quaternary byte format (extended)
                    s0 += "%" + (oxf0 + ((u & 0x1c0000) >> 18)).toString(16);
                    s0 += "%" + (0x80 + ((u & 0x3f000) >> 12)).toString(16);
                    s0 += "%" + (0x80 + ((u & 0xfc0) >> 6)).toString(16);
                    s0 += "%" + (0x80 + (u & 0x3f)).toString(16);
                }
                else if (u > 0x7ff){        // triple byte format
                    s0 += "%" + (0xe0 + ((u & 0xf000) >> 12)).toString(16);
                    s0 += "%" + (0x80 + ((u & 0xfc0) >> 6)).toString(16);
                    s0 += "%" + (0x80 + (u & 0x3f)).toString(16);
                }
                else {                      // double byte format
                    s0 += "%" + (0xc0 + ((u & 0x7c0) >> 6)).toString(16);
                    s0 += "%" + (0x80 + (u & 0x3f)).toString(16);
                }
            }
        }
    }

    return s0;
}

//Decode
function decodeURL(str){
    var s0, i, j, s, ss, u, n, f;
    s0 = "";                // decoded str
    for (i = 0; i < str.length; i++){   // scan the source str
        s = str.charAt(i);
        if (s == "+"){s0 += " ";}       // "+" should be changed to SP
        else {
            if (s != "%"){s0 += s;}     // add an unescaped char
            else{               // escape sequence decoding
                u = 0;          // unicode of the character
                f = 1;          // escape flag, zero means end of this sequence
                while (true) {
                    ss = "";        // local str to parse as int
                        for (j = 0; j < 2; j++ ) {  // get two maximum hex characters for parse
                            sss = str.charAt(++i);
                            if (((sss >= "0") && (sss <= "9")) || ((sss >= "a") && (sss <= "f"))  || ((sss >= "A") && (sss <= "F"))) {
                                ss += sss;      // if hex, add the hex character
                            } else {--i; break;}    // not a hex char., exit the loop
                        }
                    n = parseInt(ss, 16);           // parse the hex str as byte
                    if (n <= 0x7f){u = n; f = 1;}   // single byte format
                    if ((n >= 0xc0) && (n <= 0xdf)){u = n & 0x1f; f = 2;}   // double byte format
                    if ((n >= 0xe0) && (n <= 0xef)){u = n & 0x0f; f = 3;}   // triple byte format
                    if ((n >= 0xf0) && (n <= 0xf7)){u = n & 0x07; f = 4;}   // quaternary byte format (extended)
                    if ((n >= 0x80) && (n <= 0xbf)){u = (u << 6) + (n & 0x3f); --f;}         // not a first, shift and add 6 lower bits
                    if (f <= 1){break;}         // end of the utf byte sequence
                    if (str.charAt(i + 1) == "%"){ i++ ;}                   // test for the next shift byte
                    else {break;}                   // abnormal, format error
                }
            s0 += String.fromCharCode(u);           // add the escaped character
            }
        }
    }

    return s0;
}

/***********************************************************
	Ã³¸®³»¿ë		:str3¿¡¼­ str1À» str2·Î º¯È¯ÇÏ¿© ¹ÝÈ¯
***********************************************************/
function replace123(str1, str2, str3){
  var rgexp = new RegExp(str1,"g");
  return (str3.replace(rgexp, str2));
}

/***********************************************************
	Ã³¸®³»¿ë		:Æ¯¼ö ¹®ÀÚ(<)¸¦ HTML ¿£ÅÍÆ¼·Î º¯È¯ÈÄ ¹ÝÈ¯
***********************************************************/
function toEntity(strHtml){
	 return replace123("<","&lt;",strHtml);
}

/*************************************************************************************
	Ã³¸®³»¿ë		:SQL¹öÁ¯¿¡ µû¸¥timestampÇü½ÄÀ» ÀÏÁ¤Çü½ÄÀÇ ³¯ÀÚÆ÷¸äÀ¸·Î ¹ÝÈ¯(¿¹:2006.01.01)
**************************************************************************************/
function toDate(timestamp){
 	var strYY;
 	var strMM;
 	var strDD;
	
 	timestamp = replace123("-","",timestamp);
 	timestamp = replace123("/","",timestamp);
 	timestamp = replace123(":","",timestamp);
	
 	strYY = timestamp.substr(0,4);
 	strMM = timestamp.substr(4,2);
 	strDD = timestamp.substr(6,2);

 	return strYY+"."+strMM+"."+strDD;
}

function toTime(timestamp){
 	var strHH;
 	var strSS;
	
 	strHH = timestamp.substr(0,2);
 	strSS = timestamp.substr(2,2);

 	return strHH+":"+strSS;
}

//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2007.02.15
// @version 0.42
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×ÀÌ³Ê
* nullÀÎ°æ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
* 
* º»¹®ÀÌ³ª ÀÏºÎ ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î Ã³¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">ÇÃ·¡½¬,µ¿¿µ»ó...</ÅÂ±×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ ÅÂ±×¸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ÅÂ±×ÀÔ´Ï´Ù
* false °ªÀÎ°æ¿ì ÆÐÄ¡¿¡¼­ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* ÇÃ·¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç ÇÃ·¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀÌµð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};
if(navigator.userAgent.toLowerCase().indexOf('opera')==-1){//opera out
	if(document.attachEvent){
		document.write('<style type="text/css">');
		document.write('object,embed{display:none;}');
		document.write('</style>');
		document.attachEvent('onreadystatechange',
			function (){				
				if(__embed_target_id===null){
					var __target = document;
				}else{
					var __target = document.getElementById(__embed_target_id);
				}
				if (document.readyState == "complete"){
					function _replace(obj){
						var obj_re = document.createElement(obj.outerHTML);					
						obj_re.style.display='inline';
						obj.parentNode.replaceChild(obj_re,obj);
					}
					function _inner(obj){
						obj.style.display='inline';					
						var html = obj.outerHTML;
						var classid = obj.classid.toLowerCase();
						if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash ÀÎ°æ¿ì
							obj.insertAdjacentHTML('beforeBegin',html);
							obj.parentNode.removeChild(obj);
						}else if(classid=='clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b'){
							//ÄüÅ¸ÀÓ

						}else{
							//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù
							if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
							classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
							classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
							classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
							){
								embed_pos = html.indexOf('embed');
								if(embed_pos!=-1){//embed °¡ Á¸ÀçÇÏ´Â°æ¿ì
									var embed = '<'+html.substr(embed_pos);
									embed = embed.substr(0,embed.length-9);
									obj.insertAdjacentHTML('beforeBegin',embed);
									obj.parentNode.removeChild(obj);
								}else{
									//object·Î¸¸ µÇ¾î ÀÖ´Â°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
									var embed = document.createElement('embed');
									if(obj.id){
										embed.id = obj.id;
									}
									var total = obj.childNodes.length;
									//embed.setAttribute('autostart',0);
									if(obj.width){
										embed.setAttribute('width',obj.width);
									}
									if(obj.height){
										embed.setAttribute('height',obj.height);
									}
									for(var k=0;k<total;k++){
										n = obj.childNodes.item(k).getAttribute("name");
										v = obj.childNodes.item(k).getAttribute("value");
										if(n=='URL' || n=='url' || n=='FileName'){
											n = 'src';
										}
										embed.setAttribute(n,v);
									}
									if(embed.getAttribute('src')){
										embed.style.display = 'inline';
										obj.parentNode.replaceChild(embed,obj);
									}else{
										//ÆÄÀÏ¿¢¼¼½º object°¡ ¾Æ´Ñ°æ¿ì´Â À¯ÁöÇÑ´Ù								
									}
								}
							}
						}
					}

					if(__embed_tags.object===true){
						var objs = __target.getElementsByTagName('object');
						var i = objs.length;
						while(i-->0){
							_inner(objs[i]);
						}
					}
					if(__embed_tags.embed===true){
						var objs = __target.getElementsByTagName('embed');
						var i = objs.length;
						while(i-->0){
							_replace(objs[i])
						}
					}

					if(__embed_tags.applet===true){
						var objs = __target.getElementsByTagName('applet');
						var i = objs.length;
						while(i-->0){
							_replace(objs[i])
						}
					}
				}
			}
		);
	}
}

//¾÷·ÎµåÆÄÀÏ »çÀÌÁî Ã¼Å©
function getFileSize(path,filesrc,max) {
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	var maxSize = max * 1024 * 1024;
	var img = new Image();
	img.dynsrc = path;
	var filesize = img.fileSize;
	//document.myform.fsize.value = filesize;

	if(filesize > maxSize) {
		alert("Ã·ºÎÆÄÀÏ¿ë·®Àº "+max+"M ÀÌ»óÀÔ´Ï´Ù.");
		filesrc.select();
		document.selection.clear();
		return false; 
	}

	if (filetype != 'sql' && filetype != 'jsp' && filetype != 'cgi' && filetype != 'htm' && filetype != 'html' && filetype != 'class' && filetype != 'js' && filetype != 'exe' && filetype != 'sh' && filetype != 'php' && filetype != 'asp'){
		return true; 
	}else{
		alert("'sql', 'jsp', 'php', 'asp', 'cgi', 'htm', 'html, 'class', 'exe', 'sh', 'js'µîÀÇ È®ÀåÀÚÀÇ Ã·ºÎÆÄÀÏÀº ºÒ°¡´ÉÇÕ´Ï´Ù.");
		filesrc.select();
		document.selection.clear();
		return false; 
	}
}

function checkFiletype(path, max) {
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	
	if(filetype == 'sql' || filetype == 'jsp' || filetype == 'cgi' || filetype == 'htm' || filetype == 'html' || filetype == 'class' || filetype == 'js' || filetype == 'exe' || filetype == 'sh' || filetype == 'php' || filetype == 'asp'){
		alert("'sql', 'jsp', 'php', 'asp', 'cgi', 'htm', 'html, 'class', 'exe', 'sh', 'js'µîÀÇ È®ÀåÀÚÀÇ Ã·ºÎÆÄÀÏÀº ºÒ°¡´ÉÇÕ´Ï´Ù.");
		return false; 
	}
}

function checkImgFiletype(path, max) {
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	
	if (filetype == 'jpg' || filetype == 'jpeg'){
		return true;
	} else {
		alert("Ã·ºÎÆÄÀÏÀº 'jpg' ¶Ç´Â 'jpeg' È®ÀåÀÚÀÇ ±×¸² ÆÄÀÏ¸¸ °¡´ÉÇÕ´Ï´Ù.");
		return false; 
	}
}

function getImgFileSize(path,filesrc,max){
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	var maxSize = max * 1024 * 1024;
	var img = new Image();
	img.dynsrc = path;
	var filesize = img.fileSize;
	var fileWidth = img.width;
	var fileHeight = img.height;

	if(filesize > maxSize) {
		alert("Ã·ºÎÆÄÀÏ¿ë·®Àº "+max+"M ÀÌÇÏÀÔ´Ï´Ù.");
		filesrc.select();
		document.selection.clear();
		//filesrc.blur();
		return false; 
	}

	if (filetype == 'jpg' || filetype == 'jpeg'){
		return true;
	} else {
		if(path != "") {
			alert("Ã·ºÎÆÄÀÏÀº 'jpg' ¶Ç´Â 'jpeg' È®ÀåÀÚÀÇ ±×¸² ÆÄÀÏ¸¸ °¡´ÉÇÕ´Ï´Ù.");
			filesrc.select();
			document.selection.clear();
			//filesrc.blur();
			return false; 
		}
	}
	return true;
}

function textCounter(theField, theCharCounter, maxChars)
{
  var strCharCounter = 0;
  var intLength = theField.value.length;

  for (var i = 0; i < intLength; i++){
    var charCode = theField.value.charCodeAt(i);
    //ÇÑ±ÛÀÏ °æ¿ì
    if(charCode > 128){
      strCharCounter += 2;
    }else{
      strCharCounter++;
    }

    if(strCharCounter < (maxChars+1)) {
      theCharCounter.value = strCharCounter;
    }else{
      eval("alert('ÇÑ±Û" + maxChars/2 + ", ¿µ¹®" + maxChars+ "ÀÚ Á¦ÇÑÀÔ´Ï´Ù. ÃÊ°úµÈ ¹®ÀÚ´Â Àß¸³´Ï´Ù.')");
      if(!cutStr(theField, i, theCharCounter, maxChars)) {
        //alert("¹®ÀÚ¿­ Ä¿Æ® ÇÔ¼ö°¡ ÀÛµ¿µÇÁö ¾Ê½À´Ï´Ù.");
      }
      break;
    }
  }
}

function cutStr(theField, i, theCharCounter, maxChars){
  var intLength = theField.value.length;          //-- ½ÇÁ¦ ¹®ÀÚÀÇ ±æÀÌ¸¦ ±¸ÇÑ´Ù.
  var strChar   = theField.value.substring(0,i);  //¸¶Áö¸· ¹®ÀÚ¸¦ Àß¶ó³½´Ù.
        
  theField.value = strChar;
  textCounter(theField, theCharCounter, maxChars);
  return;
}

//»ðÀÔµÈ swf ºÒ·¯¿À±â
function thisMovie(movieName) {
	//////alert(movieName);
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	}
	else {
		return document[movieName]
	}
}

//±Ý¾×¿¡ ',' Âï±â //////////////////////////////////////////////////////////
function numchk(num){ 
	num=new String(num); 
	num=num.replace(/,/gi,""); 
	return numchk1(num); 
} 

function numchk1(num){ 
	var sign=""; 
	if(isNaN(num)) { 
		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù."); 
		return 0; 
	} 
	if(num==0) { 
		return num; 
	} 

	if(num<0){ 
		num=num*(-1); 
		sign="-"; 
	} 
	else{ 
		num=num*1; 
	} 
	num = new String(num) 
	var temp=""; 
	var pos=3; 
	num_len=num.length; 
	while (num_len>0){ 
		num_len=num_len-pos; 
		if(num_len<0) { 
			pos=num_len+pos; 
			num_len=0; 
		} 
		temp=","+num.substr(num_len,pos)+temp; 
	} 
	return sign+temp.substr(1); 
} 
////////////////////////////////////////////////////////////////////////////////

// ±Ý¾× ¼ýÀÚ¸¦ ÇÑ±Û·Î //////////////////////////////////////////////////////
function num_han(num) 
{ 
	if ( num == "1" ) return "ÀÏ"; 
	else if ( num == "2" ) return "ÀÌ"; 
	else if ( num == "3" ) return "»ï"; 
	else if ( num == "4" ) return "»ç"; 
	else if ( num == "5" ) return "¿À"; 
	else if ( num == "6" ) return "À°"; 
	else if ( num == "7" ) return "Ä¥"; 
	else if ( num == "8" ) return "ÆÈ"; 
	else if ( num == "9" ) return "±¸"; 
	else if ( num == "½Ê" ) return "½Ê"; 
	else if ( num == "¹é" ) return "¹é"; 
	else if ( num == "Ãµ" ) return "Ãµ"; 
	else if ( num == "¸¸" ) return "¸¸ "; 
	else if ( num == "¾ï" ) return "¾ï "; 
	else if ( num == "Á¶" ) return "Á¶ "; 
	else if ( num == "0" ) return ""; 
} 

function NUM_HAN(num,mode,return_input) 
{ 
if ( num == "" || num == "0" ) { 
if ( mode == "3" ) { 
return_input.value = ""; 
} 
return; 
} 

num=new String(num); 
num=num.replace(/,/gi,""); 

var len = num.length; 
var temp1 = ""; 
var temp2 = ""; 

if ( len/4 > 3 && len/4 <= 4 ) { 
if ( len%4 == 0 ) { 
temp1 = ciphers_han(num.substring(0,4)) + "Á¶" + ciphers_han(num.substring(4,8)) + "¾ï" + ciphers_han(num.substring(8,12)) + "¸¸" + ciphers_han(num.substring(12,16)); 
} 
else { 
temp1 = ciphers_han(num.substring(0,len%4)) + "Á¶" + ciphers_han(num.substring(len%4,len%4+4)) + "¾ï" + ciphers_han(num.substring(len%4+4,len%4+8)) + "¸¸" + ciphers_han(num.substring(len%4+8,len%4+12)); 
} 
} 
else if ( len/4 > 2 && len/4 <= 3 ) { 
if ( len%4 == 0 ) { 
temp1 = ciphers_han(num.substring(0,4)) + "¾ï" + ciphers_han(num.substring(4,8)) + "¸¸" + ciphers_han(num.substring(8,12)); 
} 
else { 
temp1 = ciphers_han(num.substring(0,len%4)) + "¾ï" + ciphers_han(num.substring(len%4,len%4+4)) + "¸¸" + ciphers_han(num.substring(len%4+4,len%4+8)); 
} 
} 
else if ( len/4 > 1 && len/4 <= 2 ) { 
if ( len%4 == 0 ) { 
temp1 = ciphers_han(num.substring(0,4)) + "¸¸" + ciphers_han(num.substring(4,len)); 
} 
else { 
temp1 = ciphers_han(num.substring(0,len%4)) + "¸¸" + ciphers_han(num.substring(len%4,len)); 
} 
} 
else if ( len/4 <= 1 ) { 
temp1 = ciphers_han(num.substring(0,len)); 
} 

for (var i=0; i<temp1.length; i++) { 
temp2 = temp2 + num_han(temp1.substring(i, i+1)); 
} 

temp3=new String(temp2); 
temp3=temp3.replace(/¾ï ¸¸/gi,"¾ï "); 
temp3=temp3.replace(/Á¶ ¾ï/gi,"Á¶ "); 

if ( mode == 1 ) { 
alert(temp3 + " ¿ø"); 
} else if ( mode == 2 ) { 
return temp3; 
} else if ( mode == 3 ) { 
return_input.value = "( " + temp3 + " ¿ø )"; 
} 
} 

function ciphers_han(num) 
{ 
var len = num.length; 
var temp = ""; 

if ( len == 1 ) { 
temp = num; 
} 
else if ( len == 2 ) { 
temp = num.substring(0,1) + "½Ê" + num.substring(1,2); 
} 
else if ( len == 3 ) { 
temp = num.substring(0,1) + "¹é" + num.substring(1,2) + "½Ê" + num.substring(2,3); 
} 
else if ( len == 4 ) { 
temp = num.substring(0,1) + "Ãµ" + num.substring(1,2) + "¹é" + num.substring(2,3) + "½Ê" + num.substring(3,4); 
} 

num=new String(temp); 
num=num.replace(/0½Ê/gi,""); 
num=num.replace(/0¹é/gi,""); 
num=num.replace(/0Ãµ/gi,""); 
return num; 
} 

function moncom(mon) { 
var factor = mon.length % 3; 
var su = (mon.length - factor) / 3; 
var com = mon.substring(0,factor); 

for(var i=0; i < su ; i++) { 
if((factor == 0) && (i == 0)) { 
com += mon.substring(factor+(3*i), factor+3+(3*i)); 
} 
else { 
com += "," ; 
com += mon.substring(factor+(3*i), factor+3+(3*i)); 
} 
} 
document.write(com); 
}
////////////////////////////////////////////////////////////////////////////////////////
function pause(numberMillis) {
     var now = new Date();
     var exitTime = now.getTime() + numberMillis;


     while (true) {
          now = new Date();
          if (now.getTime() > exitTime)
              return;
     }
}

////////////////////////////////////////////////////////////////////////////////////////
//png Åõ¸í Àû¿ë
////////////////////////////////////////////////////////////////////////////////////////
function setPng24(obj) {
	obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',sizingMethod='image');";
    obj.src='';  
    return ''; 
}

////////////////////////////////////////////////////////////////////////////////////////
//¾÷·Îµå ÆÄÀÏ Ã¼Å©
////////////////////////////////////////////////////////////////////////////////////////
function uploadFileCheck(path, max) {
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	var maxSize = max * 1024 * 1024;
	var filesrc = document.getElementById("attachFile");
	var filename = document.getElementById("filename");

	if(filetype == 'sql' || filetype == 'jsp' || filetype == 'php' || filetype == 'asp'){
		if(path != "") {
			alert("ÇØ´ç Ã·ºÎÆÄÀÏÀº ¾÷·Îµå°¡ ºÒ°¡ÇÕ´Ï´Ù.");
			filesrc.select();
			document.selection.clear();
			return false; 
		}
	} else {
		filename.value = path;
		return true;
	}
}
	
function uploadFileCheck2(path, index, max) {
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	var maxSize = max * 1024 * 1024;
	var filesrc = document.getElementById("attachFile"+index);
	var filename = document.getElementById("filename"+index);

	if(filetype == 'sql' || filetype == 'jsp' || filetype == 'php' || filetype == 'asp'){
		if(path != "") {
			alert("ÇØ´ç Ã·ºÎÆÄÀÏÀº ¾÷·Îµå°¡ ºÒ°¡ÇÕ´Ï´Ù.");
			filesrc.select();
			document.selection.clear();
			return false; 
		}
	} else {
		filename.value = path;
		return true;
	}
}
	
function uploadFileCheck3(path, index, max) {
	var pathpoint = path.lastIndexOf('.');
	var filepoint = path.substring(pathpoint+1,path.length);
	var filetype = filepoint.toLowerCase();
	var maxSize = max * 1024 * 1024;
	var filesrc, filename;
	if(index < 0) {
		filesrc = document.getElementById("attachFile");
	}
	else {
		filesrc = document.getElementById("attachFile"+index);
	}

	if(filetype == 'sql' || filetype == 'jsp' || filetype == 'php' || filetype == 'asp'){
		if(path != "") {
			alert("ÇØ´ç Ã·ºÎÆÄÀÏÀº ¾÷·Îµå°¡ ºÒ°¡ÇÕ´Ï´Ù.");
			filesrc.select();
			document.selection.clear();
			return false; 
		}
	} else {
		return true;
	}
}
	
////////////////////////////////////////////////////////////////////////////////////////
//Æ÷ÇÔµÇ¾îÁö´Â ÆäÀÌÁöÀÇ Å©±â¿¡ µû¶ó iframeÃ¢ Å©±â º¯È­ ¼Ò½º.
//ÇØ´ç ¼Ò½º´Â Æ÷ÇÔµÇ¾î Áö´Â ÆäÀÌÁö¿¡ ±â¼ú.
////////////////////////////////////////////////////////////////////////////////////////
function resizeFrame(name, min_height){
	// name º¯¼ö´Â iframeÀÇ id¸í.
	
	// Æ÷ÇÔµÇ¾îÁö´Â ÆäÀÌÁöÀÇ body ¼³Á¤.
	var oBody = document.body;
	
	// Æ÷ÇÔÇÏ°í ÀÖ´Â iframe ¼³Á¤.
	var oFrame = parent.document.all(name);
	
	// º¯È­µÉ iframe ³ôÀÌ = Æ÷ÇÔÇÏ°í ÀÖ´Â ÆäÀÌÁöÀÇ ³ôÀÌ + (Æ÷ÇÔÇÏ°í ÀÖ´Â ºê¶ó¿ìÀúÀÇ ³ôÀÌ - Æ÷ÇÔÇÏ°í ÀÖ´Â ÆäÀÌÁöÀÇ º¸ÀÌ´Â ³ôÀÌ)
	 var i_height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight);
	
	// ¸¸¾à iframeÀÇ ÃÖ¼Ò ³ôÀÌ(min_height)º¸´Ù º¯È­µÉ iframeÀÇ ³ôÀÌ(i_height)°¡ ³·À¸¸é º¯È­µÉ ³ôÀÌ¸¦ ÃÖ¼Ò ³ôÀÌ·Î ¼³Á¤.
	 if(i_height < min_height) i_height = min_height;
	
	// iframeÀÇ ³ôÀÌ¸¦ º¯È­ ½ÃÅ²´Ù.
	 oFrame.style.height = i_height;
}

