<!--
var sendit;
var win;

//=================================================================================================================================
// iFrame ÄÁÅÙÃ÷ ³ôÀÌ ±¸ÇÏ±â, ¸®»çÀÌÁî
//=================================================================================================================================
function IframeResize(id){
    var ifrm = document.getElementById(id);
    var the_width = ifrm.contentWindow.document.body.scrollWidth;
    var the_height = ifrm.contentWindow.document.body.scrollHeight;
    ifrm.width = the_width;
    ifrm.height = the_height;
}

//=================================================================================================================================
// IE ¼³°è º¯°æ¿¡ µû¸¥ À¥ ¾îÇÃ¸®ÄÉÀÌ¼Ç ·Îµå º¯°æ
//=================================================================================================================================

var EmbedStr = "";
function GetFlash(url,x,y) { 
	EmbedStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
	EmbedStr += "<param name='allowScriptAccess' value='sameDomain' />";
	EmbedStr += "<param name='movie' value='" + url + "' />";
	EmbedStr += "<param name='quality' value='high' />";
	EmbedStr += "<param name='bgcolor' value='#ffffff' />";
	EmbedStr += "<param name='wmode' value='transparent' />";
	EmbedStr += "<embed src='" + url + "' quality='high' wmode='transparent' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	EmbedStr += "</object>";
	
	document.write(EmbedStr);
	return;
}
function GetMPlayer(x,y,astart) { 
	EmbedStr = "<OBJECT id='MoviePlayer' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width='" + x + "' height='" + y + "' TYPE='application/x-oleobject' VIEWASTEXT >";
	EmbedStr += "<param name='autoStart' value='" + astart + "'>";
	EmbedStr += "<param name='windowlessVideo' value='false'>";
	EmbedStr += "<param name='uiMode' value='none'>";
	EmbedStr += "<param name='volume' value='100'>";
	EmbedStr += "<param name='bgcolor' value='#ffffff' />";
	EmbedStr += "<param name='stretchToFit' value='true'>";
	EmbedStr += "<param name='autoRewind' value='false'>";
	EmbedStr += "<param name='transparentAtStart' value='true'>";
	EmbedStr += "<param name='enableContextMenu' value='false'>";
	EmbedStr += "</OBJECT>";

	document.write(EmbedStr);
	return;
}

//=================================================================================================================================
// ¿ÞÂÊ °í½ºÆ® ¸Þ´º
//=================================================================================================================================

var min = 247;
var min2 = min - 50;
var max = 0;

function left_move_init() {
	itm = document.getElementById('left_menu');
	itm.set_pos = function(y){itm.style.top=y;};
	itm.y = min;
	itm.set_pos(itm.y);

	max = document.body.scrollHeight - itm.scrollHeight - min;
	setTimeout('left_move_func()', 10);
}

function left_move_func() {
	tmp = document.body.scrollTop + min;
	itm.y += Math.floor((tmp-itm.y)/10);

	if( itm.y>max ) itm.y = max;
	if( itm.y<min ) itm.y = min;
	itm.set_pos(itm.y);
	setTimeout('left_move_func()', 10);
}

function MovePosition() {
	setTimeout('left_move_init()', 500);
}

//=================================================================================================================================
// ½Ç½Ã°£ ¼­¹ö ½Ã°£ º¸¿©ÁÖ±â
//=================================================================================================================================

function GetTheDate() {
	vSeconds += 1;

	if(vSeconds >= 60) {
		vSeconds = 0;
		vMinutes += 1;
	}

	if(vMinutes >= 60) {
		vMinutes = 0;
		vHours += 1;
	}

	if(vHours >= 24) {
		vHours = 0;
		vDay +=1;
	 }
// ±×·¹°í¸®¿À·ÂÀÇ Ä¡À±¹ý
// 1. ¼­·Â ±â¿ø ¿¬¼ö°¡ 4·Î ³ª´©¾î ¶³¾îÁö´Â ÇØ´Â ¿ì¼± À±³âÀ¸·Î ÇÑ´Ù.
// 2. ±× Áß¿¡¼­ 100À¸·Î ³ª´©¾î ¶³¾îÁö´Â ÇØ´Â Æò³âÀ¸·Î ÇÑ´Ù.
// 3. ´Ù¸¸ 400À¸·Î ³ª´©¾î ¶³¾îÁö´Â ÇØ´Â ´Ù½Ã À±³âÀ¸·Î ÇÑ´Ù.
	if (vMonth == 4 || vMonth == 6 || vMonth == 9 || vMonth == 11) {
		vLastDay = 30;
	}
	else if ((vMonth == 2) && !(vYear % 4 == 0)) {
		vLastDay = 28;
	}
	else if ((vMonth == 2) && (vYear % 4 == 0)) {
		if (vYear % 100 == 0) {
			if (vYear % 400 == 0)
				vLastDay = 29;
			else
				vLastDay = 28;
		} else {
			vLastDay = 29;
		}
	} else {
		vLastDay = 31;
	}

	if(vDay >= (vLastDay+1)) {
		vDay = 1;
		vMonth +=1;
	}

	if(vMonth > 12) {
		vMonth = 1;
		vYear += 1;
	}

	var vCurrentDate = vMonth+"¿ù "+vDay+"ÀÏ "+vHours+"½Ã "+vMinutes+"ºÐ "+vSeconds+"ÃÊ";
	if (document.all)
		document.all.clock.innerHTML = vCurrentDate;
	else if (document.getElementById)
		document.getElementById("clock").innerHTML = vCurrentDate;
}

