// °øÅë
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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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_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_showHideLayers() { //v3.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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// LEFT
function Global_Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}

// RIGHT
function Global_Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

function not_kor(){
    if(event.keyCode>127){
      event.returnValue=false;
    }
}

// trim
function Global_Trim(str){
	return String(str).rereplace(/^\s+|\s+$/g,'');
}

function Global_numbercheck(obj)
{
    obj.value = obj.value.replace(/^\s+|\s+$/g,'');
    var strValue = obj.value;
    if(isNaN(strValue))
	{
		alert('¼ýÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
        obj.value = "";
		return false;
	}
}


// ÄÞ¸¶
function Global_addComma(obj,fLen)
{

	if(event.keyCode == 37 || event.keyCode == 39 )
	{
		return;
	}

	var fLen = fLen || 2;

	var strValue = obj.value.replace(/,|\s+/g,'');
	var strBeforeValue = (strValue.indexOf('.') != -1)? strValue.substring(0,strValue.indexOf('.')) :strValue ;
	var strAfterValue = (strValue.indexOf('.') != -1)? strValue.substr(strValue.indexOf('.'),fLen+1) : '' ;


	if(isNaN(strValue))
	{
		alert(strValue.concat(' : ¼ýÀÚ°¡ ¾Æ´Õ´Ï´Ù.'));
		return false;
	}

	var intLast = strBeforeValue.length-1;

	var arrValue = new Array;
	var strComma = '';

	for(var i=intLast,j=0; i >= 0; i--,j++)
	{

		if( j !=0 && j%3 == 0)
		{
			strComma = ',';
		}
		else
		{
			strComma = '';
		}

		arrValue[arrValue.length] = strBeforeValue.charAt(i) + strComma ;
	}

	obj.value= arrValue.reverse().join('') + strAfterValue;
}

// Window Open
function Global_OpenWindow(JWinName,JOpenedFile,JWidth,JHeight)
{
	var x = (screen.width/2) - (JWidth/2);
	var y = (screen.height/2) - (JHeight/2);
	var NewWin = window.open('', JWinName, 'toolbar=no,resizable=no,scrollbars=yes,status=0,width='+JWidth+',height='+JHeight+',left='+x+',top='+y);
	NewWin.location = JOpenedFile;
}

// QueryString
function Global_RequestQueryString(valuename)
{
    var rtnval = "";
    var nowAddress = unescape(location.href);
    var parameters = (nowAddress.slice(nowAddress.indexOf("?")+1,nowAddress.length)).split("&");

    for(var i = 0 ; i < parameters.length ; i++){
        var varName = parameters[i].split("=")[0];
        if(varName.toUpperCase() == valuename.toUpperCase())
        {
            rtnval = parameters[i].split("=")[1];
            break;
        }
    }

    return rtnval;
}

// NULLÃ¼Å©
function Global_CheckValue(controlid,message)
{
	var thisValue = document.all[controlid];
	var temp = "";
	string = '' + thisValue.value;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	temp += splitstring[i];

	if(temp=="")
	{
		alert(message);
		thisValue.value="";
		thisValue.focus();
		return false;
	}
	else
	{
		return true;
	}
}


// ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
function Global_CheckRegno ( RegNo1, RegNo2 )
{
	var chk = 0;
	
	for (var i = 0; i <=5 ; i++) {          
		chk = chk + ((i%8+2) * parseInt(RegNo1.value.substring(i,i+1)));        
	}
	
	for (var i = 6; i <=11 ; i++) {
		chk = chk + ((i%8+2) * parseInt(RegNo2.value.substring(i-6,i-5)));
	}	
	var chk = 11 - (chk %11)
	chk = chk % 10
		
	if (chk != RegNo2.value.substring(6,7))
	{
		alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.");
		return false;
	}
	return true;
}

function Global_isValid(s,spc) {
        var i;
	if (s.length<1) return false;
        for(i=0; i<s.length; i++) {
                if (spc.indexOf( s.substring(i, i+1)) < 0) {
                        return false;
                }
        }
        return true;
}

// ¼ýÀÚ¸¸ ¹Þ¾ÆµéÀÎ´Ù.
function Global_IsDigit()	
{	
	return ((event.keyCode >= 48) && (event.keyCode <= 57))
}

// ¾ÆÀÌµð Ã¼Å©
function Global_IdFormCheck(source)
{
	searchko = source.value;

	switch (searchko.toLowerCase())
	{
		case "anonymouse":
			alert("»ç¿ëÇÒ ¼ö ¾ø´Â ¾ÆÀÌµð ÀÔ´Ï´Ù. ´Ù¸¥ ¾ÆÀÌµð¸¦ °Ë»ö ÇØ ÁÖ½Ê½Ã¿À.");
            source.value = "";
            source.focus();
			return false;

		case "admin":
			alert("»ç¿ëÇÒ ¼ö ¾ø´Â ¾ÆÀÌµð ÀÔ´Ï´Ù. ´Ù¸¥ ¾ÆÀÌµð¸¦ °Ë»ö ÇØ ÁÖ½Ê½Ã¿À.");
            source.value = "";
            source.focus();
			return false;

		case "administrator":
			alert("»ç¿ëÇÒ ¼ö ¾ø´Â ¾ÆÀÌµð ÀÔ´Ï´Ù. ´Ù¸¥ ¾ÆÀÌµð¸¦ °Ë»ö ÇØ ÁÖ½Ê½Ã¿À.");
            source.value = "";
            source.focus();
			return false;

		case "siteadmin":
			alert("»ç¿ëÇÒ ¼ö ¾ø´Â ¾ÆÀÌµð ÀÔ´Ï´Ù. ´Ù¸¥ ¾ÆÀÌµð¸¦ °Ë»ö ÇØ ÁÖ½Ê½Ã¿À.");
            source.value = "";
            source.focus();
			return false;

		case "boardadmin":
			alert("»ç¿ëÇÒ ¼ö ¾ø´Â ¾ÆÀÌµð ÀÔ´Ï´Ù. ´Ù¸¥ ¾ÆÀÌµð¸¦ °Ë»ö ÇØ ÁÖ½Ê½Ã¿À.");
            source.value = "";
            source.focus();
			return false;
	}
		
	for (i = 0 ; i < searchko.length ; i++) 
	{
		sko = searchko.charAt(i);
		
		if ((sko < '0' || sko > '9')&&(sko < 'a' || sko > 'z')&&(sko < 'A' || sko > 'Z')) 
		{
			alert('¿µ¹®°ú ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.');
			source.value = '';
			source.focus();
			
			return false;
		}
		else if (searchko.length < 4 || searchko.length > 10)
		{
			alert('4~10ÀÚ¸®¸¸ °¡´ÉÇÕ´Ï´Ù.');
			source.focus();
			
			return false;
		}
	}
        return true;
}

// ÀÌ¸ÞÀÏÀÇ Çü½ÄÀ» Ã¼Å©.
function Global_ValidEmail(value) 
{	
	if(value != "")
	{
		var chkEmail = value.match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/);
		
		if (chkEmail == null) 
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	else
	{
		return true;
	}
}

//=============================================================================================
// controlNameÀÇ Ã¼Å©Ç×¸ñÀÌ Á¸ÀçÇÏ¸éÀº °ªÀ» ºñ±³ ¹ÌÀÔ·Â½Ã ¸Þ¼¼Áö
//=============================================================================================
// ÀÔ·Â °ª Ã¼Å© : Ver 2.0
//function Global_ElementByIdCheck(controlName,message)
//{
//	if (document.getElementById(controlName) != null)
//	{
//		if (Global_TrimSpaces(document.getElementById(controlName).value)=="")
//		{
//			alert(message);
//			document.getElementById(controlName).focus();
//			return false;
//		}
//	}
//	else
//	{
//		return true;
//	}
//}
function Global_ElementByIdCheck(controlName)
{
	if (document.getElementById(controlName) != null)
	{
		return true;
	}
	else
	{
		return false;
	}
}


// ÀÔ·Â °ª Ã¼Å© : Ver 1.0
function Global_ControlValueCheck(controlName, message)
{
	if ( Global_TrimSpaces(controlName.value) == '' )
	{
		alert(message);
		controlName.value = '';
		controlName.focus();
		return false;
	}
	else
	{
		return true;
	}
}
//=============================================================================================
// controlNameÀÇ Ã¼Å©Ç×¸ñÀÌ Á¸ÀçÇÏ¸éÀº °ªÀ» ºñ±³ ¹ÌÀÔ·Â½Ã ¸Þ¼¼Áö
//=============================================================================================

// °ø°£ °ª Ã¼Å©
function Global_TrimSpaces( text )
{
	var temp = "";

	text = '' + text.toUpperCase();

	splitstring = text.split(" ");

	for(i = 0; i < splitstring.length; i++)

	temp += splitstring[i];

	return temp;
}

// ´Þ·Â ÆË¾÷
function Global_CallInputDlg(zipgubun,addressgubun1,addressgubun2)
{
	ReturnFunction=ReturnDlg_Class
    CallDlgWindow=window.open('/Member/ZipSearch.asp?zipgubun='+zipgubun+'&addressgubun1='+addressgubun1+'&addressgubun2='+addressgubun2,'DlgWinow','width=467,height=400,scrollbars=1');
}

// ¾ÆÀÌµð Ã£±â Âý¾÷
function Global_IDSearchPopup(controlName)
{
	controlName.value="";
	window.open('/Member/CheckID.asp','IDSearch','width=320,height=220,left=0,top=0,scrollbars=yes,resizable',false);
}

//=====================================================================================
//·Î±×ÀÎ °ü·Ã (S)
//=====================================================================================
function Global_FindIDCheck(strgubun)
{
	var f = document.FrmBasic;

	if (strgubun == 'FindID')
	{
		if(!Global_ControlValueCheck(f.FindIDName,"¼º¸íÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;
		if(!Global_ControlValueCheck(f.FindIDJuminNo1,"ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;
		if(!Global_ControlValueCheck(f.FindIDJuminNo2,"ÁÖ¹Î¹øÈ£ µÚÀÚ¸®¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;

		f.FindGubun.value = "FindID";
		f.action = "FindIDResult.asp"
		f.method = "post";
		f.submit();
	}
	else
	{
		if(!Global_ControlValueCheck(f.FindPasswordID,"¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;
		if(!Global_ControlValueCheck(f.FindPasswordName,"¼º¸íÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;
		if(!Global_ControlValueCheck(f.FindPasswordJumin1,"ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;
		if(!Global_ControlValueCheck(f.FindPasswordJumin2,"ÁÖ¹Î¹øÈ£ µÚÀÚ¸®¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")) return false;

		f.FindGubun.value = "FindPWD";
		f.action = "FindIDResult.asp"
		f.method = "post";
		f.submit();	
	}
}

// ÄÁÆ®·Ñ¸í ÀÌ¹ÌÁöÀÇ onclickÀ» ½ÇÇà½ÃÅ²´Ù.
function Global_TextBoxOnkeypress(controlImageName)
{
	if (event.keyCode==13)
	{
		document.getElementById(controlImageName).click(); return false;
	}
}
//=====================================================================================
//·Î±×ÀÎ °ü·Ã (E)
//=====================================================================================
//=====================================================================================
//Ã·ºÎÆÄÀÏ °ü·Ã (S)
//=====================================================================================
// Ã·ºÎÆÄÀÏ ´Ù¿î·Îµå
function Global_FileDownLoad(SiteModuleSrno,FileName)
{
	if(FileName != "")
	{
		var url			= "/Class/download.asp";	
		var parm		= "?SiteModuleSrno="+SiteModuleSrno+"&FileName="+FileName;
		document.location = url+parm;	
	}
	
}

//Ã·ºÎÆÄÀÏ »èÁ¦
function Global_FileDelete(SitModuleSrno,MainSrno,controlName)
{	
	var obj			= document.all[controlName];	
	var filename	= obj.options[obj.selectedIndex].text;
	var refSrno		= obj.options[obj.selectedIndex].value;

	//alert(filename);
	//alert(FileSrno);
	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
		window.open('FileDelete.asp?SiteModuleSrno='+SitModuleSrno+'&MainSrno='+MainSrno+'&FileSrno='+refSrno+'&FileName='+filename,'FileDelete','scrollbars=1,width=0,height=0');
	}
	return true;
}
//=====================================================================================
//Ã·ºÎÆÄÀÏ °ü·Ã (E)
//=====================================================================================
//=====================================================================================
//ÀÌ¹ÌÁö °ü·Ã (S)
//=====================================================================================

io=new Array(); //ÀÌ¹ÌÁö°´Ã¼ÀÇ Å©±â¸¦ ´ãÀ» ¹è¿­

function vuD()
{
	//ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ¸é »õÃ¢À» ¶ç¿ö ¿ø·¡ÀÇ Å©±â·Î º¸¿©ÁØ´Ù.
  	e=event.srcElement;
  	var w=io[e.name].w; //ÀÌ¹ÌÁö °´Ã¼ÀÇ ³Êºñ
  	var h=io[e.name].h; //ÀÌ¹ÌÁö °´Ã¼ÀÇ ³ôÀÌ

  	test=window.open('','tst','width='+w+',height='+h); //»õÃ¢À» ÀÌ¹ÌÁöÀÇ Å©±â¸¸Å­ ¿­°í
 	test.document.write("<body topmargin=0 leftmargin=0 background="+e.src+" onclick=self.close() style='CURSOR:HAND'>"); //»õÃ¢¿¡ ¹è°æÀ¸·Î ±×¸²À» »Ñ¸²
}

function setD(wd,ht)
{
	e=event.srcElement; //ÇÔ¼ö¸¦ È£ÃâÇÑ ÀÌ¹ÌÁö°´Ã¼
	
	var w=e.width; //³Êºñ
  	var h=e.height; //³ôÀÌ

  	io[e.name]=new Object(); //»õ·Î¿î ¿ÀºêÁ§Æ® »ý¼º
  	io[e.name].w=e.width; //³Êºñ¿Í,
  	io[e.name].h=e.height; //³ôÀÌ¸¦ ÁöÁ¤

  	if(w>wd)
  	{
  		//³Êºñ°¡ ÇÑ°èÄ¡º¸´Ù Å©¸é
   		h/=w/wd; //³ôÀÌ Àç¼³Á¤
   		w=wd; //³Êºñ Àç¼³Á¤
  	}
  	
  	e.width=w; //³Êºñ °»½Å
  	e.height=h; //³ôÀÌ °»½Å
}

// °Ô½Ã±Û Áö¿ì±â
function SetBoardDelete(strsitemodulerno,strmainsrno,strcategory)
{
	
	if (strsitemodulerno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (strmainsrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'BoardDelete.asp?siteModuleSrno=' + strsitemodulerno + '&mainSrno=' + strmainsrno + '&category=' + strcategory;
	}
	return true;
}

function SetInfoBoardDelete(strSiteModuleSrno,indexNum,strmainsrno)
{
	
	if (indexNum == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (strmainsrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'InfoBoardDelete.asp?SiteModuleSrno=' + strSiteModuleSrno + '&indexNum=' + indexNum + '&mainSrno=' + strmainsrno;
	}
	return true;
}

function SetInfoBoardMainDelete(strsitemodulerno,strmainsrno)
{
	
	if (strsitemodulerno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (strmainsrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'InfoBoardMainDelete.asp?SiteModuleSrno=' + strsitemodulerno + '&mainSrno=' + strmainsrno;
	}
	return true;
}

function PollMainDelete(strsitemodulerno,strmainsrno)
{	

	if (strmainsrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'PollDel.asp?SiteModuleSrno=' + strsitemodulerno + '&Srno=' + strmainsrno;
	}
	return true;
}

// ÇÐ¼ú´ëÈ¸ »èÁ¦ÇÏ±â
function ScienceCouncilDelete(strSiteModuleSrno,strMainSrno)	
{
	if (strMainSrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'ScienceCouncil_DeleteOk.asp?SiteModuleSrno=' + strSiteModuleSrno + '&MainSrno=' + strMainSrno;
	}
	return true;
}

// ÇÐ¼ú´ëÈ¸ ¼½¼Ç »èÁ¦ÇÏ±â
function ScienceCouncilSessionDelete(strSiteModuleSrno,strSessionSrno,strMainSrno)	
{
	if (strMainSrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'ScienceCouncil_SessionDeleteOk.asp?SiteModuleSrno=' + strSiteModuleSrno + '&SessionSrno=' + strSessionSrno + '&MainSrno=' + strMainSrno;
	}
	return true;
}

// ÇÐ¼ú´ëÈ¸ ÃÊ·Ï°Ë»ö »èÁ¦ÇÏ±â
function ScienceCouncilSubSessionDelete(strSiteModuleSrno,strSubSessionSrno,strMainSrno)	
{
	if (strMainSrno == "")
	{
		alert("»èÁ¦½Ã ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù.");
		return false;
	}

	if (confirm('Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
			document.location = 'ScienceCouncil_SubSessionDeleteOk.asp?SiteModuleSrno=' + strSiteModuleSrno + '&SubSessionSrno=' + strSubSessionSrno + '&MainSrno=' + strMainSrno;
	}
	return true;
}
//=====================================================================================
//ÀÌ¹ÌÁö °ü·Ã (E)
//=====================================================================================

//=====================================================================================
// ¸®½ºÆ® ¼±ÅÃ ¹× »èÁ¦ (S)
//=====================================================================================

function SetSelectListAll()
{
    total = (document.FrmList.elements.length - 2);
    
    //alert(total);
    
    for( i = 0 ; i < total ; i++) {
            document.FrmList.elements[i].checked = true;
            document.FrmList.hdnDeleteSrno.value = document.FrmList.hdnDeleteSrno.value + document.FrmList.elements[i].value + ",";
    }
    document.FrmList.HdnSelYN.value = "Y";
   
}

function SetSelectListAll1()
{
    total = (document.FrmList.elements.length - 2);
    
    //alert(total);
    
    for( i = 0 ; i < total ; i++) {
            document.FrmList.elements[i].checked = false;
    }
    document.FrmList.HdnSelYN.value = "N";
    document.FrmList.hdnDeleteSrno.value = "";
}

function SetSelectAllDelete() {
        
    total = (document.FrmList.elements.length - 3);
//    alert(total);
    document.FrmList.hdnDeleteSrno.value = "";
    
    cnt = 0;
    
    for( i = 0 ; i < total ; i++) {
        if (document.FrmList.elements[i].checked == true) {
            document.FrmList.hdnDeleteSrno.value = document.FrmList.hdnDeleteSrno.value + document.FrmList.elements[i].value + ",";
//			alert(document.FrmList.elements[i].value);
            cnt = cnt + 1;
        }
    }
    
//    alert(cnt);
    if (cnt == 0 ) {
        alert('¼±ÅÃÇÑ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.');
    }
    else
    {
        if (confirm('¼±ÅÃÇÑ °Ô½Ã¹°À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\nÇÑ¹ø »èÁ¦ÇÏ½Ã¸é º¹±¸ÇÒ ¼ö ¾ø½À´Ï´Ù.'))
        {
            document.FrmList.submit();        
        }
    }
}
//=====================================================================================
// ¸®½ºÆ® ¼±ÅÃ ¹× »èÁ¦ (E)
//=====================================================================================

var ObjectName;
// ÆË¾÷ ´Þ·Á ¶ç¿ì±â
function PopUpCalendal(objName)
{
	ObjectName = objName;
	
	objName.value = "";
	var n=window.open('/Schedule/CalendarPopup.asp' ,'window','width=300,height=260,status=no,menubar=no,scrollbars=no,resizable=no,left=455,top=180');
}

function setCalDate(dateTime) {

	ObjectName.value = dateTime.substring(0,4) + "-" + dateTime.substring(4, 6) + "-" + dateTime.substring(6, 8);
    ObjectName = null;
}

function InFrameResize(){
	var oFrame=parent.document.all('FrameBoard');
	//oFrame.src = "./bbs/zboard.php?id=notice";
	//alert(oFrame);
	oFrame.style.height=document.frames("FrameBoard").document.body.scrollHeight;
}

//=====================================================================================
// Notice PopUp °ü·Ã (S)
//=====================================================================================

function open_eventpopup(JOpenName,strSiteModuleSrno,strMainSrno,JWidth,JHeight,NLeft,NTop) {
	if (getCookie( JOpenName ) != 'Y' ) {
		window.open('/Admin/NoticeBoard/PopupView.asp?SiteModuleSrno='+strSiteModuleSrno+'&MainSrno='+strMainSrno,JOpenName,'toolbar=no,resizable=no,scrollbars=yes,status=0,width='+JWidth+',height='+JHeight+',left='+NLeft+',top='+NTop);
	}
}

function open_eventpopup1(JOpenName,strSiteModuleSrno,strMainSrno,JWidth,JHeight,NLeft,NTop) {
	if (getCookie( JOpenName ) != 'Y' ) {
		window.open('/Admin/Board/PopupView.asp?SiteModuleSrno='+strSiteModuleSrno+'&MainSrno='+strMainSrno,JOpenName,'toolbar=no,resizable=no,scrollbars=yes,status=0,width='+JWidth+',height='+JHeight+',left='+NLeft+',top='+NTop);
	}
}

function getCookie( 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 "";
}
//=====================================================================================
// Notice PopUp °ü·Ã (E)
//=====================================================================================
function Global_goURL(strVar) {
	if (strVar != 0 )  
	{
		location.href= strVar; 
	}
}