<!--
var sendit;
var win;
var winLeft, winTop;

//=================================================================================================================================
// ¿ÞÂÊ °í½ºÆ® ¸Þ´º
//=================================================================================================================================
function CheckUIElements() {
	var plustop;
	if(document.body.scrollTop < 270)
		plustop = 440;
	else
		plustop = 100;
	var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
	var wndWidth = parseInt(document.body.clientWidth);
	yMenu1From   = parseInt (ghostmenu.style.top, 10);
	yMenu1To     = document.body.scrollTop + plustop; // À§ÂÊ À§Ä¡
	timeoutNextCheck = 500;

	if ( yMenu1From != yMenu1To ) 
	{
		yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
		if ( yMenu1To < yMenu1From )
			yOffset = -yOffset;
		ghostmenu.style.top = parseInt (ghostmenu.style.top, 10) + yOffset;
		timeoutNextCheck = 10;
	}
	ghostmenu.style.left = 0;
	setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function MovePosition() {
	ghostmenu.style.top = 440;
	ghostmenu.style.left = 0;
	CheckUIElements();
	return true;
}

//=================================================================================================================================
// Æ÷ÅÍ½º ÀÚµ¿ ÀÌµ¿
//=================================================================================================================================

function moveFocus(num,fromform,toform)
{
	var str = fromform.value.length;
	if(str >= num)
		toform.focus();
}

//=================================================================================================================================
// Lay Display Ã³¸® Ã¼Å©
//=================================================================================================================================

function infoView(obj){
	obj.style.display = "";
}

function infoHidden(obj){
	obj.style.display = "none";
}

//=================================================================================================================================
// ³»¿ë Á¤º¸ ·¹ÀÌ¾î Ãâ·Â
//=================================================================================================================================

function InfoTipView(obj){
	infoHidden2();
	document.all.popLayer[obj].style.display = "";
}

function infoHidden2(obj){
	for(k=0;k<document.all.popLayer.length;k++)
	{
		document.all.popLayer[k].style.display = "none";
	}
}

function infoshow(obj){
	if(obj.style.display == 'none')
		obj.style.display = "";
	else
		obj.style.display = "none";
}
function infomove(obj){
	obj.style.posLeft = event.clientX - 15;
	obj.style.posTop = event.clientY + 20 + document.body.scrollTop;
} 
//=================================================================================================================================
// ¸ðµç ¸µÅ©¿¡ ¸µÅ© Å×µÎ¸® ¾ø¾Ö±â
//=================================================================================================================================
function allblur() {
	for (i = 0; i < document.links.length; i++)
		document.links[i].onfocus = document.links[i].blur;
}


//=================================================================================================================================
// ÄíÅ° »ý¼º
//=================================================================================================================================

function SetCookie( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setTime(todayDate.getTime() + 3600000*24*expiredays);
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}


//=================================================================================================================================
// ÄíÅ° °¡Á®¿À±â
//=================================================================================================================================
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 "";
}

//=================================================================================================================================
// ÆË¾÷Ã¢ ´Ý°í ¸µÅ©ÆäÀÌÁö ÀÌµ¿
//=================================================================================================================================
function PopCloseLink(linkPage){
	var linkPage
	opener.location.href = linkPage;
   	self.close();
}

//=================================================================================================================================
// ÀÔ·Â¹®ÀÚ¿­ ¹ÙÀÌÆ® Ã¼Å©
//=================================================================================================================================
function CheckLen(obj) { 
	var t;
	var msglen;
	msglen = 0;
	l = obj.length;
	for( k = 0; k < l; k++ ) {
		t = obj.charAt( k );
		if ( escape( t ).length > 4 ) {
		msglen += 2;
		}
		else {
			msglen++;
		}
	} 
	return msglen; 
}

//=================================================================================================================================
// ÅØ½ºÆ®ÀÇ ¹ÙÀÌÆ®¼ö ÀÚµ¿Ã¼Å©
//=================================================================================================================================
function byte_check(obj,length_limit){
	var length = calculate_msglen(obj.value);
	if (length > length_limit) {
		alert("ÃÖ´ë " + length_limit + "byteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.");
		obj.value = obj.value.replace(/\r\n$/, "");
		obj.value = assert_msglen(obj.value, length_limit);
		document.all.viewcount.innerHTML = calculate_msglen(obj.value);
		obj.focus();
	}
}

function calculate_msglen(message){
	var nbytes = 0;
	for (i=0; i<message.length; i++) {
		var ch = message.charAt(i);
		if(escape(ch).length > 4) {
			nbytes += 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				nbytes += 1;
			}
		} else if (ch == '<' || ch == '>') {
			nbytes += 4;
		} else {
			nbytes += 1;
		}
	}
	document.all.viewcount.innerHTML = nbytes;
	return nbytes;
}