function PlayTime(){
	if (document.all||document.getElementById)
		setInterval("GetTheDate()", 1000);
}

//=================================================================================================================================
// ÆË¾÷ °¡¿îµ¥ ¶ç¿ì±â
//=================================================================================================================================
var win = null;
function NewWindow(url,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,status=no'
	win = window.open(url,'NewWinPop',settings);
	win.focus();
} 

//=================================================================================================================================
// ÆË¾÷À¸·Î °¡¿îµ¥ ¶ç¿ì¸ç Post¹æ½Ä °ª Àü´Þ
//=================================================================================================================================
function postpopup(url,w,h){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=no'
	win = window.open ('', 'PostWinPop',settings);
	document.frm.target = "PostWinPop";
	document.frm.method = "post";
	document.frm.action = url;
	document.frm.submit();
	win.focus();
	return true;
}

//=================================================================================================================================
// Æ÷ÅÍ½º ÀÚµ¿ ÀÌµ¿
//=================================================================================================================================

function moveFocus(num,fromform,toform)
{
	var str = fromform.value.length;
	if(str >= num)
		toform.focus();
}

//=================================================================================================================================
// ¸ðµç ÀÌ¹ÌÁö Å©°Ô º¸±â ÆË¾÷
//=================================================================================================================================

function pop_Viewimg(imgName)
{
	win = window.open ("/portfolioad_2006/include/pop_Viewimg.asp?viewImg=" + imgName,"pop_Viewbimg","width=100,height=100,left=10000,top=10000");
	win.focus();
}

//=================================================================================================================================
// Lay Display Ã³¸® Ã¼Å©
//=================================================================================================================================

function infoView(obj){
	obj.style.display = "";
}

function infoHidden(obj){
	obj.style.display = "none";
}

//=================================================================================================================================
// ³»¿ë Á¤º¸ ·¹ÀÌ¾î Ãâ·Â
//=================================================================================================================================
var ViewLayer = 1;
function InfoNewsView(obj,LayerCnt){
	
	if (obj < LayerCnt) {
		ViewLayer = obj + 1;
	} else {
		ViewLayer = 0;
	}
	infoHidden2();
	document.all.NewsLayer[obj].style.display = "";
}

function infoHidden2(){
	for(k=0;k<document.all.NewsLayer.length;k++)
	{
		document.all.NewsLayer[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,view){
	var length = calculate_msglen(obj.value,view);
	if (length > length_limit) {
		alert("ÃÖ´ë " + length_limit + "byteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.");
		obj.value = obj.value.replace(/\r\n$/, "");
		obj.value = assert_msglen(obj.value, length_limit);
		if (view == 1)
				document.all.viewcount.innerHTML = calculate_msglen(obj.value,view);
		obj.focus();
	}
}

function calculate_msglen(message,view){
	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;
		}
	}
	if (view == 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;
}


//=================================================================================================================================
// µ¥ÀÌÅ¸ Àü¼ÛÁß ¸Þ¼¼Áö
//=================================================================================================================================
function connecting(){
	alert("µ¥ÀÌÅ¸¸¦ Àü¼ÛÁß ÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·Á ÁÖ¼¼¿ä");
}


//=================================================================================================================================
// °Ë»ö Ã¼Å©
//=================================================================================================================================
function search_check(frm){
	if(sendit)
	{
		connecting();
		return false;
	}
	if(!frm.keyword.value)
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
		frm.keyword.focus();
		return false;
	}
	sendit = true;
	return true;
}


