function UploadFile(check)
{
	var attachlist;
				
	attachlist = eval("document.all."+opt+"ddlFile");
				
	var obj = document.getElementById("UploadView");
	if (check)
	{
		if (attachlist.length < 2)
		{
			obj.style.display = "";					
			obj.style.backgroundColor = "#e0e5ed";
			obj.innerHTML = "<IFRAME id='UploadPage' name='UploadPage' marginWidth='0' marginHeight='0' src='/wBoard/FileUpload.aspx'"+"' frameBorder='no' width='270' height='100'></IFRAME>";
		}
		else
		{
			alert("Ã·ºÎÆÄÀÏ °³¼ö´Â 1°³±îÁö ÀÔ´Ï´Ù.");
			return;
		}
	}
	else
	{
		obj.innerHTML = "";
		obj.style.display = "none";
	}			
}
			
// ÆÄÀÏ Ãß°¡
function UploadFile_Add(name, value, size)
{
	var attachlist;
				
	attachlist = eval("document.all."+opt+"ddlFile");
	var ischeck = true;
				
	for (var i=0;i<attachlist.length;i++)
	{
		if (attachlist[i].value == value)
		{
			ischeck = false;
			break;
		}
	}
				
	if (ischeck)
	{
		attachlist.add(new Option(name , value));					
		targetValue = eval("document.all."+opt+"hidFile");
		targetSize = eval("document.all."+opt+"hidFileSize");
		
		targetValue.value = value;
		targetSize.value = size;
	}				
}
			
// ÆÄÀÏ »èÁ¦
function UploadFile_Del()
{
	var attachlist;
				
	attachlist = eval("document.all."+opt+"ddlFile");
					
	if (attachlist.length <= 1)
		return;	
	else if (attachlist.selectedIndex == -1)
		alert("»èÁ¦ÇÒ ÆÄÀÏÀ» ¼±ÅÃÇÏ¼¼¿ä");
	else if (attachlist.length <= 0 || attachlist.selectedIndex == 0)
	{
    	alert("»èÁ¦ÇÒ ÆÄÀÏ¸¸ ¼±ÅÃÇÏ¼¼¿ä.");
		return;
	}
	else
	{
		for (var i=attachlist.length-1;i>=1;i--)
		{
			if (attachlist[i].selected == true)
				attachlist.remove(i);
		}
	}
				
	targetValue = eval("document.all."+opt+"hidFile");
	targetValue.value = "";
	for (var i=0;i<attachlist.length;i++)
	{
		if (attachlist[i].value != "" && i != 0)
			targetValue.value += attachlist[i].value + "/";
	}		
}

function Delete_Go()
{
	if (confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))
	{	
		__doPostBack("Content1$btnDelete", "");
	}
}

function ContentCheck (sender, args)
{
	if (window.EditorViewer_kkobi.document.body.innerHTML == "")
		args.IsValid = false;
	else
		args.IsValid = true;
}


function FreeType_Change(obj)
		{
			document.all.Insert1_checkQ3.value = obj[obj.selectedIndex].value;	
			
			
		}

			
