<!-- 


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

var work1, work2;


work1  = "<div style='width:70px; border: 1px #131c78 dashed; background: #131c78'><table><tr><td align='center'><font size='2'><a href='javascript:show();'>一覧表示</a></font></td></tr></table></div>";
work2  = "<div style='border: 1px #131c78 dashed; width: 171px; background: #131c78'><table width='171'><tr><td align='left'><font size='2' color='#e0e0e0'>6年目おめでとうございます。今後もじっとり拝見させていただきますので宜しくお願い致します。<br><br>それと「うんぽこ」の提案が素晴らしいと思いました。早速息子に教え込みますね。</font></td></tr><tr><td align='right'><font size='1' color='#33CCFF'>ナヲコ&nbsp;&nbsp;10/03 00:34</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #131c78 dashed; width: 171px; background: #131c78'><table width='171'><tr><td align='left'><font size='2' color='#e0e0e0'>＞ まさご さん<br>場所によってはクサいかも解りませんが、基本的には焼却（焼却できない一部は破砕）されて埋め立てられるので、僕の見学したところは無臭でした。潮の香りですね。<br>見渡す限りの灰色の大地に 建設中の臨海大橋の橋脚があったりして、その筋の人間にはたまらない光景でした。<br></font></td></tr><tr><td align='right'><font size='1' color='#33CCFF'>松岡&nbsp;&nbsp;09/18 00:14</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #131c78 dashed; width: 171px; background: #131c78'><table width='171'><tr><td align='left'><font size='2' color='#e0e0e0'>中防は父のちょっと前までの職場(そこまでゴミトラで運ぶ係)だったのですが、全くクサくないとは存じませんでした。さすが松岡さん、どこでも行ってますね。</font></td></tr><tr><td align='right'><font size='1' color='#33CCFF'>まさご&nbsp;&nbsp;09/15 19:28</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #131c78 dashed; width: 171px; background: #131c78'><table width='171'><tr><td align='left'><font size='2' color='#e0e0e0'>＞ コップ類 さん<br>カシオペアに乗っている最中も、遠くの空は晴れているのに、なぜか自分の上空は悪天候、という状況が相当長い時間続きました。<br>すなわち…！</font></td></tr><tr><td align='right'><font size='1' color='#33CCFF'>松岡&nbsp;&nbsp;07/01 00:32</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<div style='border: 1px #131c78 dashed; width: 171px; background: #131c78'><table width='171'><tr><td align='left'><font size='2' color='#e0e0e0'>＞ 村上 さん<br>グラウンドゼロ！ こういうご意見を聞くにつれ、掲示板を設置してよかったと思います。<br>まさに 爆心地業界に風穴が開きましたね。</font></td></tr><tr><td align='right'><font size='1' color='#33CCFF'>松岡&nbsp;&nbsp;07/01 00:30</font><br></td></tr></table></div>";
work2 += "<font size='1'><br></font>";
work2 += "<table><tr><td align='center'><div style='width:70px; border:1px #131c78 dashed; background: #131c78'><font size='2'><a href='javascript:hide();'>隠す</a></font></div></td></tr></table>";



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

document.write("<div style='width: 180px; background: #131c78'>");
document.write("<table align='canter' width='180'>");
document.write("  <tr>");
document.write("    <td align='center'><hr align='center' width=171 style='color:#ee0b56;'>");
document.write("<font size='2' color='#f6ec4e'>KJB</font>");
document.write("<br><hr align='center' width=171 style='color:#ee0b56;'></td>");
document.write("  </tr>");
document.write("  <tr align='center'>");
document.write("    <td>");
document.write("      <div style='border: 1px #131c78 dashed; width: 171px; background: #131c78'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#e0e0e0'>&gt; 「南」さん<br>どうもお久しぶりです。返信 遅くなり、申し訳ありません。<br>件のタナカのふりかけの CM を いろいろ探してみたのですが、見つかりませんでした。利便のきわみであるインターネットも、もはやここまでか、といった風情です。<br></font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#33CCFF'>松岡&nbsp;&nbsp;01/02 02:46</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 #131c78 dashed; width: 171px; background: #131c78'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#e0e0e0'>タナカのふりかけのテレビCMはスゴイですよ。スゴイ跳躍力。</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#33CCFF'>「南」&nbsp;&nbsp;12/01 01:03</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 #131c78 dashed; width: 171px; background: #131c78'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#e0e0e0'>＞プリンセスプリンセス さん<br>返信遅くなりまして申し訳ありませんでした。<br>URL が この掲示板の横幅からハミ出してしまってますね。しかし、「人生、ハミ出したモン勝ちだ！」という有名なコトバがありますので、逆にヨカッタのではないかと思います。<br><br>長くなりましたが、下水道の写真ありがとうございました。<br></font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#33CCFF'>松岡&nbsp;&nbsp;11/18 23:43</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 #131c78 dashed; width: 171px; background: #131c78'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#e0e0e0'>日本の下水道の写真があったので教えておきますね　http://www.uniquescoop.com/2009/08/japanese-sewage.html</font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#33CCFF'>プリンセスプリンセス&nbsp;&nbsp;10/27 16:51</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 #131c78 dashed; width: 171px; background: #131c78'>");
document.write("      <table width='171'>");
document.write("        <tr>");
document.write("          <td align='left'>");
document.write("            <font size='2' color='#e0e0e0'>6年目ありがとうございます。<br>じっとり凝視していただけるとありがたいです（変態）。<br><br>ご子息にはわんぱくでもいいので、たくましく育っていただきたいです。なので「うんぽこ」、よろしくお願いしますね。<br>わたくしも ご子息の成長ぶり、ねっとり見ております（変態）。<br></font></td>");
document.write("        </tr>");
document.write("        <tr>");
document.write("          <td align='right'>");
document.write("            <font size='1' color='#33CCFF'>松岡&nbsp;&nbsp;10/04 04:32</font><br></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      <font size='1'><br></font>");


/********** 一覧表示 **********/

document.write("      <span id='all'>");
document.write("      <div style='width:70px; border: 1px #131c78 dashed; background: #131c78'>");
document.write("      <table>");
document.write("        <tr>");
document.write("          <td align='center'>");
document.write("            <font size='2'><a href='javascript:show();'>一覧表示</a></font></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      </div>");
document.write("      </span></td>");


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

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/matsutoshi/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='#e0e0e0'>名前&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='#e0e0e0'>内容&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='#e0e0e0'>ぷち掲示板&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;}



-->
