	//**************************************//
	//      ÇÁ·Î±×·¥¸í : javascripts.js  	//
	//      ÀÛ  ¼º  ÀÚ : ¼­ÀÎ¿À				//
	//      ÀÛ  ¼º  ÀÏ : 2004. 02. 03		//
	//**************************************//
	
function goBack()
{
	history.back();
}	


function Delete(formName, postBackControlName)
{
	var form = null;
	var keyword = null;
	
	if (formName != null && Trim(formName) != '')
	{
		form = document.forms[formName];
	}
	else
	{
		form = document.forms(0);
	}
	
	if (confirm("ÀÚ·á°¡ ¿µ±¸È÷ »èÁ¦ µË´Ï´Ù.\n»èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))
	{
		__doPostBack(postBackControlName, '');
	}
}

function ChekWriteConditoin()
{
	if (event == null || event.keyCode == 13)
	{
		var form = null;
		var subject = null;
		var Content = null;
		
		form = document.forms(0);
		
		subject = Trim(form.elements[subject].value);
		Content = Trim(form.elements[Content].value);
		
		if (subject == "")
		{
			alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
			form.elements[subject].focus();
		}
		//if (Content == '')
		//{
		//	alert('³»¿ëÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		//	form.elements[Content].focus();
		//}	
		return true;
		//return false;
	}
}

function Search(formName, keywordControlName, postBackControlName)
{
	if (event == null || event.keyCode == 13)
	{
		var form = null;
		var keyword = null;
		
		if (formName != null && Trim(formName) != '')
		{
			form = document.forms[formName];
		}
		else
		{
			form = document.forms(0);
		}
		
		keyword = Trim(form.elements[keywordControlName].value);
		
		if (keyword == '')
		{
			alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
			form.elements[keywordControlName].select();
		}
		else
		{
			var keywordCheck = true;
			
			for(i=0; i < keyword.length; i++)
			{
				if (keyword.charAt(i) == "'" || keyword.charAt(i) == '*' || keyword.charAt(i) == '%')
				{
					keywordCheck = false;
				}
			}
			
			if (!keywordCheck)
			{
				alert("À¯È¿ÇÏÁö ¾ÊÀº °Ë»ö¾î ÀÔ´Ï´Ù.");
				form.elements[keywordControlName].select();
			}
			else
			{
				__doPostBack(postBackControlName, '');
			}
		}
		
		return false;
	}
}


function Reply(formName, articleLevel, postBackControlName)
// formName, c_depth, ´äº¯¹öÆ° 
{
	var form = null;
	
	if (formName != null && Trim(formName) != '')
	{
		form = document.forms[formName];
	}
	else
	{
		form = document.forms(0);
	}

	if (articleLevel < 10)
	{
		__doPostBack(postBackControlName, '');
	}
	else
	{
		alert("»çÀÌÆ® ¿î¿µ»ó ´äº¯ÀÇ ·¹º§ÀÌ 10À¸·Î Á¦ÇÑµÇ¾î ÀÖ½À´Ï´Ù.\nÇÏÀ§ ·¹º§ÀÇ ´äº¯À» ÀÛ¼ºÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
	}
}


function SettxtSubjectFocus()
{
          document.forms[0].txtSubject.focus();
}


function fileExtCheck(nCount) {
	var regExt =/(\.[^\.]*$)/;

	// Á¦¸ñÀ» Ã¼Å©ÇÑ´Ù.
	subject = document.forms[0].txtSubject.value;
	if(subject == null || subject == "")
	{
		alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.forms[0].txtSubject.focus();
		return false;
	}
	// ³»¿ëÀ» Ã¼Å©ÇÑ´Ù.
	content = document.forms[0].txtContent.value;
	if(content == null || content=="")
	{
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		document.forms[0].txtContent.focus();
		return false;
	}
	
	if(nCount <= 3)
	{
		// Ã·ºÎÆÄÀÏÀ» Ã¼Å©ÇÑ´Ù.			
		fileStr = document.forms[0].File1.value;
		filename = fileStr.replace(regExt, "");
		strExtOri = fileStr.replace(filename,"");
		strExt = strExtOri.toLowerCase();
					
		if (strExt == ".js" || strExt == ".vbs") {
			//alert("¼±ÅÃÇÏ½Å JS, VBSÆÄÀÏÀº ¿Ã¸± ¼ö ¾ø½À´Ï´Ù.");
			alert("[Ã·ºÎÆÄÀÏ1]¿¡ " + strExtOri + " Çü½ÄÀº ¾÷·Îµå°¡ Çã¿ëµÇÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù.\n");
			return false;
		}				
	}

	if(nCount == 2)
	{
		// Ã·ºÎÆÄÀÏÀ» Ã¼Å©ÇÑ´Ù.			
		fileStr = document.forms[0].File2.value;
		filename = fileStr.replace(regExt, "");
		strExtOri = fileStr.replace(filename,"");
		strExt = strExtOri.toLowerCase();
					
		if (strExt == ".js" || strExt == ".vbs") {
			//alert("¼±ÅÃÇÏ½Å JS, VBSÆÄÀÏÀº ¿Ã¸± ¼ö ¾ø½À´Ï´Ù.");
			alert("[Ã·ºÎÆÄÀÏ2]¿¡ " + strExtOri + " Çü½ÄÀº ¾÷·Îµå°¡ Çã¿ëµÇÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù.\n");
			return false;
		}
	}
	
	if(nCount == 3)
	{
	///////////////////////////////////////////////////////
		// ÀÌ¹ÌÁö 1/2¸¦ Ã¼Å©ÇÑ´Ù.
		var imgStr = document.news_write.Img1.value;
		imgname = imgStr.replace(regExt, "");
		strExtImgUp = imgStr.replace(imgname,"");
		strExtimg = strExtImgUp.toLowerCase();
		if(imgStr == null || imgStr == "")
		{
		}
		else
		{
			
			if (strExtimg == ".jpg" || strExtimg == ".gif" || strExtimg == ".bmp")
			{
			}
			else	
			{
				alert("[ÀÌ¹ÌÁö#1]¿¡´Â JPG, GIF, BMP ±×¸²ÆÄÀÏ¸¸ ¾÷·Îµå °¡´ÉÇÕ´Ï´Ù.\n");
				return false;
			}
		}
	//////////////////////////////////////////////////////
		var imgStr2 = document.news_write.Img2.value;
		imgname2 = imgStr2.replace(regExt, "");
		strExtImgUp2 = imgStr2.replace(imgname2,"");
		strExtimg2 = strExtImgUp2.toLowerCase();
		if(imgStr2 == null || imgStr2 == "")
		{
		}
		else
		{
			
			if (strExtimg2 == ".jpg" || strExtimg2 == ".gif" || strExtimg2 == ".bmp")
			{
			}
			else	
			{
				alert("[ÀÌ¹ÌÁö#2]¿¡´Â JPG, GIF, BMP ±×¸²ÆÄÀÏ¸¸ ¾÷·Îµå °¡´ÉÇÕ´Ï´Ù.\n");
				return false;
			}
		}
	//////////////////////////////////////////////////////
	}
	
	return true;
}

function MainTitle()			//IE¼³°è º¯°æ
{
	var kadentTag = ''
	+ ' <OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="110" width="780" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>'
	+ ' <PARAM NAME="_cx" VALUE="20638">'
	+ ' <PARAM NAME="_cy" VALUE="2910">'
	+ ' <PARAM NAME="FlashVars" VALUE="">'
	+ ' <PARAM NAME="Movie" VALUE="/images/top_img/main_top_text.swf">'
	+ ' <PARAM NAME="Src" VALUE="/images/top_img/main_top_text.swf">'
	+ ' <PARAM NAME="WMode" VALUE="Transparent">'
	+ ' <PARAM NAME="Play" VALUE="-1">'
	+ ' <PARAM NAME="Loop" VALUE="-1">'
	+ ' <PARAM NAME="Quality" VALUE="High">'
	+ ' <PARAM NAME="SAlign" VALUE="">'
	+ ' <PARAM NAME="Menu" VALUE="-1">'
	+ ' <PARAM NAME="Base" VALUE="">'
	+ ' <PARAM NAME="AllowScriptAccess" VALUE="always">'
	+ ' <PARAM NAME="Scale" VALUE="ShowAll">'
	+ ' <PARAM NAME="DeviceFont" VALUE="0">'
	+ ' <PARAM NAME="EmbedMovie" VALUE="0">'
	+ ' <PARAM NAME="BGColor" VALUE="">'
	+ ' <PARAM NAME="SWRemote" VALUE="">'
	+ ' <PARAM NAME="MovieData" VALUE="">'
	+ ' <embed src="/images/top_img/main_top_text.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="110">'
	+ ' </embed>'
	+ ' </OBJECT>';

	document.write(kadentTag);
}

