<!-- 


/********** 初期設定 **********/

var work1, work2;


work1  = "";
work2  = "";



work2 += "<table><tr><td align='center'><div style='width:70px; border:1px #000000 dashed; background: #FAFAFF'><font size='2'><a href='javascript:hide();'>隠す</a></font></div></td></tr></table>";



/********** 書き込み内容3件分表示 **********/

document.write("<div style='width: 180px; background: #CCCCCC'>");
document.write("<table align='canter' width='180'>");
document.write("  <tr>");
document.write("    <td align='center'><hr align='center' width=171 style='color:#FFFFFF;'>");
document.write("<font size='2' color='#000000'>更新情報</font>");
document.write("<br><hr align='center' width=171 style='color:#FFFFFF;'></td>");
document.write("  </tr>");
document.write("  <tr align='center'>");
document.write("    <td>");
document.write("      <div style='border: 1px #000000 dashed; width: 171px; background: #FAFAFF'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>5/12 宮原ＳＡ／5/17　湯の児フィッシングパーク更新しました♪　</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#6633CC'>ぽこちゃん　&nbsp;&nbsp;05/17 21:08</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");
document.write("      <div style='border: 1px #000000 dashed; width: 171px; background: #FAFAFF'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#000000'>5/9　草千里・阿蘇火山博物館／5/10　杉養蜂園 （阿蘇みつばち牧場）更新しました♪</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#6633CC'>ぽこちゃん&nbsp;&nbsp;05/10 00:27</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");


/********** 書き込みフォーム表示 **********/

document.write("  </tr>");
document.write("  <tr>");
document.write("    <td align='center'>");
document.write("      <table border='0' cellpadding='0' cellspacing='0'>");
document.write("        <form name='frm' method='POST' action='http://asp.atomicweb.co.jp/id/peco1214/petit_bbs/' target='_blank' onSubmit='return fnc_check(document.frm.name.value)'>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='2' color='#000000'>名前&nbsp;&nbsp;</font></td>");
document.write("          <td align='left' width='126'>");
document.write("            <input type='text' name='name' style='width:126px'></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='2' color='#000000'>内容&nbsp;&nbsp;</font></td>");
document.write("          <td align='left' width='126'>");
document.write("            <textarea name='text' rows='4' style='width:126px'></textarea></td>");
document.write("        </tr>");
document.write("        <tr align='right'>");
document.write("          <td colspan='2'>");
document.write("            <input type='submit' value='書き込み'></td>");
document.write("        </tr>");
document.write("        </form>");
document.write("      </table></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td align='right'>");
document.write("      <font size='1'><br></font><font size='2' color='#000000'>ぷち掲示板&nbsp;<a href='http://asp.atomicweb.co.jp/' target='_blank'>AtomicASP</a></font></td>");
document.write("  </tr>");
document.write("</table>");
document.write("</div>");


/********** クッキー読み込み **********/

var theData   = "";
var theName   = "AtmMiniBBS=";
var theCookie = document.cookie+";";
var start = theCookie.indexOf(theName);
var end;

if (start != -1){	
	end = theCookie.indexOf(";",start);
	theData = unescape(theCookie.substring(start+theName.length, end));
}
document.frm.name.value = theData;


/********** ファンクション **********/

function fnc_check(name){

	var strName = name;

	if(document.frm.name.value == ""){
		alert("名前を入力してください");
		return false;
	}else if(document.frm.text.value == ""){
		alert("内容を入力してください");
		return false;
	}else{
		var theName  = "AtmMiniBBS";
		var theValue = document.frm.name.value;
		var theDay   = 31;

		setDay = new Date();
		setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
		expDay = setDay.toGMTString();
		cook = theName + "="+escape(theValue)+";expires="+expDay;
		document.cookie = cook;
              document.frm.name.value += "　"
              document.frm.text.value += "　"
	}

}

function show(){all.innerHTML = work2;}
function hide(){all.innerHTML = work1;}



-->