function assert_msglen(message, maximum){
	var inc = 0;
	var nbytes = 0;
	var msg = "";
	var msglen = message.length;

	for (i=0; i<msglen; i++) {
		var ch = message.charAt(i);
		if (escape(ch).length > 4) {
			inc = 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				inc = 1;
			}
		} else if (ch == '<' || ch == '>') {
			inc = 4;
		} else {
			inc = 1;
		}
		if ((nbytes + inc) > maximum) {
			break;
		}
		nbytes += inc;
		msg += ch;
	}
	return msg;
}


//=================================================================================================================================
// ÆË¾÷À¸·Î Post¹æ½Ä °ª Àü´Þ
//=================================================================================================================================
function postpopup(url,wWidth,wHeight){
	var wLeft = (screen.width - wWidth) / 2;
	var wTop = (screen.height - wheight) / 2;
	win = window.open ('', 'postpopup','scrollbars=yes,resizable=no,width='+wWidth+',height='+wHeight+',top='+wTop+',left='+wLeft);
	document.frm.method = "post";
	document.frm.action = url;
	document.frm.submit();
	win.focus();
}



//=================================================================================================================================
// µ¥ÀÌÅ¸ Àü¼ÛÁß ¸Þ¼¼Áö
//=================================================================================================================================
function connecting(){
	alert("µ¥ÀÌÅ¸¸¦ Àü¼ÛÁß ÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·Á ÁÖ¼¼¿ä");
}

//=================================================================================================================================
// ÀÌ¹ÌÁö Resize
//=================================================================================================================================
function imgResize(img_id,maxWidth,maxHeight)
{
	var w=document.getElementById(img_id).width;
	var h=document.getElementById(img_id).height;
	if (w<=0) 
		time_id = window.setTimeout("imgResize('"+img_id+"')",10);
	else 
	{
		if (w > maxWidth)
			document.getElementById(img_id).width = maxWidth;
		if(h > maxHeight)
			document.getElementById(img_id).height = maxHeight;
	}
}

