//=========================== °Ô½ÃÆÇ ÀÏ°ý»èÁ¦ ¹öÆ° ÇÔ¼ö ===========================//

function fn_ContentsList_CheckAll( tagName, tagName_AllChecked )
{
	var strTagName = eval("document.all." + tagName );
	var strTagName_AllChecked = eval("document.all." + tagName_AllChecked );

	if( strTagName_AllChecked.checked )
	{
		if( strTagName != null )
		{
			if( strTagName.length != null )
			{
				for (i=0; i<strTagName.length; i++)
				{
					strTagName[i].checked = true;
				}
			}
			else
				strTagName.checked = true;
		}
	}
	else
	{
		if( strTagName != null )
		{
			if( strTagName.length != null )
			{
				for (i=0; i<strTagName.length; i++)
				{
					strTagName[i].checked = false;
				}
			}
			else
				strTagName.checked = false;
		}
	}
}

function fn_ContentsList_CheckEach( tagName, tagName_AllChecked )
{
	var strTagName = eval("document.all." + tagName );
	var strTagName_AllChecked = eval("document.all." + tagName_AllChecked );

	var nCount = 0;
	if( strTagName != null )
	{
		if( strTagName.length != null )
		{
			for (i=0; i<strTagName.length; i++)
			{
				if( strTagName[i].checked )
					nCount++;
			}
			
			if( strTagName.length == nCount )
				strTagName_AllChecked.checked = true;
			else
				strTagName_AllChecked.checked = false;
		}	
		else
		{
			if( strTagName.checked )
				strTagName_AllChecked.checked = true;
			else
				strTagName_AllChecked.checked = false;
		}
	}
}


function ReportArticle( oidBoard, oidArticle )
{
	window.open( "../../common/page/gnxpopup.aspx?URL=Report/Report&oidBoard=" + oidBoard + "&oidArticle=" + oidArticle, "report", "width=465,height=360");
}

function ReportSimpleComment( oidBoard, oidArticle, oidSimpleComment )
{
	window.open( "../../Common/Report/ReportSimpleComment.aspx?oidBoard=" + oidBoard + "&oidArticle=" + oidArticle + "&oidSimpleComment=" + oidSimpleComment, "report", "width=460,height=400");
}

function ReportComment( oidBoard, oidArticle, oidComment )
{
	window.open( "../../Common/Report/ReportComment.aspx?oidBoard=" + oidBoard + "&oidArticle=" + oidArticle + "&oidComment=" + oidComment, "report", "width=460,height=400");
}

