/*=================================================
# ファイル名	： スクリプトファイル
# 作成日時	： 2009.07.01
# 作成者		： sugi@idu.jp
# 更新履歴	： 
=================================================*/

function setMyPage ( id,num,item ) {
	var f	= document.Form1;
	f.item_name.value	= item;
	f.item_number.value	= num;
	if (document.getElementById('np')) {
		f.np.value	= "";
	}
	f.target	= "_parent";
	if ( id == 1 ) {
		f.action	= "../cgi-bin/news.cgi";
	} else if ( id == 3 ) {
		f.action	= "../cgi-bin/about.cgi";
	} else if ( id == 5 ) {
		f.action	= "../cgi-bin/ir.cgi";
	}
	f.method	= "post";
	f.submit();
}

function setMenuPage ( menu,item,path ) {
	var f	= document.Form1;
	f.menu_name.value	= menu;
	f.item_name.value	= item;
	if (document.getElementById('np')) {
		f.np.value	= "";
	}
	f.target	= "_parent";
	f.action	= path;
	f.method	= "post";
	f.submit();
}

function cmtPageView( pNum ) {
	var f	= document.Form1;
	f.page_num.value	= pNum;
	f.menu_name.value	= "nr_dtl_menu";
	f.target	= "_parent";
	f.action	= "./news.cgi";
	f.method	= "post";
	f.submit();
}
function hisBack_news() {
	var f	= document.Form1;
	f.menu_name.value	= "nr_menu";
	f.target	= "_parent";
	f.action	= "./news.cgi";
	f.method	= "post";
	f.submit();
}
function cmtPageView_top( pNum ) {
	var f	= document.Form1;
	w		= window.open("",'win2','width=800,height=500,scrollbars=yes,resizable=yes');
	w.onLoad	= actionnew("./cgi-bin/comment.cgi", "win2");
}

function actionnew(actionname, winname){
	var f	= document.Form1;
	f.action = actionname;
	f.target = winname;
	f.submit();
}

