///////////////////////////////////////////////////////////////////////
//
//	ファイル名	: topics_contents.js
//	機能		: 次回例会関係処理
//	引数		: 無し
//	戻り値		: 無し
//	備考		: 無し
//
///////////////////////////////////////////////////////////////////////

//
// 定義		: onTopicsContents
// 機能		: 記事詳細リンク・ボタンクリック時処理
// 引数		: 例会ID
// 戻り値	: なし
// 備考		: なし
//
function onTopicsContents( arg_news_id, arg_mag_id, arg_year )
{
	// クリックされた記事IDの取得
	var temp_spl = arg_news_id.split( '_' );
	var news_id = temp_spl[ temp_spl.length - 1 ];

	// POSTデータにセット
	var ele1 = document.getElementById( 'NEWS_ID' );
	ele1.value = news_id;

	// POSTデータにセット
	var ele2 = document.getElementById( 'MAGAZINE_ID' );
	ele2.value = arg_mag_id;

	// POSTデータにセット
	var ele3 = document.getElementById( 'YEAR' );
	ele3.value = arg_year;
	
	// 遷移
	document.form_topics_contents.action = js_getBaseurl()+'/index.php/official/backnumber-list/backnumber-detail/article.html';
	document.form_topics_contents.submit();
}

//
// 定義		: onGreatLivesDetail
// 機能		: 偉人詳細リンク・ボタンクリック時処理
// 引数		: 例会ID
// 戻り値	: なし
// 備考		: なし
//
function onGreatLivesDetail( arg_mag_id )
{
	// POSTデータにセット
	var ele1 = document.getElementById( 'MAGAZINE_ID' );
	ele1.value = arg_mag_id;
	
	// 遷移
	document.form_topics_contents.action = js_getBaseurl()+'/index.php/official/greatperson-list/greatperson-detail.html';
	document.form_topics_contents.submit();
}

//
// 定義		: onMagazineIntroduction
// 機能		: バックナンバーリンク・ボタンクリック時処理
// 引数		: 例会ID
// 戻り値	: なし
// 備考		: なし
//
function onMagazineIntroduction( arg_mag_id, arg_year, arg_page )
{
	// POSTデータにセット
	var ele2 = document.getElementById( 'MAGAZINE_ID' );
	ele2.value = arg_mag_id;

	// POSTデータにセット
	var ele3 = document.getElementById( 'YEAR' );
	ele3.value = arg_year;
	
	// 遷移
	document.form_topics_contents.action = js_getBaseurl() + "/index.php/official" + arg_page;
	document.form_topics_contents.submit();
}

