
function setEmbed() {
	var obj = new String;
	var parameter = new String;
	var embed = new String;
	var html = new String;
	var allParameter = new String;
	var clsid = new String;
	var codebase = new String;
	var pluginspace = new String;
	var embedType = new String;
	var src = new String;
	var width = new String;
	var height = new String;

	this.init = function( getType , s ,w , h ) {
		if ( getType == "flash" ) {
			clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
			codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
			pluginspage = "http://www.macromedia.com/go/getflashplayer";
			embedType = "application/x-shockwave-flash";
		}
		/* type Ãß°¡
		else if ( ) {
		}
		*/

		parameter += "<param name='movie' value='"+ s + "'>\n";
		parameter += "<param name='quality' value='high'>\n";

		src = s;
		width = w;
		height = h;
	}

	this.parameter = function( parm , value ) {
		parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
		allParameter += " "+parm + "='"+ value+"'";
	}

	this.show = function() {
		if ( clsid ) {
			obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n";
		}

		embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n";

		if ( obj ) {
			embed += "</object>\n";
		}

		html = obj + parameter + embed;

		document.write( html );
	}
}


var idCheck = false;
var categoryCheck = false;

// °ü¸®ÀÚ ÀÎÁõ
function logonModule()
{
	var theForm = document.frmAdmin;
	var frmSpace = /^\s/;
	if(!theForm.id.value)
	{
		alert("ID¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		theForm.id.focus();
		theForm.id.select();
		return false;
	}
	if(frmSpace.exec(theForm.id.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.id.focus();
		theForm.id.select();
		return false;
	}

	if(!theForm.pwd.value)
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		theForm.pwd.focus();
		theForm.pwd.select();
		return false;
	}
	if(frmSpace.exec(theForm.pwd.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.pwd.focus();
		theForm.pwd.select();
		return false;
	}
theForm.method = "post";
theForm.target = "_self";
theForm.action = "login.asp";
theForm.submit();
}


// °ü¸®ÀÚ ÀÎÁõ
function logonModule1()
{
	var theForm = document.frmAdmin1;
	var frmSpace = /^\s/;
	if(!theForm.id.value)
	{
		alert("ID¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		theForm.id.focus();
		theForm.id.select();
		return false;
	}
	if(frmSpace.exec(theForm.id.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.id.focus();
		theForm.id.select();
		return false;
	}

	if(!theForm.pwd.value)
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.")
		theForm.pwd.focus();
		theForm.pwd.select();
		return false;
	}
	if(frmSpace.exec(theForm.pwd.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.pwd.focus();
		theForm.pwd.select();
		return false;
	}
theForm.method = "post";
theForm.target = "_self";
theForm.action = "login.asp";
//theForm.submit();
}


// °Ô½Ã¹° ÀÔ·ÂÃ¼Å©
/*================================================*/
/*                                                                                                            */
/* type : 01 - ÀÚÀ¯°Ô½ÃÆÇÅ¸ÀÔ, 02- °øÁö»çÇ×Å¸ÀÔ, 03 - »çÁøÀÚ·á½ÇÅ¸ÀÔ,            */
/*                                                                                                            */
/*================================================*/
function PostDate1(type, mode, emCheck, flag)
{
	var theForm = document.frmInsert;	
	var msgBox, locate;
	var frmSpace = /^\s/;
	var frmEmail = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;
	var fileName = theForm.upfile.value;
	var ext = fileName.slice(fileName.lastIndexOf(".")+1).toLowerCase();
	theForm.target = "_self";

	if(mode == "insert")
	{
		locate = "notice_insert.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "notice_modify_proc.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "reply")
	{
		locate = "notice_reply.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}


	if(type == "01")
	{
		if(frmSpace.exec(theForm.name.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.name.focus();
			theForm.name.select();
			return false;
		}
		if(!theForm.name.value)
		{
			alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
			theForm.name.focus();
			theForm.name.select();
			return false;
		}
	}

	if(emCheck == "Ture")
	{
		if(flag == "Ture")
		{
			if (theForm.email.value)
			{
				if (!frmEmail.exec(theForm.email.value))
				{
					alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ");
					theForm.email.focus();
					theForm.email.select();
					return false;
				}
			}
		}
		else if(flag == "False")
		{
			if(!theForm.email.value)
			{
				alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				theForm.email.focus();
				theForm.email.select();
				return false;
			}

			if (!frmEmail.exec(theForm.email.value))
			{
				alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ");
				theForm.email.focus();
				theForm.email.select();
				return false;
			}
		}
	}

	//if(type == "03")
	//{
	//	if(!theForm.category.value)
	//	{
	//		alert("±¸ºÐÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
	//		theForm.category.focus();
	//		return false;
	//	}	
	//}
	
	if (type != "04")
	{
		if (frmSpace.exec(theForm.title.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.title.focus();
			theForm.title.select();
			return false;
		}
		if(!theForm.title.value)
		{
			alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
			theForm.title.focus();
			theForm.title.select();
			return false;
		}

	}

	
	

	if(type == "01")
	{
		if(frmSpace.exec(theForm.pwd.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.pwd.focus();
			theForm.pwd.select();
			return false;
		}
		if(!theForm.pwd.value)
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
			theForm.pwd.focus();
			theForm.pwd.select();
			return false;
		}
	}

/*---------------------------------------------------------------------------- ucc¿¡¼­ ÇÊ¿ä¾ø´Â ºÎºÐ
	if(type == "03" || type == "04")
	{
		if(mode == "insert")
		{
			if(!theForm.upfile.value)
			{
				alert("Ã·ºÎÇÏ½Ç ÀÌ¹ÌÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				theForm.upfile.focus();
				theForm.upfile.select();
				return false;
			}
			else
			{
				if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "GIF" || ext == "JPG" || ext == "JPEG" || ext == "BMP"))
				{
					alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
					theForm.upfile.focus();
					theForm.upfile.select();
					return false;
				}
			}
		}
		else if(mode == "edit")
		{
			if(theForm.del.checked == true)
			{
				if(!theForm.upfile.value)
				{
					alert("Ã·ºÎÇÏ½Ç ÀÌ¹ÌÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
					theForm.upfile.focus();
					theForm.upfile.select();
					return false;
				}
				else
				{
					if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "GIF" || ext == "JPG" || ext == "JPEG" || ext == "BMP"))
					{
						alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
						theForm.upfile.focus();
						theForm.upfile.select();
						return false;
					}
				}
			}
			else
			{
				if(theForm.upfile.value)
				{
					if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "GIF" || ext == "JPG" || ext == "JPEG" || ext == "BMP"))
					{
						alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
						theForm.upfile.focus();
						theForm.upfile.select();
						return false;
					}
				}
			}
		}
	}

-----------------------------------------------------------------------------------------------------------------------------------*/

	document.frmInsert.mail_body.value=EditCtrl.document.documentElement.innerHTML;

	if(confirm(msgBox)) {
		strAppVersion = navigator.appVersion; 
		if (theForm.upfile.value != "") 
		{
			if (strAppVersion.indexOf('MSIE')!=-1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) 
			{ 
				  winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes;help:no;resizable:no;status:no;scroll:no;"; 
				  window.showModelessDialog("/include/show_progress.asp?nav=ie", null, winstyle); 
			  } 
			  else 
			  { 
				  winpos = "left=" + ((window.screen.width-380)/2)+",top=" + ((window.screen.height-110)/2);
				  winstyle = "width=380,height=110,status=no,toolbar=no,menubar=no," + "location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos; 
				  window.open("/include/show_progress.asp",null,winstyle); 
			  } 
		}
		theForm.action = locate;
		return true;
	} else {
		return false;
	}
}


// °Ô½Ã¹° ÀÔ·ÂÃ¼Å©
/*================================================*/
/*                                                                                                            */
/* type : 01 - ÀÚÀ¯°Ô½ÃÆÇÅ¸ÀÔ, 02- °øÁö»çÇ×Å¸ÀÔ, 03 - »çÁøÀÚ·á½ÇÅ¸ÀÔ,            */
/*                                                                                                            */
/*================================================*/
function PostDate(type, mode, emCheck, flag)
{
	var theForm = document.frmInsert;	
	var msgBox, locate;
	var frmSpace = /^\s/;
	var frmEmail = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;
	var fileName = theForm.upfile.value;
	var ext = fileName.slice(fileName.lastIndexOf(".")+1).toLowerCase();
	theForm.target = "_self";

	if(mode == "insert")
	{
		locate = "insert.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "edit.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "reply")
	{
		locate = "reply.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}


	if(type == "01")
	{
		if(frmSpace.exec(theForm.name.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.name.focus();
			theForm.name.select();
			return false;
		}
		if(!theForm.name.value)
		{
			alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
			theForm.name.focus();
			theForm.name.select();
			return false;
		}
	}

	if(emCheck == "Ture")
	{
		if(flag == "Ture")
		{
			if (theForm.email.value)
			{
				if (!frmEmail.exec(theForm.email.value))
				{
					alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ");
					theForm.email.focus();
					theForm.email.select();
					return false;
				}
			}
		}
		else if(flag == "False")
		{
			if(!theForm.email.value)
			{
				alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				theForm.email.focus();
				theForm.email.select();
				return false;
			}

			if (!frmEmail.exec(theForm.email.value))
			{
				alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ");
				theForm.email.focus();
				theForm.email.select();
				return false;
			}
		}
	}

	//if(type == "03")
	//{
	//	if(!theForm.category.value)
	//	{
	//		alert("±¸ºÐÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
	//		theForm.category.focus();
	//		return false;
	//	}	
	//}
	
	if (type != "04")
	{
		if (frmSpace.exec(theForm.title.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.title.focus();
			theForm.title.select();
			return false;
		}
		if(!theForm.title.value)
		{
			alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
			theForm.title.focus();
			theForm.title.select();
			return false;
		}

		if(!theForm.FlvFilename.value)
		{
			alert("UCCÆÄÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.")
			return false;
		}

		if(!theForm.TitleNumber.value)
		{
			alert("´ëÇ¥ÀÌ¹ÌÁö¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.")
			return false;
		}

	}

	
	

	if(type == "01")
	{
		if(frmSpace.exec(theForm.pwd.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.pwd.focus();
			theForm.pwd.select();
			return false;
		}
		if(!theForm.pwd.value)
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
			theForm.pwd.focus();
			theForm.pwd.select();
			return false;
		}
	}

/*---------------------------------------------------------------------------- ucc¿¡¼­ ÇÊ¿ä¾ø´Â ºÎºÐ
	if(type == "03" || type == "04")
	{
		if(mode == "insert")
		{
			if(!theForm.upfile.value)
			{
				alert("Ã·ºÎÇÏ½Ç ÀÌ¹ÌÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				theForm.upfile.focus();
				theForm.upfile.select();
				return false;
			}
			else
			{
				if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "GIF" || ext == "JPG" || ext == "JPEG" || ext == "BMP"))
				{
					alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
					theForm.upfile.focus();
					theForm.upfile.select();
					return false;
				}
			}
		}
		else if(mode == "edit")
		{
			if(theForm.del.checked == true)
			{
				if(!theForm.upfile.value)
				{
					alert("Ã·ºÎÇÏ½Ç ÀÌ¹ÌÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
					theForm.upfile.focus();
					theForm.upfile.select();
					return false;
				}
				else
				{
					if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "GIF" || ext == "JPG" || ext == "JPEG" || ext == "BMP"))
					{
						alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
						theForm.upfile.focus();
						theForm.upfile.select();
						return false;
					}
				}
			}
			else
			{
				if(theForm.upfile.value)
				{
					if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "GIF" || ext == "JPG" || ext == "JPEG" || ext == "BMP"))
					{
						alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
						theForm.upfile.focus();
						theForm.upfile.select();
						return false;
					}
				}
			}
		}
	}

-----------------------------------------------------------------------------------------------------------------------------------*/

	document.frmInsert.mail_body.value=EditCtrl.document.documentElement.innerHTML;

	if(confirm(msgBox)) {
		strAppVersion = navigator.appVersion; 
		if (theForm.upfile.value != "") 
		{
			if (strAppVersion.indexOf('MSIE')!=-1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) 
			{ 
				  winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes;help:no;resizable:no;status:no;scroll:no;"; 
				  window.showModelessDialog("/include/show_progress.asp?nav=ie", null, winstyle); 
			  } 
			  else 
			  { 
				  winpos = "left=" + ((window.screen.width-380)/2)+",top=" + ((window.screen.height-110)/2);
				  winstyle = "width=380,height=110,status=no,toolbar=no,menubar=no," + "location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos; 
				  window.open("/include/show_progress.asp",null,winstyle); 
			  } 
		}
		theForm.action = locate;
		return true;
	} else {
		return false;
	}
}


function viewDetail(locate)
{
	var theForm = document.SearchForm;
	theForm.target = "_self";
	theForm.action = locate;
	theForm.submit();
}

// °Ë»ö¸ðµâ
function search_Click() {
	var theForm = document.SearchForm;
	var frmSpace = /\s/;

	if(frmSpace.exec(theForm.searchString.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.searchString.focus();
		theForm.searchString.select();
	return false;
	}
	if (!theForm.searchString.value)
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.searchString.focus();
		theForm.searchString.select();
	return false;
	}
theForm.target = "_self"
theForm.action = "search.asp";
return true;
}

// °Ë»ö¸ðµâ
function search_Click_iframe() {
	var theForm = document.SearchForm;
	var frmSpace = /\s/;

	if(frmSpace.exec(theForm.searchString.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.searchString.focus();
		theForm.searchString.select();
	return false;
	}
	if (!theForm.searchString.value)
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.searchString.focus();
		theForm.searchString.select();
	return false;
	}
theForm.target = "_self"
theForm.action = "search_iframe.asp";
return true;
}

// QnA´äº¯
function replyAdminModule(idx, page)
{
	var theForm = document.SearchForm;
	theForm.idx.value = idx;
	theForm.page.value = page;
	theForm.target = "_self";
	theForm.action = "reply.html";
	theForm.submit();
}

// ´äº¯
function replyModule()
{
	var theForm = document.frmMethod;
	theForm.target = "_self";
	theForm.action = "reply.html";
	theForm.submit();
}

// ¼öÁ¤, »èÁ¦
function passCheck(idx,page,mode)
{
	this.name = "parentWindow";
	var sizeWidth = 330;
	var sizeHeight = 180;
	var popupTop = (screen.height - sizeHeight) / 2;
	var popupLeft = (screen.width - sizeWidth) / 2;
	var status = "status=no,menubar=no,scrollbars=no,resizable=no,director=no,left=" + popupLeft + ",top=" + popupTop + ",width=" + sizeWidth + ",height=" + sizeHeight;

	window.open("check.html?idx="+idx+"&page="+page+"&mode="+mode,"Check",status);
}

// °¶·¯¸® ±¸ºÐÃß°¡
function newFolder()
{
	var sizeWidth = 330;
	var sizeHeight = 150;
	var popupTop = (screen.height - sizeHeight) / 2;
	var popupLeft = (screen.width - sizeWidth) / 2;
	var status = "status=no,menubar=no,scrollbars=no,resizable=no,director=no,left=" + popupLeft + ",top=" + popupTop + ",width=" + sizeWidth + ",height=" + sizeHeight;

	window.open("gallery_type/list.html","folder_window", status);
}

// °¶·¯¸® Ä«Å×°í¸®º° Á¤·Ä
function frmResultSort()
{
	var theForm = document.SearchForm;
	theForm.target = "_self";
	theForm.action = "list.html";
	theForm.submit();
}

// ºñ¹øÃ¼Å©
function checkData() {
	var theForm = document.frmPassCheck;
	var frmSpace = /\s/;

	if(frmSpace.exec(theForm.passwd.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.passwd.focus();
		theForm.passwd.select();
	return;
	}
	if (theForm.passwd.value == "")
	{
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!');
		theForm.passwd.focus();
		theForm.passwd.select();
	return;
	}
theForm.target = "_self";
theForm.action = "check.asp";
theForm.submit();
}

// °ü¸®ÀÚ ¼öÁ¤ »èÁ¦
function adminModifyModule(idx, page, mode)
{
	var theForm = document.SearchForm;	
	theForm.idx.value = idx;
	theForm.page.value = page;
	theForm.target = "_self";

	if(mode == "edit")
	{
		if(confirm("ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?"))
		{
			theForm.action = "edit.html";
			theForm.submit();
		} else {
			return false;
		}
	}
	else if(mode == "delete")
	{
		if(confirm("ÀÛ¼ºÇÏ½Å °Ô½Ã¹°À» »èÁ¦ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?"))
		{
			theForm.action = "delete.asp";
			theForm.submit();
		} else {
			return false;
		}
	}
}

// °ü¸®ÀÚ ·Î±×¿ÀÇÁ
function AdminOut()
{
	if(confirm("°ü¸®ÀÚ¸ðµå¸¦ Á¾·áÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?"))
	{
		document.location.href="/admin/logout.asp";
		return true;
	}
	else
	{
		return false;
	}
}


// ´äº¯°ü·Ã...
function viewQuestion(id,id2)
{
	if (document.getElementById(id).style.display == "none")
	{
		document.getElementById(id).style.display = "";
	}
	else
	{
		document.getElementById(id).style.display = "none";
	}
	if (id2 == "open")
	{
		document.getElementById('open').style.display = "none";
		document.getElementById('close').style.display = "";
	}
	else
	{
		document.getElementById('open').style.display = "";
		document.getElementById('close').style.display = "none";
	}
}

// FaQ °ü·Ã
function viewContent(num, viewCount)
{
	for (i=1; i<=viewCount; i++)
	{
		menu=eval("document.getElementById('block"+i+"').style");
		if (num==i )
		{
			if (menu.display=="block")
			{
				menu.display="none";
			}
			else
			{
				menu.display="block";
			}
		}
		else
		{
			menu.display="none";
		}
	}
}

// Á¦Ç°±¸ºÐµî·Ï
function getCategoryInfo(mode, strTitle)
{
	var theForm = document.frmInsert;
	var msgBox, locate;
	var frmSpace = /^\s/;
	var frmNum = /[^(0-9 )]/;	

	theForm.target = "_self";

	if(mode == "insert")
	{
		locate = "insert.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å Á¦Ç°±¸ºÐÀ» µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "edit.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å Á¦Ç°±¸ºÐÀ» ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}

	if(frmSpace.exec(theForm.rank.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.rank.focus();
		theForm.rank.select();
		return false;
	}
	if(frmNum.exec(theForm.rank.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.rank.focus();
		theForm.rank.select();
		return false;
	}
	if(!theForm.rank.value)
	{
		alert("Ãâ·Â¼øÀ§¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.rank.focus();
		theForm.rank.select();
		return false;
	}

	if(frmSpace.exec(theForm.title.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.title.focus();
		theForm.title.select();
		return false;
	}
	if(!theForm.title.value)
	{
		alert("Á¦Ç°±¸ºÐ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.title.focus();
		theForm.title.select();
		return false;
	}

	if(mode == "insert")
	{
		if(categoryCheck == false)
		{
			alert("Áßº¹È®ÀÎÀ» ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");
			getCategoryCheck();
			return false;
		}
	}
	else if(mode == "edit")
	{
		if(strTitle != theForm.title.value)
		{
			if(categoryCheck == false)
			{
				alert("Áßº¹È®ÀÎÀ» ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");
				getCategoryCheck();
				return false;
			}
		}
	}

	if(confirm(msgBox))
	{
		theForm.action = locate;
		return true;
	}
	else
	{
		return false;
	}
}

// Á¦Ç°±¸ºÐ Áßº¹Ã¼Å©
function getCategoryCheck()
{
	var theForm = document.frmInsert;
	var frmSpace = /^\s/;

	var sizeWidth = 361;
	var sizeHeight = 240;	
	var popupTop = (screen.height - sizeHeight) / 2;
	var popupLeft = (screen.width - sizeWidth) / 2;
	var status = "status=no, menubar=no, scrollbars=no, resizable=no, director=no, left=" + popupLeft + ", top=" + popupTop + ", width=" + sizeWidth + ", height=" + sizeHeight;

	if (!theForm.title.value)
	{
		alert("Á¦Ç°±¸ºÐ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");	
		theForm.title.focus();
		theForm.title.select();
		return false;
	}
	if(frmSpace.exec(theForm.title.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.title.focus();
		theForm.title.select();
		return false;
	}
	else
	{
		window.open("categoryCheck.asp?title=" + theForm.title.value, "categoryCheck", status)
	}
	return false;
}

// Á¦Ç°±¸ºÐ Áßº¹Ã¼Å©°ª Return
function returnCategory(category)
{
	opener.document.frmInsert.title.value = category;
	opener.categoryCheck = true;
	self.close()
}

// Àåºñµî·Ï
function getDevice(mode)
{
	var theForm = document.frmInsert;
	var msgBox, locate, filename, ext;
	var frmSpace = /^\s/;
	theForm.target = "_self";

	if(mode == "insert")
	{
		locate = "insert.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å Á¦Ç°Á¤º¸¸¦ µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "edit.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å Á¦Ç°Á¤º¸¸¦ ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}

	if (!theForm.category.value)
	{
		alert("Àåºñ±¸ºÐÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.category.focus();
		return false;
	}

	if(frmSpace.exec(theForm.title.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.title.focus();
		theForm.title.select();
		return false;
	}
	if(!theForm.title.value)
	{
		alert("Á¦Ç°¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.title.focus();
		theForm.title.select();
		return false;
	}

	if(frmSpace.exec(theForm.about.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.about.focus();
		theForm.about.select();
		return false;
	}
	if(!theForm.about.value)
	{
		alert("Á¦Ç°°³¿ä¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.about.focus();
		theForm.about.select();
		return false;
	}

	if(mode == "insert")
	{
		for(i=0; i < 3; i++)
		{
			fileName = theForm.upfile[i].value;
			ext = fileName.slice(fileName.lastIndexOf(".")+1).toLowerCase();

			if(i == 0)
			{
				if(!theForm.upfile[i].value)
				{
					alert("Ã·ºÎÇÏ½Ç ÀÌ¹ÌÁö¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
					theForm.upfile[i].click();
					return false;
				}
			}

			if(theForm.upfile[i].value)
			{
				if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "png"))
				{
					alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.png , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
					theForm.upfile[i].click();
					return false;
				}
			}
		}
	}
	else if(mode == "edit")
	{
		for(i=0; i < 3; i++)
		{
			fileName = theForm.upfile[i].value;
			ext = fileName.slice(fileName.lastIndexOf(".")+1).toLowerCase();

			if(i == 0)
			{
				if(theForm.elements[7].checked == true)
				{
					if(!theForm.upfile[i].value)
					{
						alert("Ã·ºÎÇÏ½Ç ÀÌ¹ÌÁö¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
						theForm.upfile[i].click();
						return false;
					}
				}
			}

			if(theForm.upfile[i].value)
			{
				if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "png"))
				{
					alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.png , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
					theForm.upfile[i].click();
					return false;
				}
			}
		}
	}

	if(confirm(msgBox))
	{
		theForm.action = locate;
		return true;
	}
	else
	{
		return false;
	}
}

// Àåºñ°ü·Ã Opt¸Þ´º
function getDevInfo()
{
	var theForm = document.frmMove;
	var url = "/equip/content.html?idx=" + theForm.strDev.value;
	location.href = url;
return;
}


// ¾à°üµ¿ÀÇ
function getProvision()
{
	var msgBox, locate;
	var theForm = document.frmProvision;
	
	if(theForm.agree[0].checked == true)
	{
		locate = "register.html";
		msgBox = "¾à°ü¿¡ µ¿ÀÇÇÔÀ¸·Î È¸¿øÁ¤º¸ ÀÔ·Â¸Þ´º·Î ÀÌµ¿ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?"
	}
	else if(theForm.agree[1].checked == true)
	{
		locate = "/index.html";
		msgBox = "¾à°ü¿¡ µ¿ÀÇÇÏÁö ¾ÊÀ¸¹Ç·Î ¸ÞÀÎÈ­¸éÀ¸·Î ÀÌµ¿ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}

	if(confirm(msgBox))
	{
		theForm.action = locate;
		return true;
	}
	else
	{
		return false;
	}
}

// È¸¿ø°¡ÀÔ
function getRegister(mode)
{
	var theForm = document.frmInsert;	
	var msgBox, locate;
	var frmSpace = /^\s/;
	var frmNum = /[^(0-9 )]/;	
	var frmEmailID = /^[a-zA-Z0-9]+$/;
	var frmEmail = /[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;

	theForm.target = "_self";
	if(mode == "insert")
	{
		locate = "register.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å È¸¿øÁ¤º¸¸¦ µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "modify.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å È¸¿øÁ¤º¸¸¦ ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}

	if(mode == "insert")
	{
		if(!theForm.uid.value)
		{
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.uid.focus();
			theForm.uid.select();
			return false;
		}
		if(!frmEmailID.exec(theForm.uid.value))
		{
			alert("¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.uid.focus();
			theForm.uid.select();
			return false;
		}
		if(frmSpace.exec(theForm.uid.value))
		{
			alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
			theForm.uid.focus();
			theForm.uid.select();
			return false;
		}
	}

	if(!theForm.pwd1.value)
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.pwd1.focus();
		theForm.pwd1.select();
		return false;
	}
	if(!frmEmailID.exec(theForm.pwd1.value))
	{
		alert("¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.pwd1.focus();
		theForm.pwd1.select();
		return false;
	}
	if(frmSpace.exec(theForm.pwd1.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.pwd1.focus();
		theForm.pwd1.select();
		return false;
	}
	if(theForm.pwd1.value.length < 3 || theForm.pwd1.value.length > 11)
	{
		alert("ºñ¹Ð¹øÈ£´Â 4ÀÚ ÀÌ»ó 10ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		theForm.pwd1.focus();
		theForm.pwd1.select();
		return false;
	}

	if(!theForm.pwd2.value )
	{
		alert("ºñ¹Ð¹øÈ£¸¦ È®ÀÎÇØ ÁÖ¼¼¿ä.");
		theForm.pwd2.focus();
		theForm.pwd2.select();
		return false;
	}
	if(theForm.pwd2.value.length < 4 || theForm.pwd2.value.length > 11)
	{
		alert("ºñ¹Ð¹øÈ®ÀÎÀº 4ÀÚ ÀÌ»ó 10ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		theForm.pwd2.focus();
		theForm.pwd2.select();
		return false;
	}
	if(theForm.pwd1.value != theForm.pwd2.value)
	{
		alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");
		theForm.pwd2.focus();
		theForm.pwd2.select();
		return false;
	}

	if(frmSpace.exec(theForm.name.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.name.focus();
		theForm.name.select();
		return false;
	}
	if(!theForm.name.value)
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
		theForm.name.focus();
		theForm.name.select();
		return false;
	}

	if(!theForm.emailID.value)
	{
		alert("E-MailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}
	if(!frmEmailID.exec(theForm.emailID.value))
	{
		alert("¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}
	if(frmSpace.exec(theForm.emailID.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}

	if(theForm.email2.value == "0")
	{
		alert("¸ÞÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ë.");
		theForm.email2.focus();
		return false;
	}
	else if(theForm.email2.value == "1")
	{
		if(!theForm.email1.value)
		{
			alert("³ª¸ÓÁö ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.email1.focus();
			theForm.email1.select();
			return false;
		}

		if(!frmEmail.exec(theForm.email1.value))
		{
			alert("¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.email1.focus();
			theForm.email1.select();
			return false;
		}
	}

	if(!theForm.ssn1.value)
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.ssn1.focus();
		theForm.ssn1.select();
		return false;
	}

	if(!theForm.ssn2.value)
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.ssn2.focus();
		theForm.ssn2.select();
		return false;
	}
	str1 = theForm.ssn1.value;
	str2 = theForm.ssn2.value;
	if (!CheckJuminNumber(str1, str2))
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. ´Ù½Ã ±âÀÔÇØ ÁÖ½Ê½Ã¿ä.");
		theForm.ssn1.focus();
		theForm.ssn1.select();
		return false;
	}

	if(!theForm.zipcode1.value || !theForm.zipcode2.value || !theForm.address1.value)
	{
		alert("ÁÖ¼Ò¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä")
		postCheck('u');
		return false;
	}
	if(frmSpace.exec(theForm.address2.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.address2.focus();
		theForm.address2.select();
		return false;
	}
	if(!theForm.address2.value)
	{
		alert("³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.address2.focus();
		theForm.address2.select();
		return false;
	}

	if(frmNum.exec(theForm.tel2.value || theForm.tel3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.tel2.focus();
		theForm.tel2.select();
		return false;
	}

	if(theForm.tel2.value && !theForm.tel3.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.tel3.focus();
		theForm.tel3.select();
		return false;
	}

	if(frmNum.exec(theForm.hp2.value || theForm.hp3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.hp2.focus();
		theForm.hp2.select();
		return false;
	}
	if(theForm.hp2.value && !theForm.hp3.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.hp3.focus();
		theForm.hp3.select();
		return false;
	}

	if(!theForm.company.value)
	{
		alert("¾÷Ã¼¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.company.focus();
		theForm.company.select();
		return false;
	}
	if(frmSpace.exec(theForm.company.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.company.focus();
		theForm.company.select();
		return false;
	}

	if(!theForm.com_master.value)
	{
		alert("´ëÇ¥ÀÚ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_master.focus();
		theForm.com_master.select();
		return false;
	}
	if(frmSpace.exec(theForm.company.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.company.focus();
		theForm.company.select();
		return false;
	}

	if(frmSpace.exec(theForm.com_num1.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.com_num1.focus();
		theForm.com_num1.select();
		return false;
	}
	if(frmNum.exec(theForm.com_num1.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.com_num1.focus();
		theForm.com_num1.select();
		return false;
	}
	if(!theForm.com_num1.value)
	{
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_num1.focus();
		theForm.com_num1.select();
		return false;
	}
	if(frmSpace.exec(theForm.com_num2.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.com_num2.focus();
		theForm.com_num2.select();
		return false;
	}
	if(frmNum.exec(theForm.com_num2.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.com_num2.focus();
		theForm.com_num2.select();
		return false;
	}
	if(!theForm.com_num2.value)
	{
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_num2.focus();
		theForm.com_num2.select();
		return false;
	}
	if(frmSpace.exec(theForm.com_num3.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.com_num3.focus();
		theForm.com_num3.select();
		return false;
	}
	if(frmNum.exec(theForm.com_num3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.com_num3.focus();
		theForm.com_num3.select();
		return false;
	}
	if(!theForm.com_num3.value)
	{
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_num3.focus();
		theForm.com_num3.select();
		return false;
	}

	var num1 = theForm.com_num1.value;
	var num2 = theForm.com_num2.value;
	var num3 = theForm.com_num3.value;
	var strNumb = num1 + num2 + num3;

	if (strNumb.length != 10) {
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. ´Ù½Ã ±âÀÔÇØ ÁÖ½Ê½Ã¿ä.");
		theForm.com_num1.value = "";
		theForm.com_num2.value = "";
		theForm.com_num3.value = "";
		theForm.com_num1.focus();
		theForm.com_num1.select();
		return false;
	}
	if (!CheckCompanyNum(strNumb))
	{
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. ´Ù½Ã ±âÀÔÇØ ÁÖ½Ê½Ã¿ä.");
		theForm.com_num1.value = "";
		theForm.com_num2.value = "";
		theForm.com_num3.value = "";
		theForm.com_num1.focus();
		theForm.com_num1.select();
		return false;
	}

	if(!theForm.com_zipcode1.value || !theForm.com_zipcode2.value || !theForm.com_address1.value)
	{
		alert("ÁÖ¼Ò¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä")
		postCheck('c');
		return false;
	}
	if(frmSpace.exec(theForm.com_address2.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.com_address2.focus();
		theForm.com_address2.select();
		return false;
	}
	if(!theForm.com_address2.value)
	{
		alert("³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_address2.focus();
		theForm.com_address2.select();
		return false;
	}

	if(frmNum.exec(theForm.com_tel2.value || theForm.com_tel3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.com_tel1.focus();
		theForm.com_tel1.select();
		return false;
	}

	if(theForm.com_tel1.value && !theForm.com_tel2.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_tel2.focus();
		theForm.com_tel2.select();
		return false;
	}
	if(theForm.com_tel1.value && theForm.com_tel2.value && !theForm.com_tel3.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.com_tel3.focus();
		theForm.com_tel3.select();
		return false;
	}

	if(mode == "insert")
	{
		if(idCheck == false)
		{
			alert("Áßº¹È®ÀÎÀ» ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");
			getIDCheck();
			return false;
		}
	}

	if(confirm(msgBox))
	{
		theForm.action = locate;
		return true;
	}
	else
	{
		return false;
	}
}

// ID Áßº¹Ã¼Å©
function getIDCheck()
{
	var theForm = document.frmInsert;
	var frmSpace = /^\s/;
	var frmEmailID = /^[a-zA-Z0-9]+$/;

	var sizeWidth = 361;
	var sizeHeight = 240;	
	var popupTop = (screen.height - sizeHeight) / 2;
	var popupLeft = (screen.width - sizeWidth) / 2;
	var status = "status=no, menubar=no, scrollbars=no, resizable=no, director=no, left=" + popupLeft + ", top=" + popupTop + ", width=" + sizeWidth + ", height=" + sizeHeight;

	if (!theForm.uid.value)
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");	
		theForm.uid.focus();
		theForm.uid.select();
		return false;
	}
	if(!frmEmailID.exec(theForm.uid.value))
	{
		alert("¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.uid.focus();
		theForm.uid.select();
		return false;
	}
	if(frmSpace.exec(theForm.uid.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.uid.focus();
		theForm.uid.select();
		return false;
	}
	else
	{
		window.open("idcheck.asp?uid=" + theForm.uid.value, "idCheck", status)
	}
	return false;
}

// ID Áßº¹Ã¼Å©°ª Return
function UseThisTrig(uid)
{
	opener.document.frmInsert.uid.value = uid;
	opener.document.frmInsert.pwd1.focus();
	opener.idCheck = true;
	self.close()
}

// optEmail
function setEmail(mode)
{
	var theForm = document.frmInsert;

	if (mode == 1)
	{
		if (theForm.email2.value == "1")
		{
			theForm.email1.style.display = "inLine";
			theForm.email2.style.display = "none";
			msg1.style.display = "inLine";
			theForm.email1.value = "";
			theForm.email1.focus();
		}
	} 
	else if (mode == 2)
	{
		var data = theForm.email1.value;
		var idx = theForm.email1.value;
		var item=new Option(data, idx, false, true);
		
		theForm.email1.style.display = "none";
		theForm.email2.style.display = "inLine";
		theForm.email2.selectedIndex = 0;
		msg1.style.display = "none";

		theForm.email2.options[0] = item;
		theForm.email2.options[0].text = "::: ¼±ÅÃ :::";
		theForm.email2.options[0].value = 0;
		theForm.email2.focus();
	}
}

// ÁÖ¹Î¹øÈ£ Ã¼Å©
function CheckJuminNumber( strJunminNumber1, strJunminNumber2) 
{
    var sum;
    sum = 0;

    sum += strJunminNumber1.charAt(0)*2;
    sum += strJunminNumber1.charAt(1)*3;
    sum += strJunminNumber1.charAt(2)*4;
    sum += strJunminNumber1.charAt(3)*5;
    sum += strJunminNumber1.charAt(4)*6;
    sum += strJunminNumber1.charAt(5)*7;

    sum += strJunminNumber2.charAt(0)*8;
    sum += strJunminNumber2.charAt(1)*9;
    sum += strJunminNumber2.charAt(2)*2;
    sum += strJunminNumber2.charAt(3)*3;
    sum += strJunminNumber2.charAt(4)*4;
    sum += strJunminNumber2.charAt(5)*5;

    check = (11 - sum%11)%10;

    if (strJunminNumber2.charAt(6) != check || (strJunminNumber1.length != 6 && strJunminNumber2.length != 7))
    {
        return false;
    }

    if(!(strJunminNumber2.charAt(0) == '1' || strJunminNumber2.charAt(0)  == '2' || strJunminNumber2.charAt(0) == '3' || strJunminNumber2.charAt(0) == '4'))
    {
    	return false;
    }
    return true;
}

// ÁÖ¹Îµî·Ï¹øÈ£ ÀÚµ¿ÀÌµ¿
function getMoveFocus(theForm, len)
{
	if(theForm.ssn1.value.length == len)
	{
		theForm.ssn2.focus();
		theForm.ssn2.select();
	}
}

function getHitLen(theForm, len)
{
	if(theForm.ssn2.value.length == len)
	{
		postCheck('u');
	}
}

// ¿ìÆí¹øÈ£Ã£±â
function postCheck(mode)
{
	var sizeWidth = 400;
	var sizeHeight = 200;	
	var popupTop = (screen.height - sizeHeight) / 2;
	var popupLeft = (screen.width - sizeWidth) / 2;
	var status = "status=no, menubar=no, scrollbars=yes, resizable=no, director=no, left=" + popupLeft + ", top=" + popupTop + ", width=" + sizeWidth + ", height=" + sizeHeight;

	window.open("/zipcode/zipcode.html?mode="+mode,"zipCode", status);
}

// ±â¾÷Á¤º¸(DHtml)
function getComInfo(mode)
{
	if (mode == "none")
	{
		document.getElementById('com_info').style.display = "block";
	}
	else
	{
		document.getElementById('com_info').style.display = "none";
	}
}

// »ç¾÷ÀÚµî·Ï¹øÈ£ Ã¼Å© ·çÆ¾
function CheckCompanyNum(strNumb)
{
    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)
	{
		return false;
	}
return true;
}

// Çù·Â¾÷Ã¼ µî·Ï
function getCompany(mode)
{
	var theForm = document.frmInsert;	
	var msgBox, locate;
	var frmSpace = /^\s/;
	var frmNum = /[^(0-9 )]/;	
	var frmEmailID = /^[a-zA-Z0-9]+$/;
	var frmEmail = /[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;

	theForm.target = "_self";
	if(mode == "insert")
	{
		locate = "insert.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å ¾÷Ã¼Á¤º¸¸¦ µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "edit.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å ¾÷Ã¼Á¤º¸¸¦ ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}

	if(!theForm.company.value)
	{
	}

	if(frmSpace.exec(theForm.company.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.company.focus();
		theForm.company.select();
		return false;
	}
	if(!theForm.company.value)
	{
		alert("¾÷Ã¼¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
		theForm.company.focus();
		theForm.company.select();
		return false;
	}

	if(frmSpace.exec(theForm.master.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.master.focus();
		theForm.master.select();
		return false;
	}
	if(!theForm.master.value)
	{
		alert("´ëÇ¥ÀÚ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
		theForm.master.focus();
		theForm.master.select();
		return false;
	}

	if(!theForm.emailID.value)
	{
		alert("E-MailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}
	if(!frmEmailID.exec(theForm.emailID.value))
	{
		alert("¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}
	if(frmSpace.exec(theForm.emailID.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}

	if(theForm.email2.value == "0")
	{
		alert("¸ÞÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ë.");
		theForm.email2.focus();
		return false;
	}
	else if(theForm.email2.value == "1")
	{
		if(!theForm.email1.value)
		{
			alert("³ª¸ÓÁö ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.email1.focus();
			theForm.email1.select();
			return false;
		}

		if(!frmEmail.exec(theForm.email1.value))
		{
			alert("¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.email1.focus();
			theForm.email1.select();
			return false;
		}
	}

	if(frmSpace.exec(theForm.biz_type.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.biz_type.focus();
		theForm.biz_type.select();
		return false;
	}
	if(!theForm.biz_type.value)
	{
		alert("ÁÖ·Â»ç¾÷À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
		theForm.biz_type.focus();
		theForm.biz_type.select();
		return false;
	}

	if(frmNum.exec(theForm.tel2.value || theForm.tel3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.tel1.focus();
		theForm.tel1.select();
		return false;
	}

	if(theForm.tel1.value && !theForm.tel2.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.tel2.focus();
		theForm.tel2.select();
		return false;
	}
	if(theForm.tel1.value && theForm.tel2.value && !theForm.tel3.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.tel3.focus();
		theForm.tel3.select();
		return false;
	}

	if(frmNum.exec(theForm.fax2.value || theForm.fax3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.fax1.focus();
		theForm.fax1.select();
		return false;
	}

	if(!theForm.zipcode1.value || !theForm.zipcode2.value || !theForm.address1.value)
	{
		alert("ÁÖ¼Ò¸¦  ÀÔ·ÂÇØ ÁÖ¼¼¿ä")
		postCheck('u');
		return false;
	}
	if(frmSpace.exec(theForm.address2.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.address2.focus();
		theForm.address2.select();
		return false;
	}
	if(!theForm.address2.value)
	{
		alert("³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.address2.focus();
		theForm.address2.select();
		return false;
	}

	for(i=0; i < 3; i++)
	{
		fileName = theForm.upfile[i].value;
		ext = fileName.slice(fileName.lastIndexOf(".")+1).toLowerCase();

		if(theForm.upfile[i].value)
		{
			if (!(ext == "gif" || ext == "jpg" || ext == "jpeg" || ext == "bmp" || ext == "png"))
			{
				alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. È®ÀÎÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä! \n\n¾÷·Îµå °¡´ÉÇÑ ÀÌ¹ÌÁö ÆÄÀÏÀº (*.gif , *.jpg , *.jpeg , *.png , *.bmp)ÀÇ È®ÀåÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù! ");
				theForm.upfile[i].click();
				return false;
			}
		}
	}

	if(confirm(msgBox))
	{
		theForm.action = locate;
		return true;
	}
	else
	{
		return false;
	}

}


// Àåºñ´ë¿© °ü·Ã
function getOptData(mode)
{
	var theForm = document.frmInsert;

	if(mode == "Y")
	{
		theForm.eYear.value = theForm.sYear.value;
		theForm.sMonth.focus();
		return false;
	}
	else if(mode == "M")
	{
		theForm.eMonth.value = theForm.sMonth.value;
		theForm.sDay.focus();
		return false;
	}
	else if(mode == "D")
	{
		theForm.eDay.value = theForm.sDay.value;
		theForm.sTime.focus();
		return false;
	}
	else if(mode == "T")
	{
		theForm.eTime.value = theForm.sTime.value;
		theForm.eTime.focus();
		return false;
	}
}

function getDevRent(mode)
{
	var theForm = document.frmInsert;
	var msgBox, locate;
	var frmSpace = /^\s/;
	var frmNum = /[^(0-9 )]/;	
	var frmEmailID = /^[a-zA-Z0-9]+$/;
	var frmEmail = /[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;
	theForm.target = "_self";

	if(mode == "insert")
	{
		locate = "insert.asp";
		msgBox = "ÀÛ¼ºÇÏ½Å Àåºñ´ë¿© ½ÅÃ»À» µî·ÏÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}
	else if(mode == "edit")
	{
		locate = "edit.asp";
		msgBox = "µî·ÏÇÏ½Å Àåºñ´ë¿© ½ÅÃ»À» ¼öÁ¤ÇÕ´Ï´Ù. °è¼Ó ÁøÇàÇÏ½Ã°Ú½À´Ï±î?";
	}

	if(!theForm.company.value)
	{
		alert("¾÷Ã¼¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.company.focus();
		return false;
	}

	if(frmSpace.exec(theForm.name.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.name.focus();
		theForm.name.select();
		return false;
	}
	if(!theForm.name.value)
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.name.focus();
		theForm.name.select();
		return false;
	}

	if(frmNum.exec(theForm.tel1.value || theForm.tel2.value || theForm.tel3.value))
	{
		alert("0~9±îÁö¸¸ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù.");
		theForm.tel1.focus();
		theForm.tel1.select();
		return false;
	}

	if(!theForm.tel1.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.tel1.focus();
		theForm.tel1.select();
		return false;
	}

	if(!theForm.tel2.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.tel2.focus();
		theForm.tel2.select();
		return false;
	}

	if(!theForm.tel3.value)
	{
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.tel3.focus();
		theForm.tel3.select();
		return false;
	}

	if(!theForm.emailID.value)
	{
		alert("E-MailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}
	if(!frmEmailID.exec(theForm.emailID.value))
	{
		alert("¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}
	if(frmSpace.exec(theForm.emailID.value))
	{
		alert("°ø¹éÀº ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.");
		theForm.emailID.focus();
		theForm.emailID.select();
		return false;
	}

	if(theForm.email2.value == "0")
	{
		alert("¸ÞÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ë.");
		theForm.email2.focus();
		return false;
	}
	else if(theForm.email2.value == "1")
	{
		if(!theForm.email1.value)
		{
			alert("³ª¸ÓÁö ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.email1.focus();
			theForm.email1.select();
			return false;
		}

		if(!frmEmail.exec(theForm.email1.value))
		{
			alert("¸ÞÀÏ ÁÖ¼Ò°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			theForm.email1.focus();
			theForm.email1.select();
			return false;
		}
	}

	if(!theForm.sYear.value)
	{
		alert("´ë¿© ½ÃÀÛÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.sYear.focus();
		return false;
	}
	if(!theForm.sMonth.value)
	{
		alert("´ë¿© ½ÃÀÛÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.sMonth.focus();
		return false;
	}
	if(!theForm.sDay.value)
	{
		alert("´ë¿© ½ÃÀÛÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.sDay.focus();
		return false;
	}

	if(!theForm.sTime.value)
	{
		alert("´ë¿© ½ÃÀÛÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.sTime.focus();
		return false;
	}

	if(!theForm.eYear.value)
	{
		alert("´ë¿© Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eYear.focus();
		return false;
	}
	if(!theForm.eMonth.value)
	{
		alert("´ë¿© Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eMonth.focus();
		return false;
	}
	if(!theForm.eDay.value)
	{
		alert("´ë¿© Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eDay.focus();
		return false;
	}
	if(!theForm.eTime.value)
	{
		alert("´ë¿© Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eTime.focus();
		return false;
	}

	if(theForm.sYear.value > theForm.eYear.value)
	{
		alert("Á¤È®ÇÑ Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eYear.focus();
		return false;
	}
	if(theForm.sYear.value == theForm.eYear.value && theForm.sMonth.value > theForm.eMonth.value)
	{
		alert("Á¤È®ÇÑ Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eMonth.focus();
		return false;
	}
	if(theForm.sYear.value == theForm.eYear.value && theForm.sMonth.value == theForm.eMonth.value && theForm.sDay.value > theForm.eDay.value)
	{
		alert("Á¤È®ÇÑ Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eDay.focus();
		return false;
	}
	if(theForm.sYear.value == theForm.eYear.value && theForm.sMonth.value == theForm.eMonth.value 
		&& theForm.sDay.value == theForm.eDay.value && theForm.sTime.value >= theForm.eTime.value)
	{
		alert("Á¤È®ÇÑ Á¾·áÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		theForm.eTime.focus();
		return false;
	}

	if(confirm(msgBox))
	{
		theForm.action = locate;
		return true;
	}
	else
	{
		return false;
	}
}
// Àåºñ´ë¿© °ü·Ã