//=================================================================================================================================
// ÀÌ¹ÌÁö Resize
//=================================================================================================================================
function imgResize(img_id,maxWidth)
{
	var w=document.getElementById(img_id).width;
	var h=document.getElementById(img_id).height;
	if (w<=0) 
		window.setTimeout("imgResize('"+img_id+"'," + maxWidth + ")",10);
	else 
	{
		if (w > maxWidth)
			document.getElementById(img_id).width = maxWidth;
	}
}

//=================================================================================================================================
// ÆË¾÷ ¸®»çÀÌÁî ¹× °¡¿îµ¥ Á¤·Ä
//=================================================================================================================================
function imgPopResize(img_id)
{
	var w=document.getElementById(img_id).width;
	var h=document.getElementById(img_id).height;
	if (w<=0) 
		time_id = window.setTimeout("imgPopResize('"+img_id+"')",10);
	w += 10;
	h += 30;
	var wl = (screen.width - w) / 2;
	var wt = (screen.height - h) / 2;
	window.resizeTo (w,h);
	if(w > 1024)
		wl = 0;
	if(h > 768)
		wt = 0;
	window.moveTo(wl,wt);
}

//=================================================================================================================================
// µ¥ÀÌÅ¸ Àü¼ÛÁß ¸Þ¼¼Áö
//=================================================================================================================================

function connecting(){
	alert("µ¥ÀÌÅ¸¸¦ Àü¼ÛÁß ÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·Á ÁÖ¼¼¿ä");
}

//=================================================================================================================================
// ¿ìÆí¹øÈ£ Ã£±â
//=================================================================================================================================
function zipcode()
{
	var wl = (screen.width - 400) / 2;
	var wh = (screen.height - 300) / 2;
	win = window.open ("/u1_registration/regist_pop_zip.asp","zipcode","width=340,height=320,left=" + wl + ",top=" + wh);
	win.focus();
}

//=================================================================================================================================
// ÇÊ¼ö Ç×¸ñ 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; 
}

//=================================================================================================================================
// SMS ¼ö½Å µ¿ÀÇ½Ã ÇÚµåÆù Ç×¸ñ NULL Ã¼Å©
//=================================================================================================================================