//=================================================================================================================================
// ÇÊ¼ö Ç×¸ñ NULL Ã¼Å©
//=================================================================================================================================
function f_nul_chk(obj,lbl)
{
	if( obj.value == '' )
	{
		alert('ÇÊ¼öÇ×¸ñ ' + lbl + ' ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		obj.focus(); 
		return true;   
	}
	else if (obj.value == 'null')
	{
		alert('ÇÊ¼öÇ×¸ñ ' + lbl + ' ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		return true;   
	}
	return false; 
}

//=================================================================================================================================
// ¼ýÀÚ¸¸ ÀÔ·Â °¡´É
//=================================================================================================================================
function f_is_num(obj,lbl)
{
	var nLen = obj.value.length; 
	for( i = 0 ; i < nLen ; i++)
	{
		temp = obj.value.substring(i,i+1);
		if( temp < '0' || temp > '9' )
		{
			alert(lbl + ' ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.');
			obj.select();
			return true;
		}     
	}
	return false;
}



//=================================================================================================================================
// ID Ã¼Å© (¼ýÀÚ ¹× ¿µ¹®ÀÚ¸¸ ÀÔ·Â °¡´É)
//=================================================================================================================================

function f_is_id(obj)
{
   var sTemp;

	for(var i = 0; i < obj.value.length; i++)
	{
	   sTemp = obj.value.substring(i, i+1);   
		if((sTemp <= '9') && (sTemp >= '0'))
		   continue;
		if((sTemp <= 'z') && (sTemp >= 'a'))
		   continue;
		if((sTemp <= 'Z') && (sTemp >= 'A'))
		   continue;
	   return true;
	}
   return false;
}


//=================================================================================================================================
// ¹®ÀÚ ±æÀÌ Ã¼Å© (X¹®ÀÚ ÀÌ»ó ÀÔ·Â °¡´É)
//=================================================================================================================================
function f_len_date_chk(obj,lbl, num)
{
	if( obj.value.length != num)
	{
		alert(lbl + ' ³¯Â¥ Çü½ÄÀ» ¸ÂÃç ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		obj.focus(); 
		return true;   
	}
	return false; 
}

//=================================================================================================================================
// ¹®ÀÚ ±æÀÌ Ã¼Å© (X¹®ÀÚ ÀÌ»ó ÀÔ·Â °¡´É)
//=================================================================================================================================
function f_len_s_chk(obj,lbl, num)
{
	if( obj.value.length < num)
	{
		alert(lbl + ' '  + num + '¹®ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		obj.focus(); 
		return true;   
	}
	return false; 
}

//=================================================================================================================================
// ¹®ÀÚ ±æÀÌ Ã¼Å© (X¹®ÀÚ ÀÌÇÏ ÀÔ·Â °¡´É)
//=================================================================================================================================
function f_len_l_chk(obj,lbl, num)
{
	if( obj.value.length > num)
	{
		alert(lbl + ' '  + num + '¹®ÀÚ ÀÌÇÏ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
		obj.focus(); 
		return true;   
	}
	return false; 
}


//=================================================================================================================================
// ¸¸ 14¼¼ ÀÌ»ó Ã¼Å©
//=================================================================================================================================
function f_ManAge(obj1,obj2)
{
	today			= new Date();
	var obj1YMD		= parseInt(obj1);
	var obj2YMD		= parseInt(obj2);
	var nowYear		= parseInt(today.getYear());
	var nowMonth	= today.getMonth()+1;
	var nowDate		= today.getDate();
	
	if (nowMonth < 10)
	{
		nowMonth = "0" + nowMonth;
	}

	if (nowDate < 10)
	{
		nowDate	= "0" + nowDate;
	}

	tmpYear	= nowYear - 1914;
	tmpYMD  = parseInt("" + tmpYear + nowMonth + nowDate);

	if (obj2YMD >= 1000000 && obj2YMD <= 2999999)
	{
		if (obj1YMD > tmpYMD)
		{
			infoView(agree14);
		}
	}
	else
	{
		infoHidden(agree14);
	}
}

//=================================================================================================================================
// ÀÌ¸ÞÀÏ ÀÚµ¿ ¼ÂÆÃ
//=================================================================================================================================
function email_set() 
{
	frm.email2.value = frm.email3.value;
}

function pemail_set() 
{
	frm.pemail2.value = frm.pemail3.value;
}

function email1_set() 
{
	frm.email1_02.value = frm.email1_03.value;
}

function email2_set() 
{
	frm.email2_02.value = frm.email2_03.value;
}

function email3_set() 
{
	frm.email3_02.value = frm.email3_03.value;
}

function email4_set() 
{
	frm.email4_02.value = frm.email4_03.value;
}

function email5_set() 
{
	frm.email5_02.value = frm.email5_03.value;
}


//=================================================================================================================================
// °Ô½ÃÆÇ ÄÚ¸àÆ® »èÁ¦
//=================================================================================================================================
function cmtdel(val) {
	if(confirm("ÄÚ¸àÆ®¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n\"È®ÀÎ\"À» ´©¸£½Ã¸é »èÁ¦µË´Ï´Ù.") == true){
		document.frm.mode.value = "COMDEL";
		document.frm.cmtnum.value = val;
		document.frm.submit();

	}
}

//=================================================================================================================================
// ÆÄÀÏ »èÁ¦
//=================================================================================================================================
function filedel(val) {
	if(confirm("ÆÄÀÏÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n\"È®ÀÎ\"À» ´©¸£½Ã¸é »èÁ¦µË´Ï´Ù.") == true)
	{
		document.frm.mode.value = "FILEDEL";
		document.frm.recordname.value = val;
		document.frm.submit();
	}
} 





function goURL(url)
{
	location.href = url;
}

function memberInfo(no)
{
	popupCenterMove(500,620);
	var win = window.open ("/ReNewal/Supervisor/Members/memberInfo.asp?mb_index="+no,"memberInfo","width=500,height=640,left=" + winLeft + ",top=" + winTop);
	win.focus();
}

function paletteToggle() {
	window.cancelBubble = true;
	var oBtn = window.event.srcElement;
	if (oBtn.LinkType == "MINICALENDARLAYER") {
		document.all.minicalendar.style.posLeft = event.clientX - 75;
		document.all.minicalendar.style.posTop = event.clientY + document.body.scrollTop + 10;
		document.all.minicalendar.style.visibility = "visible";
	} else {
		document.all.minicalendar.style.visibility = "hidden";
	}
	oLastBtn = oBtn;
}

function setDate(year,month,day) {
	eval("document.all."+oLastBtn.Item+".value = '"+year+"-"+month+"-"+day+"';");
	document.all.minicalendar.style.visibility = "hidden";
	return;
}

function searchCheck(frm)
{
	if(sendit)
	{
		alert("µ¥ÀÌÅ¸¸¦ °Ë»öÁß ÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·Á ÁÖ¼¼¿ä");
		return false;
	}
	if(!frm.keyword.value)
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
		frm.keyword.focus();
		return false;
	}
	sendit = true;
	return true;
}

// ÇÊµå°ª¿¡ ¼ýÀÚ¸¸ ¹ÞÀ½
function onlyNumber(obj) {
	// obj : ÇÊµå¸í (ex. document.form.title)
	var checkOK = "0123456789";
	var checkStr = obj;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	for (i = 0;  i < checkStr.length;  i++){
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
		break;
		if (j == checkOK.length){
			allValid = false;
			break;
		}
		allNum += ch;
	}
	if (!allValid){
		return false;
	} else {
		return true;
	}
}

function onlyEnglish(obj) {
	// obj : ÇÊµå¸í (ex. document.form.title)
	var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	var checkStr = obj;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	for (i = 0;  i < checkStr.length;  i++){
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
		break;
		if (j == checkOK.length){
			allValid = false;
			break;
		}
		allNum += ch;
	}
	if (!allValid){
		return false;
	} else {
		return true;
	}
}

function idCheckChar(obj) {
	// obj : ÇÊµå¸í (ex. document.form.title)
	var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
	var checkStr = obj;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	for (i = 0;  i < checkStr.length;  i++){
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
		break;
		if (j == checkOK.length){
			allValid = false;
			break;
		}
		allNum += ch;
	}
	if (!allValid){
		return false;
	} else {
		return 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_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_showHLayers() { //v3.0
	var i,p,v,obj,args=MM_showHLayers.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 titleAllView(obj,bool)
{
	eval("document.all.originalTitle"+obj).style.display = bool;
	eval("document.all.originalTitle"+obj).style.posTop = event.clientY + document.body.scrollTop + 10;

}



/// ÇÏÀ§¸Þ´º º¸ÀÌ±â/°¨Ãß±â
var old_menu = ''; 
var old_cell = ''; 
function menuclick( submenu,cellbar) { 
        if( old_menu != submenu ) { 
                if( old_menu !='' ) { 
                        old_menu.style.display = 'none'; 
                } 
                submenu.style.display = 'block'; 
                old_menu = submenu; 
                old_cell = cellbar; 
        } else { 
                submenu.style.display = 'none'; 
                old_menu = ''; 
                old_cell = ''; 
        } 
} 

// ÇÏÀ§¸Þ´º º¸ÀÌ±â + Å¬¸¯¸Þ´º °¨Ãß±â  (°¡ÀÌµå > ¼º ¹Ù·Î¾Ë±â >  ÀÓ½Å > ÀÚÁÖ ¹¯´Â Áú¹®)
var o_menu = ''; 
var o_smenu = ''; 
var o_cell = ''; 
function menuclicks( submenus ,menus ,cellbars) { 
        if( o_smenu != submenus ) { 
                if( o_smenu !='' ) { 
                        o_smenu.style.display = 'none'; 
                        o_menu.style.display = 'block'; 
                } 
                submenus.style.display = 'block'; 
                menus.style.display = 'none'; 
                o_smenu = submenus; 
                o_menu = menus; 
                o_cell = cellbars; 
        } else { 
                submenus.style.display = 'none'; 
                menus.style.display = 'block'; 
                o_smenu = ''; 
                o_cell = ''; 
        } 
} 

// show - hide
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_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 juminCheck(socno){
	var socnoStr = socno.toString();
	a = socnoStr.substring(0, 1);
	b = socnoStr.substring(1, 2);
	c = socnoStr.substring(2, 3);
	d = socnoStr.substring(3, 4);
	e = socnoStr.substring(4, 5);
	f = socnoStr.substring(5, 6);
	g = socnoStr.substring(6, 7);
	h = socnoStr.substring(7, 8);
	i = socnoStr.substring(8, 9);
	j = socnoStr.substring(9, 10);
	k = socnoStr.substring(10, 11);
	l = socnoStr.substring(11, 12);
	m = socnoStr.substring(12, 13);
	
	temp=a*2+b*3+c*4+d*5+e*6+f*7+g*8+h*9+i*2+j*3+k*4+l*5;
	temp=temp%11;
	temp=11-temp;
	temp=temp%10;
	
	if(temp == m)
		return true;
	else
		return false; 
}


function popupCenterMove(w,h)
{
	winLeft = (screen.width - w) / 2;
	winTop = (screen.height - h) / 2;
}


function zipCheck(a,b,c,d)
{
	popupCenterMove (400,350);
	var win = window.open ('/ReNewal/member/pop_find_zip.asp?zip1=' + a + '&zip2=' + b + '&addr1=' + c + '&addr2=' + d,'pop_zip','width=400,height=350,left='+winLeft+',top='+winTop);
	win.focus();
}


function NumberKeyOnly(obj) {
	// obj : ÇÊµå¸í (ex. document.form.title)
	var checkOK = "0123456789";
	var checkStr = obj.value;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	for (i = 0;  i < checkStr.length;  i++){
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
		break;
		if (j == checkOK.length){
			allValid = false;
			break;
		}
		allNum += ch;
	}
	if (!allValid){
		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
		obj.value = obj.defaultValue;
		obj.focus();
		return;
	}
}

function focusMove(obj,len,nxtObj)
{
	if(obj.value.length >= len)
		eval(nxtObj).focus();
}
// -->