
//function SetTextRestrictionBack(theForm)
//{
	// １ヶ月前の日付を求める
	//theForm.DocLimite.value = "@write > " + GetBeforeDateByMonth(1);
//	theForm.DocLimite.value = " and (write > '" + GetBeforeDateByMonth(1) + "')";
//	theForm.DocLimiteNo.value = 1;
//
//	var iIndex = theForm.BbsCategory.selectedIndex;
//	var strChar = theForm.BbsCategory.options[iIndex].value;
//
//	if(strChar == "")
//	{
		// 3/8追加　サーバーシステムVer3.10
//		theForm.DispCategory.value = "すべての掲示";
//		theForm.SearchFolder1.value = "";
//		return true;
//	}
//	else
//	{
//		iIndex = strChar.indexOf(",");					// カテゴリ名を取得
//		if(iIndex == -1)
//		{
//			strChar = Trim(strChar);					// 名前 == フォルダ名
//			theForm.DispCategory.value = strChar;
//			theForm.SearchFolder1.value = strChar;
//		}
//		else
//		{
//			theForm.DispCategory.value = Trim(strChar.substring(0, iIndex));
//			var iLen = strChar.length;					// フォルダ名を取得
//			theForm.SearchFolder1.value = Trim(strChar.substring(iIndex + 1, iLen));
//		}
//
//		return true;
//	}
//}

//2000/12/11追加　デフォルト検索期間変更
function SetTextRestriction(theForm)
{
	var i;
	i = theForm.DocLimiteNo.value;
	
	if(i==1)	//1ヶ月前
		theForm.DocLimite.value = " and (write > '" + GetBeforeDateByMonth(1) + "')";
	else if(i==2)	//1週間前
		theForm.DocLimite.value = " and (write > '" + GetBeforeDateByDay(7) + "')";
	else if(i==3)	//当日
		theForm.DocLimite.value = " and (write > '" + GetBeforeDateByDay(0) + "')";
	else
		theForm.DocLimite.value ="";

	var iIndex = theForm.BbsCategory.selectedIndex;
	var strChar = theForm.BbsCategory.options[iIndex].value;

	if(strChar == "")
	{
		theForm.DispCategory.value = "すべての掲示";
		theForm.SearchFolder1.value = "";
		return true;
	}
	else
	{
		iIndex = strChar.indexOf(",");
		if(iIndex == -1)
		{
			strChar = Trim(strChar);
			theForm.DispCategory.value = strChar;
			theForm.SearchFolder1.value = strChar;
		}
		else
		{
			theForm.DispCategory.value = Trim(strChar.substring(0,iIndex));
			var iLen = strChar.length;
			theForm.SearchFolder1.value = Trim(strChar.substring(iIndex + 1 ,iLen));
		}
		return true;
	}
}

// 3/8追加　サーバーシステムVer3.10
function AllRestrictionBBS()
{
	//すべての掲示の表示
	//var DocLimiteNo = 1;
	//var DocLimite = " and (write > '" + GetBeforeDateByMonth(1) + "')";
	var DocLimiteNo = Const_DocLimNoAllBbs;
	var DocLimite;
	if(DocLimiteNo == 1)
		DocLimite = " and (write > '" + GetBeforeDateByMonth(1) + "')";
	else if(DocLimiteNo == 2)
		DocLimite = " and (write > '" + GetBeforeDateByDay(7) + "')";
	else if(DocLimiteNo == 3)
		DocLimite = " and (write > '" + GetBeforeDateByDay(0) + "')";
	else if(DocLimiteNo == 0)
		DocLimite = "";
	var DispCategory = "すべての掲示";
	var SearchFolder1 = "";
	var SearchFolder2 = "";
	var DispLink = "ON";
	var DispImg = "";

	var strURL = "http://" + window.location.host + "/" + Const_ALIAS + "/scr/board/QBoard.asp";
	strURL = strURL + "?DocLimiteNo=" + DocLimiteNo + "&DocLimite=" + DocLimite;
	strURL = strURL + "&Dispcategory=" + escape(DispCategory) + "&DispLink=" + DispLink + "&DispImg=" + DispImg;
	strURL = strURL + "&SearchFolder1=" + SearchFolder1 + "&SearchFolder2=" + SearchFolder2;

	window.location = strURL;
}