function f_nul_smschk(obj,lbl)
{
	if( obj.value == '' )
	{
		alert('SMS ¼ö½Å µ¿ÀÇ½Ã ' + lbl + ' ²À ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
		obj.focus(); 
		return true;   
	}
	else if (obj.value == 'null')
	{
		alert('SMS ¼ö½Å µ¿ÀÇ½Ã ' + 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; 
}

//=================================================================================================================================
// ID Áßº¹ Ã¼Å©
//=================================================================================================================================
function f_popup_id() 
{

	var w_id_chk;
	if (f_nul_chk(document.frm.id, '[¾ÆÀÌµð]¸¦'))			return; 
	if (f_len_s_chk(document.frm.id, '[¾ÆÀÌµð]´Â',4))		return;
	if (f_len_l_chk(document.frm.id, '[¾ÆÀÌµð]´Â',16))		return;
	if (f_is_id(document.frm.id))
	{
	   alert("¾ÆÀÌµð´Â ¿µ¹®/¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.");
		frm.id.focus();
		return;
	}
	window.open('/u1_registration/regist_pop_idcheck.asp?id=' + document.frm.id.value,'w_id_chk', 
			'resizable=no,scrollbars=0,x=100,y=200,width=340,height=275');
	
}
		
//=================================================================================================================================
// ÁÖ¹Îµî·Ï ¹øÈ£ Ã¼Å©
//=================================================================================================================================
function f_peop_no_chk(s) {
	if( s.charAt(6) == 1 || s.charAt(6) == 2 || s.charAt(6) == 3 || s.charAt(6) == 4)
	{
		if( s.charAt(12) == 
			(( 11 - ((s.charAt(0)*2+s.charAt(1)*3+s.charAt(2)*4
						+s.charAt(3)*5+s.charAt(4)*6+s.charAt(5)*7
						+s.charAt(6)*8+s.charAt(7)*9+s.charAt(8)*2
						+s.charAt(9)*3+s.charAt(10)*4+s.charAt(11)*5)
						% 11)))%10)
			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;
}

//=================================================================================================================================
// Checkbox ¼±ÅÃ Ã¼Å©
//=================================================================================================================================

function f_chknul_chk(obj,lbl)
{
	var chklen = 0;
	for(i=0;i<obj.length;i++)
	{
		if(obj[i].checked == true)
			chklen++;
	}
	if(chklen == 0)
	{
		alert("ÇÊ¼öÇ×¸ñ " + lbl + " Ã¼Å©ÇÏ½Ê½Ã¿À.");
		return true;   
	}

	return false; 
}

function f_chknul2_chk(obj,obj2,lbl)
{
	var chklen = 0;
	for(i=0;i<obj.length;i++)
	{
		if(obj[i].checked == true)
			chklen++;
	}
	if(chklen == 0)
	{
		if( obj2.value == '' )
		{
			alert("ÇÊ¼öÇ×¸ñ " + lbl + " Ã¼Å©ÇÏ½Ê½Ã¿À.");
			return true;   
		}
		
	}

	return false; 
}


//=================================================================================================================================
// Checkbox ¼±ÅÃ Á¦ÇÑ
//=================================================================================================================================

function chkBox(obj,cnt)
{
	var cnt;
	var chklen = 0;
	objlen = eval("document.frm." + obj).length;
	for(i=0;i<objlen;i++)
	{
		if(eval("document.frm." + obj + "[" + i + "]").checked == true)
		{
			chklen++;
			if(chklen > cnt)
			{
				alert("Ç×¸ñÀº " + cnt + "°³±îÁö ¼±ÅÃÀÌ °¡´ÉÇÕ´Ï´Ù.");
				eval("document.frm." + obj + "[" + i + "]").checked = false;
			}
		}
	}
}

//=================================================================================================================================
// »ý³â¿ùÀÏ ÀÚµ¿ ¼ÂÆÃ
//=================================================================================================================================
function birth_set() 
{
	var tmpbirth1;
	var tmpbirth2;
	var tmpbirth_y;
	var tmpbirth_m;
	var tmpbirth_d;
	var tmpbirth_x;
	
	tmpbirth1 = frm.ss_id1.value;
	tmpbirth2 = frm.ss_id2.value;
	tmpbirth_x = tmpbirth2.substring(0,1);
	
	if (tmpbirth_x >= 3)
		tmpbirth_y = "20"
	else
		tmpbirth_y = "19"
	tmpbirth_y = tmpbirth_y + tmpbirth1.substring(0, 2);
	tmpbirth_m = tmpbirth1.substring(2, 4);
	tmpbirth_d = tmpbirth1.substring(4, 6);

	if (tmpbirth2.length == 7)
	{
		frm.birth_y.value = tmpbirth_y;
		frm.birth_m.value = tmpbirth_m;
		frm.birth_d.value = tmpbirth_d;
//		f_ManAge(tmpbirth1,tmpbirth2);
	}

}


//=================================================================================================================================
// °Ô½ÃÆÇ ÄÚ¸àÆ® »èÁ¦
//=================================================================================================================================
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 IsDate(strDate){
	var arrDate;
	var chkDate;
	if (strDate.indexOf("-") == -1) {
		return (false);
	}
	arrDate = strDate.split("-");
	if (arrDate.length != 3) {
		return(false);
	}
	if (arrDate[0].length != 4 ) {
		return(false);
	}
	if (arrDate[1].length > 12 ) {
		return(false);
	}
	if (arrDate[2].length > 31 ) {
		return(false);
	}
	chkDate = new Date(arrDate[0] + "/" + arrDate[1] + "/" + arrDate[2]);
	if (isNaN(chkDate) == true || (arrDate[1] != chkDate.getMonth() + 1 || arrDate[2] != chkDate.getDate())) {
		return(false);
	}
	
	return(true);
}

// ÇÊµå°ª¿¡ ¼ýÀÚ¸¸ ¹ÞÀ½
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 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 enableIDChar(obj)
{
	var checkOK = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";
	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 loginAction()
{
	if(confirm("·Î±×ÀÎ ÈÄ ÀÌ¿ë°¡´É ÇÕ´Ï´Ù.\n\n\n·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã·Á¸é \"È®ÀÎ\"À» ´©¸£¼¼¿ä"))
	{
		document.footerLogin.submit();
	}
}

function eventAction()
{
	if(confirm("·Î±×ÀÎ ÈÄ ÀÌ¿ë°¡´É ÇÕ´Ï´Ù.\n\n\n·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã·Á¸é \"È®ÀÎ\"À» ´©¸£¼¼¿ä"))
	{
		document.eventCapsule.submit();
	}
}

function PoploginAction()
{
	if(confirm("·Î±×ÀÎ ÈÄ ÀÌ¿ë°¡´É ÇÕ´Ï´Ù.\n\n\n·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã·Á¸é \"È®ÀÎ\"À» ´©¸£¼¼¿ä"))
	{
		opener.document.footerLogin.returnURL.value = opener.location.href;
		opener.document.footerLogin.submit();
		self.close();
	}
	else
	{
		self.close();
	}
}

// -->