function outputHeader(inUsrname, inMode ,inPkgName ,inAkey) {
	//inMode 0/ログイン前 1/R 2/G 3/B 4/ログイン画面 9/非表示
//	value=Math.floor(Math.random()*6);
//	if(value==0){
//		filename='mrdo_003.jpg';
//	}else if(value==1){
//		filename='mrdo_002.jpg';
//	}else if(value==2){
//		filename='mrdo_003.jpg';
//	}else if(value==3){
//		filename='mrdo_004.jpg';
//	}else if(value==4){
//		filename='mrdo_005.jpg';
//	}else if(value==5){
//		filename='mrdo_006.jpg';
//	}
	filename='do01.jpg';
	if(inMode==0){
		vOutmsg='はじめての方へ >><a href="login_menu.pl?pkg_id=6_6&ID=guest&pass=guest" target="_blank">体験版ゲストログイン</a>(別ウィンドウ)';
		vPkgname='';
		vTopBack='index.html';
	}else if(inMode<=3){
		vOutmsg='　ようこそ　'+inUsrname+'様。';
		vPkgname=inPkgName;
		vTopBack='login_menu.pl?Akey='+inAkey+'&mode=back';
	}else if(inMode<=4){
		vOutmsg='　IDとパスワードを入力し、ログインしてください。';
		vPkgname=inPkgName;
		vTopBack='index.html';
	}else if(inMode==9){
		vOutmsg='　ようこそ　'+inUsrname+'様。';
		vPkgname=inPkgName;
		vTopBack='login.pl?Akey='+inAkey;
	}else if(inMode==10){
		vOutmsg='';
		vPkgname='';
		vTopBack='';
	}//<BR><font class="j10h12">(この画面は開発中です。動かない部分やリンクが外れている箇所があります。<br>また、デザインも変更になる可能性があります。)
	document.write('<table style="width:*"><tr><td class="nb_np" style="width:174px">');//203
	document.write('<a href="'+vTopBack+'"><img src="./images/'+filename+'" border="0"></a>');
	document.write('</td><td class="nb_np" style="vertical-align:bottom; width:421px">');//780-359
	document.write('<font class="headertitle">'+vPkgname);
	document.write('</font>');
	document.write('<font class="j12h15"><BR><BR>'+vOutmsg);
	document.write('</font>');
	document.write('</td><td class="nb_np" style="vertical-align:bottom; width:185px">');
	
//	value=Math.floor(Math.random()*3);
	if(inMode==1){
		filename='3sec_r_on.jpg';
	}else if(inMode==2){
		filename='3sec_g_on.jpg';
	}else if(inMode==3){
		filename='3sec_b_on.jpg';
	}
	if(inMode<4 && inMode>0){
		document.write('<img src="./images/'+filename+'" border="0" usemap="#head_sec_map">');
	}
	
	//document.write('<table><tr><td class="nb" colspan=2>');
	//document.write('<a href="_m_top.htm"><font class="red_sc">■</font>Managementへ</a>');
	//document.write('</td></tr><tr><td class="nb">');
	//document.write('<a href="_q_top.htm"><font class="green_sc">■</font>Questionへ</a>');
	//document.write('</td><td class="nb">');
	//document.write('<a href="_r_top.htm"><font class="blue_sc">■</font>Resultへ</a>');
	//document.write('</td></tr></table>');
	document.write('</td></tr></table>');
	
	document.write('<map name="head_sec_map">');
	document.write('  <area shape="rect" coords="12,12,64,34" href="_m_top.pl?Akey='+inAkey+'" alt="Management">');
	document.write('  <area shape="rect" coords="6,35,39,74" href="_q_top.pl?Akey='+inAkey+'" alt="Question">');
	document.write('  <area shape="rect" coords="40,35,72,74" href="_r_top.pl?Akey='+inAkey+'" alt="Result">');
	document.write('  <area shape="rect" coords="77,25,177,76" href="login_menu.pl?Akey='+inAkey+'" alt="Section Selectへ">');
	document.write('</map>');
	
}
